Datalogic Scanner-Write Data to File - barcode-scanner

I have a Datalogic PM8300-DK Scanner that is working fine so far. I choose the USB-KBD-Mode (USB INTERFACE SELECTION) and now everytime I scan a barcode, the data-representation of the barcode is writen on my computer (where the cradle is connected to).
But the problem is, the data is writen to where the cursor stands (where the focus is). For example, when the focus is in a text-editor, the scanner writes the data to the text-editor. When the focus is in the google-search-box of my browser, it writes the barcodes to the search-box.
I would prefer if the data would be writen directly to a file, and there would be no output to the screen directly. Is that possible, does anyone know a modus for that ?
Thanks, Andre

You need to use the serial or USB serial emulation (COM port) connection for that. You will also need to have some software to handle the data.

Related

Epson projector

I have a projector that can accept control commands like turn on/off and queries like amount of time it was on.
Control commands work, but I can't seem to capture responses from queries; when I connect via USB, I get two additional raw input files in the dev directory.
I wrote a C program that captures events from input devices it captures mouse movements and keyboard events, but it doesn't capture replies from the projector at all, not even the event itself. Why is that?
In Windows, everything works.

Use serial-console as display, but computer keyboard for standard-input

I have a 40x7 VFD that functions as a serial terminal. It has a dedicated keypad that provides hex-entry, however, I would like to use a keyboard for the standard input. Basically, I want to be able to use the VFD as a display for a Linux bash prompt, but use the keyboard connected to the computer as the means of input. Instead of connecting a monitor, the serial terminal will be the monitor. I can get the login prompt displayed on the VFD with agetty, but since it only has hex-entry, how can I change where the system is looking for standard input?
Thanks,
Core_Module
I think the best method would be to create a pseudo terminal. In doing so you create a fake terminal device with a /dev/pts/[n] name that acts like a real input/output device. A program could connect the console (keyboard) as input and the VFD as output and send and receive that data over the pseudo device. You can then point agetty at the /dev/pts/[0] device instead of a /dev/ttyS[n] device. Some ideas on doing this can be found in many tutorials online. From the link:
A pseudo-terminal is a pair of character mode devices also called pty. One is master and the other is slave and they are connected with a bidirectional channel. Any data written on the slave side is forwarded to the output of the master side. Conversely, any data written on the master side is forwarded to the output of the slave.
I found another StackOverflow question that may also be of assistance. See this link. It could be adapted to suit your needs.

Input data from serial port to Excel

I've built an interface from a digital Caliper to an Arduino board.
The Arduino sends the readings from the caliper to the computer via Serial port.
The data sent over the serial port is of course fully customizable.
I now want an option that when a certain command comes over the serial port (For instance generated by a button press in the caliper) the data of the caliper will be inputed into the current Cell in Excel and the tab key pressed in order to move to the next cell.
I wanted to know what is your recommended solution? What programming language? How to send the data to Excel? How to emulate the Tab key? etc.
I eventually used the following solution:
Downloaded and installed scaleProgrammer.com Rs-232 Monitor (for free) and using it translated the incoming serial incoming data to keyboard input.
To the incoming serial data I added the TAB key at the end of every transmition, which aids in working in Excel.
I'm not sure about your reqquirement, but I hope you can use an Ethernet shield and do some PHP coding to store your output in CSV format, which later you can read using the Excel.
Please give a proper description of your requirement so you can get some good answer. Any link/pics of you tool will work.
You can try php-serial.

HID input on linux for games

What is the best way to capture HID input on linux for games? I don't need anything special. Just mouse and keyboard. Right now I'm using Xlib. I have a separate input thread, which has its own connection to the X Server (Display instance) and it handles events for main render window. It is working just fine, but it is a bit limited. For example, I'm missing mouse raw input.
Have you tried opening and reading device files in /dev/input?

Can I get the input data by directly reading the IOport of an USB keyboard

I am working on the Xen platform, Now I want to intercept the interrupt on HVM domain to read the raw data (scan code) of a keyboard .
One idea is that the hypervisor follows the path UHCI frame list-> TD related to keyboard device -> data buffer to get the raw data. However, when the interrupted is generated, the TD has been remove from the TD list. In this way, the hypervisor can not find the data buffer, and can not read the raw data.
Another idea is that directly read the IOport of keyboard.
I know it is possible to get the input of the PS2 keyboard by reading the IOport 0x60 and 0x64
But my current work device is USB keyboard.
Now my question is that whether it is possible to get the input raw data of USB keyboard
by directly reading the IOports.
If can, how to achieve that, please give me an simple example.
or is there other method to read the input raw data?
it seems that there is no exported port (e.g., USB-keyboard) for guest to read such information.
but I found that, the UHCI controller does not automatically remove the TD from the list even if the controller successfully complete the data transfer. The deletion operation is done in the uhci-irq function
In this way, we can read the data buffer before the function uhci-irq is invovled.

Resources