I am trying to build a basic POS System, naturally I would have a usb barcode scanner and a simple code from here to start.
Everything went well from scanning using serial to DB entry and then GUI. But after a reboot, serial doesn't work anymore. It just hangs without releasing the serial output.
What I tried:
-Enable/Disable Serial
-Switching from USB keyboard to serial mode on barcode scanner to make sure it still works
-Switching from hdraws 0 and 2
-Reflashing card with OS clean install of everything
-Used a different pi
-Tried the basic code of just printing the serial output - sudo apt-get install update and upgrade
Help, I dont know anymore whats not working, this is supposed to be basic setup. I think the problem is the serial? or the scanner? I'm out of ideas already.
Also the last error I caught "miraculously" as I waited until it releases an output was an I/O Input/output error. This is why I think it might be the serial?
My setup:
Switching from hdraws 0 and 2
why? what doesls /dev/hidraw*
output? – Jaromanda X Apr 16 '19 at 01:47Keyboard mode works on the Pi's and it gets the barcode, correct me if I am wrong but I can't fetch that for use right? Which is why we use serial? it just displays.
If there was a way to fetch the barcode read in keyboard mode, then it should fix the problem.
But currently I think it should be read as serial isnt it?
– Firiyuu77 Apr 16 '19 at 02:31