reading UART

Started by Stinde, August 09, 2013, 04:46:37 PM

Previous topic - Next topic

Stinde

Hi,

I'm trying to read serial data from a 2.4GHz SNAP radio module.
For some reason, serial port buffer doesn't clear after reading the port (/dev/ttyAPP0). When reading the data, the same data it just looping even I disconnect the radiomodule from the Olinuxino.

It works just fine and get single data packet, when I use equivalent radio with USB-interface on /dev/ttyUSB0 port.
Are there any stty setting I could test?
The board has 3.7.1 kernel and Debian Wheezy.

Best Regards,

Timo


farlane

Could it be that the module is echoing your commands ( like a terminal ) and you somehow have tied tx and rx to eachother?

Stinde

Thanks!

RX and TX were connected. I tried to disconnect the radio. It didn't help, since the RX and TX were shorted on the other side of the cable.

Timo

farlane

Glad that it's working now :)