Recent Changes - Search:

Products

General resources

edit SideBar

USB / USB :
By - November 27, 2018, at 08:13 AM

1.  USB HID-POS Report ID

  • Out Report ID : 0x04
  • In Report ID : 0x02

reference with packet format as below:

  • Example 1: acquire serial number from FM30

send data to the scanner as below

04 09 7E 00 05 01 01 F0 08 11 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

acquire response from the scanner

02 0E 02 00 00 08 45 4C 30 33 30 30 39 35 25 51 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

then we'll get the S/N (EL030095) of this device which is localed from 7th to 14th in the return message with HEX

  • Example 2: activate/terminate scanning session for FM30

1) enter command trigger mode

send data to the scanner

04 09 7E 00 08 01 00 00 D5 EF 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

acquire response from the scanner

02 07 02 00 00 01 00 33 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

2) activate scanning session

send data to the scanner

04 09 7E 00 08 01 00 02 01 02 DA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

acquire response from the scanner

02 07 02 00 00 01 00 33 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

3) terminate scanning session

send data to the scanner

04 09 7E 00 08 01 00 02 02 32 B9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

acquire response from the scanner

02 07 02 00 00 01 00 33 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  • Example 3: activate/terminate scanning session for FM50

1) activate scanning session

04 02 1B 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

2) terminate scanning session

04 02 1B 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

2.  Demos

2.1  HID POS

The C# demo with window : https://code.msdn.microsoft.com/Barcode-scanner-sample-f39aa411

2.2  Serial port

The C# demo with window: https://code.msdn.microsoft.com/SerialPort-Sample-in-VBNET-fb040fb2

The C# demo without window: https://code.msdn.microsoft.com/Using-Barcode-Reader-In-C-e5172a25

3.  USB ID list

ProductPIDDataPipe Comments
RESERVED0x00  
HR2000x01 
MB20270x02√  
PD63310x03  
MB21000x04 
PT8500x05 
PT9500x06  
PT9800x07√  
FM2000x08 
FM2080x09 
FM3000x0A  
PT8620x0B√  
HR1000x0C  
MB20280x0D√  
HR2200x0E  
EM20290x0F  
PT3(SNS1)0x10  
C50x11  
EM20380x12  
Chipset0x13√   
   EM3020
   EM3070
   EM2039
   HR200C V1.1
   HR32JX (HR32C)
HR150x14  
EM130x15  
FM1000x16  
HR200C V1.00x17 √ not released 
RESERVED FOR Researching0x80~0x8F  0x80: IOCT0330/IOCT0370

4.  Power-saving mode will turn off USB communication on chip+ MCU production

If the chip+MCU production can transport the data via series port but can not transport the data via USB mode. This may be caused by enabling the power saving mode. Because the power saving mode will close the USB communication to save the power. Take EM3296 for example, EM3296 can scan below barcode to enable power saving function, at the same time USB mode will be closed.

You can scan below barcode to close the power saving function:

5.  The wrong data is transmitted or data omission on USB-KBW mode

Sometimes the device transmits wrong data to upper computer or misses some data When it is on KBW mode, especially when the performance of upper computer is not very good. Because if the performance of upper computer is not very good, its speed of receiving data will be slow, at the same time the speed of sending data is fast on our devices, upper computer will be late to receive the data. So we can increase delay between the characters to slow down the speed of sending data. Take HR22 for example,you can scan below barcode to increase the delay.

Edit - History - Print - Recent Changes - Search