goatchurchprime / jupyter_micropython_kernel

Jupyter kernel to interact with a MicroPython/ESP8266 over the serial REPL
BSD 3-Clause "New" or "Revised" License
145 stars 32 forks source link

badge.team firmware not recognized on connect #45

Closed raboof closed 4 years ago

raboof commented 5 years ago

When I try to connect to a freshly booted device running the current badge.team esp32 firmware, I see:

Connecting to --port=/dev/ttyUSB0 --baud=115200 

BADGE.TEAM
fill_dma_desc: filled 63 descriptors
fill_dma_desc: filled 63 descriptors

Welcome to the python shell of your badge!
Check out https://wiki.badge.team/ for instructions.
>>> [Timed out waiting for recognizable response]
Disconnecting [paste mode not working]

On the second try it works:

Connecting to --port=/dev/ttyUSB0 --baud=115200 
Ready.

It would be nice if this worked straight away :). Is this something that can be fixed at the jupyter_micropython_kernel side or should we change something at the badge.team side? I'd be happy to help, but I'm pretty new to all this so I don't know how both sides of such a serial connection are typically expected to behave. Any pointers welcome!

goatchurchprime commented 4 years ago

Have you got a prebuilt firmware binary I could test it with on a standard esp32 to see what the problem is? (Sorry for the big delay finding this).

raboof commented 4 years ago

Sorry for the big delay finding this

No problem at all!

Have you got a prebuilt firmware binary I could test it with on a standard esp32 to see what the problem is?

I haven't forgotten about this, but it turns out not only do I have to strip out quite some things, also the different supported badges work a bit differently in this regard. I do hope to get back to this, but it might be a while :smile: . Closing for now.