Bridging ROS with CORE2 Module (Unable to sync with device)

Hello,

When I go to perform the bridging step discussed in Simple kinematics for mobile robot | Husarion I receive an error message that states:

Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

I’ve read the response from this thread: Problem with bridging CORE2 to ROS network but had no luck implementing any of the proposed solutions there.

In addition to testing port ttyCORE2, I have also tried ttyS0 through ttyS3, all with no luck.

How can I bridge the two devices to eventually allow for keyboard control?

Best,
Steve

Hi Steve,

I will need some more info:

  1. Are you programming CORE2 with cloud or using VSC plugin?
  2. Full output of command: /opt/husarion/tools/rpi-linux/ros-core2-client /dev/ttyCORE2
  3. Output of: systemctl list-units --type service
  4. Output of: ls /dev/tty*
  5. State of the LEDs on ROSbot rear panel.

Regards,
Łukasz

  1. Cloud
  2. The output when a master node in ROS is being run:

Unable to sync with device; possible link problem or link software version mismatch such as hydro rosseial_python with groovy Arduino

  1. Everything seems nominal except one line:

ureadahead.service loaded failed failed Read required files in advance

  1. Output is /dev/tty, /dev/tty1 through /dev/tty63, /dev/ttyCORE2, and /dev/ttyS0 through /dev/ttyS3

  2. LR1 and Power are both on. LED1 and LED 2 are blinking at the same frequency (roughly 0.5s)

Regarding the #3, I expected to see all services that are running, also the properly working ones. Could you post here full output?

Hi Lukasz,

I have a rosbot 2 pro and I have the same problem. could you please help me with resolving the issue? following are my responses to the 5 questions:

  1. Cloud
  2. [INFO] [1549411365.030314]: ROS Serial Python Node
    [INFO] [1549411365.048682]: Connecting to /dev/ttyCORE2 at 230400 baud
    [ERROR] [1549411382.159763]: Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino
  3. systemctl list-units --type service
    UNIT LOAD ACTIVE SUB DESCRIPTION
    accounts-daemon.service loaded active running Accounts Service
    acpid.service loaded active running ACPI event daemon
    alsa-restore.service loaded active exited Save/Restore Sound Card Stat
    ● apparmor.service loaded failed failed LSB: AppArmor initialization
    apport.service loaded active exited LSB: automatic crash report
    avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
    console-setup.service loaded active exited Set console font and keymap
    cpufrequtils.service loaded active exited LSB: set CPUFreq kernel para
    cron.service loaded active running Regular background program p
    cups-browsed.service loaded active running Make remote CUPS printers av
    cups.service loaded active running CUPS Scheduler
    dbus.service loaded active running D-Bus System Message Bus
    getty@tty1.service loaded active running Getty on tty1
    grub-common.service loaded active exited LSB: Record successful boot
    hostapd.service loaded active exited LSB: Advanced IEEE 802.11 ma
    husarnet-configurator.service loaded active running Husarnet Configurator
    husarnet.service loaded active running Husarnet
    irqbalance.service loaded active running LSB: daemon to balance inter
    keyboard-setup.service loaded active exited Set console keymap
    kmod-static-nodes.service loaded active exited Create list of required stat
    lightdm.service loaded active running Light Display Manager
    loadcpufreq.service loaded active exited LSB: Load kernel modules nee
    lines 1-23

/dev/tty /dev/tty23 /dev/tty39 /dev/tty54 /dev/ttyS1 /dev/ttyS25
/dev/tty0 /dev/tty24 /dev/tty4 /dev/tty55 /dev/ttyS10 /dev/ttyS26
/dev/tty1 /dev/tty25 /dev/tty40 /dev/tty56 /dev/ttyS11 /dev/ttyS27
/dev/tty10 /dev/tty26 /dev/tty41 /dev/tty57 /dev/ttyS12 /dev/ttyS28
/dev/tty11 /dev/tty27 /dev/tty42 /dev/tty58 /dev/ttyS13 /dev/ttyS29
/dev/tty12 /dev/tty28 /dev/tty43 /dev/tty59 /dev/ttyS14 /dev/ttyS3
/dev/tty13 /dev/tty29 /dev/tty44 /dev/tty6 /dev/ttyS15 /dev/ttyS30
/dev/tty14 /dev/tty3 /dev/tty45 /dev/tty60 /dev/ttyS16 /dev/ttyS31
/dev/tty15 /dev/tty30 /dev/tty46 /dev/tty61 /dev/ttyS17 /dev/ttyS4
/dev/tty16 /dev/tty31 /dev/tty47 /dev/tty62 /dev/ttyS18 /dev/ttyS5
/dev/tty17 /dev/tty32 /dev/tty48 /dev/tty63 /dev/ttyS19 /dev/ttyS6
/dev/tty18 /dev/tty33 /dev/tty49 /dev/tty7 /dev/ttyS2 /dev/ttyS7
/dev/tty19 /dev/tty34 /dev/tty5 /dev/tty8 /dev/ttyS20 /dev/ttyS8
/dev/tty2 /dev/tty35 /dev/tty50 /dev/tty9 /dev/ttyS21 /dev/ttyS9
/dev/tty20 /dev/tty36 /dev/tty51 /dev/ttyCORE2 /dev/ttyS22 /dev/ttyUSB0
/dev/tty21 /dev/tty37 /dev/tty52 /dev/ttyprintk /dev/ttyS23
/dev/tty22 /dev/tty38 /dev/tty53 /dev/ttyS0 /dev/ttyS24
5. power and LR1 are on L1 IS BLINKING

Thanks,
Amin

Hi ,

I have same issue about Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino in ROSBOT 2.0 PRO version.

Please give solution to resolve it.

Hi bhavesh,

Is your code include baud rate equal to 230400? If you are not sure about that, you can flash your ROSbot using “ROSbot default firmware” template from our IDE with one additional line:

RPi.init(230400);

Before line:

platform.begin(&RPi);

In the beginning of main function.

Regards,
Hubert