NordicPlayground / nRF51-ble-bcast-mesh

Other
323 stars 121 forks source link

GATT Service #189

Open FisherKei opened 7 years ago

FisherKei commented 7 years ago

I have a problem understanding GATT Service in the How it works doc. As described in the Air interface packets, the packets are broadcasted as regular BLE Nonconnectable Advertisements, so I wonder how external devices as phones can connect to GATT Service when a device is in Nonconnectable Advertisements state? I'm not really with Nordic BLE SDK so it would be nice if you can explain the process above in detail since I'm working to porting OpenMesh to TI CC26xx devices. Thank you in advance and this project is great!

trond-snekvik commented 7 years ago

Hi,

The GATT connection is initiated through different advertisements from the ones the mesh runs in.

For the connection, the mesh uses the SoftDevice, which has to run its own connectable advertisements, to be picked up. You can see this being done in the BLE_Gateway example nrf_adv_conn.c module.

As explained in the "how it works" document, the mesh operates directly on the radio through the SoftDevice timeslot API.

I'm working to porting OpenMesh to TI CC26xx devices.

This sounds like a cool project :) do you plan on publishing your port?