Barcode scanner trigger a flow

alright, so this is what i have got together so far, i am using a datalogic powerscan m8300 connected by usb using a raspberry pi4. what i would like to do is scan an item and start the flow like an inject node. i have tried serial-in node but i receive the errors below

image

and when i try pointing it to its usb path i get

image

this scanner is considered keyboard style scanner, so when looking up the second warning i got information on its because this isnt a serialport item. but i cant seem to find any palettes that can pull information from a usb. i did have some luck with pi-gpio keyboard module, but if i scanned the letter e the output that i pulled from debug was a numeric and for some reason it was a different numeric each time so i was not able to utilize this properly. it would be incredibly ideal to pull the information typed by the scanner. and be able to make decisions based on what was scanned. even if it was just one letter. if i could consistently catch the letter e and make a decision when the letter e is caught but make a different decision when 8 is scanned, that would be perfect. but pi-gpio had no consistency.

if anyone has any ideas or input it is greatly needed

thank you to anyone that answers this and helps come up with some solutions.

Usb keyboards and mouse are more often than not USB HID (Human Interface Device)

This may or may not work...

i have tried this palette module many times, this is the install err i receive

i am sure this is a hid device based on what i been able to pull. but can seem to find a hid palette that works.

Did you install the pre-requisites?

Anyhow, i suspect the node wont work with newer nodejs

try the suggestions in the last comment of this gihub issue thread: RBP4 unable to install the modul · Issue #9 · somebuddy87/node-red-contrib-usbhid · GitHub


after installing the pre-reqs i still receive errors installing :confused: new errors though. scrolling above in the picture was 2 pages worth of these errors

i found the issue with the scanner, in the online manual there is a section that allows your to change the scanning behavior from USB-IBM-Hand Held to USB-COM which makes it behave as a serial device. i am able to pull tags with the scanner now!! :smiley:

https://www.sensorcentre.com/uploads/manuals/PD8330%20&%20PM8300%20Full.pdf if anyone else is having this issue using a datalogic its on page 38-39.

This was gonna be my first suggestion but your OP said...

Oh well - glad it is sorted.

yeah, i had looked through the physical manual and that information wasnt in there. after looking at the online manual i had seen that capability. thank you very much for the help though :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.