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

Protocol improvement for future versions #8

Open
monday8am opened this issue Jun 7, 2017 · 0 comments
Open

Protocol improvement for future versions #8

monday8am opened this issue Jun 7, 2017 · 0 comments
Assignees

Comments

@monday8am
Copy link

monday8am commented Jun 7, 2017

The "MTU" (minimum transfer unit) size negotiation is already defined in the BLE protocol stack. By default, the size available for data is 20 bytes, but some devices like the iPhone negotiates it automatically and uses the max size supported by the peripheral.

Because the data will be divided in small chunks by BLE internally, we'll have to deal with 3 levels of packets in our implementation:

In order to simplify the protocol in future versions, we could evaluate to remove the middle layer (Custom BLE packe fragmentation) and its size negotiation characteristic (Max Memory for APDU processing). In this scenario we only have to send the APDUs and manage the packets with BLE native support.

@miguelcardo @sergkh

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