EvilZone
Programming and Scripting => Projects and Discussion => : WhysoS3rious June 21, 2015, 04:08:55 PM
-
Hi, maybe this belongs to the Hardware section but still it's more like a project discussion.
Asking god or better google reveals some results but still not clear.
What I want is to read an rfid module(UART) and pass that information through an ethernet bus.
i found some UART to TCP/IP converters but still can't wrap my head around how to send the rfid code to a python script through ethernet. Should I use raw sockets to read the data and then use them.
Any help is appreciated!
-
If I knew your hardware set up, I.E. Arduino with ethernet shield? Wifi? Using a PIC instead?
But generally yes, on the python side, regular sockets would be fine, and probably be best. Justs set up a socket listening on what ever port you want and handle the data by hand. Such as receive the data and parse and shit. Not hard really, your basically creating your own protocol. On the hardware side, grab the rfid data, pack it how ever you want, connect to the python server you created, and send the data.
There could be easier ways, but unless I know your setup, I can't suggest anything.
-
Or just cat the shit over a netcat tunnel :)
On the other side do whatever the fuck you want with it.
You can even use bloody SSL if you find that sexy./
We talking *nix right ? (sarcasm inc.)