This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there any way by which we can log on nordic device on what packets being sent out?

Hi,

Is there any way by which we can log on nordic device on what packets being sent out?

My intention is to log each advertisement and on which channel it is advertised. 

 am using nRF52832 along with Softdevice 6.0.0, SDK 15.0.0, Chip Revision 2 (QFAA-EX0).

  • Hello,

    When you say log, do you mean that you would like the sent BLE packet to be written to RTT / UART as well, or is your intention to be able to see the contents of the sent packets?

    In the first case, you should use the Logger module.
    In the latter case - which I suspect is what you are asking for - you could use a Sniffer tool, to monitor the BLE traffic.

    Is this what you were looking for?

    Best regards,
    Karl

  • Hi karl,

    Thanks for looking into my ticket.

    I am more interested in knowing what the radio is sending. For e.g. has the radio advertised? If advertised what packet did it send? Has it advertised in all 3 channels? I am using sniffer tool but having some radio related events on firmware would make debugging easier.

    Regards,

    Justin

  • Hello Justin,

    Justin said:
    Thanks for looking into my ticket.

    No problem at all, I am happy to help!

    Justin said:
    I am more interested in knowing what the radio is sending. For e.g. has the radio advertised? If advertised what packet did it send? Has it advertised in all 3 channels?

    Yes, for this you need to use the Sniffer tool I referenced in my last comment. Have you completed the configuration, and are you able to see the BLE traffic?
    If so, you should be able to see all the answers to the questions regarding advertising channels, packet contents, etc.

    Justin said:
    I am using sniffer tool but having some radio related events on firmware would make debugging easier.

    I am not sure I understand what you are conveying in this sentence.
    Is this a question or a statement? -are you having trouble using the radio related events in your program? 

    If you should encounter any other issues or questions, please let me know!

    Best regards,
    Karl

     

     

  • I am using sniffer tool but having some radio related events on firmware would make debugging easier.

    I am running firmware on nrf52832 and using softdevice. In my application (firmware) I want to log the radio events. Is there any call back on the softdevice that could provide me when a radio event occurs?

    Radio events I mean advertisement, scan response, connection etc. 

  • Hello again Justin,

    Now I understand what you mean.
    The SoftDevice does forward some BLE events to the application, such as: BLE_GAP_EVT_CONNECTED, BLE_GAP_EVT_DISCONNECTED, etc.
    For more detail on this, please see the SoftDevice API Reference for the SoftDevice you are using - you can find the S140 API Reference here.
    Particularly, you might be interested in reading the Application programming interface page for more info on this.

    Best regards,
    Karl

Related