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.

HostTestRelease Observer mode

Is it possible to have the HostTestRelease application report advertisement packets as it receives them?  Currently I'm using DeviceDiscovery but this only reports one adv packet and one scan response per device.

I can see the advertisement packets when using the sniffer program so I know they are being sent.

  • Hi Jonathan,

    There is a filter to make sure that there's no redundant processing. I'm not sure if it's possible to disable it though, might be it's part of the library code. Why do you need the multiple packets?

    Best Regards

    Joakim

  • We are developing a product that acts as a combo broadcaster/peripheral.  When its not connected it includes extra data in the adv. payload, such as battery level and alarm state.


    We currently use the HostTestRelease app with the devkit usb dongle to interact with during development and test the product .  We would like to be able to put the dongle into a mode where it reports the incoming adv. payloads so we can verify the payload is working correctly.

    I can rebuild the HostTestRelease app if there is something that can be changed there.

  • Hi Jonathan,

    I understand. There is a parameter in the GAP settings, which turn off the duplicate filtering (TGAP_FILTER_ADV_REPORTS) although I have not tested myself. 

    You should be able to do something like;

    uint8 filterAdvReports = FALSE;

    GAP_SetParamValue( TGAP_FILTER_ADV_REPORTS, filterAdvReports ); 

  • Ok tried setting this field but the device discovery response didn't change.  The 00:18:31:E4:67:A1 has a 100ms adv interval but only shows up once.  Would I use something other than device discovery after disabling filter?


    Log from BTool:

    ------------------------------------------------------------------------------------------------------------------------
    [13] : <Tx> - 09:01:49.622
    -Type		: 0x01 (Command)
    -Opcode		: 0xFE30 (GAP_SetParam)
    -Data Length	: 0x03 (3) byte(s)
     ParamID		: 0x21 (TGAP_FILTER_ADV_REPORTS)
     ParamValue	: 0x0000 (0)
    Dump(Tx):
    01 30 FE 03 21 00 00 
    ------------------------------------------------------------------------------------------------------------------------
    [14] : <Rx> - 09:01:49.644
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x06 (6) bytes(s)
     Event		: 0x067F (GAP_HCI_ExtentionCommandStatus)
     Status		: 0x00 (Success)
     OpCode		: 0xFE30 (GAP_SetParam)
     DataLength	: 0x00 (0)
    Dump(Rx):
    04 FF 06 7F 06 00 30 FE 00 
    ------------------------------------------------------------------------------------------------------------------------
    [15] : <Tx> - 09:01:59.234
    -Type		: 0x01 (Command)
    -Opcode		: 0xFE04 (GAP_DeviceDiscoveryRequest)
    -Data Length	: 0x03 (3) byte(s)
     Mode		: 0x03 (All)
     ActiveScan	: 0x00 (Disable)
     WhiteList		: 0x00 (Disable)
    Dump(Tx):
    01 04 FE 03 03 00 00 
    ------------------------------------------------------------------------------------------------------------------------
    [16] : <Rx> - 09:01:59.259
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x06 (6) bytes(s)
     Event		: 0x067F (GAP_HCI_ExtentionCommandStatus)
     Status		: 0x00 (Success)
     OpCode		: 0xFE04 (GAP_DeviceDiscoveryRequest)
     DataLength	: 0x00 (0)
    Dump(Rx):
    04 FF 06 7F 06 00 04 FE 00 
    ------------------------------------------------------------------------------------------------------------------------
    [17] : <Rx> - 09:01:59.384
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x10 (16) bytes(s)
     Event		: 0x060D (GAP_DeviceInformation)
     Status		: 0x00 (Success)
     EventType	: 0x00 (Connectable Undirect Advertisement)
     AddrType	: 0x00 (Public)
     Addr		: 00:18:31:E4:67:A1
     Rssi		: 0xDF (223)
     DataLength	: 0x03 (3)
     Data		: 02:01:06
    Dump(Rx):
    04 FF 10 0D 06 00 00 00 A1 67 E4 31 18 00 DF 03 
    02 01 06 
    ------------------------------------------------------------------------------------------------------------------------
    [18] : <Rx> - 09:02:06.123
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x10 (16) bytes(s)
     Event		: 0x060D (GAP_DeviceInformation)
     Status		: 0x00 (Success)
     EventType	: 0x00 (Connectable Undirect Advertisement)
     AddrType	: 0x01 (Static)
     Addr		: EA:26:B3:16:6C:CC
     Rssi		: 0xAC (172)
     DataLength	: 0x03 (3)
     Data		: 02:01:06
    Dump(Rx):
    04 FF 10 0D 06 00 00 01 CC 6C 16 B3 26 EA AC 03 
    02 01 06 
    ------------------------------------------------------------------------------------------------------------------------
    [19] : <Rx> - 09:02:09.512
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x14 (20) bytes(s)
     Event		: 0x0601 (GAP_DeviceDiscoveryDone)
     Status		: 0x00 (Success)
     NumDevs	: 0x02 (2)
     Device #0
     EventType	: 0x00 (Connectable Undirect Advertisement)
     AddrType	: 0x00 (Public)
     Addr		: 00:18:31:E4:67:A1
     Device #1
     EventType	: 0x00 (Connectable Undirect Advertisement)
     AddrType	: 0x01 (Static)
     Addr		: EA:26:B3:16:6C:CC
    Dump(Rx):
    04 FF 14 01 06 00 02 00 00 A1 67 E4 31 18 00 00 
    01 CC 6C 16 B3 26 EA 
    ------------------------------------------------------------------------------------------------------------------------
    [20] : <Tx> - 09:02:17.670
    -Type		: 0x01 (Command)
    -Opcode		: 0xFE30 (GAP_SetParam)
    -Data Length	: 0x03 (3) byte(s)
     ParamID		: 0x21 (TGAP_FILTER_ADV_REPORTS)
     ParamValue	: 0x0001 (1)
    Dump(Tx):
    01 30 FE 03 21 01 00 
    ------------------------------------------------------------------------------------------------------------------------
    [21] : <Rx> - 09:02:17.687
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x06 (6) bytes(s)
     Event		: 0x067F (GAP_HCI_ExtentionCommandStatus)
     Status		: 0x00 (Success)
     OpCode		: 0xFE30 (GAP_SetParam)
     DataLength	: 0x00 (0)
    Dump(Rx):
    04 FF 06 7F 06 00 30 FE 00 
    ------------------------------------------------------------------------------------------------------------------------
    [22] : <Tx> - 09:02:21.184
    -Type		: 0x01 (Command)
    -Opcode		: 0xFE04 (GAP_DeviceDiscoveryRequest)
    -Data Length	: 0x03 (3) byte(s)
     Mode		: 0x03 (All)
     ActiveScan	: 0x00 (Disable)
     WhiteList		: 0x00 (Disable)
    Dump(Tx):
    01 04 FE 03 03 00 00 
    ------------------------------------------------------------------------------------------------------------------------
    [23] : <Rx> - 09:02:21.201
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x06 (6) bytes(s)
     Event		: 0x067F (GAP_HCI_ExtentionCommandStatus)
     Status		: 0x00 (Success)
     OpCode		: 0xFE04 (GAP_DeviceDiscoveryRequest)
     DataLength	: 0x00 (0)
    Dump(Rx):
    04 FF 06 7F 06 00 04 FE 00 
    ------------------------------------------------------------------------------------------------------------------------
    [24] : <Rx> - 09:02:21.259
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x10 (16) bytes(s)
     Event		: 0x060D (GAP_DeviceInformation)
     Status		: 0x00 (Success)
     EventType	: 0x00 (Connectable Undirect Advertisement)
     AddrType	: 0x00 (Public)
     Addr		: 00:18:31:E4:67:A1
     Rssi		: 0xDE (222)
     DataLength	: 0x03 (3)
     Data		: 02:01:06
    Dump(Rx):
    04 FF 10 0D 06 00 00 00 A1 67 E4 31 18 00 DE 03 
    02 01 06 
    ------------------------------------------------------------------------------------------------------------------------
    [25] : <Rx> - 09:02:31.142
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x10 (16) bytes(s)
     Event		: 0x060D (GAP_DeviceInformation)
     Status		: 0x00 (Success)
     EventType	: 0x00 (Connectable Undirect Advertisement)
     AddrType	: 0x01 (Static)
     Addr		: EA:26:B3:16:6C:CC
     Rssi		: 0xAD (173)
     DataLength	: 0x03 (3)
     Data		: 02:01:06
    Dump(Rx):
    04 FF 10 0D 06 00 00 01 CC 6C 16 B3 26 EA AD 03 
    02 01 06 
    ------------------------------------------------------------------------------------------------------------------------
    [26] : <Rx> - 09:02:31.464
    -Type		: 0x04 (Event)
    -EventCode	: 0xFF (HCI_LE_ExtEvent)
    -Data Length	: 0x14 (20) bytes(s)
     Event		: 0x0601 (GAP_DeviceDiscoveryDone)
     Status		: 0x00 (Success)
     NumDevs	: 0x02 (2)
     Device #0
     EventType	: 0x00 (Connectable Undirect Advertisement)
     AddrType	: 0x00 (Public)
     Addr		: 00:18:31:E4:67:A1
     Device #1
     EventType	: 0x00 (Connectable Undirect Advertisement)
     AddrType	: 0x01 (Static)
     Addr		: EA:26:B3:16:6C:CC
    Dump(Rx):
    04 FF 14 01 06 00 02 00 00 A1 67 E4 31 18 00 00 
    01 CC 6C 16 B3 26 EA 
    ------------------------------------------------------------------------------------------------------------------------

  • Hi Jonathan,

    As it turns out, disabling the filter will only allow you to get multiple responses if the advertising data is different (from same advertising address). I suppose you are not changing the data over time?

  • Ahh okay, thats interesting.  No the current advertising data isnt change fast enough to be noticed in a single discovery interval.  I think that is fine.  If it does change while we are discovering then we will get the updated data immediately.