Has anyone created an application that opens the com port and listens to incoming messages and sends a response?
I'm writing in C and I believe that the "stdio.h" should have everything I need. When I try to open the port I get error messages. It doesn't seem to like the parameters:
int portnum
portnum = open("dev/ttys0", O_RDWR | O_NOCITY | O_NDELAY);
Solved! Go to Solution.
If you are using ubuntu, you can use root account like this :
#sudo bash
Then input lucid .
weidong
So I should be using "ttymxc1"?
At first - for development / debugging - the "ttymxc0" may be used (in order to avoid problems how
to implement hardware connection with "ttymxc1" on the QSB)
Yuri
I'll try again on Sunday night, Mondya morning your time.
Thanks
Leonard
Please use O_NOCTTY instead of O_NOCITY
Hi Yuri
I have it compiling with a comport trying to open. I asked Sun and I'll
ask you as well, what port should I be trying to open? I'm trying to
open "/dev/ttymxc0" is this
correct? I also tried "/dev/ttymxc1".
Thanks
Leonard