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

Change MicroPython version for Calliope mini 3 to the current one. #1703

Open
joernalraun opened this issue Nov 6, 2024 · 7 comments
Open

Comments

@joernalraun
Copy link

The current used MicroPython version does not support the standard way to start BLE mode (triple reset) on Calliope mini 3.
If you update to the current version it will work:
(https://github.com/calliope-edu/micropython-calliope-mini-v3/tree/oct24-mini3)

@joernalraun
Copy link
Author

I just bump this as people are flooding support because of this issue and it should be quick to implement...

@Cruiser79
Copy link

Hello @joernalraun

is this the same as this PR on the other repo OpenRoberta/ora-cc-rsc#15 ?
Than i am also interested in this fix.

@joernalraun
Copy link
Author

This is the same Hex-file, yes! However, the link in this comment is pointing to the generated file from Calliope, the PR has the file already integrated in the lab (so even less work to do)... If you are one of the few how was able to host this on your own machine, you just can switch the Hex-file or merge this change to your current working branch. Please tell me, if there are any issues with it (though it should work well, as this is running for a while at python.calliope.cc).

@rbudde
Copy link
Contributor

rbudde commented Dec 12, 2024

btw: we have wo different hex-binaries for the v3 in the ora-cc-rsc repo:

  1. one in directory firmware (this is for the "factory reset" command
  2. one in directory runtimeHex (this is the basis to put your program into)
    I'll prepare a commit that will change both to the new version today. I'll deploy this on one of out test servers, so it can be tested by everyone. I'll write a comment which I've taken later. Stay tuned :-)

@Cruiser79
Copy link

@rbudde nice to hear about that. Can you tell me, how an uninformed user like me can reach this test servers :-)

@rbudde
Copy link
Contributor

rbudde commented Dec 12, 2024

@joernalraun I took your hex-file and put it into the directory runtimeHex. Then I downloaded a copy of the predefined program ("factory reset") into directory firmware.

I deployed this on dev3

  • the v3 works as expected with usb from my laptop using chrome
  • using the calliope mini app on my Android tablet and setting the editor to dev3
    • pairing works
    • uploading works
    • the program runs, BUT
    • when uploading the next time the pairing has to be repeated (then it works again)
    • resetting the v3 to factory default works (with bluetooth)
    • then the next program can be uploaded (i.e. the pairing is not lost in this case)
    • but then the pairing is lost and must be done again

There must be a difference i the pairing logic between the predefined program ("factory reset") and the hex-file to which the user program is attached to. Or?

I have no IOS device. @AHberta or @BeateJ can you test the v3 with your IOS devices with dev3?

@Cruiser79 all out test systems are public, but of course should be used for testing mainly :-):

@joernalraun
Copy link
Author

@rbudde great!
The behavior seems to be correct, since as of now radio and Bluetooth communication can't run in parallel on MicroPython and radio is always active, so you will need to manually wake up the Bluetooth communication by hitting 3x reset. The pairing has to be done only once, but the mode to wait for data has to be initiated. The factory program is no MicroPython program, so this works without the need to initiate the Bluetooth state (same in MakeCode etc.).

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

No branches or pull requests

3 participants