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

Arduino BLE micro and connection problem with I2C

Hi! I'm using Arduino BLE micro and good results so far. With some accellerometers connected via I2C.

Today I have a strage behaviour. I connect the arduino, ok, open the ble receiver on the Mac OS/X, ok, receiving those messages on Serial Monitor of Arduino IDE:

data transmmit success!  Length: 16    Data Credit available: 1
ACI_EVT_DATA_CREDIT     Data Credit available: 2

But after 20-30 seconds I have this error on Serial Monitor:

Evt Disconnected/Advertising timed out
Advertising started
ACI Evt Pipe Error: Pipe #:3  Pipe Error Code: 0x83
Data Credit available: 3

Then nothing else but periodically every few 20-30 seconds and then:

Evt Disconnected/Advertising timed out
Advertising started

If I try to switch off and on again, the same behaviour.

I have done anything strange.. I have only tried to power the Arduino BLE mini with a lipo battery 3.7V and 380 mAh but don't think this could have damaged the chip.

What can it be?

  • Can you get me a debug trace ? This is usually obtained by setting the debug parameter using the lib_aci_init() to true. The messages between the nRF8001 and the microcontroller are then printed out on the Serial port and hopefully that can give us more clues.

    If you cannot get the debug to work, you an also perhaps print the full contents of the ACI Disconnected message so I can understand this better.

    You still have not pointed out the device that is used to connect to the blend micro, that may also hold some clues.

  • @Star Detroyer, thank you very much. I have moved in a new question here: devzone.nordicsemi.com/.../

  • I too was having the problem of BLE getting disconnected. I'm using BLE shield from Red bear lab as the slave with Arduino Uno as the master. I was getting an error saying ACI Evt Pipe Error: Pipe #:4 Pipe Error Code: 0x83 Evt Disconnected/Advertising timed out It works flawlessly when I switch off the WiFi on my Moto G2 phone and check. I'm not sure why this problem would be occuring because of WiFi, if anyone having any idea, if would be great if you can explain

    Thank You.

  • Please post it as a new question and look at the appendix for the error code 0x83. 0x83 says, ACI_STATUS_ERROR_DEVICE_STATE_INVALID , which means that this depends on the command that you are sending, so you need to post a log of the list of commands and events that are being sent over the SPI. ( This is usually obtained by setting the debug parameter using the lib_aci_init() to true. The messages between the nRF8001 and the microcontroller are then printed out on the Serial port. ) If you suspect the WiFi , try it with a different phone, but for phone related issues always post the OS and OS version. However please post this as a separate question.

Related