Author Topic: UART to TCP/IP  (Read 811 times)

0 Members and 1 Guest are viewing this topic.

Offline WhysoS3rious

  • /dev/null
  • *
  • Posts: 7
  • Cookies: 0
    • View Profile
UART to TCP/IP
« on: 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!

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: UART to TCP/IP
« Reply #1 on: June 22, 2015, 12:38:00 pm »
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.
>>>import this
-----------------------------

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: UART to TCP/IP
« Reply #2 on: June 22, 2015, 04:23:38 pm »
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.)
« Last Edit: June 22, 2015, 04:26:13 pm by proxx »
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage