virtualabs / radiobit

Micro:Bit Radio framework
144 stars 33 forks source link

invalid syntax for integer with base 16 in h2b #3

Open davidhelms opened 6 years ago

davidhelms commented 6 years ago

I'm trying to use the ubit-sniffer tool When I uflash using the following command from the readme

$ uflash -r precompiled/radiobit.hex tools/ubit-sniffer/middleware/ubit-sniffer-mw.py

If I connect to the serial port with screen, I see the following error

Traceback (most recent call last): File "main", line 98, in File "main", line 28, in readhex File "main", line 37, in h2b ValueError: invalid syntax for integer with base 16

virtualabs commented 6 years ago

The ubit-sniffer-mw.py is a middleware Python program for the Micro:Bit, it is intended to communicate with a CLI tool through serial, not directly with screen or minicom.

Please use the provided ubit-sniffer.py CLI tool to interact with the Micro:Bit, once flash with the ubit-sniffer-mw.py python program (your uflash command is correct by the way !).

crashish commented 6 years ago

I'm seeing that "Line 37 ValueError: invalid syntax for integer with base 16" scrolls on the Micro:Bit's LED matrix during boot-up with this middleware.