ArduPilot / ArduPilot/apm_planner

3dr updating firmware error using sik_uploader.py

Open
#791 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
550
Forks
483
PR merge metrics
No merged PRs in 30d

Description

I have this error when flashing 3DR radio firmware on linux using APM planner 2.

> Flashing with firmware
> ./sik_uploader/firmware/1.9/radio~hm_trp.ihx
> ..............................uploading to port /dev/ttyUSB0
> Connecting to /dev/ttyUSB0
> Trying autosync
> ...........+++
> +++...........Traceback (most recent call last):
> File "./sik_uploader/sik_uploader.py", line 278, in
> if not up.check():
> File "./sik_uploader/sik_uploader.py", line 237, in check
> self.autosync()
> File "./sik_uploader/sik_uploader.py", line 207, in autosync
> except fdpexpect.TIMEOUT:
> AttributeError: 'module' object has no attribute 'TIMEOUT'

And I checked out the codes:
Here: https://github.com/diydrones/apm_planner/blob/master/sik_uploader/sik_uploader.py#L207
It does not have the property in module _fdpexpect_.

So I think there should be a fix.

Contributor guide

Open the contributing guide

Research direction

Start in sik_uploader/sik_uploader.py around line 207 and inspect how fdpexpect is imported and how its timeout exception is referenced. Reproduce the Linux firmware upload failure if possible; done means the uploader handles the timeout without the reported AttributeError and proceeds with the intended error handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, embedded-iot
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.