5 posts / 0 new
Last post
libra_13179
Offline
Last seen:4 years 8 months ago
加入:2015-06-16 04:43
对初始化sequence

hi dialog
When I read the um - B - 003(Revision 1.7 ) 12 Application initialisation section, don't understand the Figure 3, Figure 4, Figure 5.Can you tell me the figure how to read
当我阅读 um-B-003 的 12 Application initialisation章节时,不明白 Figure 3、Figure 4、Figure 5。请问这些图该怎么解读
BR lin

Device:
summer20100514
Offline
Last seen:4 years 5 months ago
Guru
加入:2014-12-30 05:01
I have some basic knowledge

I have some basic knowledge on this, so I can share something I already know and hope it can help you. The RivieraWave kernel uses messages to schedule tasks. It's common that when there is one command like xxx-indication/request, there is one corresponding handler like xxx-indication/request-handler, so you can understand the source code more easily. However, as far as I am concerned, some commands are automatically sent by the kernel, so you may not find the place where and when it is sent actually.

libra_13179
Offline
Last seen:4 years 8 months ago
加入:2015-06-16 04:43
HI summer20100514,Thank you

HI summer20100514,Thank you for your reply.BR lin

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi libra_13179

Hi libra_13179

Well the figures are describing the messages your application should send to the ble stack in order to initialize your system. Figure 3 starts from the moment your application receives the GAPM_CMP_EVT (GAPM Complete event) in response to the GAPM_SET_DEV_CONFIG_CMD (configuration message) your application send before in order to define the role of the device. Then the figure shows the initialization procedure for the databases your system supports. Your application sends PROX_CREATE_DB_REQ (message to create proximity database) and the stack responds with the confirmation that the database is created (PROXR_CREATE_DB_CFM). Then the system sends a message to itself in order to procced with the initialization of the second database (APP_MODULE_INIT_CMP_EVT). The same procedure happens with the battery database (BASS_CREATE_DB_REQ) (BASS_CREATE_DB_CFM) and the message APP_MODULE_INIT_CMP_EVT finishes the database profile initialization.

Figure 4 describes the same procedure from the beginning, when the BLE_STACK is ready sends a GAPM_DEVICE_READY_IND and the application responds with a GAPM_RESET_CMD. The stack in response replies with a GAPM_CMP_EVT (complete event) in the GAPM_RESET_CMD and continues by sending the configuration of the stack GAPM_SET_DEV_CONFIG_CMD. Then the figure continues describing the procedure as it is in figure 3. At the end of the initialization, if the device is configured as a peripheral, application sends a GAPM_START_ADVERTISE_CMD in order to start advertising.

Figure 5 is the same procedure as in figure 4 but the device is configured as central and not as peripheral. After the competition of the initialization the application sends a GAPM_START_SCAN_CMD the ble stack responds with GAPM_ADV_REPORT_IND if there a peripheral reporting at the moment. The procedure of scanning completes after 8.5ms and a competition message is sent (GAPM_CMP_EVT).

希望它可以帮助。

Thanks MT_dialog

libra_13179
Offline
Last seen:4 years 8 months ago
加入:2015-06-16 04:43
HI MT_dialog,Thank you for

HI MT_dialog,Thank you for your reply.I see.BR lin

Topic locked