You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/10/30 09:13:58 UTC

[GitHub] [mynewt-nimble] haukepetersen opened a new issue #879: nrf52840: unexpected PHY behavior?

haukepetersen opened a new issue #879:
URL: https://github.com/apache/mynewt-nimble/issues/879


   While doing a sequence of energy measurements, I noticed some strange behavior on the `nrf52840dk` (`nrf52840`). While running a simple application that sends out legacy advertisements every 500ms, I can see CPU activity between two advertisement events where there should be none. This happens in non-deterministic intervals.
   
   Trace A (ADV interval: 500ms, payload 3 byte, non-connectable, non-discoverable):
   ![ppk_nrf52840_adv500ms_NON](https://user-images.githubusercontent.com/620834/97680258-b6d8a500-1a96-11eb-8f2d-c57793d6168c.png)
   
   Trace B (ADV interval: 500ms, payload 3 byte, undirected-connectable, general discoverable)
   ![ppk_nrf42840_adv500ms_UND](https://user-images.githubusercontent.com/620834/97680583-35354700-1a97-11eb-85ff-3e6541c98143.png)
   
   Running the exact same application on the `nrf52dk` (`nrf52832`) does not show this behavior, on that board the trace looks as expected. So from that I think this might be a PHY related issue on the `nrf52840`?!
   
   I also wonder if this could be related to #767?
   
   Background infos:
   - running NimBLE (dba097972d28701c10b9af2a48af7d924c9cfca3) @ RIOT (35b6ccedf31f10a5f8e4f97609ad5b10c28bdc34)
   - the application simply calls `ble_gap_adv_start()` with the following params:
   ```
   struct ble_gap_adv_params adv_params = {
           .conn_mode = BLE_GAP_CONN_MODE_NON, // or BLE_GAP_CONN_MODE_UND for trace B
           .disc_mode = BLE_GAP_DISC_MODE_NON,  // or BLE_GAP_DISC_MODE_GEN for trace B
           .itvl_min = BLE_GAP_ADV_ITVL_MS(500),
           .itvl_max = BLE_GAP_ADV_ITVL_MS(500),
       };
   ```
   - No additional (user) threads 
   - NimBLE is configured as stated in `porting/targets/riot/syscfg.yml` with the following changes:
   ```
   CFLAGS += -DMYNEWT_VAL_BLE_LL_TX_PWR_DBM=0
   CFLAGS += -DMYNEWT_VAL_BLE_LL_MAX_PKT_SIZE=251
   CFLAGS += -DMYNEWT_VAL_BLE_LL_CFG_FEAT_DATA_LEN_EXT=1
   CFLAGS += -DMYNEWT_VAL_BLE_L2CAP_COC_MPS=200
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] haukepetersen commented on issue #879: nrf52840: unexpected PHY behavior?

Posted by GitBox <gi...@apache.org>.
haukepetersen commented on issue #879:
URL: https://github.com/apache/mynewt-nimble/issues/879#issuecomment-721024670


   > We use the same phy for both nRF52832 and nRF52840 so it should behave pretty much the same
   
   I know, also the RIOT code suporting that CPU is almost identical - thats what make this issue kind of strange...
   
   > If those are caused by radio, we should see that activity on debug pins so you can try to configure:
   
   Good idea. Will try this out and let you know what I find.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] sjanc commented on issue #879: nrf52840: unexpected PHY behavior?

Posted by GitBox <gi...@apache.org>.
sjanc commented on issue #879:
URL: https://github.com/apache/mynewt-nimble/issues/879#issuecomment-849456704


   is this stil an issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] andrzej-kaczmarek commented on issue #879: nrf52840: unexpected PHY behavior?

Posted by GitBox <gi...@apache.org>.
andrzej-kaczmarek commented on issue #879:
URL: https://github.com/apache/mynewt-nimble/issues/879#issuecomment-721002708


   We use the same phy for both nRF52832 and nRF52840 so it should behave pretty much the same. Also form LL pov both are exactly the same. If those are caused by radio, we should see that activity on debug pins so you can try to configure:
   BLE_PHY_DBG_TIME_TXRXEN_READY_PIN
   BLE_PHY_DBG_TIME_ADDRESS_END_PIN
   BLE_PHY_DBG_TIME_WFR_PIN
   and capture those pins on logic analyzer.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] haukepetersen commented on issue #879: nrf52840: unexpected PHY behavior?

Posted by GitBox <gi...@apache.org>.
haukepetersen commented on issue #879:
URL: https://github.com/apache/mynewt-nimble/issues/879#issuecomment-719441003


   Forgot to mention: I can see this behavior (almost) independent of the advertising interval and payload size. I tested advertising intervals in [20, 50, 100, 200, 500, 1000, 2000]ms and payload sizes in [3, 15,31]byte - for all these configurations I can see occasional CPU (radio?) activity between some advertising events.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org