⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Anonymous (not verified)
广告和连接参数

Hi Dialog,

Our firmware has to be in constant connected mode. My first question is can we stop advertising after the connection has established i.e. handle_evt_gap_connected() is called or do we need to keep advertising?
Second question is when the device first establishes the connection, what are the connection parameters? Are they set by the central?
Also when the central is trying a re-connection do the connection parameter reset? or are they the same as we suggested (assuming they were excepted) when the connection was previously established.
Lastly during connection when the device has no data to send (we send a notification every 30s) does it simply send a empty packet in the connection interval?

Device:
MT_dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2015-06-08 11:34
Hi mutahir,

Hi mutahir,

1) Yes, you can stop advertising while the device is connected, its not a necessity to keep on advertising when you are allready connected. In the demo's for the example in the proximity reporter the stack stops the advertising when starting a connection, since the advertising is stopped the task receives a BLE_EVT_GAP_ADV_COMPLETED event and the handle_evt_gap_adv_completed() function is the one that starts the advertising again.

2) The parameters of the connection are defined by the central and not the peripheral, the peripheral can only update the parameters if the central agrees to that. The central defines the parameters always it doesn't matter if it was connected before to the same peripheral.

3) Since there are no data to be send between the central and the peripheral the devices keep the connection alive in every connection event by exchanging empty packets.

Thanks MT_dialog