Hi Nordic team
I want to switch between DTM and normal BLE by pressing the button.
It is base on two example ble_app_att_mtu_throughput and direct_test_mode.
Is there any effect on my existed value in my register?
Hi Nordic team
I want to switch between DTM and normal BLE by pressing the button.
It is base on two example ble_app_att_mtu_throughput and direct_test_mode.
Is there any effect on my existed value in my register?
Hi,
It should not be a problem as long as you make sure to disable the SoftDevice before entering DTM mode, and make sure that you disable any interrupt sources before exiting DTM mode and starting the SoftDevice. The SoftDevice itself will configure all the relevant registers properly when it is initialized, so it does not relay on any registers having their reset/default values initially.
Hi sir
What is the specific method to disable softdevice?
It means to modify the parameter in the sdk_config.h?
Or set an button to switch the between them?
Many thanks
Perhaps I misunderstood you. If you want to press a button during startup (after reset), and reset after exiting the specific mode, then you do not need to do any cleanup. However, if you want to switch to DTM after the SoftDevice have been enabled, then you should call sd_softdevice_disable() before you initialize DTM.
Perhaps I misunderstood you. If you want to press a button during startup (after reset), and reset after exiting the specific mode, then you do not need to do any cleanup. However, if you want to switch to DTM after the SoftDevice have been enabled, then you should call sd_softdevice_disable() before you initialize DTM.