serial devices in user space

vikas
Hello,

 Any have worked on tty devices in userspace

eduardo
I don't know what ttyx does, but i if you want to user serial communication
you must use ttySACx.

regards

vikas
yes I wrote application for ttySAC0 in userspace but it is not working.
If have any ready code and if you can share with me...

 It will be a great help..

eduardo
I suggest you to start developing something on your desktop. Check it on
desktop and then test it on the board.

Do you know anything about serial communication on linux?
Basically its just use file read/write functions.

Some useful links:
http://book.opensourceproject.org.cn/embedded/addembed/opensource/ch06le...
http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html

You could build to programs: one for read with a loop for read the income
information and other for write information on serial port.

good luck!!

m68k
Look at examples/comtest/comtest.c in the FriendlyARM linux examples, it
features simple mutiplexed IO for both the console and serial devices.

http://www.friendlyarm.net/dl.php?file=linux-examples.tgz

vikas
I have tried similar to comtest.c and tried to interface wavecom modem,
for AT command I am not getting OK for this...