Results 1 to 5 of 5
Hi, I'm new to the Linux world and I'm writing a program using C++. I need to send some instructions using a USB port to a microcontroller with a RS232-USB ...
- 10-01-2007 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 3
Serial Communication USB on Linux
Hi, I'm new to the Linux world and I'm writing a program using C++. I need to send some instructions using a USB port to a microcontroller with a RS232-USB converter. I would like to know how can I do this in a simple way.
I just need to send some characters at a 9600 baud rate.
I'll be really thankful if anyone could help me with this.
Thanks in advance.
- 10-02-2007 #2
Do this at the command line, and all will be revealed.
Hope this helps.Code:man 2 open man 2 read man 2 write man 2 close man tcgetattr man tesetattr man cfsetispeed man cfsetospeed man select # (optional)
- 10-05-2007 #3Just Joined!
- Join Date
- Oct 2007
- Posts
- 3
Hi, thanks for your answer.
I'll check that and tell you the results.
- 10-05-2007 #4Just Joined!
- Join Date
- Oct 2007
- Posts
- 3
Hi, I just tried the commands you suggested but it gives me the following answer:
No manual entry for open in section 2
See 'man 7 undocumented' for help when manual pages are not available.
No manual entry for read in section 2
No manual entry for write in section 2
See 'man 7 undocumented' for help when manual pages are not available.
Any ideas of what's happening?
Thanks
- 10-05-2007 #5
Hoo boy. It looks as though you don't have man pages installed.
Here's a quick fix: http://www.die.net/man/
If you know the section number, click on that section number. (You'll soon get a feel for that.) Otherwise, enter the function name in the box at the top.


Reply With Quote