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

Problem making BLE peripheral program to work

Hello, 

Im using D52Q ANT Module series chip, I have uploaded the S132 soft device and BLE peripheral program(PCA10040).

Once i download the program, 3rd LED glows, and i can view the name NORDIC BLINKY on NRFconnect app on Phone.

                              

Once i click on connect option on phone, the 3rd LED stops blinking.

In the Client tab of the phone, i can see the Button and LED option.

      

But i face following issues

1. Unable to bond

2. im unable to write to the D52Q module, i.e., Make the LED Glow based on button

The LOG file of the app is attached below

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
DeviceName[RW](0x2A00)
-Appearance[R](0x2A01)
-PeripheralPreferredConnectionParameters[R](0x2A04)
-CentralAddressResolution[R](0x2AA6)
GenericAttribute(0x1801)
NordicLEDButtonService(00001523-1212-efde-1523-785feabcd123)
-Button[NR](00001524-1212-efde-1523-785feabcd123)
ClientCharacteristicConfiguration(0x2902)
-LED[RW](00001525-1212-efde-1523-785feabcd123)
D 08:08:53.990gatt.setCharacteristicNotification(00001524-1212-efde-1523-785feabcd123,
true)
V 08:10:01.915Readingcharacteristic00001524-1212-efde-1523-785feabcd123
D 08:10:01.915gatt.readCharacteristic(00001524-1212-efde-1523-785feabcd123)
I 08:10:02.184ReadResponsereceivedfrom00001524-1212-efde-1523-785feabcd123,value:
(0x)F8
A 08:10:02.184"Invalidvalue:(0x)F8"received
V 08:10:04.999Enablingnotificationsfor00001524-1212-efde-1523-785feabcd123
D 08:10:04.999gatt.setCharacteristicNotification(00001524-1212-efde-1523-785feabcd123,
true)
D 08:10:05.003gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb,value=0x0100)
I 08:10:05.365Datawrittentodescr.00002902-0000-1000-8000-00805f9b34fb,value:(0x)01-
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parents
  • HI Nagashree, 

    the ble_app_blinky example does not support bonding. If you want to use an example that supports bonding, then I recommend using the ble_app_hrs example instead. 

    Best regards

    Bjørn

  • Thank you.

    But what about the reason behind LED not blinking? (GATT error)

  • I cant see any where in the ble_app_blinky code where returns any GATT error code on writing to the LED characteristic. Can you debug the ble_app_blinky example and place a breakpoint in the led_write_handler and see if you enter this when the LED char is written to?
    Best regards

    Bjørn

  • Hey,

    Thank you so much. It worked, SOme problem with SOft device. I uploaded BLE hex file, on that i wrote the program using Keil and it worked.

Reply Children