Menu

could not open serial device or detect serial baudrate

Anonymous
2017-08-03
2017-08-04
  • Anonymous

    Anonymous - 2017-08-03

    Hi,I used the libray of URG on the Raspberry Pi c langague,When I debug the get_distance application with urg_04lx_ug01, the console printf "urg_open: /dev/ttyACM0,115200: could not detect serial baudrate.cannot open urg" or "urg_open: /dev/ttyACM0,115200: could not open serial device..cannot open urg" I also tried sudo ./get_distance -s /dev/ttyACM0 and pull out keyboard ,mouse after clicking running. But still same error message. If I power off and on everything,it could work properly but only one time. How should I solve the problem?REALLY NEED HELP. Thank you.

     

    Last edit: Anonymous 2017-08-03
  • Tatsu Momo

    Tatsu Momo - 2017-08-03

    Hi, please try to confirm how the sensor was recognized. The method is described on the following link.
    https://sourceforge.net/p/urgnetwork/wiki/serial_linux_en/

    Then, change "/dev/ttyACM0" of function "open_urg_sensor" of "open_urg_sensor.c" to the character string that you confirmed.

    Best regards.

     

    Last edit: Tatsu Momo 2017-08-03
    • Anonymous

      Anonymous - 2017-08-03

      Hi, thank you for replying. I have tried the method you mentioned above.It showed ttyACM0. A screen shot is attached below.What elseI can do? Thank you.

       

      Last edit: Anonymous 2017-08-04
  • Tatsu Momo

    Tatsu Momo - 2017-08-04

    Hi, there is a possibility that sufficient current is not supplied to the sensor.Current consumption of "urg_04lx_ug01" is 600mA.

    Please check the capacity of the power supply connected to the Raspberry Pi .
    Or please try using a USB hub that can supply power.

    Best regards.

     
    • Anonymous

      Anonymous - 2017-08-04

      Hi, the power supply connected to Raspberry Pi is 1.2A. So shouldnt be this issue.And laser scanner sometimes can work,sometimes showed "could not detect serial baudrate." or "could not open serial device" or "checksum error" or it will sent negative n value...Really need and appreciate your help.

       

      Last edit: Anonymous 2017-08-04
  • Tatsu Momo

    Tatsu Momo - 2017-08-04

    Hi, what model of Raspberry Pi you use? The current supplied to the sensor is the value obtained by subtracting the consumption current of Raspberry Pi.
    And Raspberry Pi ModelA/B/A+ are the maximum current value supplied to the USB is 500mA. So, you have to use USB hub that can supply power.
    Raspberry Pi Model B+/Pi2 Model B are default maximum current value supplied to the USB is 600mA.
    So, the maximum current value setting that the USB hub can supply should be changed.

    This phenomenon occurs when the current supplied to the sensor is insufficient, so I guess it may be the same cause.

    Best regards.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB