Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Tree [r4] /
History



File Date Author Commit
README 2011-02-07 bpkempke [r3] added support for auto-transmitted data
run_serial_to_tcp.bat 2011-02-03 bpkempke [r1] initial sourceforge commit
run_serial_to_tcp.sh 2011-02-03 bpkempke [r1] initial sourceforge commit
tcp_serial_redirect.py 2011-02-14 bpkempke [r4] fixed bug with default auto file upload

Read Me

# Open run_serial_to_tcp.bat (or run_serial_to_tcp.sh) in a text editor (Notepad, WordPad, etc.) and enter the serial port parameters:
tcp_serial_redirect.py -q -p COM1 -b 9600 —-rtscts -P 12500 -n mygs_radio [--clientmode -u servername.com -U 13500] [-F serial_data.bin 023111 18:30:59 5 80]

    * -q
      suppresses non-error messages
    * -p COM1
      specifies the serial port (e.g COM1, /dev/ttyS0, etc.)
    * -b 9600
      specifies the serial port baudrate (e.g. 9600, 38400, etc.)
    * —-rtscts
      enables hardware flow control
    * -P 12500
      specifies the TCP port to open communications with either a local or remote client. This will be referenced when configuring the beacon decoding client.
    * -n myserialport
      specifies a port-specific identification for this serial port in the log files
    * --clientmode
      configures the program to act as a TCP client and forward all data to an upstream server
    * -u servername.com
      specifies the upstream server name to forward all traffic
    * -U 13500
      specifies the upstream server port to forward all traffic
    * -F serial_data.bin 023111 18:30:59 5 80
      queues serial_data.bin to be transmitted on the serial port on Feb 31, 2011 at 18:30:59 UTC.  It does this 80 consecutive times at 5 second intervals

# Save run_serial_to_tcp.bat (or run_serial_to_tcp.sh) and exit the text editor.
# Run run_serial_to_tcp.bat (or run_serial_to_tcp.sh). A new window will appear. If everything is working correctly, it should display "Waiting for connection on 12500…".