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

Custom service using SDK17 cannot receive BLE message correctly

I'm porting an application that communicates BLE with a smartphone via nRF52 from SDK15 to SDK17.
It will be Connected, but I can only receive 2 bytes.
Also, even though I have sent 2 messages from the smartphone side, I have only received them once.

PCA10056 nRF52840
SDK17.0.0
SD S140 7.0.1

log
<info> app: on_connect
<info> app: Connected
<debug> nrf_ble_gatt: Peer on connection 0x0 requested an ATT MTU of 185 bytes.
<debug> nrf_ble_gatt: Updating ATT MTU to 23 bytes (desired: 23) on connection 0x0.
<info> app: Data len is set to 0x17(23)
<debug> app: ATT MTU exchange completed. central 0x17 peripheral 0x17
<info> app: no implement
<info> app: on_write
<info> app: service_2
<info> app: length 0x2
<info> app: receive : 0x01,0x00
Parents
  • Hi,

    Hard to say what is wrong without more details. On the smartphone side, are you using your own application or one of our applications?

    On the firmware side, have you tried debugging the application? Do you get any error codes? Have you followed the mirgration guide on our infocenter(v16.0.0 and v17.0.2)?

  • Yes, I checked those documents.
    I am using my own application on the smartphone side, but the same result is true when using nRF Connect, and even if I send a character string of about 10 characters, I could only receive 2 bytes {1,0}.
    I'm currently using the gcc environment, but I don't have gdb now.

    In the system I'm developing, there are three characteristics in one service.
    I would like to have sample code with multiple characteristics...
Reply
  • Yes, I checked those documents.
    I am using my own application on the smartphone side, but the same result is true when using nRF Connect, and even if I send a character string of about 10 characters, I could only receive 2 bytes {1,0}.
    I'm currently using the gcc environment, but I don't have gdb now.

    In the system I'm developing, there are three characteristics in one service.
    I would like to have sample code with multiple characteristics...
Children
No Data
Related