Bangle.js - app upload - upload failed #1512
Replies: 28 comments
-
Posted at 2020-03-18 by AkosLukacs Hit F12 (or the key that brings up browser dev tools in your browser. Most commonly F12), find the "Console" tab, and look for clues there. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by chrisotherwise So, I can connect to the Bangle from the IDE, send it commands and all works as expected. However the problem seems to be that sending it a "reset()" command causes the connection to drop and it then can't be restored without re-pairing. As the app upload issues a reset() then all commands it sends subsequent to that are lost. Issuing "reset()" causes the Bangle to reply "=undefined" (presumably expected), then either the IDE or the Bangle prints "-> Terminal", but after that there is no more response from it until I disconnect and reconnect (see screenshot). I observe this behaviour on both my desktop Mac and my iPad using the special Bluetooth-enabled browser. Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by PiOfThings @chrisotherwise are you uploading Apps from the official BangleApps repository or a custom App you built yourself. If it is a custom app and an open URL could you share the URL with us :-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by chrisotherwise It's any of the official apps from the repo. Not even close to writing one myself yet, although I have some exiting ideas in mind. But I believe the problem to be in the "reset()" command rather than any of the apps. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by PiOfThings Okay... looks like I am a little behind on the Github repo as well as Firmware... can you run the "About" app on the watch a post a picture of the watch face... or just run |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by PiOfThings My I am guessing my firmware version
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by Robin Thr 2020.03.19
The original post indicated a failure to upload apps, failing around 99% but now there may be an issue with the reset() command. Before this thread morphs, are there actually two separate issues? What was done, such that apps from the official BangleApps repository now upload? and, post the results of > 'causes the Bangle to reply "=undefined" (presumably expected)' Yes, True
From: > 'reset the underlying hardware' > and > 'If reset() is called with no arguments, it will reset the board's state in RAM but will not reset the state in flash' > https://banglejs.com/reference#l__global_reset Could some erroneous code be lurking about in Flash? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by chrisotherwise Here's my process.env(). Just for full disclosure, I received my Bangle, tried straight away to upload an app and encountered this problem - so I updated the firmware, no issues doing that.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by Robin Thank you, that should assist others. Please review post #8 as our individual "Post reply"'s may have crossed.
Which encounter is being referred to, uploading or reset? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by chrisotherwise To answer your questions above:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by Robin Thr 2020.03.19 Was While the newly shipped Bangle's make their way to their eagarly awaiting developers and as there are daily app and firmware changes, not 'all' software issues may be initially apparent. It might get a bit frustrating should an unfortunate area of concern get through testing. While others take a looksy under the hood, as pointed out in post #7 there is a previous firmware that may be used that appears to be stable. Flashing that may work as a temprorary choice until matters are ironed out. Does anyone else have either of these issues with VERSION: "2v04.404"? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by chrisotherwise Good idea, I'll try flashing the earlier version and see if it makes a difference. If it fails then I've probably got a local problem.. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by PiOfThings @chrisotherwise I just flashed 406 (which is now the latest) and it seems to work. Uploads are working. So I would say, stay on the bleeding edge and get the latest again, and see if it changes. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by chrisotherwise I flashed 406, still the same problem. As soon as the reset() command is issued, the watch disconnects and doesn't reconnect. I've also noticed that: If I reset with BTN1 + BTN2 ---> watch ends up in "normal" mode running the clock app If I reset with reset() command --> watch ends up on the "Bangle" logo screen. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by PiOfThings Okay... Are you still have issues uploading new apps? what are you trying to do with From the documentation https://banglejs.com/reference#l__global_reset After an App is loaded, it should show on screen "Press btn3 to reload". You keep BTN3 pressed and your default app is reloaded. Press the middle button and it should launch the App Launcher showing you all the apps that are installed, and you can pick one of the other apps. P.S. You mentioned App Uploader is issuing a reset... if you are using Chrome, can you do F12, then right click on refresh button and click "Empty cache and hard reload"... Github pages are cached so maybe you got stuck with a stale version of the BangleApps repository? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by chrisotherwise Hi @piofthings. I am still experiencing exactly the same problem I was when I made the OP. That being:
Everything else is speculation about what might be the cause of this. In particular:
--> My conclusion from this (which might be wrong) is that the reset() command - in my particular environment - is somehow causing an issue. --> This is backed up by the fact that issuing the reset() command in the IDE also appears to break connectivity between my computer and the bangle and I then need to re-pair. --> I observe the same behaviour on both my desktop Mac and my iPad. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by @gfwilliams I think it might be what's mentioned here: https://www.espruino.com/Bangle.js+Development
Is it possible you had set 'Debug Info' to 'Show' in settings? I know it's a frustrating gotcha - it's fixed in the latest JS bootloader, but obviously if you can't update the bootloader then you're in trouble! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by chrisotherwise Wahayy!!! That fixed it! Thank you so much! All working now, and I can upload apps to my heart's content :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by PiOfThings Cool! Thanks again @gfwilliams :-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-19 by @allObjects Encountered the same (about 3/3) - no app loaded. Starting from scratch was the solution w/ updating boot loader first. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-20 by @gfwilliams I've just added a Bangle.js-specific troubleshooting page: https://github.com/espruino/EspruinoDocs/blob/master/info/Troubleshooting%20Bangle.js.md I'll add to that as new things come to light - but feel free to give me PRs for it as well ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-27 by Tom I hate to revive an old thread, but I'm having a similar issue with a slightly worse problem. @gfwilliams Thanks for sending out the watches during this difficult time. I received mine today! As OP did, I tried updating everything as best as I could, and I was also seeing the same error message. In an attempt to fix this, I followed the steps to reset without loading any code but I ended up with I tried upgrading the firmware through DFU mode with the Nordic Toolbox app, which worked flawlessly :) Then (and only then!) did I read your comment above:
I know I have the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-27 by @gfwilliams If you can get access with the IDE then you should really be ok to upload - but If you can't access anything at all via the IDE then you may have managed to get it into an odd mode where there's just enough stuff installed to disable Bluetooth, but not enough to re-enable it. I have just pushed some changes and you should see builds in http://www.espruino.com/binaries/travis/master/ in a moment or two. If you upload that then afterwards holding down BTN1 while starting will ensure that NOTHING is loaded, and you'll definitely be able to connect and re-upload apps. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-28 by Tom Brilliant! Thank you very much, Now to get coding! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-31 by Claudio Hi everyone, I just started today with this smart watch.
Algo, I try to install an App from the Android phone with the same result. You can see the error message in the attached evidence files (image and console log ) Please, anyone can help me with the step by step in order to fix this issue? Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-01 by @gfwilliams On your Mac, please could you open Is there any chance you might have changed the settings on the watch - for instance disabled |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-01 by Claudio Hi Gordon, today work ok and I able to upload new Apps...I don't know what's happen My current settings on the watch are: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-01 by @gfwilliams Ok, great!
Perfect. Those are the default and will work well for you :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-18 by chrisotherwise
Just received my Bangle.js and it looks great, thanks for your amazing effort in getting these devices out at such a difficult time.
I've updated it to the latest firmware, and tried to upload an app but each time it gets 99% of the way there then displays an error message in an orange bar at the bottom: "Upload failed, Unexpected response" - but nowhere does it say why it failed or what the unexpected response was.
Can anybody advise how I can find what's going on? Maybe some logs written somewhere?
Beta Was this translation helpful? Give feedback.
All reactions