background image

Packet

 

Data

 

 

KDC200 supports user selectable two data formats: 

z

 

 Barcode only and  

z

 

 Packet data.  

By default, KDC200 sends data with Barcode. If KDC200 is configured to send Barcode only data, KDC200 

doesn’t do handshake with host application. However, if KDC200 is configured to send packet data, KDC200 

needs to do handshake with host application to make sure that HOST receives read barcode correctly. There are 

two cases of sending packet data to host: 

z

 

synchronization mode and  

z

 

Wedge mode 

 

HOST response to KDC200 after receiving data command 

 

KDC200 expects the HOST to send two kinds of response to KDC200 once HOST received packet data from 

KDC200:  

z

 

Success response or 

z

 

Failure response.  

HOST is required to send a success response if it receives a packet data successfully by sending a character ‘@’. 

If HOST detected an error while receiving a packet data from KDC200, HOST should send a failure response to 

KDC200 by sending a character ‘!’. 

 

Wedge mode 

 

If KDC200 read a barcode and configured to send packet data, KDC200 waits for 1 second to get a response 

from HOST after sending a read barcode data to HOST. KDC200 goes to ready mode upon receiving either 

success or failure response. KDC200 goes to ready mode if there is no response from Host in 1 second. KDC200 

doesn’t resend the data either receiving failure response or 1 second time out. The following is detail steps 

between HOST and KDC200. 

 

a)

 

HOST configures KDC200 to send packet data 

b)

 

User presses SCAN button 

c)

 

KDC200 reads barcode data 

d)

 

If reading is success, KDC200 sends a packet data leading a character 0x03 and ending with 
checksum. 

e)

 

KDC200 goes to waiting state. 

f)

 

HOST receives a packet data from KDC200. 

g)

 

HOST checks if it receives a packet data without error. 

h)

 

HOST sends a success response by sending a character ‘@’ to KDC200 or a failure response by 
sending a character ‘!’. 

Содержание KDC200 KDC250

Страница 1: ...KDC200 PROGRAMMING MANUAL Rev2 41 A New Wave in Auto ID ...

Страница 2: ...r s authority to operate the equipment WARNING This device complies with part 15 of the FCC Rules Operation is subject to the following two conditions 1 This device may not cause harmful interference and 2 this device must accept any interference received including interference that may cause undesired operation INFORMATION TO USER This equipment has been tested and found to comply with the limit ...

Страница 3: ...mand 10 bT70 command 11 bT71 command 11 C command 11 c command 11 D command 12 E command 12 F command 12 H command 13 h command 13 V command 13 L command 14 l command 14 N command 14 O command 14 o command 15 P command 15 p command 16 S command 17 s command 17 T command 17 t command 18 U command 18 u command 18 W command 19 w command 19 Z command 20 z command 20 Packet Data 22 HOST response to KDC...

Страница 4: ...KDC200 Programming Manual Synchronization mode 23 Miscellaneous 24 KDC200 sends character 24 KDC200 sends one to three leading NULL bytes with barcode payload or packet 24 Contact Information 25 ...

Страница 5: ...0 T0 C1 Y1 D1 T1 Cn Yn Dn Tn Where C0 C1 Cn Total number of each barcode data 1 byte Y0 Y1 Yn Type of each barcode 1 byte D0 D1 Dn Actual barcode data of each barcode variable size T0 T1 Tn Timestamp of each barcode 4 bytes Barcodes are stored sequentially as they are scanned in the internal flash memory Since barcodes can have different lengths we need to keep track of length information as well ...

Страница 6: ...ngth and type 4 time stamp 17 bytes The maximum number of UPCA barcodes that can be saved is 204 800 17 12 047 However the maximum number of barcodes can be stored is 10 240 Therefore KDC200 can store 10 240 UPCA barcodes If different length barcodes are mixed user cannot compute a priori what the maximum number of barcodes is What happens when this buffer is full When the internal flash memory is...

Страница 7: ...bluetooth auto power off timeout C YMDHmS Setting new date and time of KDC200 c None YMDHmS Returns current date and time of KDC200 D None or Reading barcode E None Erase all stored barcodes F None Set internal options to factory default setting H value Enable Disable handshake while transferring packet data h None value Get handshake state V None string Get firmware version L value or Set minimum...

Страница 8: ... selected Bluetooth options bit 0 Not used bit 1 Bluetooth module power is on 1 off 0 bit 2 Not used bit 3 Auto connection mode is enabled 1 disabled 0 bit 4 Auto power on is enabled 1 disabled 0 bit 5 Auto power off is enabled 1 disabled 0 bit 6 Beep warning is enabled 1 disabled 0 Purpose Gets current Bluetooth options bT1 command Parameters 0 or 1 Format bT10 or bT11 Output all the time Purpose...

Страница 9: ...t bT40 or bT41 Output all the time Purpose Enables 1 Disables 0 KDC200 to turns on Bluetooth module power when scan button is pressed bT5 command Parameters 0 or 1 Format bT50 or bT51 Output all the time Purpose Enables 1 Disables 0 KDC200 to turns off Bluetooth module power when KDC200 is disconnected from Bluetooth host for 15 minutes bT6 command Parameters 0 or 1 Format bT60 or bT61 Output all ...

