Skip to content

[create::Serial] serial error - End of file #46

Open

Description

Hello
I am trying to use your lib but there any problem with the serial connection.
I have inserted some printing on the source code in order to track the error and the problem seems to be in the startReading method.
I get this error message:
[create::Serial] serial error - End of file
I am working with Ubuntu 16.04.
I have tried pycreate2 and it works fine with a Roomba 605.
Thank you.
Paco

Activity

  1. dcarpy commented on Aug 3, 2019

    @dcarpy

    Hi Paco.
    This worked for me on the Raspberry Pi 4:
    Grab #38 and #45 and set baud in the create_autonomy/ca_driver/config/default.yaml file.
    Dave

  2. franciscodominguezmateos commented on Aug 3, 2019

    @franciscodominguezmateos
    Author

    Hello Dave
    You meant #54. don't you? I was trying to make the changes but I don't have a serial.hpp but a serial.h I found two bind in serial.cpp and did changes but now this error:
    Port:/dev/ttyUSB0 baud:115200
    Puerto abierto
    [create::Serial] serial error - Operation canceled
    [create::Serial] failed to receive data from Create. Check if robot is powered!
    Failed to connect to robot on port /dev/ttyUSB0
    The Spanish words are a cout to check that the port is actually open.
    Paco

  3. dcarpy commented on Aug 3, 2019

    @dcarpy

    Hi Paco.
    You are right I forgot about #54--I did make that change in addition to #38 and #45.
    I forgot to mention I switched from kinetic to melodic because Raspbian for Pi4 is based on Debian 10.
    Dave

  4. franciscodominguezmateos commented on Aug 3, 2019

    @franciscodominguezmateos
    Author

    Hello Dave
    I am not working with ROS yet, I cloned libcreate repo and compiled with traditional cmake commands. I don't see the point on #38 and #45. I have Ubuntu 16.04.
    Paco

  5. dcarpy commented on Aug 3, 2019

    @dcarpy

    It is the only way I could get it to work.
    Try setting your baud first for the 605 and if that still doesn't work then make the other changes.

  6. dcarpy commented on Aug 3, 2019

    @dcarpy

    I finally checked in my changes if you want to take a look:
    https://github.com/dcarpy/libcreate

  7. franciscodominguezmateos commented on Aug 4, 2019

    @franciscodominguezmateos
    Author

    Hello Dave
    The same problem with your code.
    I tested it on a Jetson Nano with Ubuntu 18.04 and same problem.
    I seem not to be a SO version problem.
    Thank you again.
    Paco

  8. franciscodominguezmateos commented on Aug 5, 2019

    @franciscodominguezmateos
    Author

    Hello Dave
    I have just got a Raspberry Pi 4.
    I have installed Raspian and Boost 1.67 compile your and original lib and same error.
    On the other hand, pycreate2 works fine.
    Any idea?
    Thank you again.
    Paco

  9. dcarpy commented on Aug 5, 2019

    @dcarpy

    Hi Paco.
    Is is possible your 605 is on 19200?
    I did update the firmware on the Pi4--but I doubt it is related.
    Hmm...I can send you my bash history if you think it would help?
    Thanks.
    Dave

  10. franciscodominguezmateos commented on Aug 5, 2019

    @franciscodominguezmateos
    Author

    Hello David
    As I told you with pycreate2 works by default then it is not in 19200. Don't you?
    I don't see the point of viewing your bash history. By the way, where do you get it from?
    Thank you.
    Paco

  11. shuhaowu commented on Sep 22, 2020

    @shuhaowu

    I can confirm this problem with the example code compiled on a raspberry pi (ubuntu 18.04). Works fine on my amd64 desktop (ubuntu 20.04). So I suspect something to do with the architecture?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions