No description
  • C# 98.5%
  • C 1.3%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Agustín Gimenez Bernad 9df5240382
Update README.md
2019-01-27 18:19:24 +01:00
Installer Added install project 2019-01-27 16:16:24 +01:00
SerialLinuxHost Added install project 2019-01-27 16:16:24 +01:00
SerialManager Add files via upload 2019-01-27 18:08:34 +01:00
.gitattributes Agregar archivos de proyecto. 2019-01-27 05:11:13 +01:00
.gitignore Agregar archivos de proyecto. 2019-01-27 05:11:13 +01:00
BaudSetter.c Agregar archivos de proyecto. 2019-01-27 05:11:13 +01:00
install_daemon.sh Corrected install script eol 2019-01-27 16:23:26 +01:00
README.md Update README.md 2019-01-27 18:19:24 +01:00
SerialPortBridge.sln Added install project 2019-01-27 16:16:24 +01:00

SerialPortBridge

Small set of tools to connect serial ports from a Raspberry to a Windows machine. I created this program because I wanted to use my raspberry as 3D printer / CNC server and no software worked as I wanted.

Screenshot

Compilation:

  1. Open solution in VS, compile the SerialClient (Windows app).
  2. Open a command line console and execute the publish.bat file under SerialLinuxHost, it will create the publication of the server for the Raspberry.
  3. Copy BaudSetter.c wherever you have installed the server publication
  4. Compile with gcc -o BaudSetter BaudSetter.c
  5. Ready!

Windows requirements

You must install com0com. If you did a full installation the Com0com path setting can be left empty and the client will locate it

Run as daemon in Raspberry/Raspbian

  1. Copy the install_daemon.sh script to the folder where you have installed the serial host
  2. Change it's permissions to executable: sudo chmod 777 install_daemon.sh
  3. Execute: sudo install_daemon.sh
  4. Reboot

Usage

  1. Enter at least the server address (and port 9025 if you haven't changed it in the server code) and save the configuration
  2. Create as many pairs as ports you want to connect, the input port will be used by your target app, the output port will be used by the serial manager. No need to specify baud rate.
  3. Create as many bridges as ports you want to connect selecting the output you want to connect to a remote port. You must specify the speed of the remote port.
  4. Ready!

An usage example

  • Connected a CNC to the Raspberry, it creates the ttyUSB0 port.
  • Configured the Serial Manager server as 192.168.1.10 9025
  • Created pair COM2<->COM3
  • Created bridge COM3<->ttyUSB0 with 115200 bauds
  • On GrblControl CNC is configured to use COM2 at 115200 bauds

Now GrblControl will control the remote CNC.