-
Notifications
You must be signed in to change notification settings - Fork 185
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
GATTTool discover characteristics no longer parses properly with 3.2.0 #152
Comments
Perhaps you are talking about v3.2.0, are not you? I think that it is necessary to specify an appropriate 'maxread' parameter in the argument of pexpect.spawn(). What do you think?
|
@Hiro-AK47 I tried this for version v3.2.0, and it appears to work better, but it's still not quite reliable. For my specific (and very similar problem), I attached the output from using the Note that the incorrect output has two attempts, where some characteristics were missing each time. |
@Hiro-AK47 yes, I did mean 3.2.0. Thanks for catching that! I'll edit the description with the proper version numbering. |
@Hiro-AK47 I think you on to something with specifying the pexpect window size. The commit added a default max read size of 200. Perhaps this change did not help us as intended. I will did more on this when I get a chance. |
This is happening to me as well. Updated from 3.1.1 to 3.2.0 and suddenly I can no longer find all of the characteristics I need to. Playing around with things, I noticed the list of characteristics would sometimes be longer, indicating (like mentioned above) something related to a timeout. I did a quick-and-dirty diff between 3.1.1 and 3.2.0 and also saw the "search_window_size" change in there. Not sure if that's it though :-D |
@andrew-gillan is referring to PR #123. I also encountered this issue added some details in the previously closed PR. |
Setting I don't think default value of |
I have a device which has quite alot of characteristics, and with 200 as maxread, it only discovered 2 of them. Setting searchwindowsize to None without trying all the changes for maxread did fix it for me. Thank ! |
Thanks @IlyaSukhanov for bringing this issue back to my attention. I had previously seen it, and had tried out some I can confirm that for my observations in #161, setting |
Running into this too on 3.2.0. 3.1.1 solves it. |
Ran into this as well. 48 out of 52 characteristics were dropped. |
#156 landed in v4.0 and should fix this problem. Thanks for the report and the PR! |
I recently upgraded from 3.0.0 to 3.2.0 and I could not subscribe to a characteristic any longer.
I traced the problem down to the parsing of the gatttool output when doing a characteristic discovery. The parsing somehow behaves differently between 3.0.0 and 3.2.0. Not all the characteristics are successfully extracted from the output.
I've gone back to 3.0.0 for now until this issue can be resolved.
See the attached for example of successful and unsuccessful parsing of the characteristics.
incorrect-parse.txt
correct-parse.txt
EDIT: corrected the version numbering
The text was updated successfully, but these errors were encountered: