Bluetooth Core Spec Version 4.1 Vol 2 Section 7.8.7
Advertising_DataLength = 0x00 - 0x1F -> 31 bytes max.
Due to overheads in the Advertising Data structure, the effective size is typically lower.
The full device name is automatically received and cached by iOS once connected,
and taken from the Device Name characteristic.
No idea why iOS truncates the “r”, even though you see the full name with a sniffer.
If you have access to Cydia (iOS <= 7.0.6), there is a way to get a log file of the packets, as iOS receives them!
* In Xcode: Xcode > Open Developer Tool > More Developer Tools…
* Download Hardware IO Tools for Xcode
* Install Packet Logger by copying it to /Applications, then open it once.
* On iPhone, in Cydia: Install Bluetooth Companion
* On iPhone, in Settings: Go to Bluetooth > PacketLogger > On
* Now, a log file will be created at /var/tmp/BTServer.pklg
* Retrieve the log file via SSH, or via the web server feature of iFile (available in Cydia).
* Open the log file in PacketLogger. It contains information about the advertisement data.
Etan
On 28.03.2014, at 21:42, Caylan Larson < email@hidden> wrote:
I have a BTLE sensor with the name: "High Pressure Sensor” (20 chars).
kCBAdvDataLocalName shows the name as "High Pressure Senso” (r missing).
I’ve read the Apple Bluetooth Accessory Design Guidelines and see no mention of a maximum length for the ADV_IND. Additionally, a TI BTLE Packet Sniffer shows the advertising packet data containing the full name. The length looks good.
Any ideas on:
1) Where the maximum length is documented
2) Retrieving the full name of the device
Cheers,
Caylan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|