BLE SPP Profile BX3105

Hello all.

Sometimes ago I had developed a SPP with Bluetooth Classic. I was communicating my BX3105 module with a Android spartphone. So far so good.
Now, my product needs to communicate with iPhone. I had a bad surprise when I figure out that… the bluetooth classic doesn`t work with iPhone…

So, I am migrating my code to BLE.
I am able to receive some data from the smartphone, but I can no send some data back.
The application is like a single serial port, but I am not sure how to configure the services, charactaristics, descriptors…

For a while, that`s my sequence of commands:
AT+SRBLEADDSERV=661075C306D74464A8351A4DE964A5BE
(MESSAGE RECEIVED BACK WITH SERVICE NBR 40)
AT+SRBLEADDCHAR=40, 661075c406d74464a8351a4de964a5be, 30, 17
(MSG RECEIVED BACK WITH CHAR NBR 42)
AT+SRBLEADDCHARDESCR=40,661075c506d74464a8351a4de964a5be,7,16
(MSG RECEIVED BACK WITH DESCRIPTOR NBR 43)
AT+SRBLEADV=1

After that, I am able to detect the BX3105 with a smarpthone. If I connect and send some data, the BX3105 receives the data.
However, when I try to send it back, I receive an “ERROR” message from the uart.

If I try to connect using another serial BLE from the smarpthone, the app show the following message:
“Connection failed: no CCCD descriptor for read characteristic”.

So, guys.

  • Are my service, characteriscit and descriptor correct?
  • What command should I use to send the data to smarpthone?
    (I tried to open the communication in datamode, no success).

BTW, my BX3105 is configured as a server.

Thanks in advance.