When I upgraded a stretch2 to ubuntu 22.04 and humble, the install scripts worked fine but then in the next step the firmware update failed. the arm and left wheel seem to not be recognized and i am not sure that the devices are mapped correctly.
This is the output from REx_firmware_updater.py --install
Collecting information...
[ERROR] [hello-motor-arm]: SerialException(2): could not open port /dev/hello-motor-arm: [Errno 2] No such file or directory: '/dev/hello-motor-arm'
[WARNING] [hello-motor-arm]: Unable to open serial port for device /dev/hello-motor-arm
Unable to communicate with device hello-motor-arm
[ERROR] [hello-motor-left-wheel]: SerialException(2): could not open port /dev/hello-motor-left-wheel: [Errno 2] No such file or directory: '/dev/hello-motor-left-wheel'
[WARNING] [hello-motor-left-wheel]: Unable to open serial port for device /dev/hello-motor-left-wheel
Unable to communicate with device hello-motor-left-wheel
WARNING: Device hello-motor-arm is not valid. Unable to attempt the firmware update. Skipping device.
WARNING: Device hello-motor-left-wheel is not valid. Unable to attempt the firmware update. Skipping device.
Collecting information........
Collecting information...
########################################## UPDATING FIRMWARE TO... ###########################################
HELLO-MOTOR-RIGHT-WHEEL | Reinstalling Stepper.v0.5.1p3
HELLO-PIMU | Reinstalling Pimu.v0.5.1p3
HELLO-WACC | Reinstalling Wacc.v0.5.1p3
HELLO-MOTOR-LIFT | Reinstalling Stepper.v0.5.1p3
------------------------------------------------
WARNING: (1) Updating robot firmware should only be done by experienced users
WARNING: (2) Do not have other robot processes running during update
WARNING: (3) Leave robot powered on during update
WARNING: (4) Ensure Lift has support clamp in place
WARNING: (5) Lift may make a loud noise during programming. This is normal.
------------------------------------------------
Proceed with update?? [y/N]: y
#################################################### HELLO-MOTOR-RIGHT-WHEEL #####################################################
#################################### HELLO-MOTOR-RIGHT-WHEEL | COMPILE AND FLASH FIRMWARE... #####################################
Looking for device hello-motor-right-wheel on bus
Waiting for device hello-motor-right-wheel to return to bus.
Starting programming. This will take about 5s...
Success in firmware compile
Success in firmware flash
################################ HELLO-MOTOR-RIGHT-WHEEL | CHECK #1 IF DEVICE RETURNS TO BUS... #################################
Checking that device hello-motor-right-wheel returned to bus
It may take several minutes to appear on the USB bus.
Waiting for device hello-motor-right-wheel to return to bus.
..Device hello-motor-right-wheel returned to bus after 1.045862 seconds.
##################################### HELLO-MOTOR-RIGHT-WHEEL | CHECK IF ESTABLISH COMMS... #####################################
PASS: Established comms with device HELLO-MOTOR-RIGHT-WHEEL
##################################HELLO-MOTOR-RIGHT-WHEEL | CHECK FOR CORRECT VERSION UPDATE... ##################################
Collecting information...
PASS: HELLO-MOTOR-RIGHT-WHEEL | Installed Stepper.v0.5.1p3 | Target Stepper.v0.5.1p3
#####################################HELLO-MOTOR-RIGHT-WHEEL | RESTORING CALIBRATION DATA... #####################################
Waiting for device hello-motor-right-wheel to return to bus.
Writing gains to flash...
Gains written to flash
Reading calibration data from YAML...
Writing calibration data to flash...
..........................Successful write of FLASH.
Waiting for device hello-motor-right-wheel to return to bus.
####################################HELLO-MOTOR-RIGHT-WHEEL | CHECK #2 IF RETURNED TO BUS... #####################################
Checking that device hello-motor-right-wheel returned to bus
It may take several minutes to appear on the USB bus.
Waiting for device hello-motor-right-wheel to return to bus.
Device hello-motor-right-wheel returned to bus after 0.006558 seconds.
#################################################### HELLO-PIMU #####################################################
#################################### HELLO-PIMU | COMPILE AND FLASH FIRMWARE... #####################################
Looking for device hello-pimu on bus
Waiting for device hello-pimu to return to bus.
Starting programming. This will take about 5s...
Success in firmware compile
Success in firmware flash
################################ HELLO-PIMU | CHECK #1 IF DEVICE RETURNS TO BUS... #################################
Checking that device hello-pimu returned to bus
It may take several minutes to appear on the USB bus.
Waiting for device hello-pimu to return to bus.
..................Trying again: 0 of 30
Waiting for device hello-pimu to return to bus.
..Device hello-pimu returned to bus after 11.556892 seconds.
##################################### HELLO-PIMU | CHECK IF ESTABLISH COMMS... #####################################
PASS: Established comms with device HELLO-PIMU
##################################HELLO-PIMU | CHECK FOR CORRECT VERSION UPDATE... ##################################
Collecting information...
PASS: HELLO-PIMU | Installed Pimu.v0.5.1p3 | Target Pimu.v0.5.1p3
#####################################HELLO-PIMU | RESTORING CALIBRATION DATA... #####################################
Successful flash of device calibration
####################################HELLO-PIMU | CHECK #2 IF RETURNED TO BUS... #####################################
Checking that device hello-pimu returned to bus
It may take several minutes to appear on the USB bus.
Waiting for device hello-pimu to return to bus.
Device hello-pimu returned to bus after 0.002042 seconds.
#################################################### HELLO-WACC #####################################################
#################################### HELLO-WACC | COMPILE AND FLASH FIRMWARE... #####################################
Looking for device hello-wacc on bus
Waiting for device hello-wacc to return to bus.
Starting programming. This will take about 5s...
Success in firmware compile
Success in firmware flash
################################ HELLO-WACC | CHECK #1 IF DEVICE RETURNS TO BUS... #################################
Checking that device hello-wacc returned to bus
It may take several minutes to appear on the USB bus.
Waiting for device hello-wacc to return to bus.
..Device hello-wacc returned to bus after 1.271009 seconds.
##################################### HELLO-WACC | CHECK IF ESTABLISH COMMS... #####################################
PASS: Established comms with device HELLO-WACC
##################################HELLO-WACC | CHECK FOR CORRECT VERSION UPDATE... ##################################
Collecting information...
PASS: HELLO-WACC | Installed Wacc.v0.5.1p3 | Target Wacc.v0.5.1p3
#####################################HELLO-WACC | RESTORING CALIBRATION DATA... #####################################
Successful flash of device calibration
####################################HELLO-WACC | CHECK #2 IF RETURNED TO BUS... #####################################
Checking that device hello-wacc returned to bus
It may take several minutes to appear on the USB bus.
Waiting for device hello-wacc to return to bus.
Device hello-wacc returned to bus after 0.002539 seconds.
#################################################### HELLO-MOTOR-LIFT #####################################################
#################################### HELLO-MOTOR-LIFT | COMPILE AND FLASH FIRMWARE... #####################################
Looking for device hello-motor-lift on bus
Waiting for device hello-motor-lift to return to bus.
Starting programming. This will take about 5s...
Success in firmware compile
Success in firmware flash
################################ HELLO-MOTOR-LIFT | CHECK #1 IF DEVICE RETURNS TO BUS... #################################
Checking that device hello-motor-lift returned to bus
It may take several minutes to appear on the USB bus.
Waiting for device hello-motor-lift to return to bus.
.Device hello-motor-lift returned to bus after 0.941190 seconds.
##################################### HELLO-MOTOR-LIFT | CHECK IF ESTABLISH COMMS... #####################################
PASS: Established comms with device HELLO-MOTOR-LIFT
##################################HELLO-MOTOR-LIFT | CHECK FOR CORRECT VERSION UPDATE... ##################################
Collecting information...
PASS: HELLO-MOTOR-LIFT | Installed Stepper.v0.5.1p3 | Target Stepper.v0.5.1p3
#####################################HELLO-MOTOR-LIFT | RESTORING CALIBRATION DATA... #####################################
Waiting for device hello-motor-lift to return to bus.
Writing gains to flash...
Gains written to flash
Reading calibration data from YAML...
Writing calibration data to flash...
..........................Successful write of FLASH.
Waiting for device hello-motor-lift to return to bus.
####################################HELLO-MOTOR-LIFT | CHECK #2 IF RETURNED TO BUS... #####################################
Checking that device hello-motor-lift returned to bus
It may take several minutes to appear on the USB bus.
Waiting for device hello-motor-lift to return to bus.
Device hello-motor-lift returned to bus after 0.008182 seconds.
############################################# CONGRATULATIONS... #############################################
HELLO-MOTOR-RIGHT-WHEEL | No issues encountered. Firmware updated to Stepper.v0.5.1p3.
HELLO-PIMU | No issues encountered. Firmware updated to Pimu.v0.5.1p3.
HELLO-WACC | No issues encountered. Firmware updated to Wacc.v0.5.1p3.
HELLO-MOTOR-LIFT | No issues encountered. Firmware updated to Stepper.v0.5.1p3.
I saw the other posts in the forum about the firmware and i suspect the devices might not be mapped correctly because i get a different output from the following two commands:
ll /dev/hello*
outputs:
lrwxrwxrwx 1 root root 7 Sep 28 09:40 /dev/hello-dynamixel-head -> ttyUSB1
lrwxrwxrwx 1 root root 7 Sep 28 09:40 /dev/hello-dynamixel-wrist -> ttyUSB2
lrwxrwxrwx 1 root root 7 Sep 28 09:40 /dev/hello-lrf -> ttyUSB0
lrwxrwxrwx 1 root root 7 Sep 28 10:00 /dev/hello-motor-lift -> ttyACM0
lrwxrwxrwx 1 root root 7 Sep 28 09:59 /dev/hello-motor-right-wheel -> ttyACM4
lrwxrwxrwx 1 root root 7 Sep 28 09:59 /dev/hello-pimu -> ttyACM1
lrwxrwxrwx 1 root root 15 Sep 28 09:40 /dev/hello-respeaker -> bus/usb/001/016
lrwxrwxrwx 1 root root 7 Sep 28 10:00 /dev/hello-wacc -> ttyACM5
and ll /dev/ttyACM*
outputs:
crw-rw-rw- 1 root dialout 166, 0 Sep 28 10:00 /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 1 Sep 28 09:59 /dev/ttyACM1
crw-rw---- 1 root dialout 166, 2 Sep 28 09:40 /dev/ttyACM2
crw-rw---- 1 root dialout 166, 3 Sep 28 09:40 /dev/ttyACM3
crw-rw-rw- 1 root dialout 166, 4 Sep 28 09:59 /dev/ttyACM4
crw-rw-rw- 1 root dialout 166, 5 Sep 28 10:00 /dev/ttyACM5