Mi Band 5 watch face upload throws error #2104

Open
opened 1 year ago by maxakash · 12 comments
maxakash commented 1 year ago

Before reporting a bug, please confirm the following:

I have read the wiki, and I didn't find a solution to my problem / an answer to my question.

  • I have searched the issues, and I didn't find a solution to my problem / an answer to my question.
  • If you upload an image or other content, please make sure you have read and understood the Codeberg Terms of Use

I got Gadgetbridge from:

I built from source code

Your issue is:

While sending watch face, I am getting the error "Unexpected Notification during file upload".
This error is thrown by handleNotificationNotif() funtion and value[0] is 16.
Please someone tell me what this value mean and how to solve this problem.

This problem is caused sometimes.

Your wearable device is:

Mi Smart Band 5

Your android version is:

Android 10

New issues about already solved/documented topics could be closed without further comments. Same for too generic or incomplete reports.

#### Before reporting a bug, please confirm the following: I have read the [wiki](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki), and I didn't find a solution to my problem / an answer to my question. - [ ] I have searched the [issues](https://codeberg.org/Freeyourgadget/Gadgetbridge/issues), and I didn't find a solution to my problem / an answer to my question. - [ ] If you upload an image or other content, please make sure you have read and understood the [Codeberg Terms of Use](https://codeberg.org/codeberg/org/src/branch/master/TermsOfUse.md) ### I got Gadgetbridge from: I built from source code #### Your issue is: While sending watch face, I am getting the error "Unexpected Notification during file upload". This error is thrown by handleNotificationNotif() funtion and value[0] is 16. Please someone tell me what this value mean and how to solve this problem. This problem is caused sometimes. #### Your wearable device is: Mi Smart Band 5 #### Your android version is: Android 10 *New issues about already solved/documented topics could be closed without further comments. Same for too generic or incomplete reports.*
Owner

This happens only from time to time in my experience. If you re-start, it would typically just finish, can you confirm?

Thank you

This happens only from time to time in my experience. If you re-start, it would typically just finish, can you confirm? Thank you
Owner

For me it never happens but that might be luck with my phones Bluetooth stack. We did not implement resume with started transfers which seems possible with the mi band 5. that would also improve the situation....

For me it never happens but that might be luck with my phones Bluetooth stack. We did not implement resume with started transfers which seems possible with the mi band 5. that would also improve the situation....
Poster

This happens only from time to time in my experience. If you re-start, it would typically just finish, can you confirm?

Thank you

Restart mi band 5 or device?
Also can you please tell what does this response(16) mean @vanous

> This happens only from time to time in my experience. If you re-start, it would typically just finish, can you confirm? > > Thank you Restart mi band 5 or device? Also can you please tell what does this response(16) mean @vanous
Owner

This happens only from time to time in my experience. If you re-start, it would typically just finish, can you confirm?

Thank you

Restart mi band 5 or device?

Restart the process of uploading :)

16 is probably The answer to life, the universe and everything... it only is missing 26 :). Sorry, no i do not know, probably a random error.

> > This happens only from time to time in my experience. If you re-start, it would typically just finish, can you confirm? > > > > Thank you > > Restart mi band 5 or device? Restart the process of uploading :) 16 is probably The answer to life, the universe and everything... it only is missing 26 :). Sorry, no i do not know, probably a random error.
Poster

@vanous I have tried but on some devices it is always shown but on some devices it is solved after restart.

@vanous I have tried but on some devices it is always shown but on some devices it is solved after restart.
Owner

Maybe depending on how many notificatoins you get... you can try to put on the airplane mode and then only enable bluetooth, i presume it would always finish and never break as i would think that you do not get any notifications then.

Maybe depending on how many notificatoins you get... you can try to put on the airplane mode and then only enable bluetooth, i presume it would always finish and never break as i would think that you do not get any notifications then.
Owner

I will have a look at the code. But unfortuately all my devices are so stable regarding bluetooth that I never had a problem during transfert...:/

I will have a look at the code. But unfortuately all my devices are so stable regarding bluetooth that I never had a problem during transfert...:/
Poster

I will have a look at the code. But unfortuately all my devices are so stable regarding bluetooth that I never had a problem during transfert...:/

Please go through the code once, might get some problem.

> I will have a look at the code. But unfortuately all my devices are so stable regarding bluetooth that I never had a problem during transfert...:/ Please go through the code once, might get some problem.
Owner

I will have a look at the code. But unfortuately all my devices are so stable regarding bluetooth that I never had a problem during transfert...:/

Please go through the code once, might get some problem.

@maxakash : I had this issue and repeated update just worked. Can you please confirm the above - if you disable network connection (to prevent notifications flowing in) that it works?

Thank you

> > I will have a look at the code. But unfortuately all my devices are so stable regarding bluetooth that I never had a problem during transfert...:/ > > Please go through the code once, might get some problem. > > @maxakash : I had this issue and repeated update just worked. Can you please confirm the above - if you disable network connection (to prevent notifications flowing in) that it works? Thank you
Poster

I will have a look at the code. But unfortuately all my devices are so stable regarding bluetooth that I never had a problem during transfert...:/

Please go through the code once, might get some problem.

@maxakash : I had this issue and repeated update just worked. Can you please confirm the above - if you disable network connection (to prevent notifications flowing in) that it works?

Thank you

It even works if I retry sometimes or close the app and restart again.

I have faced the same issue for mi band 4 on multiple devices.

> > > I will have a look at the code. But unfortuately all my devices are so stable regarding bluetooth that I never had a problem during transfert...:/ > > > > Please go through the code once, might get some problem. > > > > > > @maxakash : I had this issue and repeated update just worked. Can you please confirm the above - if you disable network connection (to prevent notifications flowing in) that it works? > > Thank you It even works if I retry sometimes or close the app and restart again. I have faced the same issue for mi band 4 on multiple devices.
Poster

@vanous @ashimokawa Any update?
Watch face syncing is constanly failing on some devices on both Amazfit Band 5 and Mi Band 5.

@vanous @ashimokawa Any update? Watch face syncing is constanly failing on some devices on both Amazfit Band 5 and Mi Band 5.
Owner

As @ashimokawa cannot really replicate this, it would be interesting to know if this is caused by (constantly incoming) notifications or by something else. Setting the phone to airplane mode and only enabling Bluetooth would essentially eliminate all notifications and could help to know if that is the cause.

As @ashimokawa cannot really replicate this, it would be interesting to know if this is caused by (constantly incoming) notifications or by something else. Setting the phone to airplane mode and only enabling Bluetooth would essentially eliminate all notifications and could help to know if that is the cause.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.