Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running test_myo on brand new device no longer causes error #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tanglisha
Copy link

I have a brand new Myo. I ran test_myo.py on it and got the following output:

Start Myo for Linux
Find Myo device...
Connected.
Firmware version: 1.0.2.2
Device name: Myo
Finished.
Traceback (most recent call last):
File "test_myo.py", line 30, in
main()
File "test_myo.py", line 19, in main
myo.run()
File "../lib/myo.py", line 51, in run
self.ble.receive_packet(timeout)
File "../lib/ble.py", line 23, in receive_packet
self.notify_event(packet)
File "../lib/ble.py", line 49, in notify_event
listener.handle_data(p)
File "../lib/device_listener.py", line 12, in handle_data
data_type, value, address, _, _, _ = unpack('6B', payload)
File "../lib/utilities.py", line 7, in unpack
return struct.unpack('<' + fmt, *args)
struct.error: unpack requires a string argument of length 6

Upgrading my firmware fixed the error and all was well, but the error was pretty frustrating.

Traceback (most recent call last):
  File "test_myo.py", line 30, in <module>
    main()
  File "test_myo.py", line 19, in main
    myo.run()
  File "../lib/myo.py", line 51, in run
    self.ble.receive_packet(timeout)
  File "../lib/ble.py", line 23, in receive_packet
    self.notify_event(packet)
  File "../lib/ble.py", line 49, in notify_event
    listener.handle_data(p)
  File "../lib/device_listener.py", line 12, in handle_data
    data_type, value, address, _, _, _ = unpack('6B', payload)
  File "../lib/utilities.py", line 7, in unpack
    return struct.unpack('<' + fmt, *args)
struct.error: unpack requires a string argument of length 6

Upgrading my firmware fixed it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant