Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native DCC-EX network connection via USB on PC/RPi #730

Closed
pmantoine opened this issue Aug 14, 2023 · 1 comment
Closed

Native DCC-EX network connection via USB on PC/RPi #730

pmantoine opened this issue Aug 14, 2023 · 1 comment
Labels
Documentation Item relates to documentation EX-CommandStation Item relates to the core EX-CommandStation code

Comments

@pmantoine
Copy link
Contributor

Harald noted you can use socat to create a network port for direct DCC-EX native protocol access via the USB port on a CS connected to a PC or RPi:

You can, if you can run socat instead of jmri on your computer
my-linuxbox$ socat TCP4-LISTEN:2560 /dev/ttyUSB0,b115200,raw,echo=0

If you then connect to port 2560 on your computer, everything from there will go to ttyUSB0 and vice versa. Of course only one connection and no other program may use the ttyUSB0 at the same time.
Do not forget the echo=0 otherwise socat will create a loop where it feeds what comes from the CS back to the CS (I don't know why echo=1 is default).
There may be a socat for windows. then it's some COM17 and not /dev/ttyUSB0.

We should document this as a convenient way for folks without a WiFi card where they do have it connected to PC/RPi

@pmantoine pmantoine added this to DCC-EX Aug 14, 2023
@pmantoine pmantoine converted this from a draft issue Aug 14, 2023
@github-actions github-actions bot added the Documentation Item relates to documentation label Aug 14, 2023
@pmantoine pmantoine added the EX-CommandStation Item relates to the core EX-CommandStation code label Aug 14, 2023
@flash62au
Copy link
Contributor

I have added a page: https://dcc-ex.com/throttles/connect_wifi_throttle_via_usb.html
And some similar instructions for EX-Toolbox: https://dcc-ex.com/ex-toolbox/using.html#connecting-via-usb

So you can probably close this.

@github-project-automation github-project-automation bot moved this from Backlog to Done in DCC-EX Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Item relates to documentation EX-CommandStation Item relates to the core EX-CommandStation code
Projects
Status: Done
Development

No branches or pull requests

2 participants