Howto use USB scanner on NetDCUA9/WinEC7

  • Hello,


    I am looking for a possibility to read data from a USB hand scanner.

    At the moment we are using only RS232 hand scanner, which is working fine on a NetDCUA9 board (WinEC7).

    But in future there should be the possibility to use USB scanners.

    What are the possibilities?

    I read following in an earlier thread:

    "in general a USB barcode scanner is handled in the same way as a keyboard. So it should work without problems."

    But how to integrate this a program which is reading usually from serial COM port?
    Can be done this in a thread in background or do I have to scan directly in an edit field with focus?

    Is there also a possibility (with driver or other solution) to read data from USB and send to virtual COM port, which my tool can read directly?


    Best regards, Andy

  • Hello,


    right, USB barcode scanner is handled in the same way as a keyboard. Do a quick test open cmd-shell and scan, output shoud appear in cmd-shell.


    In c++ you can catch keyboard input:

    by "scanf"/"getchar" for a command line program or

    by overwrite "PreTranslateMessage" for WM_CHAR for a MFC program.

    Assume you have similar options under .NET.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.