-
Notifications
You must be signed in to change notification settings - Fork 25
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
[bug] Connection busy for other device, delaying data read #22
Comments
Hmm I was wrong, even with just the one device specified, although it doesn't immediately get stuck in a loop, as soon as I issue a command it does:
|
The only other info I can share is I'm running on a Pi3, with nodejs 12.20.0 (nodejs 14 wouldn't even npm install this project). I had the following error during installation:
|
It seems that the data reading sequence for battery etc does not complete and somewhere hangs (unless your log snipped was not complete) |
Hey thanks @binsentsu. I was on 5.50 already but upgraded to 5.55. No difference. It stops doing anything after For what it's worth, I was previously using this project, which connects and issues commands, and gets the status fine (but lacks HA/mqtt): https://github.com/TheBazeman/A-OK-AM43-Blinds-Drive/blob/master/AOK-AM43.py I've also used
|
So looking at where mine hangs, am I understanding the code right, it looks like mine fails reading the light data? My "notification identifier" seem to be different, yours is aa, mine is 00 Your log: am43:02525911db94 Bat %: 59 Dec 01 08:03:40 My log: am43:025a5eb7aab5 Bat %: 100 +0ms |
I think the issue is that these are defined in the code:
but mine is returning 00. Looking at the code, I think there is no else if statement to handle when the NotificationIdentifier is not one of those 3 above, so the app just hangs. I'm not really a developer so just a guess :) |
I tried adding:
to the It's not clear to me where this function (readData) is actually called. I suppose what is supposed to happen is discoveryResult -
Any chance of adding some error handling here or a timeout? Many thanks! |
Same issue here. Not sure I can provide any additional information. Running in RPI4 |
did you manage to resolve this? I am having the exact same issue as you described in your OP. @binsentsu can you please look into this? thanks |
@binsentsu |
Hi,
I think one of my blinds is very low on power, and although the initial connection works, it doesn't actually respond. This app gets stuck waiting for a response that never arrives:
If I remove the trouble device (i.e. 02:18:89:A0:F8:4A) from the startup command, so that only the other blind is specified, it works no problems!
The text was updated successfully, but these errors were encountered: