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

BLE_GATTS_EVT_HVN_TX_COMPLETE & NRF_ERROR_RESOURCES

Hey,

I´m working on a project based on nRF52840, SDK 15.0.0 Softdevice s140 v6.0.0 running FreeRTOS.

I´m reading data from an external Flash via SPI and transmitt the data using notifications to a Android Smartphone. However eventually at some point the device seems to get stuck and can´t send any data anymore.

I send data using "sd_ble_gatts_hvx" until I get a NRF_ERROR_RESOURCES event and then wait for BLE_GATTS_EVT_HVN_TX_COMPLETE until I queue more notifications. But for some reason at some point I just stop to receive BLE_GATTS_EVT_HVN_TX_COMPLETE event and no more data transmission is possible (I also have tried varios sizes for the HVN_QUEUE from 1-20 but the error still occurs occasionally, which makes it really hard to debug)

I also tried to just send data using a "do-while-loop" like in the nus example but at some point every call of sd_ble_gatts_hvx just returns NRF_ERROR_RESOURCES and the device keeps stuck in the do-while-loop forever.

Unfortunately this seems to happen very irregular. So I cannot reproduce the error every time. Sometimes I can transmitt up to 100MB before I reach this state where I can´t send any data any more, sometime it happens just after a few packages.

I also tried to monitor the packages which where queued to the notification buffer by incrementing a counter with every call of "sd_ble_gatts_hvx" and decrement this counter with every BLE_GATTS_EVT_HVN_TX_COMPLETE event by "p_ble_evt->evt.gatts_evt.params.hvn_tx_complete.count".

At the point where I cannot send any data anymore the size of my counter has the value of my before configured HVN_QUEUE size. So it makes sense that I always get the NRF_ERROR_RESOURCES error because the notification buffer is full. But why does the softdevice not send any notifications any more??

Is there something wrong with the Interrupts? In this question a similar behaviour was described: https://devzone.nordicsemi.com/f/nordic-q-a/39538/sd_ble_gatts_hvx-nrf_error_resources-in-do-while-loop

I build my application based on the ble_app_hrs_freertos example in the SDK 15.0.0

