Results 1 to 3 of 3
hello,
I have been trying to figure this out for a while!
I have tried about 6 serial port programs, none of which are working. a bit of background...
I ...
- 04-21-2011 #1Just Joined!
- Join Date
- Apr 2011
- Location
- Naboo
- Posts
- 6
please help!
hello,
I have been trying to figure this out for a while!
I have tried about 6 serial port programs, none of which are working. a bit of background...
I am running ubuntu 10.04, and have an application where i need to communicate with a serial device (when I plug it in, it is recognized as /dev/ttyUSB0). I need to write a few characters to the port and get its response (in hex).
It is for a robot that I am programming. I need to query the robot to find how far it travelled. It involves sending a command to the serial port and then reading the response.
I have tried many programs, none of which work. However, the program the comes closest is the one found here.
comptechdoc dot org under os/linux/programming/c/linux_pgcserial
I am able to get the command to be sent to the robot (but no hex response received), and I can only do this if i am running minicom in parallel to this program. The only conclusion I can think of is that minicom is doing something that my program is not. Is any body able to see what is wrong with what I am doing?
Thanks in advance!
-jj
- 10-03-2011 #2Just Joined!
- Join Date
- May 2006
- Location
- Silver Spring, MD
- Posts
- 32
I don't understand why you just don't use minicom by itself. Minicom is the defacto standard for serial port com Linux, whether it's your robot or a Cisco switch/router.
- 01-12-2012 #3Just Joined!
- Join Date
- Apr 2011
- Location
- Naboo
- Posts
- 6
the application here is an autonomous vehicle. if we use minicom we would have to keep inputting messages to it and analyze ourself the output. we do not want to pipe the output into our program.


Reply With Quote
