Senso KSK2 Manual

Cmos barcode scanner
Table of Contents

Advertisement

Quick Links

KSK2
DEVELOPEMENT
MANUAL
CMOS BARCODE SCANNER
Version: v2.0.10

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Senso KSK2

  • Page 1 KSK2 DEVELOPEMENT MANUAL CMOS BARCODE SCANNER Version: v2.0.10...
  • Page 2: Table Of Contents

    CONTENT Brief description..................... 1 System Setting ....................... 1 Setting code switch ................. 1 Switch for setting code data output ............1 Parameters setting ..................1 Device information .................. 2 2.4.1 Firmware version ................2 2.4.2 Unique identification code of device ..........2 Custom product model ................
  • Page 3 4.8 Motion detection status is automatically sent .......... 16 4.9 Interval of barcode reading ................ 16 5 Fill-Light and Aiming-Light .................. 18 Fill-Light ....................18 5.1.1 Mode of fill-light................18 5.1.2 Control method of fill-light ............18 5.1.3 Set fill-light in level-mode ............19 5.1.4 Lighting brightness setting .............
  • Page 4 7.4.2 Clear suffix ..................33 Data filtering rule settings ..............33 7.5.1 example 1 Filter a0 in the data ............. 33 7.5.2 Clear filter rules ................34 CRC Check .................... 34 Terminator ....................35 Barcode type character output ............. 35 Case output settings ................
  • Page 5: Brief Description

    1 Brief description This manual mainly provides various function setting commands for barcod e reading equipment. By familiarizing with the introduction of various function commands in this manual, users can change the function parameters of the ba rcode reading device by scanning the setting code or sending setting commands through the interface.
  • Page 6: System Setting

    2 System Setting 2.1 Setting code switch This function is whether the user can set up the device by scanning the settin g code. After the setting code is turned off, the parameter configuration cannot be performed by scanning the setting code. The setting code is regarded as a normal barcode;...
  • Page 7: Device Information

    2.4 Device information 2.4.1 Firmware version $010300-C980 (Output firmware version) 2.4.2 Unique identification code of device After reading successfully, the device will return a string of 12 bytes to the h ost. Can be used to identify products. $0103A0-26B8 Read the unique code of the device (12 characters) 2.5 Custom product model 2.5.1 Set custom product model number Under this function, the user can name the product model number by himself, an...
  • Page 8: Read Custom Product Model Number

    (2)Make a non-setting QR code of a customized product model number and sca n the code. The buzzer sounds three times to indicate the setting is successful, an d the buzzer sounds once to indicate the setting failed. as follows: Custom product model number test code, scan the following code after setting in step (1), the custom product model will be set to CUSTOM PRODUCT MOD EL TEST, scan 2.5.2 to read the command code of the custom product model or...
  • Page 9: Communication Setting

    3 Communication setting 3.1 Interface settings The factory default is UART interface output. If you need other interface output, scan the enable code of the corresponding interface to switch, the settin g will not take effect immediately, you need to manually restart the device to take effect, and the set interface will not be restored after scanning and restori ng the factory settings.
  • Page 10: Uart Serial Port Baud Rate Setting

    $020E01-51BD $020E00-628C Keep working regardless of interface out *Only work in UART serial port output put mode mode 3.1.3 UART serial port baud rate setting The baud rate of the serial port is adjustable, and the default bit is 9600, whi ch will take effect immediately after setting.
  • Page 11: Usb Hid Keyboard Output Chinese Settings

    The data output switch bit USB HID keyboard interface output will not ta ke effect immediately, and it needs to be manually restarted to take effect. $020000-9CBC ( USB HID keyboard) 3.1.5 USB HID keyboard output Chinese settings USB HID keyboard output Chinese is currently only applicable to window s system, currently does not support Chinese output on Android and Linux dev ices.
  • Page 12: Usb Hid Virtual Keyboard Numeric Keyboard Selection

    $020703-98C2Interval3MS $020705-3264 Interval5MS $02070A-F6F9 *Interval10MS $020714-3665 Interval20MS $02071E-0D0D Interval30MS $020732-F2A3 Interval50MS 3.1.7 USB HID virtual keyboard numeric keyboard selection $020900-6FCB * Alphabet $020901-5CFANumeric 3.1.8 USB HID keyboard layout The USB HID keyboard defaults to the USA keyboard output.
  • Page 13: Usb Virtual Serial Port Output

    $020C00-4515 $020C01-7624 $020C02-2377 *USA Belgium Finland $020C03-1046 $020C04-89D1 $020C05-BAE0 France Germany Sweden $020C06-EFB3 $020C07-DC82 $020C08-CCBC Norway Spain $020C09-FF8D $020C0A-7E7D $020C0B-2B2E Portugal TurkeyQ Japan $020C0C-181F $020C0D-8188 Czech Republic TurkeyF 3.1.9 USB virtual serial port output The data output is switched to the USB virtual serial port output, it will not take effect immediately, and it needs to be manually restarted to take effec In the window system, you need to install the USB virtual serial port driv er (win10 system may automatically install it), and then use the serial port deb...
  • Page 14: Usb Hid Pos Output

    $020001-AF8D USB virtual serial port 3.1.10 USB HID POS output In USB HID POS mode, PID is 0xA4AF, VID is 0x0525, packet size is 3 2 bytes, input is 32 bytes, output is 32 bytes, there will be a header and a he ader before and after the module sends data.
  • Page 15: Heartbeat Query

    No response: After sending the setting command, there is no response con tent to return whether the setting succeeds or fails. Response mode 1: The response is fixed content. The response to the suc cessful execution of the command is: $000100-6148; the response to the failure of the command execution is: $0001FF-A91F.
  • Page 16: Reading Parameter Settings

    4 Reading parameter settings 4.1 Reading mode In order to be suitable for different scenarios, the scan code module has a variety of reading modes, and the default is the auto sensing reading mode, T he settings are effective immediately. 4.1.1 Auto-sensing mode In auto-sensing mode, when a barcode enters the field of view of the dev ice, the device will start to read it once.
  • Page 17: Command Trigger Mode

    (1)Key once trigger mode: Press the key once to start the reading. When t he reading is successful or exceeds the "single reading time", the device stops reading; Command:$100000-AF9D (2)Key hold mode: In this mode,the reading is started when the button is p ressed, and the reading is stopped when the button is released.
  • Page 18: Auto-Sensing Restart Delay Setting

    $100100-D929 $100101-EA18 $100102-BF4B *Highest sensitivity High sensitivity Middle sensitivity $100103-8C7A $100104-15ED Low sensitivity Lowest sensitivity 4.3 Auto-sensing restart delay setting This setting is only valid when the "Reading Mode" is "Auto-sensing"; it is used to set the delay time for the next automatic sensing start after the barc ode is read;...
  • Page 19: Time Of Single Reading

    You can choose the mode of auto-sensing and pressing the key to trigger the reading. One-time reading mode: press the button once to forcefully trigger an au tomatic induction reading per unit time Key hold mode: After pressing once or twice in a row, the module will enter manual mode.
  • Page 20: The Choice After Reading Is Completed(In Auto-Sensing Mode)

    The choice after reading is completed(In auto-sensing mode) In auto-sensing mode, after finishing a reading, the module has three states tha t can be set: -. Keep reading state -. Exit the reading state immediately -. Auto-sensing end mode 3: After scanning the code successfully, the fill light will flash once, and then continue to maintain the trigger state.
  • Page 21: Motion Detection Status Is Automatically Sent

    4.8 Motion detection status is automatically sent This function only takes effect when the reading mode is auto-sensing mode. After enabling, if a physical movement occurs, $380211-2B55 data will be sent to the host once within 3s. $380200-2F54*Disable $380201-1C65 Enable 4.9 Interval of barcode reading This setting is only valid when the "reading mode"...
  • Page 22 $100300-3441 $100305-CBB4 (No interval) (*Interval 0.5S) $10030A-0F29 $100314-CFB5 ( 1S) (Interval 2S) Interval $1003FB-30D2 $1003FD-9A74 ( ) (Adjacent barcodes no output within 0.3S) Adjacent barcodes no output within 0.5S $1003F0-5EE9 $1003F2-388B ( ) ( ) Adjacent barcodes no output within 2S Adjacent barcodes no output within 1S $1003F3-0BBA $1003FF-FC16...
  • Page 23: Fill-Light And Aiming-Light

    5 Fill-Light and Aiming-Light 5.1 Fill-Light 5.1.1 Mode of fill-light The fill-light can provide auxiliary lighting for shooting and reading, whic h can improve the reading performance. The user can set it to one of the foll owing states according to the application environment (the default is to light u p when reading):...
  • Page 24: Set Fill-Light In Level-Mode

    5.1.3 Set fill-light in level-mode Note: You need to set the fill-light to level mode first, the setting will take ef fect immediately, and the factory setting will be restored to the default value. $382600-A126 $382601-9217 On under low level *On under high level 5.1.4 Lighting brightness setting The brightness can be set only when the light control mode is PWM mode.
  • Page 25: Automatically Turn On The Fill Light In Dark Environment

    5.1.5 Automatically turn on the fill light in dark environment After turning on this function, in the automatic sensing mode, the module can detect the ambient brightness. When the ambient brightness is too low, it can automatically turn on the fill light with a lower brightness of the fill light. $140300-32E0 $140301-01D1 *Off...
  • Page 26: Aiming-Light

    rightness exceeds the threshold, it will re-time the timer. The default interval ti me is 0 seconds. $140400-63CD $140405-9C38 $14043C-6797 *no interval $140478-6FF4 $1404B4-1961 $1404FF-AB9A 120S 180S 255S 5.2 Aiming-Light 5.2.1 Aiming-Light mode The aiming beam can help users find the best reading position when shoo ting and reading;...
  • Page 27: Aiming Light Flashes

    5.2.2 Aiming light flashes The user can choose whether the aiming light will flash when the light is on, the default is to turn on the flashing. $140104-134C $140105-207D *no flashing flashing...
  • Page 28: Prompt During Output

    6 Prompt during output 6.1 Power-on prompt If the power-on prompt is turned on, the buzzer and lighting will send ou t a prompt signal after the device is successfully started, which is turned on b y default. $150000-EC9C $150001-DFAD (...
  • Page 29: Led Indicator Light

    $150A00-D85D (OFF) $150A01-EB6C (*ON) 6.4 LED Indicator light 6.4.1 LED Indicator light ON/OFF If the LED indicator is turned on, the LED indicator will flash once ever y time the reading is successful. It is turned on by default. $150200-01F4(OFF) $150201-32C5(*ON)...
  • Page 30: Power-On Command Prompt

    $150600-CB05 (*Disable) $150601-F834 (Enable) 6.6 Power-on command prompt If enabled, after the device is started, the command "$150600-CB05" will be sent to the host, indicating that the device is ready. $150500-50D9 (*Disable) $150501-63E8 (Enable) 6.7 Buzzer sound duration The duration of the buzzer sound after the scan code is successfully read once, the default is 60ms.
  • Page 31: Buzzer Frequency

    $150400-266D (Level output) $150401-155C (*PWM output) 6.9 Buzzer frequency This function can be set only when the buzzer control signal is in PWM mode (the control signal output can be set in section 6.8). According to the fr equency of the buzzer, set the appropriate control frequency, the default is 2.7 $150705-4244(2KHz)...
  • Page 32: Buzzer Working Level

    6.11 Buzzer working level This setting is only valid when the buzzer signal output mode is "level output" $382800-037C $382801-304D Sound under Low level * Sound under high level...
  • Page 33: Data Editing

    7 Data editing Directions: (1)data format: Prefix Barcode type data suffix CRC check terminator (2)The prefix, barcode type name, suffix, CRC check, and terminator are opt ional, and can be set by scanning setting code or sending serial commands. (3) Set to remove the user's original data, you can remove the number of byt es specified by the original data according to the setting.
  • Page 34: Example 2 Remove The 20 Bytes Of Data After The Data

    $203000-99CD(Cancel remove the previous data) 7.1.3 Example 2 Remove the 20 bytes of data after the data $203120-8119(example 2) Example 2 description: $2031 is the command identifier that sets the function of removing the last M bytes in the original data, which is fixed 20 is to remove the byte length at the end of the original data (in decimal no tation) (0-20 bytes), 20 bytes -Connector, fixed...
  • Page 35: Example 1 Only Output The First 20 Bytes Of Data

    both the front X only output and the back Y only function are set, the modul e will splice the first X bytes and the last Y bytes together for output. When X and Y are 0, the function is turned off. X and Y are 0 by default. If X+Y is greater than the data length, no action will be taken when processing the d ata.
  • Page 36: Cancel Only Output Backend Data

    Example 2 description: $2033 is a command that only outputs the last Y bytes of data, which is fixed 14 is the length of the byte after the original data is removed (in hexadecimal notation), 20 bytes Connector, fixed F9E5 CRC check 7.2.4 Cancel only output backend data $203300-0211(Cancel only output backend data)...
  • Page 37: Clear Prefix

    -Connector, fixed HEAD prefix content, the length must be consistent with the "prefix byte len gth" above Connector, fixed 7591 CRC check, the CRC16 check of $202004-HEAD- is 0x7591 (2 words), just convert it into string form 7591 (4 bytes); CRC16 polynomial is 0x1021. The final command is a string: $202004-HEAD-7591.
  • Page 38: Clear Suffix

    $202104-TAIL-FB3A (example1) $202120-LIAT0123456789abcdef-E0BB(example 2) Add suffix TAIL Add suffix LIAT0123456789abcdef Example 1 description: $2021 suffix command, fixed Length of suffix content byte length (1-20 bytes), 4 bytes Connector, fixed TAIL suffix content, the length must be consistent with the "byte length of suffix content"...
  • Page 39: Clear Filter Rules

    Example 1 description: $2022 is the command to set the filter function, which is fixed 02 is the byte length of the filtered data part (1-20 bytes), 2 bytes -Connector, fixed a0 is the content of the filtered data -Connector, fixed B912 CRC check For specific instructions, as well as the setting method of string and hexadecim al filter rules, please refer to the setting method of prefix.
  • Page 40: Terminator

    This function is to add a CRC check to the end of the data (see note (2) in the brief description) function, including the prefix part, the bar code type name, the data part, and the suffix part; but it does not include the terminator. No output by default.
  • Page 41: Case Output Settings

    $202400-F96D *No output $202401-CA5C Output If it is set to output, the first byte of each bar code read will be marked as the type of the bar code, and the specific type of the bar code can be kn own by checking the appendix 1 bar code type output character table.
  • Page 42: Barcode Reading Configuration

    8 Barcode reading configuration Generally, the code system that is enabled by default is used for reading. The code system that is enabled by default is some commonly used code syste ms, and users generally do not need additional settings. Unless the code syste m required by the customer cannot be solved, turn on this code system in a si ngle bar code configuration.
  • Page 43: Code 128

    ters will not be recognized.If the length of the longest and shortest characters t o be read is set to 100, the content of this type of bar code must be 100 cha racters before it can be read, so that the specified bar code can be read accur ately.
  • Page 44: Gs1_128

    8.2.2 GS1_128 (1)Enable and disable (Note: only FW v4 series version supports) $291301-3D41 Enable $291300-0E70 *Disable (2)Reading length The range of the max and min length of the code reading is 1-80, the mi n default reading length is 1, and the max default reading length is 80. For th e setting method, see the description of reading length setting.
  • Page 45 (3)Check code configuration Note that the check digit type is only suitable for MOD4 *0: No check character. Read and transfer barcodes with or without check char acters. (At this time, when scanning a barcode with a check character, the che ck character will be transmitted together) 1: Enable check and transmit check characters.
  • Page 46: Interleaved 2 Of 5

    (6)FULL ASCII Code39 If FULL ASCII Code39 decoding is enabled, some characters in the barco de will be decoded into single characters. For example: $V will be decoded as ASCII character SYN, and /C will be decoded as ASCII character #. For det ails, see Appendix 3, code39 full ascii table.
  • Page 47: Straight 2 Of 5 Industrial

    mal data except the last check character will be transmitted, and the bar code content will not be sent if the check fails 2: Enable check, but do not transmit check characters. If the check is passed, the check character will be transmitted together as the last digit of normal data, and the bar code content will not be sent if the check fails.
  • Page 48: Straight 2 Of 5 Iata

    8.2.6 Straight 2 of 5 IATA (1)Enable and disable (Note: only FW v4 series version supports) $291D01-2E19 Enable $291D00-1D28 *Disable (2)Reading length The range of the max and min reading length is 1-48, the min default rea ding length is 4, and the max default reading length is 48. For the setting met hod, see the description of reading length setting.
  • Page 49: Grid Matrix

    (3)Check character *0: No check character. Read and transfer barcodes with or without check char acters. (At this time, when scanning a barcode with a check character, the che ck character will be transmitted together) 1: Enable check and transmit check characters. If the check is passed, the chec k character will be transmitted together as the last digit of normal data, and th e bar code content will not be sent if the check fails 2: Enable check, but do not transmit check characters.
  • Page 50: Code 93

    8.2.9 CODE 93 (1)Enable and disable $290601-2B55 *Enable $290600-1864 Disable (2)Reading length The range of the maxand min length of the code reading is 1-80, the min default reading length is 1, and the max default reading length is 80. For the setting method, see the description of reading length setting.
  • Page 51: Codabar

    (3)Check character *0:2 check digits & transfer 1:1 check digits & transfer 2:2 check digits no transfer 3:1 check digits no transfer 4:no check digits, all transfer $290840-66FE $290841-55CF $290842-009C *2 check digits & transfer 1 check digits & transfer 2 check digits no transfer $290843-33AD $290844-AA3A...
  • Page 52: Telepen

    (4)Enable and disable transmission start/stop characters The start/stop characters are located at the front and end of the barcode. Confi gurable to transmit or not transmit start/stop characters *0: Do not transmit start/stop characters 1: Transmit start/stop characters $290950-277A *No transmit $290951-144B Transmit (5)cascade When cascading is enabled, the barcode scanner will search for the Codabar b...
  • Page 53: Msi

    8.2.13 MSI (1)Enable and disable $291101-D029 Enable $291100-E318 *Disable (2)Reading length The range of the maximum and minimum length of barcode reading is 4- 48, the minimum default reading length is 4, and the maximum default reading length is 48. For the setting method, please refer to the description of reading length setting.
  • Page 54: Pdf417

    (3)GS1 DataBar Expanded enable and disable $291705-3B74 Enable $291704-0845 *Disable (4)GS1 DataBar Expanded Reading length The range of the max and min length of barcode reading is 4-74, the min default reading length is 4, and the max default reading length is 74. For the setting method, please refer to the description of reading length setting.
  • Page 55: Micro Pdf

    8.2.16 MICRO PDF (1)Enable and disable (Note: only FW v4 series version supports) $291401-6C6C Enable $291400-5F5D *Disable (2)Reading length The range of the max and min length of the barcode is 1-250, the min d efault scanning length is 1, and the max default scanning length is 250. For th e setting method, please refer to the description of scanning length setting.
  • Page 56: Maxicode

    8.2.18 MaxiCode (1)Enable and disable(Note: only FW v4 series version supports) $291201-4BF5 Enable $291200-78C4 *Disable (2)Reading length The range of the max and min length of barcode reading is 1-93, the min default reading length is 4, and the max default reading length is 93. For the setting method, please refer to the description of reading length setting.
  • Page 57: China Post (Hong Kong 2 Of 5)

    (2)Reading length The range of the max and min length of barcode reading is 1-1000, the min default reading length is 1, and the max default reading length is 1000. F or the setting method, please refer to the description of reading length setting. $293120-C9FB Min read length $293130-FECB Max read length 8.2.21 China Post (Hong Kong 2 of 5)
  • Page 58: Nec 2 Of 5

    (2)Reading length The range of the max and min length of barcode reading is 1-3116, the min default reading length is 1, and the max default reading length is 3116. F or the setting method, please refer to the description of reading length setting. $292720-4433 Min read length $292730-7303 Max read length 8.2.23 NEC 2 of 5...
  • Page 59: Upc-A

    the normal data except the last check character will be transmitted, and the ba r code content will not be sent if the check fails $293840-882C $293841-BB1D $293842-EE4E No check character Enable Enable transmit check character Not transmit check character 8.2.24 UPC-A (1)Enable and disable $290101-7A78 *Enable...
  • Page 60: Upc-E0 & Upc-E1

    (4)Additional code 2-digit additional code switch, *0: off, 1: on $290160-FBE9 *Off $290161-C8D8 On -digit additional code switch, *0: off, 1: on $290162-9D8B *Off $290163-AEBA On Additional code is required (only UPC-A with additional code is removed) swit ch, *0: off, 1: on $290164-372D *Off $290165-041C On Additional code separator (whether to open spaces to separate additional codes)
  • Page 61 $290201-E1A4 $290200-D295 *Enable UPC-E0 Disable UPC-E0 $291801-235E $291800-106F *Enable UPC-E1 Disable UPC-E1 (2)Check whether the code is transmitted $290241-3D64 * Transmit $290240-0E55 No transmit (3)Additional code 2-digit additional code switch, *0: off, 1: on $290260-6035 *Off $290261-5304 On 5-digit additional code switch, *0: off, 1: on $290262-0657 *Off $290263-3566 On Additional code is required (only UPC-E with additional code) switch, *0: off,...
  • Page 62: Ean/Jan-13

    $290264-ACF1 *Off $290265-9FC0 On Additional code separator (whether to open spaces to separate additional codes) switch, 0: off, *1: on $290266-CA93 Off $290267-F9A2 *On (4)Digital system Digital system character transmission switch $290271-6434 *Transmit $290270-5705 No transmit (5)Barcode extension to 12-digit UPC-A The UPC-E barcode is expanded to a 12-digit UPC-A format switch, *0: off, 1: on $290280-7B34 *No transmit...
  • Page 63 UPC-A to close the barcode $290301-9710 *Enable $290300-A421 Disable Check character Check whether the character is transmitted $290341-4BD0 *Transmit $290340-78E1 No transmit (3)Additional code 2-digit additional code switch, *0: off, 1: on $290360-1681 *Off $290361-25B0 On 5-digit additional code switch, *0: off, 1: on $290362-70E3 *Off $290363-43D2 On Additional code required (only EAN/JAN-13 with additional code removed) swi...
  • Page 64: Ean/Jan-8

    $290364-DA45 *Off $290365-E974 On Additional code separator (whether to open spaces to separate additional codes) switch, 0: off, *1: on $290366-BC27 Off $290367-8F16 *On (4)ISBN Translate When set to ISBN symbol transmission, EAN-13 Bookland symbol will be co nverted to equivalent ISBN symbol format $290370-21B1 * No convert $290371-1280 Convert 8.2.27 EAN/JAN-8...
  • Page 65 $290441-1AFD *Transmit $290440-29CC No transmit (3)Additional code 2-digit additional code switch, *0: off, 1: on $290460-47AC *Off $290461-749D On 5-digit additional code switch, *0: off, 1: on $290462-21CE *Off $290463-12FF On Additional code required (only EAN/JAN-8 with additional code removed) swit ch, *0: off, 1: on $290464-8B68 *Off $290465-B859 On...
  • Page 66: Appendix 1 Barcode Type Output Character List

    Appendix 1 Barcode Type Output Character List If the barcode type character is set to output, the first byte of each barco de read indicates the type of the barcode. The bar code types corresponding to the characters are shown in the following table: Barcode type Output character AZTEC_CODE...
  • Page 67 $282001-0DEF $282002-58BC (Digital code 1) (Digital code 2) $282003-6B8D $282004-F21A (Digital code 3) (Digital code 4) $282005-C12B $282006-9478 (Digital code 5) (Digital code 6) $282007-A749 $282008-B777 (Digital code 7) (Digital code 8) $282009-8446 $282000-3EDE (Digital code 9) (Digital code 0) $283001-A7BE $283000-948F (Save)...
  • Page 68: Appendix 3 Code39 Full Ascii Correspondence Table

    Appendix 3 CODE39 FULL ASCII Correspondence Table ASCII ENCODING ASCII ENCODING ASCII ENCODING ASCII ENCODING Space " & << > %T, %X, %Y, %Z...
  • Page 69: Appendix 4 Test Barcode

    Appendix 4 Test Barcode...

Table of Contents