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

Hi , i have created the sample code to transmit the mpu6050 acc data from ble peripheral to mobile phone through bluetooth

But when am connected with my phone , it shows like as below

service started connecting.. gatt= device.connectGatt(autoconnect=false) Activity bound to the service [callback] connection state changed with status: 133 and new state : 0(DISCONNECTED) Error : (0x85): GATT ERROR

here am attaching the code. main.c ble_mpiu.c ble_mpiu.h

can anyone , please say , where i did the mistake and what change will i need to do

sorry , i cant able to upload the zip file

Parents
  • Hello Reeshma

    I see you have based your code on the HRS example. However, the main code you have used seems to be from version 12 of the SDK, not 13. There are several differences between the two versions, and using the main file from SDK 12 with the softdevice, libraries and drivers of SDK 13 won't work. When trying to compile your code with SDK 13 I get several errors and warnings, all related to changes from SDK version 12 to 13. I would recommend you redo your main file, and base it on the example found in SDK 13, to eliminate as many sources of error as possible.

    Best regards

    Jørn Frøysa

Reply
  • Hello Reeshma

    I see you have based your code on the HRS example. However, the main code you have used seems to be from version 12 of the SDK, not 13. There are several differences between the two versions, and using the main file from SDK 12 with the softdevice, libraries and drivers of SDK 13 won't work. When trying to compile your code with SDK 13 I get several errors and warnings, all related to changes from SDK version 12 to 13. I would recommend you redo your main file, and base it on the example found in SDK 13, to eliminate as many sources of error as possible.

    Best regards

    Jørn Frøysa

Children
Related