Bematech LR200M Manual

Bematech LR200M Manual

Android bluetooth sdk development
Hide thumbs Also See for LR200M:

Advertisement

Quick Links

LR200M Android Bluetooth SDK Development

1. Introduction

(1) Software package name
com.RT_Printer.BluetoothPrinter.BLUETOOTH
(2) Class Name
Class Name
BluetoothPrintDriver

2. Methods in Class BluetoothPrintDriver

 instantiation
BluetoothPrintDriver(this, mHandler);
Set Handler to receive the messages from SDK, Including state changes, Bluetooth to
send data, Bluetooth receive data (printer returned data: battery voltage, the error
status is returned by MESSAGE_READ) as well as a successful connection and
connection failures. Corresponding constants are:
MESSAGE_STATE_CHANGE,
MESSAGE_DEVICE_NAME, MESSAGE_TOAST
open and close the connection method
1. connect(device); Establish a connection with a Bluetooth device (OpenPrinter ()
method has expired)
2 stop(); Disconnect the Bluetooth device (close () method has expired)
3. IsNoConnection(); Judge the status of the Bluetooth connection
 basic print method
1. Begin(); Initialize the printer
2. Print String or byte data type. Use this method to be sent the command directly to
the printer
(1)public static void
Parameter:
(2)public static void
Parameter:
(3)public static void
Parameter: out:byte data need to send
Discription
Bluetooth connection and printer operation
MESSAGE_WRITE,
BT_Write
(String
dataString)
dataString:String data need to send
BT_Write
(String
dataString,
dataString:String data need to send
bGBK:GBK
Flag,true
BT_Write
(byte[]
out)
boolean
bGBK)
or
false
MESSAGE_READ,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LR200M and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Bematech LR200M

  • Page 1 LR200M Android Bluetooth SDK Development 1. Introduction (1) Software package name com.RT_Printer.BluetoothPrinter.BLUETOOTH (2) Class Name Class Name Discription BluetoothPrintDriver Bluetooth connection and printer operation 2. Methods in Class BluetoothPrintDriver  instantiation BluetoothPrintDriver(this, mHandler); Set Handler to receive the messages from SDK, Including state changes, Bluetooth to...
  • Page 2 (4)public static void BT_Write (byte[] out, dataLen) Parameter: out:byte data need to send dataLen:data length 3. Print and line feed public static void LF(); 4. Print and carriage return public static void CR(); 5. Print a self-test page public static void SelftestPrint ();...
  • Page 3 public static void SetLeftStartSpacing (byte byte nH); [Range] 0 <=nL <=255 0 <=nH <=255 [Description] Sets the left margin using nL and nH.The left margin is set to : [(nL + nH ×256) × 0.125 mm] 7. Set printing area width public static void SetAreaWidth (byte...
  • Page 4 Function 0, 48 Turns off underline mode 1, 49 Turns on underline mode (1 dot thick) 2, 50 Turns on underline mode (2 dots thick) 3. Turn emphasized mode on/off public static void SetBold (byte BoldEn); <= <= [Range] BoldEn [Description] Turns emphasized mode on or off When the LSB of n is 0, emphasized mode is turned off.
  • Page 5 When the LSBof n is 1, upside-down printing mode is turned on. 8. Select character size public static void SetFontEnlarge (byte FontEnlarge); Range] 0 <= FontEnlarge <= 255 [Description] Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7, as follows: Off/On Decimal...
  • Page 6 Double-width mode is OFF. Double-width mode is ON. Double-height mode is OFF. Double-height mode is ON. - - - Undefined. - - - Undefined. - - - Undefined. Underline mode is OFF. Underline mode is ON. 2. Select Kanji character mode public static void SelChineseCodepage ();...
  • Page 7 This method returns 3 bytes of data, MSB. The first two bytes are used to calculate the battery voltage. Voltage = r[0]*256 + r[1], r[0] is the First byte received, r[1] is the second byte received. The last byte Indicates the printer status. Off/On Decimal Status...
  • Page 8  cutting paper related methods 1. full cut paper public static void CutPaper (); 2. partial cut paper public static void PartialCutPaper (); 3. Select cut mode and cut paper public static void FeedAndCutPaper (byte CutMode); ① public static void FeedAndCutPaper byte CutMode...

Table of Contents