Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

How to change ANT id after DFU on nrf52?

Rank

Total Posts: 1

Joined 2017-06-05

PM

I am writing ANT+ device on pStorage and want to read back from memory during ANT+ stack init. I am trying to change the Device name on this snippet
//-------------------------------------------------------------------------------------------------------
BPWR_SENS_CHANNEL_CONFIG_DEF(m_ant_bpwr,
BPWR_CHANNEL_NUMBER,
CHAN_ID_TRANS_TYPE,
CHAN_ID_DEV_NUM,
ANTPLUS_NETWORK_NUMBER);
BPWR_SENS_PROFILE_CONFIG_DEF(m_ant_bpwr,
(ant_bpwr_torque_t)(SENSOR_TYPE),
ant_bpwr_calib_handler,
ant_bpwr_evt_handler);

ant_bpwr_profile_t m_ant_bpwr;
/** @snippet [ANT BPWR TX Instance] */

ant_bpwr_simulator_t m_ant_bpwr_simulator; /**< Simulator used to simulate profile data. */
//------------------------------------------------------------------------------------------------------------

No luck so far. Is there any other way of reading ANT+ device number from flash?