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

a problem in "ACI_DEVICE_STANDBY"

hi. Im working with nrf8001 type c in a self-designed board and im using arduino library driver on github by nordic. my mcu is stm32 and i ported library to my mcu. when I debug my program i find that my program go to "ACI_DEVICE_STANDBY" case in aci loop and nrf respond me with "03 84 0F" . as i understand, it means that nrf will advertise in this state. but when i use a smartphone with android 4.4 and BLE enabled i cant see nrf8001 in nrf uart app that made by nordic in play store. and im using service.h in "hello world" project.(type c , internal 32768, external crystal 16 MHz). please help what problems may be exist im my project or what points I have to check again? thank you.

Parents
  • I don't really understand what you are doing, why would you get the same event repeatedly? That is it does make sense to get the transaction continue event while doing the setup. But you should only get the device started event once. If you only issue the connect command once you should only get the command response for this once as well, not repeatedly. Can you check what you are doing here? Are you clearing the interrupt correctly? are you getting this value from the spi or could it be laying in the buffer? Regardless it seams as if you are indeed advertising. What smartphone are you testing with? could you try with lightblue for iOS, or our master control panel for android to see if these apps sees your device?

    What error does the aci_test_mode_exit return?

Reply
  • I don't really understand what you are doing, why would you get the same event repeatedly? That is it does make sense to get the transaction continue event while doing the setup. But you should only get the device started event once. If you only issue the connect command once you should only get the command response for this once as well, not repeatedly. Can you check what you are doing here? Are you clearing the interrupt correctly? are you getting this value from the spi or could it be laying in the buffer? Regardless it seams as if you are indeed advertising. What smartphone are you testing with? could you try with lightblue for iOS, or our master control panel for android to see if these apps sees your device?

    What error does the aci_test_mode_exit return?

Children
No Data
Related