nc or socat: How to read data from remote:/dev/ttyACM0?

1

I have a device running at a remote computer on /dev/ttyACM0 Now I want to read that data on my computer. I can connect to it over ssh. Unfortunately I am a nc/socat rookie and no howto covered this.

Semantically like this:

  cat remote:/dev/ttyACM0

The remote system has a limited linux on it, and I can't install packages. (socat is not available there, nc is)

Super cool would be to have some forwarded device:

local:/dev/ttySOCK0   pointing to   remote:/dev/ttyACM0

AndreasT

Posted 2010-03-05T14:05:26.763

Reputation: 669

Answers

1

ser2net and cyclades-serial-client look promising.

Ignacio Vazquez-Abrams

Posted 2010-03-05T14:05:26.763

Reputation: 100 516

1

I found the Solution to part One:

on remote: cat /dev/ttyACM0 | nc -l -p 44144

on local: nc remote 44144

2nd part still open: Would there be a way to make a character device out of souch a "pipe"?

AndreasT

Posted 2010-03-05T14:05:26.763

Reputation: 669

You could probably use socat to relay the data into a named pipe - which might be enough. – RedGrittyBrick – 2011-06-13T19:50:13.813