Coder Social home page Coder Social logo

dragocytus / serialportbridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gusmanb/serialportbridge

0.0 0.0 0.0 142 KB

Small set of tools to use a raspberry as serial port server (for CNC or 3D printer)

Shell 0.23% C 1.26% C# 98.46% Batchfile 0.05%

serialportbridge's Introduction

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.

serialportbridge's People

Contributors

gusmanb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.