Hello Dialog,
I wanted to implement a DTLS handshake between two dialog USB boards. For this I need an TCP/IP or UDP socket to set up the basic input output(I/O) function where we give socket_read and socket_write call back functions as the parameters. So, basically what the read and write all back functions do is , If I send a DTLS message from one USB stick, it should be received into the other USB buffer and vice versa. So, DTLS requires larger packet size than the BLE can provide in one packet as far as I understand. I have seen L2CAP in the sdk which somehow has some API's to hadle the connection oriented channels.
From the docmentation of BLE core specification, I understand that L2CAP can be used both for Connection and Connection less oriented communication. But, I did not see any API for connection less communication? or am I missing something?
Also, in the sdk/ble/api/include/ble_l2cap.h , there is a fnction for ble_l2cap_send(), but there is no function for receive? Why is this?
Regards,
Prasanna
Hi Prasanna,
Please clarify what you are trying to accomplish in the BLE side of your project. What is the amount of data that you would like to send? How you will send them ? Will you place them into the advertising data, as the device will not be connectable? If I understood correctly.
Thanks, PM_Dialog
I wanted to use the L2CAP channel to send and receive data between the ble_peripheral and the ble_central devices. I wanted to check how can I use the L2CAP API functions in the sdk. Are there any examples that use L2CAP connection as a communication between two ble devices othe than the suota example in the sdk? I wanted to send some random static 10 KB of data from the ble_peripheral to the central device .
Regards,
Prasanna
Hi Prasanna,
Since you would like to send data between 2 BLE devices, why don’t you use the BLE notifications or indications? A couple of examples are on the DA1469x post, so you could check them out.
Thanks, PM_Dialog