Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Just 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.

  3. #3
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •