This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2564MODA: Automatic reconnect on device Restart in HSP profile

Part Number: CC2564MODA

Hi,

I'm using CC2564MODA BT module with a custom board based STM32L496.

Our application requires to have both BLE and Classic BT simultaneously. So I use HSP audiogateway in non-assisted mode for audio playback to a headset.

My device is a BLE slave and a Classic Master at the same time.

I have followed the HSPDemo example in which it is not mentioned anything about the automatic re-connection of classic Bt when the master device is power cycled. During the  authentication process, the created LinkKey is stored locally. From some older posts, I have understood that I should keep the LinkKey in NV memory for later use. Is there any option in BT stack to store this value in NVM or do we need to handle it in the application?

If I have stored the LinkKey and retrieved it when the device is powered up, how do I get the proper callback to connect the device to the previously paired headset? What command should I issue for that?

Please clarify my doubts.

Thanks,

Indu

  • It needs to be handled from the application -

    -----------------------------------------------------------

    There are 2 parts of this implementation from the BT stack side to store the link key of a paired device in NVM.

    - When a new device is paired, the atLinkKeyCreation event will occur in the GAP_Event_Callback. When this event occurs, you can see that the application is storing the link key in the following struct.

    static LinkKeyInfo_t LinkKeyInfo[MAX_SUPPORTED_LINK_KEYS];

    This struct is stored in the RAM, so it will not be retained over a power cycle. At this time, you can take a backup of the LinkKeyInfo in the NVM of the MCU.

    - When the device powers up, read the backup that is stored in the NVM. Then you can pass this data to the LinkKeyInfo struct in the InitializeApplication() function after the OpenStack call is successful. This way, the previously stored LinkKeyInfo is restored after the power cycle and when the remote device tries to reconnect, the application will be able to use the previously stored link key. This occurs in the atLinkKeyRequest event of the GAP_Event_Callback.

    ----------
    Thanks
  • Hi Hari,

    Thank you for the detailed description. I will try this out.

    I have another query.  

    Its regarding the inquiry issue of classic BT. I have noticed that if the   BLE advertising is disabled, my BT headset is listed in the Inquiry without much issues. But if BLE is connected, BT inquiry is successful once in a while. Is this the normal behaviour?

    I have to enable BLE first to connect to iPhone, to get the headset details. I tried to disable BLE just before the classic Inquiry starts and enable it again once the Inquiry process is completed. But it fails.

    Is there any method to disable BLE when it is in connected state and enable it again when needed?

    Thanks,

    Indu

  • How did you disable the BLE, after getting the headset details from iphone? I suppose, you had disconnected the LE connection with iphone and any thing else?
  • Hi Hari,

    I had disconnected the BLE connection from my device(slave) using GAP_LE_Disconnect()  and once I could find my Headset in classic Inquiry,  BLE advertising is enabled and my device is connected back to iPhone.  I guess this method solved the issue with classic Inquiry.  

    But another issue came up is when classic BT is connected, advertising of BLE and connection with iPhone is not working properly.  Is it a drawback of the BT stack that the device cannot function as a BLE slave and Classic BT master simultaneously?

    Thanks,

    Indu

  • Hi Hari,

    You have mentioned that " - When the device powers up, read the backup that is stored in the NVM. Then you can pass this data to the LinkKeyInfo struct in the InitializeApplication() function after the OpenStack call is successful. This way, the previously stored LinkKeyInfo is restored after the power cycle and when the remote device tries to reconnect, the application will be able to use the previously stored link key. This occurs in the atLinkKeyRequest event of the GAP_Event_Callback.

    That means auto connect is possible only when the remote device tries to reconnect? But, as my device is the BT master, it should try to connect to the remote device, right? How does the BT master know if the connection to the remote headset is off or if it is gone out of range? And how does it know if it is back within range? Is there any callback which indicates these changes?

    Thanks,

    Indu

  • If anyone has any idea on this, please help.

    Thanks,
    Indu
  • It is through regular "inquiry" process.. It should be similar to how any phone detects a head set when it is within the range..

    Thanks
  • Do you mean that when the master device is off, the slave will be in advertising/discoverable mode so that it can be connected through the normal Inquiry process?

    Regarding another query, Classic BT and BLE simultaneously: When classic BT is connected, advertising of BLE and connection with iPhone is not working properly.  Is it a drawback of the BT stack that the device cannot function as a BLE slave and Classic BT master simultaneously? 

    Thanks,

    Indu

  • Yes.. In Dual mode, since the radio is shared between BR/EDR and LE, it can be little testy at times.. You can try changing the 'Advertising
    and connection parameters' to check for LE connection improvements..

    Thanks
  • Thank you for the response.

    I will change the advertising/connection parameters and see if it works. Do you have any comment on any specific parameter to be changed?

    Thanks,

    Indu

  • You can check the below API calls.. And also check the Specs for appropriate values --

    For example -
    ret_val = HCI_Write_Page_Scan_Type(BluetoothStackID, 0x01, &StatusResult);

    ret_val = HCI_Write_Page_Scan_Activity(BluetoothStackID, 0x0280, 0x0012, &StatusResult);
    ret_val = HCI_Write_Inquiry_Scan_Activity(BluetoothStackID, 0x0500, 0x0012, &StatusResult);


    Thanks
  • Thank you Hari.

    I will try out these APIs.

    Thanks,

    Indu

  • Even with these APIs, I could not connect back to BLE when classic BT was connected.

    ot getting any callback in etGATT_Connection_Device_Connection.

    Thanks,

    Indu

  • Hi Hari,

    This issue is not yet resolved.

    Please look into the logger info attached here.

    Logger files for two scenarios attached.

    1.  BLE_reconnect_wo_CBT - BLE connected. Classic BT  NOT connected. When the iPhone goes out of range and comes back to range, BLE peripheral is able to connect back to phone.

    2. BLE_with_CBT - BLE connected. Classic BT connected. When the iPhone goes out of range and comes back to range, BLE peripheral is NOT able to connect back to phone.

    Thanks,

    Indu

    BT_Log.zip

  • Hi,

    The log messages from BT module shows the following logs.

    Case 1. Classic BT is connected and BLE got disconnected due to connection timeout (out of range). 

    When the device comes within range, it will not get an event for the command 'HCI_LE_Write_Advertise_Enable', i.e, HCI_Command_Complete_LE_Write_Advertise_Enable_Event is not received.

    Log file attached - NotWorking_CBTnBLE.txt

    Case 2. Classic BT is NOT connected and BLE got disconnected due to connection timeout (out of range). 

    When the device comes within range, it will get an event for the command 'HCI_LE_Write_Advertise_Enable' and  for subsequent commands. And the BLE gets connected back without any issues.

    Log file attached - Working_OnlyBLE.txt

    What could be the reason for the difference in behavior? 

    Please help.

    NotWorking_CBTnBLE.txt
    145315	3	11:56:00.470   +0:25:56.725	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145316	3	11:56:00.470   +0:25:56.725	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145317	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  255													
    145318	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145319	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145320	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch cmd start instance, module FAST_RSSI_SCAN, msi: C													
    145321	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch cmd return event STARTED,module FAST_RSSI_SCAN													
    145322	2	11:56:00.486   +0:25:56.741	BT Logger 1			lc_classification_int_handler: scan 7, out of 8, is valid 1													
    145323	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch event FINISH received, module FAST_RSSI_SCAN, msi C													
    145324	3	11:56:00.486   +0:25:56.741	BT Logger 1			finish afh rssi scan pattern, scan valid = 1													
    145325	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145326	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145327	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145328	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145329	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145330	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145331	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145332	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145333	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145334	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145335	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145336	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145337	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145338	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145339	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145340	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145341	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145342	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145343	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145344	3	11:56:00.486   +0:25:56.741	BT Logger 1			last scan PHY grade:  0,   0,  0,  255													
    145345	6	11:56:00.486   +0:25:56.741	BT Logger 1			LSTO in 289 frames, frame from last sync 287, no sync on LE handle 0x401													
    145346	6	11:56:00.486   +0:25:56.741	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145347	6	11:56:00.486   +0:25:56.741	BT Logger 1			BLE Slave store params: now 98966, next 98965, packet 2172, channel 31													
    145348	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145349	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch cmd start instance, module SNIFF_MASTER, msi: 100													
    145350	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch cmd return event STARTED,module SNIFF_MASTER													
    145351	2	11:56:00.486   +0:25:56.741	BT Logger 1			LSTO - get remaining time, lc handle: 0, remain time: 15998													
    145352	5	11:56:00.486   +0:25:56.741	BT Logger 1			synch event FINISH_REG received, module SNIFF_MASTER, msi 100													
    145353	3	11:56:00.501   +0:25:56.756	BT Logger 1			lm_lc_get_piconet_id													
    145354	3	11:56:00.501   +0:25:56.756	BT Logger 1			lm_lc_get_piconet_id													
    145355	3	11:56:00.501   +0:25:56.756	BT Logger 1			lm_lc_start_page_scan													
    145356	2	11:56:00.501   +0:25:56.756	BT Logger 1			LC_PICONIZER - allocated network clock 1													
    145357	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch event REG received, module PAGE SCAN, msi 1													
    145358	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch cmd start instance, module PAGE SCAN, msi: 1													
    145359	2	11:56:00.501   +0:25:56.756	BT Logger 1			Page Scan start, Window = 9 frames													
    145360	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch cmd return event STARTED,module PAGE SCAN													
    145361	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch cmd abort instance, module PAGE SCAN, msi: 1													
    145362	2	11:56:00.501   +0:25:56.756	BT Logger 1			Page Scan is currnetly stopping													
    145363	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch cmd return event ABORT_FINISH_WAIT,module PAGE SCAN													
    145364	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch event ABORT_FINISH received, module PAGE SCAN, msi 1													
    145365	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145366	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145367	3	11:56:00.501   +0:25:56.756	BT Logger 1			lm_lc_start_inquiry_scan													
    145368	2	11:56:00.501   +0:25:56.756	BT Logger 1			LC_PICONIZER - allocated network clock 1													
    145369	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch event REG received, module INQUIRY SCAN, msi 1													
    145370	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch INQUIRY SCAN suspended													
    145371	6	11:56:00.501   +0:25:56.756	BT Logger 1			LSTO in 265 frames, frame from last sync 311, no sync on LE handle 0x401													
    145372	6	11:56:00.501   +0:25:56.756	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145373	6	11:56:00.501   +0:25:56.756	BT Logger 1			BLE Slave store params: now 98990, next 98989, packet 2173, channel 2													
    145374	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145375	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch cmd start instance, module INQUIRY SCAN, msi: 1													
    145376	2	11:56:00.501   +0:25:56.756	BT Logger 1			LC Inquiry Scan - Start, LAP=0x9e8b33, Window=9 frames													
    145377	5	11:56:00.501   +0:25:56.756	BT Logger 1			synch cmd return event STARTED,module INQUIRY SCAN													
    145378	5	11:56:00.532   +0:25:56.787	BT Logger 1			synch cmd abort instance, module INQUIRY SCAN, msi: 1													
    145379	2	11:56:00.532   +0:25:56.787	BT Logger 1			Inquiry Scan is currently stopping													
    145380	5	11:56:00.532   +0:25:56.787	BT Logger 1			synch cmd return event ABORT_FINISH_WAIT,module INQUIRY SCAN													
    145381	5	11:56:00.532   +0:25:56.787	BT Logger 1			synch event ABORT_FINISH received, module INQUIRY SCAN, msi 1													
    145382	5	11:56:00.532   +0:25:56.787	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145383	5	11:56:00.532   +0:25:56.787	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145384	6	11:56:00.532   +0:25:56.787	BT Logger 1			LSTO in 241 frames, frame from last sync 335, no sync on LE handle 0x401													
    145385	6	11:56:00.532   +0:25:56.787	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145386	6	11:56:00.532   +0:25:56.787	BT Logger 1			BLE Slave store params: now 99014, next 99013, packet 2174, channel 10													
    145387	5	11:56:00.532   +0:25:56.787	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145388	5	11:56:00.548   +0:25:56.803	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145389	5	11:56:00.548   +0:25:56.803	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145390	6	11:56:00.548   +0:25:56.803	BT Logger 1			LSTO in 217 frames, frame from last sync 359, no sync on LE handle 0x401													
    145391	6	11:56:00.548   +0:25:56.803	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145392	6	11:56:00.548   +0:25:56.803	BT Logger 1			BLE Slave store params: now 99038, next 99037, packet 2175, channel 18													
    145393	5	11:56:00.548   +0:25:56.803	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145394	5	11:56:00.564   +0:25:56.819	BT Logger 1			synch cmd start instance, module SNIFF_MASTER, msi: 100													
    145395	5	11:56:00.564   +0:25:56.819	BT Logger 1			synch cmd return event STARTED,module SNIFF_MASTER													
    145396	2	11:56:00.564   +0:25:56.819	BT Logger 1			LSTO - get remaining time, lc handle: 0, remain time: 15999													
    145397	5	11:56:00.564   +0:25:56.819	BT Logger 1			synch event FINISH_REG received, module SNIFF_MASTER, msi 100													
    145398	5	11:56:00.591   +0:25:56.846	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145399	5	11:56:00.592   +0:25:56.847	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145400	6	11:56:00.592   +0:25:56.847	BT Logger 1			LSTO in 193 frames, frame from last sync 383, no sync on LE handle 0x401													
    145401	6	11:56:00.592   +0:25:56.847	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145402	6	11:56:00.592   +0:25:56.847	BT Logger 1			BLE Slave store params: now 99062, next 99061, packet 2176, channel 26													
    145403	5	11:56:00.592   +0:25:56.847	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145404	5	11:56:00.612   +0:25:56.867	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145405	5	11:56:00.612   +0:25:56.867	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145406	6	11:56:00.612   +0:25:56.867	BT Logger 1			LSTO in 169 frames, frame from last sync 407, no sync on LE handle 0x401													
    145407	6	11:56:00.612   +0:25:56.867	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145408	6	11:56:00.612   +0:25:56.867	BT Logger 1			BLE Slave store params: now 99086, next 99085, packet 2177, channel 34													
    145409	5	11:56:00.612   +0:25:56.867	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145410	5	11:56:00.659   +0:25:56.914	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145411	5	11:56:00.659   +0:25:56.914	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145412	6	11:56:00.659   +0:25:56.914	BT Logger 1			LSTO in 145 frames, frame from last sync 431, no sync on LE handle 0x401													
    145413	6	11:56:00.659   +0:25:56.914	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145414	6	11:56:00.659   +0:25:56.914	BT Logger 1			BLE Slave store params: now 99110, next 99109, packet 2178, channel 5													
    145415	5	11:56:00.659   +0:25:56.914	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145416	2	11:56:00.659   +0:25:56.914	BT Logger 1			patch info: handle 1, lsto 66, rssi_val_dbm -65, bd 0xfab984ac													
    145417	5	11:56:00.659   +0:25:56.914	BT Logger 1			synch cmd start instance, module SNIFF_MASTER, msi: 100													
    145418	5	11:56:00.659   +0:25:56.914	BT Logger 1			synch cmd return event STARTED,module SNIFF_MASTER													
    145419	5	11:56:00.690   +0:25:56.945	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145420	5	11:56:00.690   +0:25:56.945	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145421	2	11:56:00.690   +0:25:56.945	BT Logger 1			LSTO - get remaining time, lc handle: 0, remain time: 15998													
    145422	5	11:56:00.690   +0:25:56.945	BT Logger 1			synch event FINISH_REG received, module SNIFF_MASTER, msi 100													
    145423	6	11:56:00.690   +0:25:56.945	BT Logger 1			LSTO in 121 frames, frame from last sync 455, no sync on LE handle 0x401													
    145424	6	11:56:00.690   +0:25:56.945	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145425	6	11:56:00.690   +0:25:56.945	BT Logger 1			BLE Slave store params: now 99134, next 99133, packet 2179, channel 13													
    145426	5	11:56:00.690   +0:25:56.945	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145427	5	11:56:00.705   +0:25:56.960	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145428	5	11:56:00.705   +0:25:56.960	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145429	6	11:56:00.705   +0:25:56.960	BT Logger 1			LSTO in 97 frames, frame from last sync 479, no sync on LE handle 0x401													
    145430	6	11:56:00.705   +0:25:56.960	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145431	6	11:56:00.705   +0:25:56.960	BT Logger 1			BLE Slave store params: now 99158, next 99157, packet 2180, channel 21													
    145432	5	11:56:00.705   +0:25:56.960	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145433	5	11:56:00.737   +0:25:56.992	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145434	5	11:56:00.737   +0:25:56.992	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145435	6	11:56:00.737   +0:25:56.992	BT Logger 1			LSTO in 73 frames, frame from last sync 503, no sync on LE handle 0x401													
    145436	6	11:56:00.737   +0:25:56.992	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145437	6	11:56:00.737   +0:25:56.992	BT Logger 1			BLE Slave store params: now 99182, next 99181, packet 2181, channel 29													
    145438	5	11:56:00.737   +0:25:56.992	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145439	5	11:56:00.784   +0:25:57.039	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145440	5	11:56:00.784   +0:25:57.039	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145441	6	11:56:00.784   +0:25:57.039	BT Logger 1			LSTO in 49 frames, frame from last sync 527, no sync on LE handle 0x401													
    145442	6	11:56:00.784   +0:25:57.039	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145443	6	11:56:00.784   +0:25:57.039	BT Logger 1			BLE Slave store params: now 99206, next 99205, packet 2182, channel 0													
    145444	5	11:56:00.784   +0:25:57.039	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145445	5	11:56:00.784   +0:25:57.039	BT Logger 1			synch cmd start instance, module SNIFF_MASTER, msi: 100													
    145446	5	11:56:00.784   +0:25:57.039	BT Logger 1			synch cmd return event STARTED,module SNIFF_MASTER													
    145447	2	11:56:00.784   +0:25:57.039	BT Logger 1			LSTO - get remaining time, lc handle: 0, remain time: 15998													
    145448	5	11:56:00.784   +0:25:57.039	BT Logger 1			synch event FINISH_REG received, module SNIFF_MASTER, msi 100													
    145449	5	11:56:00.799   +0:25:57.054	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145450	5	11:56:00.799   +0:25:57.054	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145451	6	11:56:00.799   +0:25:57.054	BT Logger 1			LSTO in 25 frames, frame from last sync 551, no sync on LE handle 0x401													
    145452	6	11:56:00.799   +0:25:57.054	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145453	6	11:56:00.799   +0:25:57.054	BT Logger 1			BLE Slave store params: now 99230, next 99229, packet 2183, channel 8													
    145454	5	11:56:00.799   +0:25:57.054	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145455	5	11:56:00.830   +0:25:57.085	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145456	5	11:56:00.830   +0:25:57.085	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145457	6	11:56:00.830   +0:25:57.085	BT Logger 1			LSTO in 1 frames, frame from last sync 575, no sync on LE handle 0x401													
    145458	6	11:56:00.830   +0:25:57.085	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145459	6	11:56:00.830   +0:25:57.085	BT Logger 1			BLE Slave store params: now 99254, next 99253, packet 2184, channel 16													
    145460	5	11:56:00.830   +0:25:57.085	BT Logger 1			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145461	5	11:56:00.862   +0:25:57.117	BT Logger 1			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    145462	5	11:56:00.862   +0:25:57.117	BT Logger 1			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    145463	6	11:56:00.862   +0:25:57.117	BT Logger 1			LSTO in -23 frames, frame from last sync 599, no sync on LE handle 0x401													
    145464	6	11:56:00.862   +0:25:57.117	BT Logger 1			store last event: sync (0) on LE handle 0x401, CRC 0													
    145465	3	11:56:00.862   +0:25:57.117	BT Logger 1			um2lm_send_event UM_EVENT_CON_TERMINATED													
    145466	6	11:56:00.862   +0:25:57.117	BT Logger 1			ble_connection: stopping handle 0, stop context 3													
    145467	6	11:56:00.862   +0:25:57.117	BT Logger 1			wb_connection_manager_release: handle = 0													
    145468	5	11:56:00.862   +0:25:57.117	BT Logger 1			synch event FINISH received, module BLE_CONNECTION_MODULE_ID, msi 1													
    145469	3	11:56:00.862   +0:25:57.117	BT Logger 1			lm_lc_[0x00ae]													
    145470	3	11:56:00.862   +0:25:57.117	BT Logger 1			afh triggering sm state ACTIVE_USE_RSSI, source CHECK_AFH_RUN_STATUS													
    145471	3	11:56:00.862   +0:25:57.117	BT Logger 1			lm_lc_change_triggering													
    145472	3	11:56:00.862   +0:25:57.117	BT Logger 1			afh sm state: old 8 new 8, use_rssi: old 1 new 1													
    145473	3	11:56:00.862   +0:25:57.117	BT Logger 1			afh triggering sm changed to state ACTIVE_USE_RSSI													
    145474	3	11:56:00.862   +0:25:57.117	BT Logger 1			lm_lc_get_piconet_id													
    145475	3	11:56:00.862   +0:25:57.117	BT Logger 1			lm_lc_get_piconet_id													
    145476	3	11:56:00.862   +0:25:57.117	BT Logger 1			lm_lc_is_voice_in_other_piconet													
    145477	3	11:56:00.862   +0:25:57.117	BT Logger 1			lm_lc_update_max_slots_number													
    145478	4	11:56:00.862   +0:25:57.117	BT Logger 1			HCI Send Event: HCI_DISCONNECTION_COMP_EVT													
    145479	2	11:56:00.862   +0:25:57.117	BT Logger 1			HCILL send command: HCILL_WAKE_UP_IND_MSG													
    145480	2	11:56:00.862   +0:25:57.117	BT Logger 1			HCILL state machine is: WAITING FOR WAKE UP ACK													
    145481	2	11:56:00.862   +0:25:57.117	BT Logger 1			HCILL received command: HCILL_WAKE_UP_ACK_MSG													
    145482	2	11:56:00.862   +0:25:57.117	BT Logger 1			HCILL release_transmit_queue													
    145483	2	11:56:00.862   +0:25:57.117	BT Logger 1			HCILL state machine is: AWAKE													
    145484	4	11:56:00.862   +0:25:57.117	BT Logger 1			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    145485	4	11:56:00.862   +0:25:57.117	BT Logger 1			hcic_process_hci_commands: HCI_LE_WRITE_ADVERTISING_DATA (Group 8 Opcode 0x8)													
    145486	3	11:56:00.862   +0:25:57.117	BT Logger 1			lm2um_WRITE_ADV_DATA													
    145487	4	11:56:00.862   +0:25:57.117	BT Logger 1			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    145488	4	11:56:00.862   +0:25:57.117	BT Logger 1			HCI Send Event: HCI_COMMAND_COMPLETE_EVT													
    145489	4	11:56:00.862   +0:25:57.117	BT Logger 1			hcic_process_hci_commands: HCI_LE_WRITE_SCAN_RESPONSE_DATA (Group 8 Opcode 0x9)													
    145490	4	11:56:00.877   +0:25:57.132	HCI/LMP viewer 1				0x000183CE	0x000183CE		HCI_Disconnection_Complete_Event									Event Name: HCI_Disconnection_Complete_Event
    
    
    
    Status = 0x00 (Success)
    
    Connection Handle = 0x0401
    
    Reason = 0x08 (Connection Timeout)
    145491	1	11:56:00.877   +0:25:57.132	HCI/LMP viewer 1				0x000183D1	0x000183D1	HCI_LE_Write_Advertising_Data										Command Name:HCI_LE_Write_Advertising_Data
    
    
    
    Data Length = 0x1e
    
    Advertising data = "02:01:02:11:07:83:03:1E:B3:1A:28:47:03:97:55:20"
    145492	4	11:56:00.877   +0:25:57.132	HCI/LMP viewer 1				0x000183D1	0x000183D1		HCI_Command_Complete_LE_Write_Advertising_Data_Event									Event Name: HCI_Command_Complete_LE_Write_Advertising_Data_Event
    
    
    
    Number HCI commands = 0x01
    
    Command Opcode = 0x2008
    
    Status = 0x00 (Success)
    145493	3	11:56:00.877   +0:25:57.132	BT Logger 1			lm2um_SET_SCAN_RSP_PARAMETERS													
    145494	4	11:56:00.877   +0:25:57.132	BT Logger 1			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    145495	4	11:56:00.877   +0:25:57.132	BT Logger 1			HCI Send Event: HCI_COMMAND_COMPLETE_EVT													
    145496	4	11:56:00.877   +0:25:57.132	BT Logger 1			hcic_process_hci_commands: HCI_LE_WRITE_ADVERTISING_PARAMETERS (Group 8 Opcode 0x6)													
    145497	3	11:56:00.877   +0:25:57.132	BT Logger 1			lm2um_SET_ADV_PARAMETERS													
    145498	4	11:56:00.877   +0:25:57.132	BT Logger 1			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    145499	4	11:56:00.877   +0:25:57.132	BT Logger 1			HCI Send Event: HCI_COMMAND_COMPLETE_EVT													
    145500	4	11:56:00.877   +0:25:57.132	BT Logger 1			hcic_process_hci_commands: HCI_LE_WRITE_ADVERTISE_ENABLE (Group 8 Opcode 0xa)													
    145501	3	11:56:00.877   +0:25:57.132	BT Logger 1			lm2um_START_ADV													
    145502	6	11:56:00.893   +0:25:57.148	BT Logger 1			wb_connection_manager_allocate: handle = 0													
    145503	5	11:56:00.893   +0:25:57.148	BT Logger 1			synch event REG received, module WB_UNDIRECT_ADV_MODULE_ID, msi 1													
    145504	5	11:56:00.893   +0:25:57.148	BT Logger 1			synch cmd start instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    145505	5	11:56:00.893   +0:25:57.148	BT Logger 1			synch cmd return event STARTED,module WB_UNDIRECT_ADV_MODULE_ID													
    145506	3	11:56:00.893   +0:25:57.148	BT Logger 1			lm_lc_[0x00b1]													
    145507	4	11:56:00.893   +0:25:57.148	BT Logger 1			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    145508	4	11:56:00.893   +0:25:57.148	BT Logger 1			HCI Send Event: HCI_COMMAND_COMPLETE_EVT													
    145509	6	11:56:00.893   +0:25:57.148	BT Logger 1			Start Show List													
    145510	2	11:56:00.893   +0:25:57.148	BT Logger 1			synch event params: module %1, msi: %X, group id: %d													
    145511	1	11:56:00.893   +0:25:57.148	HCI/LMP viewer 1				0x000183D2	0x000183C2	HCI_LE_Write_Scan_Response_Data										Command Name:HCI_LE_Write_Scan_Response_Data
    
    
    
    Data Length = 0x0c
    
    Data = "07:09:55:4E:49:46:49:35:00:00:00:00"
    145512	4	11:56:00.893   +0:25:57.148	HCI/LMP viewer 1				0x000183D3	0x000183D3		HCI_Command_Complete_LE_Write_Scan_Response_Data_Event									Event Name: HCI_Command_Complete_LE_Write_Scan_Response_Data_Event
    
    
    
    Number HCI commands = 0x01
    
    Command Opcode = 0x2009
    
    Status = 0x00 (Success)
    145513	1	11:56:00.893   +0:25:57.148	HCI/LMP viewer 1				0x000183D4	0x000183D4	HCI_LE_Write_Advertising_Parameters										Command Name:HCI_LE_Write_Advertising_Parameters
    
    
    
    Advertise Min Interval = 0x00a0
    
    Advertise Max Interval = 0x0140
    
    Advertising Type = 0x00 (Connectable Undirect Event)
    
    Own_Address_Type = 0x00 (Public Device Address)
    
    Direct Address Type = 0x00 (Public Device Address)
    
    Direct Address = "00:00:00:00:00:00"
    
    Advertising Channel Map = 0x07
    
    Advertising Filter Policy = 0x00 (Allow Scan Request from Any, Allow Connect Request from Any)
    145514	4	11:56:00.893   +0:25:57.148	HCI/LMP viewer 1				0x000183D4	0x000183D4		HCI_Command_Complete_LE_Write_Advertising_Parameters_Event									Event Name: HCI_Command_Complete_LE_Write_Advertising_Parameters_Event
    
    
    
    Number HCI commands = 0x01
    
    Command Opcode = 0x2006
    
    Status = 0x00 (Success)
    145515	1	11:56:00.893   +0:25:57.148	HCI/LMP viewer 1				0x000183D5	0x000183D5	HCI_LE_Write_Advertise_Enable										Command Name:HCI_LE_Write_Advertise_Enable
    
    
    
    Advertise Mode = 0x01 (Start)
    145516	5	11:56:01.370   +0:25:57.625	BT Logger 1			synch cmd start instance, module SNIFF_MASTER, msi: 100													
    145517	5	11:56:01.370   +0:25:57.625	BT Logger 1			synch cmd return event STARTED,module SNIFF_MASTER													
    145518	2	11:56:01.370   +0:25:57.625	BT Logger 1			LSTO - get remaining time, lc handle: 0, remain time: 15998													
    145519	5	11:56:01.370   +0:25:57.625	BT Logger 1			synch event FINISH_REG received, module SNIFF_MASTER, msi 100													
    145520	3	11:56:01.526   +0:25:57.781	BT Logger 1			start afh rssi scan pattern, is old process running 0, use RSSI = 1													
    145521	3	11:56:01.526   +0:25:57.781	BT Logger 1			lm_lc_get_min_rssi_air													
    145522	3	11:56:01.526   +0:25:57.781	BT Logger 1			lm_lc_start_afh_rssi_sampling													
    145523	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch event REG received, module FAST_RSSI_SCAN, msi C													
    145524	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch cmd start instance, module FAST_RSSI_SCAN, msi: C													
    145525	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch cmd return event STARTED,module FAST_RSSI_SCAN													
    145526	2	11:56:01.526   +0:25:57.781	BT Logger 1			lc_classification_int_handler: scan 0, out of 8, is valid 1													
    145527	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch event FINISH_REG received, module FAST_RSSI_SCAN, msi C													
    145528	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145529	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145530	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145531	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145532	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145533	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145534	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145535	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  2,  3													
    145536	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   2,  0,  0													
    145537	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145538	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145539	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145540	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145541	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch cmd start instance, module SNIFF_MASTER, msi: 100													
    145542	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch cmd return event STARTED,module SNIFF_MASTER													
    145543	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145544	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145545	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145546	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145547	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145548	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145549	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  255													
    145550	2	11:56:01.526   +0:25:57.781	BT Logger 1			LSTO - get remaining time, lc handle: 0, remain time: 15999													
    145551	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch event FINISH_REG received, module SNIFF_MASTER, msi 100													
    145552	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch cmd start instance, module FAST_RSSI_SCAN, msi: C													
    145553	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch cmd return event STARTED,module FAST_RSSI_SCAN													
    145554	2	11:56:01.526   +0:25:57.781	BT Logger 1			lc_classification_int_handler: scan 1, out of 8, is valid 1													
    145555	5	11:56:01.526   +0:25:57.781	BT Logger 1			synch event FINISH_REG received, module FAST_RSSI_SCAN, msi C													
    145556	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145557	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145558	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145559	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145560	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145561	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145562	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    145563	3	11:56:01.526   +0:25:57.781	BT Logger 1			last scan PHY grade:  0,   0,  0,  0													
    

    Working_OnlyBLE.txt
    13809	6	11:33:51.495   +0:03:47.750	<No Port>			store last event: sync (0) on LE handle 0x401, CRC 0													
    13810	6	11:33:51.495   +0:03:47.750	<No Port>			BLE Slave store params: now 60645, next 60644, packet 1822, channel 29													
    13811	5	11:33:51.511   +0:03:47.766	<No Port>			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    13812	5	11:33:51.526   +0:03:47.781	<No Port>			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    13813	5	11:33:51.542   +0:03:47.797	<No Port>			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    13814	6	11:33:51.542   +0:03:47.797	<No Port>			LSTO in 72 frames, frame from last sync 504, no sync on LE handle 0x401													
    13815	6	11:33:51.542   +0:03:47.797	<No Port>			store last event: sync (0) on LE handle 0x401, CRC 0													
    13816	6	11:33:51.542   +0:03:47.797	<No Port>			BLE Slave store params: now 60669, next 60668, packet 1823, channel 6													
    13817	5	11:33:51.542   +0:03:47.797	<No Port>			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    13818	5	11:33:51.573   +0:03:47.828	<No Port>			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    13819	5	11:33:51.573   +0:03:47.828	<No Port>			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    13820	6	11:33:51.573   +0:03:47.828	<No Port>			LSTO in 48 frames, frame from last sync 528, no sync on LE handle 0x401													
    13821	6	11:33:51.573   +0:03:47.828	<No Port>			store last event: sync (0) on LE handle 0x401, CRC 0													
    13822	6	11:33:51.573   +0:03:47.828	<No Port>			BLE Slave store params: now 60694, next 60692, packet 1824, channel 20													
    13823	5	11:33:51.573   +0:03:47.828	<No Port>			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    13824	5	11:33:51.604   +0:03:47.859	<No Port>			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    13825	5	11:33:51.604   +0:03:47.859	<No Port>			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    13826	6	11:33:51.604   +0:03:47.859	<No Port>			LSTO in 24 frames, frame from last sync 552, no sync on LE handle 0x401													
    13827	6	11:33:51.604   +0:03:47.859	<No Port>			store last event: sync (0) on LE handle 0x401, CRC 0													
    13828	6	11:33:51.604   +0:03:47.859	<No Port>			BLE Slave store params: now 60718, next 60716, packet 1825, channel 34													
    13829	5	11:33:51.604   +0:03:47.859	<No Port>			synch event FINISH_REG received, module BLE_CONNECTION_MODULE_ID, msi 1													
    13830	4	11:33:51.651   +0:03:47.906	<No Port>				0x0000ED46	0x0000ED46		HCI_Disconnection_Complete_Event									Event Name: HCI_Disconnection_Complete_Event
    
    
    
    Status = 0x00 (Success)
    
    Connection Handle = 0x0401
    
    Reason = 0x08 (Connection Timeout)
    13831	1	11:33:51.651   +0:03:47.906	<No Port>				0x0000ED49	0x0000ED49	HCI_LE_Write_Advertising_Data										Command Name:HCI_LE_Write_Advertising_Data
    
    
    
    Data Length = 0x1e
    
    Advertising data = "02:01:02:11:07:83:03:1E:B3:1A:28:47:03:97:55:20"
    13832	4	11:33:51.651   +0:03:47.906	<No Port>				0x0000ED49	0x0000ED49		HCI_Command_Complete_LE_Write_Advertising_Data_Event									Event Name: HCI_Command_Complete_LE_Write_Advertising_Data_Event
    
    
    
    Number HCI commands = 0x01
    
    Command Opcode = 0x2008
    
    Status = 0x00 (Success)
    13833	1	11:33:51.667   +0:03:47.922	<No Port>				0x0000ED4A	0x0000ED4A	HCI_LE_Write_Scan_Response_Data										Command Name:HCI_LE_Write_Scan_Response_Data
    
    
    
    Data Length = 0x0c
    
    Data = "07:09:55:4E:49:46:49:35:00:00:00:00"
    13834	4	11:33:51.667   +0:03:47.922	<No Port>				0x0000ED4B	0x0000ED4B		HCI_Command_Complete_LE_Write_Advertising_Data_Event									Event Name: HCI_Command_Complete_LE_Write_Advertising_Data_Event
    
    
    
    Number HCI commands = 0x01
    
    Command Opcode = 0x2008
    
    Status = 0x00 (Success)
    13835	1	11:33:51.667   +0:03:47.922	<No Port>				0x0000ED4C	0x0000ED4C	HCI_LE_Write_Advertising_Parameters										Command Name:HCI_LE_Write_Advertising_Parameters
    
    
    
    Advertise Min Interval = 0x00a0
    
    Advertise Max Interval = 0x0140
    
    Advertising Type = 0x00 (Connectable Undirect Event)
    
    Own_Address_Type = 0x00 (Public Device Address)
    
    Direct Address Type = 0x00 (Public Device Address)
    
    Direct Address = "00:00:00:00:00:00"
    
    Advertising Channel Map = 0x07
    
    Advertising Filter Policy = 0x00 (Allow Scan Request from Any, Allow Connect Request from Any)
    13836	4	11:33:51.667   +0:03:47.922	<No Port>				0x0000ED4C	0x0000ED4C		HCI_Command_Complete_LE_Write_Advertising_Parameters_Event									Event Name: HCI_Command_Complete_LE_Write_Advertising_Parameters_Event
    
    
    
    Number HCI commands = 0x01
    
    Command Opcode = 0x2006
    
    Status = 0x00 (Success)
    13837	1	11:33:51.683   +0:03:47.938	<No Port>				0x0000ED4D	0x0000ED4D	HCI_LE_Write_Advertise_Enable										Command Name:HCI_LE_Write_Advertise_Enable
    
    
    
    Advertise Mode = 0x01 (Start)
    13838	5	11:33:51.683   +0:03:47.938	<No Port>			synch cmd start instance, module BLE_CONNECTION_MODULE_ID, msi: 1													
    13839	5	11:33:51.683   +0:03:47.938	<No Port>			synch cmd return event STARTED,module BLE_CONNECTION_MODULE_ID													
    13840	6	11:33:51.683   +0:03:47.938	<No Port>			LSTO in 0 frames, frame from last sync 576, no sync on LE handle 0x401													
    13841	6	11:33:51.683   +0:03:47.938	<No Port>			store last event: sync (0) on LE handle 0x401, CRC 0													
    13842	3	11:33:51.683   +0:03:47.938	<No Port>			um2lm_send_event UM_EVENT_CON_TERMINATED													
    13843	6	11:33:51.683   +0:03:47.938	<No Port>			ble_connection: stopping handle 0, stop context 3													
    13844	6	11:33:51.683   +0:03:47.938	<No Port>			wb_connection_manager_release: handle = 0													
    13845	5	11:33:51.683   +0:03:47.938	<No Port>			synch event FINISH received, module BLE_CONNECTION_MODULE_ID, msi 1													
    13846	3	11:33:51.683   +0:03:47.938	<No Port>			lm_lc_[0x00ae]													
    13847	3	11:33:51.683   +0:03:47.938	<No Port>			afh triggering sm state NO_AFH, source CHECK_AFH_RUN_STATUS													
    13848	4	11:33:51.683   +0:03:47.938	<No Port>			HCI Send Event: HCI_DISCONNECTION_COMP_EVT													
    13849	2	11:33:51.683   +0:03:47.938	<No Port>			HCILL send command: HCILL_WAKE_UP_IND_MSG													
    13850	2	11:33:51.683   +0:03:47.938	<No Port>			HCILL state machine is: WAITING FOR WAKE UP ACK													
    13851	2	11:33:51.683   +0:03:47.938	<No Port>			HCILL received command: HCILL_WAKE_UP_ACK_MSG													
    13852	2	11:33:51.683   +0:03:47.938	<No Port>			HCILL release_transmit_queue													
    13853	2	11:33:51.683   +0:03:47.938	<No Port>			HCILL state machine is: AWAKE													
    13854	4	11:33:51.683   +0:03:47.938	<No Port>			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    13855	4	11:33:51.683   +0:03:47.938	<No Port>			hcic_process_hci_commands: [0x2028] (Group 8 Opcode 0x8)													
    13856	3	11:33:51.683   +0:03:47.938	<No Port>			lm2um_WRITE_ADV_DATA													
    13857	4	11:33:51.683   +0:03:47.938	<No Port>			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    13858	4	11:33:51.683   +0:03:47.938	<No Port>			HCI Send Event: HCI_AUTHENTICATION_COMP_EVT													
    13859	4	11:33:51.683   +0:03:47.938	<No Port>			hcic_process_hci_commands: HCI_LE_WRITE_SCAN_RESPONSE_DATA (Group 8 Opcode 0x9)													
    13860	3	11:33:51.683   +0:03:47.938	<No Port>			lm2um_SET_SCAN_RSP_PARAMETERS													
    13861	4	11:33:51.683   +0:03:47.938	<No Port>			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    13862	4	11:33:51.683   +0:03:47.938	<No Port>			HCI Send Event: HCI_COMMAND_COMPLETE_EVT													
    13863	4	11:33:51.683   +0:03:47.938	<No Port>			hcic_process_hci_commands: HCI_LE_WRITE_ADVERTISING_PARAMETERS (Group 8 Opcode 0x6)													
    13864	3	11:33:51.683   +0:03:47.938	<No Port>			lm2um_SET_ADV_PARAMETERS													
    13865	4	11:33:51.683   +0:03:47.938	<No Port>			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    13866	4	11:33:51.683   +0:03:47.938	<No Port>			HCI Send Event: HCI_COMMAND_COMPLETE_EVT													
    13867	4	11:33:51.683   +0:03:47.938	<No Port>			hcic_process_hci_commands: HCI_LE_WRITE_ADVERTISE_ENABLE (Group 8 Opcode 0xa)													
    13868	3	11:33:51.683   +0:03:47.938	<No Port>			lm2um_START_ADV													
    13869	6	11:33:51.683   +0:03:47.938	<No Port>			wb_connection_manager_allocate: handle = 0													
    13870	5	11:33:51.683   +0:03:47.938	<No Port>			synch event REG received, module WB_UNDIRECT_ADV_MODULE_ID, msi 1													
    13871	4	11:33:51.683   +0:03:47.938	<No Port>				0x0000ED4D	0x0000ED4D		HCI_Command_Complete_LE_Write_Advertise_Enable_Event									Event Name: HCI_Command_Complete_LE_Write_Advertise_Enable_Event
    
    
    
    Number HCI commands = 0x01
    
    Command Opcode = 0x200a
    
    Status = 0x00 (Success)
    13872	5	11:33:51.698   +0:03:47.953	<No Port>			synch cmd start instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13873	5	11:33:51.698   +0:03:47.953	<No Port>			synch cmd return event STARTED,module WB_UNDIRECT_ADV_MODULE_ID													
    13874	3	11:33:51.698   +0:03:47.953	<No Port>			lm_lc_[0x00b1]													
    13875	4	11:33:51.698   +0:03:47.953	<No Port>			hcic_get_num_of_host_commands. Total free = 3, Reported to host = 1													
    13876	4	11:33:51.698   +0:03:47.953	<No Port>			HCI Send Event: HCI_COMMAND_COMPLETE_EVT													
    13877	2	11:33:51.714   +0:03:47.969	<No Port>			HCILL send command: HCILL_GOTO_SLEEP_IND_MSG													
    13878	2	11:33:51.714   +0:03:47.969	<No Port>			HCILL state machine is: WAITING FOR SLEEP ACK													
    13879	2	11:33:51.714   +0:03:47.969	<No Port>			HCILL received command: HCILL_GOTO_SLEEP_ACK_MSG													
    13880	2	11:33:51.714   +0:03:47.969	<No Port>			HCILL state machine is: SLEEP													
    13881	3	11:33:52.025   +0:03:48.280	<No Port>			lm_lc_start_page_scan													
    13882	2	11:33:52.025   +0:03:48.280	<No Port>			LC_PICONIZER - allocated network clock 1													
    13883	5	11:33:52.025   +0:03:48.280	<No Port>			synch event REG received, module PAGE SCAN, msi 1													
    13884	5	11:33:52.025   +0:03:48.280	<No Port>			synch cmd abort instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13885	5	11:33:52.025   +0:03:48.280	<No Port>			synch cmd return event ABORT_FINISH_SUSPENDED,module WB_UNDIRECT_ADV_MODULE_ID													
    13886	5	11:33:52.025   +0:03:48.280	<No Port>			synch cmd start instance, module PAGE SCAN, msi: 1													
    13887	2	11:33:52.025   +0:03:48.280	<No Port>			Page Scan start, Window = 9 frames													
    13888	5	11:33:52.025   +0:03:48.280	<No Port>			synch cmd return event STARTED,module PAGE SCAN													
    13889	5	11:33:52.025   +0:03:48.280	<No Port>			synch event FINISH received, module PAGE SCAN, msi 1													
    13890	5	11:33:52.025   +0:03:48.280	<No Port>			synch cmd start instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13891	5	11:33:52.025   +0:03:48.280	<No Port>			synch cmd return event STARTED,module WB_UNDIRECT_ADV_MODULE_ID													
    13892	3	11:33:53.301   +0:03:49.556	<No Port>			lm_lc_start_page_scan													
    13893	2	11:33:53.301   +0:03:49.556	<No Port>			LC_PICONIZER - allocated network clock 1													
    13894	5	11:33:53.301   +0:03:49.556	<No Port>			synch event REG received, module PAGE SCAN, msi 1													
    13895	5	11:33:53.301   +0:03:49.556	<No Port>			synch cmd abort instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13896	5	11:33:53.301   +0:03:49.556	<No Port>			synch cmd return event ABORT_FINISH_SUSPENDED,module WB_UNDIRECT_ADV_MODULE_ID													
    13897	5	11:33:53.301   +0:03:49.556	<No Port>			synch cmd start instance, module PAGE SCAN, msi: 1													
    13898	2	11:33:53.301   +0:03:49.556	<No Port>			Page Scan start, Window = 9 frames													
    13899	5	11:33:53.301   +0:03:49.556	<No Port>			synch cmd return event STARTED,module PAGE SCAN													
    13900	5	11:33:53.317   +0:03:49.572	<No Port>			synch event FINISH received, module PAGE SCAN, msi 1													
    13901	5	11:33:53.317   +0:03:49.572	<No Port>			synch cmd start instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13902	5	11:33:53.317   +0:03:49.572	<No Port>			synch cmd return event STARTED,module WB_UNDIRECT_ADV_MODULE_ID													
    13903	3	11:33:53.317   +0:03:49.572	<No Port>			lm_lc_start_inquiry_scan													
    13904	2	11:33:53.317   +0:03:49.572	<No Port>			LC_PICONIZER - allocated network clock 1													
    13905	5	11:33:53.317   +0:03:49.572	<No Port>			synch event REG received, module INQUIRY SCAN, msi 1													
    13906	5	11:33:53.317   +0:03:49.572	<No Port>			synch cmd abort instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13907	5	11:33:53.317   +0:03:49.572	<No Port>			synch cmd return event ABORT_FINISH_SUSPENDED,module WB_UNDIRECT_ADV_MODULE_ID													
    13908	5	11:33:53.317   +0:03:49.572	<No Port>			synch cmd start instance, module INQUIRY SCAN, msi: 1													
    13909	2	11:33:53.317   +0:03:49.572	<No Port>			LC Inquiry Scan - Start, LAP=0x9e8b33, Window=9 frames													
    13910	5	11:33:53.317   +0:03:49.572	<No Port>			synch cmd return event STARTED,module INQUIRY SCAN													
    13911	5	11:33:53.317   +0:03:49.572	<No Port>			synch event FINISH received, module INQUIRY SCAN, msi 1													
    13912	5	11:33:53.317   +0:03:49.572	<No Port>			synch cmd start instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13913	5	11:33:53.317   +0:03:49.572	<No Port>			synch cmd return event STARTED,module WB_UNDIRECT_ADV_MODULE_ID													
    13914	3	11:33:54.573   +0:03:50.828	<No Port>			lm_lc_start_page_scan													
    13915	2	11:33:54.573   +0:03:50.828	<No Port>			LC_PICONIZER - allocated network clock 1													
    13916	5	11:33:54.573   +0:03:50.828	<No Port>			synch event REG received, module PAGE SCAN, msi 1													
    13917	5	11:33:54.573   +0:03:50.828	<No Port>			synch cmd abort instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13918	5	11:33:54.573   +0:03:50.828	<No Port>			synch cmd return event ABORT_FINISH_SUSPENDED,module WB_UNDIRECT_ADV_MODULE_ID													
    13919	5	11:33:54.573   +0:03:50.828	<No Port>			synch cmd start instance, module PAGE SCAN, msi: 1													
    13920	2	11:33:54.573   +0:03:50.828	<No Port>			Page Scan start, Window = 9 frames													
    13921	5	11:33:54.573   +0:03:50.828	<No Port>			synch cmd return event STARTED,module PAGE SCAN													
    13922	5	11:33:54.573   +0:03:50.828	<No Port>			synch event FINISH received, module PAGE SCAN, msi 1													
    13923	5	11:33:54.573   +0:03:50.828	<No Port>			synch cmd start instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13924	5	11:33:54.573   +0:03:50.828	<No Port>			synch cmd return event STARTED,module WB_UNDIRECT_ADV_MODULE_ID													
    13925	3	11:33:55.856   +0:03:52.111	<No Port>			lm_lc_start_page_scan													
    13926	2	11:33:55.856   +0:03:52.111	<No Port>			LC_PICONIZER - allocated network clock 1													
    13927	5	11:33:55.856   +0:03:52.111	<No Port>			synch event REG received, module PAGE SCAN, msi 1													
    13928	5	11:33:55.856   +0:03:52.111	<No Port>			synch cmd abort instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13929	5	11:33:55.856   +0:03:52.111	<No Port>			synch cmd return event ABORT_FINISH_SUSPENDED,module WB_UNDIRECT_ADV_MODULE_ID													
    13930	5	11:33:55.856   +0:03:52.111	<No Port>			synch cmd start instance, module PAGE SCAN, msi: 1													
    13931	2	11:33:55.856   +0:03:52.111	<No Port>			Page Scan start, Window = 9 frames													
    13932	5	11:33:55.856   +0:03:52.111	<No Port>			synch cmd return event STARTED,module PAGE SCAN													
    13933	5	11:33:55.871   +0:03:52.126	<No Port>			synch event FINISH received, module PAGE SCAN, msi 1													
    13934	5	11:33:55.871   +0:03:52.126	<No Port>			synch cmd start instance, module WB_UNDIRECT_ADV_MODULE_ID, msi: 1													
    13935	5	11:33:55.871   +0:03:52.126	<No Port>			synch cmd return event STARTED,module WB_UNDIRECT_ADV_MODULE_ID													
    13936	3	11:33:55.871   +0:03:52.126	<No Port>			lm_lc_start_inquiry_scan													
    13937	2	11:33:55.871   +0:03:52.126	<No Port>			LC_PICONIZER - allocated network clock 1													
    13938	5	11:33:55.871   +0:03:52.126	<No Port>			synch event REG received, module INQUIRY SCAN, msi 1													
    

    Thanks, 

    Indu