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

Set MTU to 247 sucessfully yet only a payload of 20 bytes are written. #475

Open
Nicolas72 opened this issue Apr 4, 2022 · 1 comment
Open

Comments

@Nicolas72
Copy link

Nicolas72 commented Apr 4, 2022

Howdy folks,
I have this weird issue that i can not resolve.
First off, I am using the compiled version of BluePy (1.3.0 with the MTU fix etc etc)
Bluez is at version 5.53.
My problem is that when i negotiate the new MTU I end up with 247 or 244 bytes as a payload.
While i can write this perfectly fine, looking with wireshark, it says that the packets get disassembled and reassembled.
In other words when i write 244 bytes it gets split into 12 packets which are sent separately so there is no speed gain whatsoever.
I know that both my adapter and the peripheral are capable of handling this. Writing to the device using an Android app sends the 244
in one go just fine.
When setting the MTU does the PDU get adjusted as well ? If not, how can i achieve this ?
Is this something that is related to bluez or bluepy itself ? Compatibility etc etc.
It is not a big issue but i was wondering what the purpose of negotiating a new MTU is if the payload stays the same.

444 19.136529 localhost () ef:9f:5c:0f:cb:41 () HCI_ACL 32(length)Sent [Reassembled in #454]
445 19.136548 localhost () ef:9f:5c:0f:cb:41 () HCI_ACL 32(length)Sent [Continuation to #444] [Reassembled in #454]
etc etc.

Any advice on what is going here would be appreciated

Nicolas

@pszkotak
Copy link

pszkotak commented Feb 1, 2023

@Nicolas72, did you find any fix?

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

2 participants