none
How to develop barcode scanner Driver and Application RRS feed

  • Question

  • Hello Everybody,

    I need to work on barcode in windows ce 6.0, I have some doubts 

    1. How to develop barcode scanner driver and application?

    2. or is there any existing driver i can use?

     

    Give me some guidelines, and if you have links Please share with me,

     

    Regards

    Akash  

     

     

    Wednesday, March 2, 2011 6:51 AM

Answers

  • every scanner is implemented in his own way but most of them adhere to one of the following model:

    1) scanner with UART interface: you get the data from a physical serial port

    2) scanner with UART interface +  UART/USB serial converter: similar to the above

    3)  scanner with UART interface + a microcontroller with a UART (connected to the scanner) and an USB interface: the FW inside the micro acts as an USB HID device so the scanner data 'natively' are converted to keyboard input

    4) scanner with UART interface + a microcontroller + bluetooth which uses a serial transport profile (similar to 1 and 2)

    5) scanner with UART interface + a microcontroller + bluetooth which uses a HID profile (similar to 3)

    while in 3) and 5) the scanner data are 'ready to use' since they can be directed to an edit control of the application the user is running, in the other cases you typically need to convert the serial data to keyboard input using, for example, keybd_event

     


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Wednesday, March 2, 2011 3:40 PM

All replies

  • how is it connected the scanner? typically they're managed through a serial port: a virtual Bluetooth one rather than a USB serial device. in this case you do not need a driver to read the data, you simply read the serial port to get the (normally ASCII) barcode data.

    if the scanner uses a specific protocol (like SSI) you may want to create a service which, taking ownership of the port, allows you to send serial frames to configure the various scanner parameters. the same service may work as a multiplexer so the barcode data can be deliveres to multiple listeners (like GPSID does).

    one final thing: normally the barcode data have to be inserted in some edit control as the user actually typed it with the keyboard so you need to emulate this with keybd_event

     

     


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Wednesday, March 2, 2011 7:33 AM
  • Hi, Luca Calligaris.

    Thanks for your reply.

    You mean i just need write a application which takes data from serial port, right??

    or anything else i need to do? like buffer management ?.

    If you have any information please share with me.

     

    Regards

    Akash Guttedar

     

     

     

     


    Wednesday, March 2, 2011 8:26 AM
  • it depends on the specific scanner: supposing it's actually connected to a serial port,  yes, it may be enough to read the data from the serial port.

    some scanner need to be configured (which kind of barcodes it's expected to read, etc) so you may even need to write to the serial port


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Wednesday, March 2, 2011 8:32 AM
  • Hi Luca Calligaris.

    I have CT131 CCD Scan Engine, 

    http://www.ocr.ca/product_info.asp?Product_ID=1254

    Here he is telling it supports both serial and USB.

    "Support both serial and USB interface in one single unit "  3rd  feature in link

    can you tell me, how to do this ??

     

    Regards

    Akash G


     


    Wednesday, March 2, 2011 8:41 AM
  • When connected using serial, I guess it's obvious.
    When connected through USB usually your desktop-PC will recognize it as a serial port also, and install a driver for it that exposed the device as a regular serial port. If the device is not standard (not recognized immediately by windows) maybe the device vendor has a custom driver for it.

    For CE what you probably need for a so called "virtual comport" is a CDC driver (if the device supports this standard).
    CE comes with one, I think it's called USBSER, you need to configure some stuff like VID and PID of your device in registry.
    Look elsewhere in this group for more info about the USB-serial driver and it's configuration.

    It never hurts to first ask the device vendor for a CE-driver or more detailed info on CE-support.

    Rob
    www.robtso.nl


     

     

     

    Wednesday, March 2, 2011 9:25 AM
  • Thanks Rob

     

    Regards

    Akash G

    Wednesday, March 2, 2011 9:50 AM
  • tipically USB scanners are keyboard emulation, so all data the scanner sends you, you receive as someone is writing with keyboard.

    Paolo.

    Wednesday, March 2, 2011 1:00 PM
  • That depends entirely on how the device reports itself on the USB bus (and which driver is loaded)
    I wouldn't say it's typical however, I have several scanners at home, which are all reported as comports.

    Rob
    www.robtso.nl

     

     

    Wednesday, March 2, 2011 1:18 PM
  • Let me restate Paolo's comment:

    Typically, if the vendor supplies software, the software will emulate a keyboard.  They do this to make application software development easy.  Whether that really makes it easy is up for debate.

    If the vendor does not supply software, then all bets are off.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Wednesday, March 2, 2011 2:51 PM
    Moderator
  • Excuse me Bruce but All usb scanner I have used emulated keyboard without any vendor software. On Windows CE the HID usb driver is loaded and the scanner works.

    Regards,

    Paolo.

    Wednesday, March 2, 2011 2:56 PM
  • every scanner is implemented in his own way but most of them adhere to one of the following model:

    1) scanner with UART interface: you get the data from a physical serial port

    2) scanner with UART interface +  UART/USB serial converter: similar to the above

    3)  scanner with UART interface + a microcontroller with a UART (connected to the scanner) and an USB interface: the FW inside the micro acts as an USB HID device so the scanner data 'natively' are converted to keyboard input

    4) scanner with UART interface + a microcontroller + bluetooth which uses a serial transport profile (similar to 1 and 2)

    5) scanner with UART interface + a microcontroller + bluetooth which uses a HID profile (similar to 3)

    while in 3) and 5) the scanner data are 'ready to use' since they can be directed to an edit control of the application the user is running, in the other cases you typically need to convert the serial data to keyboard input using, for example, keybd_event

     


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Wednesday, March 2, 2011 3:40 PM
  • No, excuse me.  I didn't mean anything negative about your response.  I meant only to draw a line between your response and Rob's.  In doing so, I did not consider scanners that actually present themselves as keyboards.  Luca does a better job with his very thorough response.
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Wednesday, March 2, 2011 6:31 PM
    Moderator
  • No Bruce...don't worry ;-)).

    I also think that the better response is from Luca.

    Paolo.

    Wednesday, March 2, 2011 6:40 PM
  • WOW, this is really great discussion, 

     

    Thanks Luca Calligaris, Paolo, Bruce Eitman and Rob, i'm really happy to get response and such a good discussion from you guys.

    I will start with Barcode then i will get back to you.

     

    Regards

    Akash G Guttedar

     

     

     

    Thursday, March 3, 2011 5:33 AM
  • Dear guys

    I have a barcode scanner. İT work HID drive. I can get barcode number.

    But the scanner always on, ı want to send a commands. I thinks I can not send HID drvier.

    I want to usb port. Do you develope driver or how can you help me

    my email: stel@mikrosaray.com.tr

    Friday, February 16, 2018 12:44 PM
  • Do you have detailed technical specs for the barcode scanner?  That would be necessary for writing a driver.

    Bruce Eitman
    Senior Engineer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for Synopsys

    Friday, February 16, 2018 4:17 PM
    Moderator
  • İt is Superleas 2D Barcode Reader
    . It supports :

    TTL -232 InterfaceInterface Interface InterfaceInterfaceInterfaceInterface

    USB-HID Keyboard

    USB Com port Emulation 

    I can use USB HID. But ı need USB comport 

    Thnks

    Monday, February 19, 2018 12:21 PM
  • You did not answer my question.

    Bruce Eitman
    Senior Engineer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for Synopsys

    Tuesday, February 20, 2018 1:42 PM
    Moderator
  • I searched "Superleas 2D Barcode Reader" without any luck.
    Tuesday, February 20, 2018 8:33 PM
    Moderator
  • 2D Barcode Reader
    SuperLead 2102 model

    http://m.turkish.barcodereader-scanner.com/sale-9585835-1d-2d-small-barcode-scanner-module-with-ce-fcc-rohs-certificate.html

    it support usb com, usb hid and serail but we can use micro usb. As you know it gives unidentified device error

    our problem continue

    "

     we have a barcode scanner. İT work HID drive. I can get barcode number.

    But the scanner always on, ı want to send a commands. I thinks I can not send HID drvier.

    I want to usb port. Do you develope driver or how can you help me"

    tnhks

    Tuesday, March 20, 2018 4:17 PM
  • ZanimSevim

    We cannot help you until you answer my question.

    Restating my question:  Do you have detailed technical specs for the barcode scanner?  That would be necessary for writing a driver.

    If you cannot answer that question, then nobody can develop a driver for you.  You as a customer of that barcode reader are in the best position to work with the vendor to get the technical specs.


    Bruce Eitman
    Senior Engineer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for Synopsys

    Tuesday, March 20, 2018 7:03 PM
    Moderator