Smart accessories
for smartphones/tablets (4 pages)
Summary of Contents for KoamTac KDC200
Page 1
KDC200 ROGRAMMING ANUAL Rev2.41 A New Wave in Auto ID...
Page 2
KoamTac reserves the right to make changes to any product to improve reliability, function, or design. KoamTac doesn’t assume any product liability arising out of, or in connection with, the application or use of any product, circuit, or application described herein.
‘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 KDC200 after receiving data command ............... 22 Wedge mode ............................22...
Page 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...
Internal data buffer KDC200 has 200K bytes flash memory where it stores the read barcodes. Its capacity, in terms of number of barcodes, depends on the size of barcodes. Barcodes are stored sequentially as they are scanned in the internal flash memory.
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 full, KDC200 displays buffer full message and ignores the command to scan barcodes.
Command Set KDC200 has various commands and they are quite simple. They are shown in the following table. Command Input Output Description Returns current battery capacity(value = 0-100) None value @ Returns current settings of Bluetooth options. None value @ Turns off Bluetooth power...
Parameters: None Format: ‘B’ Output: ‘xxxx@’ where xxxx is the capacity of battery ( 0 – 100) in hex and @ means the end of data Purpose: Read the battery capacity of KDC200. ‘bT0’ command Parameters: None Format: ‘bT0’ Output: ‘xx@’ where xx(1 byte) is the current selected Bluetooth options.
Parameters: 0 or 1 Format: ‘bT30’ or ‘bT31’ Output: ‘@’ if successful. ‘!’ if failed. This command is failed if sent when KDC200 is connected to HOST. Purpose: Enables(1)/Disables(0) KDC200 to try to connect to Bluetooth HOST automatically after power on. ‘bT4’ command ...
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).
Parameters: None Format: ‘D’ Output: ‘!’ – KDC200 internal flash memory is full or Reading failure ‘@’ – Barcode reading success Purpose: Turns the motor on, then turns the laser on and starts scanning. When a barcode is found or if timeout occurred, it stops the motor and turns off laser.
“Hxxxx#” where xxxx is the 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’...
‘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 unsigned 32-bit number) Format: ‘Oxxxxxxxx#’...
‘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.
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. Where: S : Start byte 0x03(1 byte) N : Total number of bytes to be sent(3 bytes)
KDC200 Programming Manual ‘S’ command Parameters: The symbology selection (it is unsigned 32-bit number) Format: ‘Sxxxxxxxx#’ where xxxxxxxx is the value of parameter in hex. Output: ‘!’ – invalid parameter. ‘@’ – all other times. Purpose: Enables the selected symbologies. Example: Sending “Sffffffff#”...
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.
‘@’ – all the times. Purpose: Wake up KDC200 from sleep mode. To ensure that KDC200 woke up from sleep, it is required to send ‘W’ command many times. If KDC200 replied with ‘@’, then KDC200 is already woke up from sleep mode. ‘w’ command ...
Where: Barcode data is the actual read barcode data CR is 0x0d(‘\r’) LF is 0x0a(‘\n’) PACKET DATA Where: S : Start byte 0x03(1 byte) N : Total number of bytes to be sent(3 bytes) C : Total number of each barcode data(1 byte) Y : Type of each barcode(1 byte) D : Actual barcode data of each barcode(variable size) T : Timestamp of each barcode(4 bytes)
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 exits waiting state if it receives any response from HOST. KDC200 replies to HOST with sending ‘@’ for a success response. KDC200 waits for 1 second and exits waiting state with sending a ‘!’ to HOST if there is no response from HOST.
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...
KDC200 Programming Manual Contact Information KDC Technical Support Team 116 Village Blvd. Suite 200 Princeton, NJ 08540 TEL: +1-908-734-4335 FAX: +1-609-226-4373 Email: support@koamtac.com URL: www.koamtac.com...