Thank you very much for any suggestions.

  • Hello,

    I see. Where do you have your do-while-loop? Are you calling sd_ble_gatts_hvx from the main application or from an interrupt? If in an interrupt, what interrupt are you sending from?

    The reason that I am asking is that I suspect that you are sending this from a softdevice interrupt, which you can do, but this will also block the TX_COMPLETE event, because you never leave the softdevice interrupt. A solution for this is to leave the softdevice interrupt, and e.g. set a flag that you can trigger the sending function (do-while-loop) from the main IRQ level.

    If this isn't the issue, have you tried to sniff the connection using e.g. the nRF Sniffer? Are the packets actually sent?

    Best regards,

    Edvin

  • The do-while-loop is actually running in the context of a FreeRTOS Task. However I tried to replace the SPI communication with just sending dummy packages and everything works as expected. So I suspect that the SPI communication is somehow interfering with the Softdevice? For SPI I use the API Driver with Interrupt Priority of 7. So actually this should not be a problem?

    I will also check the on-air-traffic with the Sniffer.

  • I used the nRF Sniffer to monitor the connection. It seems that at some point no more notifications are send. This is the point where I always get the NRF_ERROR_RESOURCES error on every sd_ble_gatts_hvx call and the TX_COMPLETE event never fires.

    Here is a snippet of the wireshark trace I got:

    "No.","Time","Source","PHY","Protocol","Length","Delta time (\302\265s end to start)","SN","NESN","More Data","Event counter","Info"
    "48830","73.701","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48831","73.701","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48832","73.701","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48833","73.702","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48834","73.702","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48835","73.703","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48836","73.703","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48837","73.703","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48838","73.703","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48839","73.704","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48840","73.704","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48841","73.704","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48842","73.705","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48843","73.705","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48844","73.705","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48845","73.706","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48846","73.706","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48847","73.707","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48848","73.707","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48849","73.707","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48850","73.708","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48851","73.813","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48852","73.814","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48853","73.814","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48854","73.815","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48855","73.815","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48856","73.815","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48857","73.815","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48858","73.815","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48859","73.815","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48860","73.816","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48861","73.816","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48862","73.816","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48863","73.816","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48864","73.816","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48865","73.816","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48866","73.817","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48867","73.817","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48868","73.817","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48869","73.817","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48870","73.817","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48871","73.817","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48872","73.818","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48873","73.818","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","596","Empty PDU"
    "48874","73.818","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48875","73.818","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","596","Empty PDU"
    "48876","73.818","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48877","73.819","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48878","73.819","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48879","73.819","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48880","73.819","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48881","73.819","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48882","73.819","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48883","73.820","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48884","73.820","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48885","73.820","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48886","73.820","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48887","73.820","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48888","73.821","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48889","73.821","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48890","73.821","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48891","73.821","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48892","73.821","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48893","73.821","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48894","73.821","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48895","73.822","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48896","73.822","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48897","73.822","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48898","73.822","Slave_0xaf9aaba8","LE 1M","LE LL","27","150","1","0","True","596","L2CAP Fragment Start"
    "48899","73.822","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48900","73.822","Slave_0xaf9aaba8","LE 1M","LE LL","27","150","0","1","True","596","L2CAP Fragment"
    "48901","73.823","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48902","73.823","Slave_0xaf9aaba8","LE 1M","ATT","17","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48903","73.823","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48904","73.823","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48905","73.823","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48906","73.824","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48907","73.824","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48908","73.824","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48909","73.824","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48910","73.824","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48911","73.825","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48912","73.825","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48913","73.825","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48914","73.825","Slave_0xaf9aaba8","LE 1M","ATT","23","151","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48915","73.825","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48916","73.825","Slave_0xaf9aaba8","LE 1M","ATT","23","151","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48917","73.826","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48918","73.826","Slave_0xaf9aaba8","LE 1M","ATT","23","151","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48919","73.826","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48920","73.826","Slave_0xaf9aaba8","LE 1M","ATT","23","151","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48921","73.826","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48922","73.826","Slave_0xaf9aaba8","LE 1M","ATT","23","151","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48923","73.827","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48924","73.827","Slave_0xaf9aaba8","LE 1M","ATT","23","151","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48925","73.827","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48926","73.827","Slave_0xaf9aaba8","LE 1M","ATT","23","151","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48927","73.827","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48928","73.827","Slave_0xaf9aaba8","LE 1M","ATT","23","151","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48929","73.828","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48930","73.828","Slave_0xaf9aaba8","LE 1M","ATT","23","151","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48931","73.828","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48932","73.828","Slave_0xaf9aaba8","LE 1M","ATT","23","151","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48933","73.828","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48934","73.828","Slave_0xaf9aaba8","LE 1M","ATT","23","151","1","0","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48935","73.828","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","596","Empty PDU"
    "48936","73.829","Slave_0xaf9aaba8","LE 1M","ATT","23","151","0","1","True","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48937","73.829","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","596","Empty PDU"
    "48938","73.829","Slave_0xaf9aaba8","LE 1M","ATT","23","151","1","0","False","596","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48939","73.829","Master_0xaf9aaba8","LE 1M","LE LL","0","60887","0","0","False","597","Empty PDU"
    "48940","73.829","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48941","73.829","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48942","73.830","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48943","73.830","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48944","73.830","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48945","73.830","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48946","73.831","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48947","73.831","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48948","73.831","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48949","73.832","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","597","Empty PDU"
    "48950","73.832","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48951","73.832","Master_0xaf9aaba8","LE 1M","LE LL","0","151","0","0","False","597","Empty PDU"
    "48952","73.832","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48953","73.833","Master_0xaf9aaba8","LE 1M","LE LL","0","151","1","1","False","597","Empty PDU"
    "48954","73.833","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48955","73.833","Master_0xaf9aaba8","LE 1M","LE LL","0","149","0","0","False","597","Empty PDU"
    "48956","73.833","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48957","73.834","Master_0xaf9aaba8","LE 1M","LE LL","0","149","1","1","False","597","Empty PDU"
    "48958","73.834","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48959","73.834","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48960","73.834","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48961","73.834","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48962","73.834","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48963","73.834","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48964","73.835","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48965","73.835","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48966","73.835","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48967","73.835","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48968","73.835","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48969","73.835","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48970","73.836","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48971","73.836","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48972","73.836","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48973","73.836","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48974","73.836","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48975","73.836","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48976","73.837","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48977","73.837","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48978","73.837","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48979","73.837","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48980","73.837","Slave_0xaf9aaba8","LE 1M","ATT","23","149","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48981","73.837","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48982","73.837","Slave_0xaf9aaba8","LE 1M","ATT","23","149","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48983","73.838","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48984","73.838","Slave_0xaf9aaba8","LE 1M","ATT","23","149","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48985","73.838","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48986","73.838","Slave_0xaf9aaba8","LE 1M","ATT","23","149","1","0","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48987","73.838","Master_0xaf9aaba8","LE 1M","LE LL","0","150","0","0","False","597","Empty PDU"
    "48988","73.838","Slave_0xaf9aaba8","LE 1M","ATT","23","150","0","1","True","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48989","73.839","Master_0xaf9aaba8","LE 1M","LE LL","0","150","1","1","False","597","Empty PDU"
    "48990","73.839","Slave_0xaf9aaba8","LE 1M","ATT","23","150","1","0","False","597","Rcvd Handle Value Notification, Handle: 0x0012 (Generic Attribute Profile: Nordic UART Rx)"
    "48991","73.839","Master_0xaf9aaba8","LE 1M","LE LL","0","80896","0","0","False","598","Empty PDU"
    "48992","73.839","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","0","1","False","598","Empty PDU"
    "48993","73.943","Master_0xaf9aaba8","LE 1M","LE LL","0","97190","1","1","False","599","Empty PDU"
    "48994","73.943","Slave_0xaf9aaba8","LE 1M","LE LL","0","151","1","0","False","599","Empty PDU"
    "48995","74.045","Master_0xaf9aaba8","LE 1M","LE LL","0","97189","0","0","False","600","Empty PDU"
    "48996","74.045","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","0","1","False","600","Empty PDU"
    "48997","74.149","Master_0xaf9aaba8","LE 1M","LE LL","0","97194","1","1","False","601","Empty PDU"
    "48998","74.149","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","1","0","False","601","Empty PDU"
    "48999","74.251","Master_0xaf9aaba8","LE 1M","LE LL","0","97192","0","0","False","602","Empty PDU"
    "49000","74.251","Slave_0xaf9aaba8","LE 1M","LE LL","0","149","0","1","False","602","Empty PDU"
    "49001","74.354","Master_0xaf9aaba8","LE 1M","LE LL","0","97192","1","1","False","603","Empty PDU"
    "49002","74.355","Slave_0xaf9aaba8","LE 1M","LE LL","0","151","1","0","False","603","Empty PDU"
    "49003","74.460","Master_0xaf9aaba8","LE 1M","LE LL","0","97192","0","0","False","604","Empty PDU"
    "49004","74.461","Slave_0xaf9aaba8","LE 1M","LE LL","0","151","0","1","False","604","Empty PDU"
    "49005","74.565","Master_0xaf9aaba8","LE 1M","LE LL","0","97192","1","1","False","605","Empty PDU"
    "49006","74.565","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","1","0","False","605","Empty PDU"
    "49007","74.669","Master_0xaf9aaba8","LE 1M","LE LL","0","97188","0","0","False","606","Empty PDU"
    "49008","74.669","Slave_0xaf9aaba8","LE 1M","LE LL","0","151","0","1","False","606","Empty PDU"
    "49009","74.771","Master_0xaf9aaba8","LE 1M","LE LL","0","97186","1","1","False","607","Empty PDU"
    "49010","74.771","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","1","0","False","607","Empty PDU"
    "49011","74.872","Master_0xaf9aaba8","LE 1M","LE LL","0","97186","0","0","False","608","Empty PDU"
    "49012","74.872","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","0","1","False","608","Empty PDU"
    "49013","74.976","Master_0xaf9aaba8","LE 1M","LE LL","0","97186","1","1","False","609","Empty PDU"
    "49014","74.976","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","1","0","False","609","Empty PDU"
    "49015","75.080","Master_0xaf9aaba8","LE 1M","LE LL","0","97185","0","0","False","610","Empty PDU"
    "49016","75.081","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","0","1","False","610","Empty PDU"
    "49017","75.185","Master_0xaf9aaba8","LE 1M","LE LL","0","97193","1","1","False","611","Empty PDU"
    "49018","75.185","Slave_0xaf9aaba8","LE 1M","LE LL","0","151","1","0","False","611","Empty PDU"
    "49019","75.289","Master_0xaf9aaba8","LE 1M","LE LL","0","97192","0","0","False","612","Empty PDU"
    "49020","75.289","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","0","1","False","612","Empty PDU"
    "49021","75.390","Master_0xaf9aaba8","LE 1M","LE LL","0","97192","1","1","False","613","Empty PDU"
    "49022","75.390","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","1","0","False","613","Empty PDU"
    "49023","75.496","Master_0xaf9aaba8","LE 1M","LE LL","0","97192","0","0","False","614","Empty PDU"
    "49024","75.496","Slave_0xaf9aaba8","LE 1M","LE LL","0","149","0","1","False","614","Empty PDU"
    "49025","75.497","Master_0xaf9aaba8","LE 1M","LE LL","0","97193","1","1","False","615","Empty PDU"
    "49026","75.498","Slave_0xaf9aaba8","LE 1M","LE LL","0","151","1","0","False","615","Empty PDU"
    "49027","75.600","Master_0xaf9aaba8","LE 1M","LE LL","0","97192","0","0","False","616","Empty PDU"
    "49028","75.601","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","0","1","False","616","Empty PDU"
    "49029","75.701","Master_0xaf9aaba8","LE 1M","LE LL","0","97193","1","1","False","617","Empty PDU"
    "49030","75.701","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","1","0","False","617","Empty PDU"
    "49031","75.804","Master_0xaf9aaba8","LE 1M","LE LL","0","97193","0","0","False","618","Empty PDU"
    "49032","75.804","Slave_0xaf9aaba8","LE 1M","LE LL","0","150","0","1","False","618","Empty PDU"
    
    

    However this issue only occurs in combination with SPI communication. Sending just dummy packages works as expected.

  • Hello,

    Can you please save this file as a .pcapng file and upload it here?

    Best regards,

    Edvin

  • Hi,Edvin

    i have the same problem with . I am calling sd_ble_gatts_hvx from an interrupt(bsp event handler:BSP_EVENT_KEY_3)."set a flag that you can trigger the sending function (do-while-loop) from the main IRQ level.",what the main IRQ level means? main application?besides where can i find the BSP_EVENT_KEY_3 IRQ level?

Related