2017-02-09 10:42 AM
When I run aci_hal_write_config_data() as a first command after BlueNRG-MS reset, I get ERR_CMD_SUCCESS. But when I call getBlueNRGVersion() first, then I get ERR_COMMAND_DISALLOWED from aci_hal_write_config_data(). What is the reason? How checking BlueNRG-MS version can affect any other command?
#command #version #aci #bluenrg-msSolved! Go to Solution.
2017-02-10 01:28 AM
Dear Niemirowski Grzegorz,
changing configuration data may affect the subsequent behavior of the chip and so aci_hal_write_config_data() can be called only if it is the first command after reset.
If you need to call getBlueNRGVersion() first, just reset the chip after you got the version, and then you'll be able to call aci_hal_write_config_data() without any issues.
Hope that helps.
2017-02-10 01:28 AM
Dear Niemirowski Grzegorz,
changing configuration data may affect the subsequent behavior of the chip and so aci_hal_write_config_data() can be called only if it is the first command after reset.
If you need to call getBlueNRGVersion() first, just reset the chip after you got the version, and then you'll be able to call aci_hal_write_config_data() without any issues.
Hope that helps.
2017-02-10 02:36 AM
Checking the version does not affect other commands, but, as a sanity check, the BlueNRG/BlueNRG-MS firmware does not allow calling aci_hal_write_config_data() after you have issued any other commands. So you cannot call neither commands that affect subsequent behavior nor commands that don't (like the version check).
2017-02-10 03:50 AM
Everything is now clear. Thanks!