Страница 10: ...luetooth auto power off timeout value from 1 minute to 30 minutes It will be set to 5 minute if value is 0 and 30 if value is greater than 30 C command Parameters Date and Time value to be set in KDC200 Format CYMDHmS where Y is year 0 means 2000 M is month 1 12 D is day 1 31 H is hour 0 23 m is minute 0 59 an S is second 0 59 Output all the times Purpose Set Date and Time of KDC200 c command Para...

Страница 11: ...rameters None Format E Output all the times Purpose Erases the internal flash memory completely All scanned data is lost Remarks Should be issued after the upload commands P or p F command Parameters None Format F Output all the times Purpose Set KDC200 internal options and flags to the factory default setting The factory default settings are All symbologies are enabled All options are disabled ex...

Страница 12: ... value of parameter in hex Output invalid parameter all other times Purpose Selects if KDC200 need 1 doesn t need 0 to handshake with HOST while sending packet data KDC200 doesn t do handshake if sending barcode only h command Parameters None Format h Output xxxxxxxx where xxxxxxxx is the value sent to KDC200 by command H Purpose Get the current setting of handshaking mode 0 means disabled and 1 m...

Страница 13: ...ters None Format l Output xxxxxxxx where xxxxxxxx is the minimum length of barcodes and means the end of data Purpose Read the minimum length of barcodes N command Parameters None Format N Output xxxxxxxx where xxxxxxxx is the number of stored barcodes and means the end of data Purpose Read the number of stored barcodes in KDC200 internal flash memory O command Parameters The options it is unsigne...

Страница 14: ...eturnCheckDigit 29 WideScanAngle 14 EAN8_ReturnCheckDigit 30 HighFilterMode 15 EAN13_ReturnCheckDigit 31 o command Parameters None Format o Output xxxxxxxx where xxxxxxxx is the selected barcode options and means the end of data Purpose Read the barcode options saved in KDC200 Please see the table of command O for detail explanation of options P command Parameters None Format P Output A multi byte...

Страница 15: ...etween them p command Parameters The number which indicates the position of barcode data to be sent Format pxxxxxxxx where xxxxxxxx is the number of barcode data stored in the internal flash to upload Output A multi byte string see below KDC200 sends only one barcode data at one time Purpose Read the Nth barcodes data stored in KDC200 internal flash memory Does not erase the barcode S N C Y D T K ...

Страница 16: ...logy set the appropriate bit to 1 in the parameter Symbology bit Symbology bit EAN13 0 EAN128 9 EAN8 1 Code93 10 UPCA 2 Code35 11 UPCE 3 BooklandEAN 12 Code39 4 EAN13withAddon 13 ITF14 5 EAN8withAddon 14 Code128 6 UPCAwithAddon 15 I2of5 7 UPCEwithAddon 16 Codabar 8 PDF417 31 s command Parameters None Format s Output xxxxxxxx where xxxxxxxx is the selected symbologies and means the end of data Purp...

Страница 17: ...Get the current read timeout setting U command Parameters 0 1 2 or 3 Format Uxxxx where xxxx is the value of parameter in hex Output invalid parameter all other times Purpose Selects how KDC200 handles scanned barcode If the value xxxx is 0 KDC200 doesn t store scanned barcode in the memory and just transmits it to the host 1 KDC200 stores scanned data in the memory and transmits it to the host 2 ...

Страница 18: ...rmat zxxxx where xxxx is the value of parameter in hex Output invalid parameter all other times Purpose When SCAN button is pressed select whether KDC200 sends PAYLOAD data only or sends PACKET data and waiting for response from HOST If the value xxxx is 0 KDC200 sends only PAYLOAD to HOST 1 KDC200 sends PACKET data and wait for response from HOST If KDC200 doesn t get response from HOST within 10...

Страница 19: ...ata of each barcode variable size T Timestamp of each barcode 4 bytes K Check sum byte 1 byte All sum except S should be 0 Z command Parameters Security level valid values 1 to 5 Format Zx where x is the value of parameter in hex Output invalid parameter all other times Purpose Set the security level z command Parameters None Format z Output xxxxxxxx where xxxxxxxx is the current security level an...

Страница 20: ...KDC200 Programming Manual ...

Страница 21: ...n error while receiving a packet data from KDC200 HOST should send a failure response to KDC200 by sending a character Wedge mode If KDC200 read a barcode and configured to send packet data KDC200 waits for 1 second to get a response from HOST after sending a read barcode data to HOST KDC200 goes to ready mode upon receiving either success or failure response KDC200 goes to ready mode if there is ...

Страница 22: ...a success response from HOST The following is detailed steps between the HOST and KDC200 a HOST configures KDC200 to send packet data b HOST sends a command P and index to KDC200 to read stored barcode c KDC200 sends a stored barcode to HOST with packet data format d KDC200 goes to waiting state e HOST receives a packet data from KDC200 f HOST checks if it receives a packet data without error g HO...

Страница 23: ... would ignore character KDC200 sends one to three leading NULL bytes with barcode payload or packet KDC200 Bluetooth module goes to sleep mode if not used for a while KDC200 sends out one to three NULL bytes to wake up Bluetooth module before sending out barcode payload or packet Application should ignore these leading NULL bytes ...

Страница 24: ...C200 Programming Manual Contact Information KDC Technical Support Team 116 Village Blvd Suite 200 Princeton NJ 08540 USA TEL 1 908 734 4335 FAX 1 609 226 4373 Email support koamtac com URL www koamtac com ...

Отзывы: