-
Notifications
You must be signed in to change notification settings - Fork 228
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
Install stalls at install of micropython on P8. #496
Comments
I am also experiencing this. Which micro python.zip are you using? The one from the 0.4.1 release? I am about to try it with one manually built from latest master. There is another similar issue which may also have a working method, but I am on a Mac right now, and need to get my Linux machine running to use the ota-dfu tools: #222 |
Try the solution described in #475 |
alternatively wasptool should also work https://wasp-os.readthedocs.io/en/latest/install.html#wasptool-for-gnu-linux |
I attempted to run wasp tool:
I am in the container provided by |
trying wasptool on my linux machine (xubuntu on one notebook mix 4) and I get this:
which is this: #222 |
The best bet IMO is to get to Linux where you can use this or drop down
to the Nix shell. I gave up on docker long ago...
On 2024-07-07 09:15, Shawn wrote:
I attempted to run wasp tool:
***@***.***:~/wasp-os/tools/ota-dfu$ ./dfu.py -z ../../build-p8/micropython.zip -a F2:55:95:F3:01:28 --legacy
Exception at line 145: The command was not found or was not executable: gatttool.
I am in the container provided by ./tools/docker/shell - I am on an M2 Mac, and it says this tool is missing. Should I run this outside the container? Where do I get gatttool? Is this only going to work on Linux?
--
Reply to this email directly, view it on GitHub [1], or unsubscribe [2].
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
So I made the change...
And now no notification received. |
So it appears to be a timing bug based on the thread there and there was a fix at some point... |
wasp-os/ota-dfu-python#3 this needs to be merged. or you can pull it by hand |
so I added the origin |
How far is the P8 away from the blue-tooth connection on the Linux box?
I would put it closest to the blue-tooth source so you don't timeout.
The P8 blue-tooth can be pretty weak during install.
On 2024-07-07 10:43, Shawn wrote:
trying wasptool on my linux machine (xubuntu on one notebook mix 4) and I get this:
***@***.***:/home/tolidano/Dev/wasp-os/tools/ota-dfu# ./dfu.py -z ../../build-p8/micropython.zip -a F2:55:96:F3:01:28 --legacy
Sending file firmware.bin to F2:55:96:F3:01:28
Binary imge size: 311964
Binary CRC32: 1869247472
Connecting to F2:55:96:F3:01:28
Waiting for Image Size notification
Waiting for INIT DFU notification
Exception at line 166: a bytes-like object is required, not 'str'
***@***.***:/home/tolidano/Dev/wasp-os/tools/ota-dfu# ./dfu.py -z ../../build-p8/micropython.zip -a F2:55:96:F3:01:28 --legacy
Sending file firmware.bin to F2:55:96:F3:01:28
Binary imge size: 311964
Binary CRC32: 1869247472
Connecting to F2:55:96:F3:01:28
Waiting for Image Size notification
Exception at line 166: Error in START_DFU procedure, reason: INVALID_STATE
***@***.***:/home/tolidano/Dev/wasp-os/tools/ota-dfu#
--
Reply to this email directly, view it on GitHub [1], or unsubscribe [2].
You are receiving this because you commented.Message ID: ***@***.***>
|
So now it worked
But it still just shows the waspos and the start button and the little bluetooth, no interface with the clock |
When I hit the button to "start" it shows JUST the wasp, then the screen goes black, then it flashes back to the wasp with the start and the bluetooth icon. Now I am trying the 0.4.1 release build-p8/micropython.zip instead. It is transferring. |
boot up in safe mode and see what the main.py is reading using wasptool
console. You might have to reload the main.py file.
https://wasp-os.readthedocs.io/en/latest/install.html#id35
On 2024-07-07 11:47, Shawn wrote:
So now it worked
***@***.***:/home/tolidano/Dev/wasp-os/tools/ota-dfu# ./dfu.py -z ../../build-p8/micropython.zip -a F2:55:96:F3:01:28 --legacy
Sending file firmware.bin to F2:55:96:F3:01:28
Binary imge size: 311964
Binary CRC32: 1869247472
Connecting to F2:55:96:F3:01:28
Waiting for Image Size notification
Waiting for INIT DFU notification
Begin DFU
[##################################################] 100.0% (304 of 304 kb)
Upload complete in 7 minutes and 7 seconds
Waiting for DFU complete notification
Waiting for Firmware Validation notification
Activate and reset
But it still just shows the waspos and the start button and the little bluetooth, no interface with the clock
--
Reply to this email directly, view it on GitHub [1], or unsubscribe [2].
You are receiving this because you commented.Message ID: ***@***.***>
|
Cannot get to safe mode by holding down the physical button. Also thank you for your help so far. I feel we are close! |
Hi,
I am installing wasp-os on a Colmi P8 and the install went very well until it came time to use DaFlasher to install micropython.zip. I had finished installing the bootloader-daflasher.zip file and had the Wasp, start with arrow and bluetooth symbol in white in tthe bottom right hand corner. I paused while I checked what came next and then started to install micropython.zip using daFlasher. It indicated the file had been selected and the file size (3000835Kb) and then "started DFU" then "Connected" followed by the mac address of the watch. The "Starting Flashing" followed by Mac address followed by a please wait message syaing it takes up to 5 minutes. Nothing comes up on the progress bar, there is a zero data transfer rate number and nothing happens. I t sometimes disconnects and then reconnects going through the same cycle. The watch bluetooth symbol turns blue but nothing more happens. Any ideas?
The text was updated successfully, but these errors were encountered: