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
Read long characteristic #142
Comments
I'm not familiar with "read long" - is this part of the BLE spec? Does it just mean continuing to read from a characteristic until it returns no more data? |
You can get details of "read long" for example from https://www.silabs.com/documents/login/reference-manuals/Bluetooth_Smart_Software-BLE-1.3-API-RM.pdf (page 58). The command starts a procedure, where the client first sends a normal read command to the server and if the returned attribute value length is equal to MTU, the client will send further read long read requests until rest of the attribute is read. |
I'm having the same problem, but I think it's relevant to gatttool (BlueZ) and not directly to pygatt. When I directly read my characteristic, with " If I do the same with my cell phone (Sony Xperia XA1 Ultra, G3221, with Android 7.0, using nRF Connect), the entire 40 bytes are transmitted when I enable notifications. |
Having the same issue with the MTU size over 20 bytes... Any updates? |
I added a PR #177 which at least adds the possibility to read more than 20 bytes for BGAPI devices. Unfortunately it doesn't enhance anything for the notifications. |
Same issue here as well. If a characteristic is longer than 20 bytes it gets truncated when I perform read operation from pygatt, but when I read the characteristic straight from gatttool I can read all of it. I have tried also with bluez 5.5. Can you please comment on this or suggest any possible workaround. |
Not sure if this applies in your case but increasing search_window_size in the GATTToolBackend constructor may help. |
Also, I had to set the mtu as a cli option as opposed to exchange mtu. |
Hello guys, any update regarding long read with PyGatt ? |
It need to be connect first,so you can set the mtu. |
v4.0 adds two new functions:
Please give it a try, and open a new issue if it's not working as expected. Thanks! |
If like me, you came across this ticket on Google and are using gatttool backend but not getting all the expected data returned, refer to the following: As peplin says above, From this thread above, I initially thought you needed to set the MTU using This of course didn't work. Instead it needs to be done like the example in PR: #182 After being set, it appears you still use Thanks. |
Is it possible to read more than 20 bytes ("read long") from a handle/UUID?
The text was updated successfully, but these errors were encountered: