To reiterate your situation, you want to use multiple hello_sensors as just broadcasters that broadcast advertisements and you want one hello_client to pick up on those advertisement packets, right?
This is possible, but you need to assign different BD_ADDRESSes to all the hello_sensors.
You can do this by changing the target name in the SDK to have different BD_ADDRESSes.
ex. "hello_sensor-BCM920736TAG_Q32 download BT_DEVICE_ADDRESS=20737A987654"
Please refer to Advertiser and Scanner for manipulating advertisement packets and how to scan them.
Please let us know if this helps. Thank you.
thx and another question,
I know broadcast payload length is 20B in BLE format.
if we broadcast with MAC (it includes 6Bytes) and once the hello sensor values
size is over 14Bytes, how to include all in one packet send or we need to segmentation?
You don't have to include MAC in your broadcast payload.
You can put whatever information you want in the payload and the advertisement would still have the name, address(MAC), and RSSI.
Currently I don't know any Android apps with the ability to see the advertisement packets. If you have a BLE dongle, you can sniff the packets from your computer. I'll try working on a simple Android app and post the apk here till Friday. Thanks.
Here is an apk for a simple Scanner app.
It should work with most of Android devices.
With this app, you should be able to see the data of the advertisement packets.
Let us know if this helped or if you need any other questions.
ps. I think the app is pretty simple to use, so I didn't write any directions as to how to use the app.
If anything is confusing, let me know.
Scanner.apk.zip 888.9 K