Skip to content

Dart implementation of serial to tcp wedge

Notifications You must be signed in to change notification settings

guitarpicva/NetPortDart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

NetPortDart

Dart implementation of a serial to tcp wedge.

Connect an RS-232 serial device to a TCP Server Socket bi-directionally.

Linux dependency is "libserialport-dev" (Debian, etc.)

This is a straighforward (read "un-polished") example to send all data from the serial port to the TCP server's connected client TCP socket (and back!).

One could do the same with UDP or Domain sockets as well.

TODO: Needs a watchdog on the serial connection to re-make the link if it fails or goes away.

To start the program, call the resulting compiled filename with up to three parameters. See the main() function for more explanation and defaults.

  1. serial port name. COM5 or ttyACM0, etc. (no path to *nix devices)
  2. serial port baud rate (115200 def., 57600, etc, etc.)
  3. TCP port to listen on for the TCP Server side (19798 def.)

About

Dart implementation of serial to tcp wedge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages