1

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:

mysetup

Firiyuu77
  • 13
  • 3

1 Answers1

0

after reboot, serial doesn't work. It just hangs without releasing the serial output.

Enable/Disable Serial

Switching from USB keyboard to serial mode on barcode scanner to make sure it still works

problem is the serial? or the scanner? I'm out of ideas already

Well, if you said the barcode reader works OK. Then there are two possibilities:

  1. Rpi serial hardware/software is not OK.

  2. Both Rpi and bard code reader are OK. But they crash.

So first thing first is to make sure your Rpi hardware/software is OK. You might like to read my answers to the questions below suggesting newbies how to do the following checking:

  1. Rpi UART is OK.
  2. Rpi python UART is also OK

After the above two things are OK. Then check Rpi python interface with Arduino, bardcode devices etc.

Serial to Arduino totally non-responsive

Serial Communication from Raspbian using Python to Arduino

tlfong01
  • 4,847
  • 3
  • 12
  • 24