Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: Stinde on August 09, 2013, 04:46:37 PM

Title: reading UART
Post by: Stinde on August 09, 2013, 04:46:37 PM
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

Title: Re: reading UART
Post by: farlane on August 12, 2013, 10:34:06 AM
Could it be that the module is echoing your commands ( like a terminal ) and you somehow have tied tx and rx to eachother?
Title: Re: reading UART
Post by: Stinde on August 12, 2013, 12:37:50 PM
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
Title: Re: reading UART
Post by: farlane on August 17, 2013, 10:56:49 AM
Glad that it's working now :)