Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR reader with hidrwa0 and hidraw1 #29

Open
zapicoj opened this issue Aug 29, 2021 · 2 comments
Open

QR reader with hidrwa0 and hidraw1 #29

zapicoj opened this issue Aug 29, 2021 · 2 comments

Comments

@zapicoj
Copy link

zapicoj commented Aug 29, 2021

Is there a way to force the library to read from hidraw1 ?
I'm using the library in a RPi4, node-red 2.05, with an Aibecy QR reader and it's working right, this device appears, in /dev, like hidraw0. The problem arise when I connect an MP2600 QR reader (has no brand on the box) in the place of the Aibecy. This new device shows two hidraws on the /dev. The hidraw0 and hidraw1. As per what I observed with cat /dev/hidraw1, it communicates through hidraw1. The hidraw0 is always in silence. I'm not able to read any data in node red. it seems like the library (node-red-stream) wait for data coming from hidraw0. This is why my question in line 1.
Appreciate any comment or work around to resolve the issue
kind regards.
zapicoj

@tmigone
Copy link

tmigone commented Nov 16, 2021

hey @zapicoj not sure if you figured this out already but I'm also using this library with a QR reader that creates hidraw0 and hidraw1. You can use the following syntax:

let lines = new KeyboardLines({ path: '/dev/hidraw1' })

@zapicoj
Copy link
Author

zapicoj commented Nov 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants