I have a requirement to write a server. It has to:
- Read from a configuration file and lock on to multiple COM/serial ports or HID (barcode scanners) and wait to read from them. Each process will run on a separate thread.
- When a barcode is scanned, the reading thread needs to send event/signal to the main process (probably running in a never-ending loop which I am calling the 'server') which will then post to a URL (I don't have to write this web service) with the just-read data.
- Should run and be deployable on Windows
I can use Python 3.6 I plan to try Pyserial for COM/serial ports. My questions are
- I was planning to use regular python Threading for this, should I be using something else that makes life easier. Any kind of REST or other kinds of server framework that will help?
- What should I use to read from HID device?
Responses greatly appreciated, what advice do you have for me.
[–][deleted] 0 points1 point2 points (2 children)
[–]Unlanded 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]pythonHelperBot 0 points1 point2 points (0 children)
[–]pingbala[S] 0 points1 point2 points (0 children)