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

[Messages vs Music Control] vibration pattern doesn't stop #3589

Open
aemkai opened this issue Sep 26, 2024 · 7 comments
Open

[Messages vs Music Control] vibration pattern doesn't stop #3589

aemkai opened this issue Sep 26, 2024 · 7 comments
Labels

Comments

@aemkai
Copy link
Contributor

aemkai commented Sep 26, 2024

Affected hardware version

Bangle 2

Your firmware version

2v24

The bug

With active (loaded) music control app, a notification alarm doesn't stop after the configured timeout, instead the pattern is repeated until the music app is closed by pressing hw-button two seconds.
Short Pressing the button only changes play/pause state

  • It doesn't matter if music is playing or not when the message is received.
  • It doesn't matter if the music control app is started automatically or by hand.
  • It doesn't matter if "Auto-Open Music" is dis- or enabled.
  • Configuration of Messages UI seems to make no difference.

MessagesUI is configured as follows:

  • Vibrate ::
  • Vibrate for calls ::
  • Repeat 5s
  • Repeat for calls 5s
  • Vibrate timer Off
  • Unread timer 10s
  • Min Font Small (default)
  • Auto-Open Music [ ]/[v] (both tested)
  • Unlock Watch [v]
  • Flash Icon [ ]
  • Quiet Mode disables auto.open [ ]
  • Disable auto-open [ ]
  • Widget Messages 3 (default)
  • Icon color mode color (default)
  • Car driver pos lef (default)

Installed apps

Message UI (v0.80)
Message Widget (v0.06)
Messages (v0.62)
Message Icons (v0.08)
Gadgetbridge Music Controls (v0.13)

About
Lock Widget
Battery Level Widget
Welcome
Notifications (default)
Health Tracking
Scheduler
Alarms Widget
Alarm & Timers
Android Integration
Setting
Bootloader
Sliding Clock
Clock Info Module
Binary LED Clock
Desktop Launcher
2047pp
Languages

some custom clock apps in development

@bobrippling
Copy link
Collaborator

At a guess, the showPrompt might be being interfered with by the setTimeout juggling that the GB music code is doing - if you have the IDE connected while reproducing the bug, do you see any output in the console?

@aemkai
Copy link
Contributor Author

aemkai commented Oct 1, 2024

I'm actually short of time, I will try to test this on Thursday.

@aemkai
Copy link
Contributor Author

aemkai commented Oct 3, 2024

Okay, seems that I'm to stupid to connect my Bangle in web-IDE, while it is connected with Gadgetbridge, even if I use the same device. Is this even possible?
And is there a way to control GB music and Messages from IDE/console?

@bobrippling
Copy link
Collaborator

Ah no, you're right - you can't connect more than one thing to the Bangle at once, this will be more gnarly to debug. @gfwilliams before I dive into somehow catching errors and saving to flash, do you have any techniques you've used for this already?

@thyttan
Copy link
Collaborator

thyttan commented Oct 3, 2024

I think this should work: https://www.espruino.com/Gadgetbridge#remote-debugging

At least when running the Web IDE on another device. But I think it should work on the same device you run 'Bangle.js Gadgetbridge' on as well. Just make sure you're using a Chromium based browser.

@gfwilliams
Copy link
Member

Yes, as @thyttan says - I added it for exactly this eventuality :)

@aemkai
Copy link
Contributor Author

aemkai commented Dec 28, 2024

Long last is finally good, or even not. Sorry for the long break, but I was short of time.
Actually I tested the issue (and setting up the connection was a bit shaky), but finally the following output was displayed on the terminal (comments in square brackets):
(edit: I left firmware version at 2v24 for this test)

[music is playing, alarm is set up, then connecting via Remote Connection Bridge]

Unable to retrieve board information. Connection Error?
Connected to Android (No response from board)
>< << {"VERSION":"2v24","GIT_COMMIT":"9b3cc7f80","BOARD":"BANGLEJS2","RAM":262144,"FLASH":1048576,"SPIFLASH":8388608,"HWVERSION":2,"STORAGE":8388608,"SERIAL":"...","CONSOLE":"Bluetooth","MODULES":"Flash,Storage,heatshrink,crypto,tensorflow,locale","EXPTR":671884,"APP_RAM_BASE":536884832} >> >
notify {
  "t": "notify",
  "id": ...,
  "src": "Kalender",
  "title": "test",
  "subject": "",
  "body": "12:07",
  "sender": ""
 }
>BLE Connected, queueing BLE restart for later

[next try, stop connection, music is playing, alarm is set up, then re-connecting via Remote Connection Bridge]

Found BANGLEJS2, 2v24
>
New Firmware available (2.24 installed, 2v25 available)
Connected to Android
>BLE Connected, queueing BLE restart for later
BLE Connected, queueing BLE restart for later
 ____                 _
|  __|___ ___ ___ _ _|_|___ ___
|  __|_ -| . |  _| | | |   | . |
|____|___|  _|_| |___|_|_|_|___|
         |_| espruino.com
 2v24 (c) 2024 G.Williams
notify {
  "t": "notify",
  "id": ...84,
  "src": "Kalender",
  "title": "test",
  "subject": "",
  "body": "12:16",
  "sender": ""
 }

[vibration is ongoing, pressing button long]

>Button held down - interrupting JS execution...
Execution Interrupted

[starting music again on mobile, setup new alarm]

>BLE Connected, queueing BLE restart for later
BLE Connected, queueing BLE restart for later
BLE Connected, queueing BLE restart for later
BLE Connected, queueing BLE restart for later
 ____                 _
|  __|___ ___ ___ _ _|_|___ ___
|  __|_ -| . |  _| | | |   | . |
|____|___|  _|_| |___|_|_|_|___|
         |_| espruino.com
 2v24 (c) 2024 G.Williams
notify {
  "t": "notify",
  "id": ...85,
  "src": "Kalender",
  "title": "test",
  "subject": "",
  "body": "12:18",
  "sender": ""
 }

[vibration is ongoing till alarm is acknowledged on mobile, then it stops. Set up new alarm]

notify {
  "t": "notify",
  "id": ...86,
  "src": "Kalender",
  "title": "test",
  "subject": "",
  "body": "12:19",
  "sender": ""
 }

[vibration is ongoing]

>
{"t":"act","stp":0,"hrm":0,"mov":141}
{"t":"music","n":"pause"}
{"t":"music","n":"play"}
{"t":"music","n":"pause"}
{"t":"music","n":"play"}
{"t":"music","n":"pause"}
notify {
  "t": "notify",
  "id": ...87,
  "src": "Kalender",
  "title": "test",
  "subject": "",
  "body": "12:21",
  "sender": ""
 }
>

[vibration is ongoing]

{"t":"music","n":"play"}
{"t":"music","n":"pause"}

[stop music app on watch, setup new alarm on mobile]

BLE Connected, queueing BLE restart for later
BLE Connected, queueing BLE restart for later
notify {
  "t": "notify",
  "id": ...88,
  "src": "Kalender",
  "title": "test",
  "subject": "",
  "body": "12:23",
  "sender": ""
 }
>BLE Connected, queueing BLE restart for later
BLE Connected, queueing BLE restart for later

[vibration is stopping (without music-app on watch)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants