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

disconnected/connected messsages #37

Open
bhepple opened this issue Aug 5, 2020 · 2 comments
Open

disconnected/connected messsages #37

bhepple opened this issue Aug 5, 2020 · 2 comments

Comments

@bhepple
Copy link

bhepple commented Aug 5, 2020

Every time the script is run, the headset is connected and then disconnected - and this model (Audeara A-10) - tells you so via the cans! It's a bit disconcerting when listening to music and it prevents the use of the script in a monitor eg "check every 30s and pop up a warning when <10%"

@ChaosCreator mentioned this in #33 I think, but I thought I'd raise this as a separate issue.

I thought I'd try and remove some of the bluetooth dialog and see if affected the outcome, hoping that it would eliminate the annoying 'connected/disconnected' messages. This was the minimal dialog that works for me:

R: b'AT+BRSF=959\r'
S: b'+BRSF: 1024'
S: b'OK'
R: b'AT+CIND=?\r'
S: b'OK'
R: b'AT+CIND?\r'
S: b'OK'
R: b'AT+CMER=3, 0, 0, 1\r'
S: b'OK'
R: b'AT+BIND=2\r'
S: b'OK'
R: b'AT+BIND=?\r'
S: b'OK'
R: b'AT+BIND?\r'
S: b'OK'
R: b'AT+VGS=10\r'
S: b'OK'
R: b'AT+BTRH?\r'
S: b'OK'
R: b'AT+XAPL=0000-0000-0100,7\r'
S: b'OK'
R: b'AT+IPHONEACCEV=2,1,7,2,0\r'
Battery level for F0:23:B9:50:CA:54 is 80%

... but it doesn't remove the connection messages!

@bhepple
Copy link
Author

bhepple commented Aug 6, 2020

Thinking about it, it's more likely it's the

s.connect((device, port))

causing the messages - I doubt we can eliminate that, unless we somehow re-use the existing PulseAudio connection, which is probably out of scope.

@bhepple
Copy link
Author

bhepple commented Aug 6, 2020

Found this discussion so it looks like PA may end up with battery after all. Eventually!

https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/722

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

1 participant