zapmaker / GrblHoming

QT-based gcode user interface for grbl on arduino
GNU General Public License v3.0
319 stars 189 forks source link

Support Ethernet-to-Serial communications #35

Open zapmaker opened 11 years ago

zapmaker commented 11 years ago

A user writes:

my eshapeoko will be connected via a lantronix ethernet-to-serial converter. Would you be interested in adding the possibility to connect to a tcp port via QTNetwork (instead of a serial port)? The lantronix module is transparent, anything that enters the tcp side exits via the uart txd, and anything that enters via rxd is sent via tcp. For example, network “ports” could be: tcp://host:port. That is easy to differentiate from normal serial port names.

chrisy commented 10 years ago

I have the beginnings of an implementation of this at https://github.com/chrisy/GrblHoming/tree/feature/tcpport . It abstracts the comms port interface and provides a factory to choose RS232 or TCP from the string provided. TCP is not tested yet (beyond observing it does try to make a connection) since I was focused on making the abstraction work.

chrisy commented 10 years ago

FYI, https://github.com/chrisy/GrblHoming/tree/feature/tcpport now seems to work, yippee. :) Not sure I'd call it production ready yet, but I am able to connect to a TCP port on a device (which has a Grbl 'connected' to a serial port) and jog about.

I'll probably leave it alone now unless there's specific interest - I did it mostly as an academic exercise.