gatorback
Posts: 23
Joined: Wed Jan 16, 2013 2:53 pm

Piping serial over USB to RXD0

Thu Mar 03, 2016 4:21 am

I am wondering if it is possible to ==PIPE==> the sensor data as shown:

/dev/ttyUSB0 ==PIPE==> RXD0

Does TXD0/RXD0 have an address similar to dev/tty*?

The bigger picture is:

Sensor => TTL to USB =>/dev/ttyUSB0 ==PIPE==> RXD0 => Software Package

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Piping serial over USB to RXD0

Thu Mar 03, 2016 9:34 am

The serial port on the Raspberry appears as /dev/ttyAMA0
if that's what you asking.

Furthermore , you can propably guess what this does :

Code: Select all

 cat /dev/ttyUSB1 > /dev/ttyAMA0 &
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “Bare metal, Assembly language”