Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
SoJa_4724776
Level 1
Level 1

Hello Everyone,

I starting this discussion to get the details on the data type that we can send/receive to/on Cypress BLE chips. Actually we need to send text data from a mobile application whose length may vary and entered by user to the Cypress BLE Chip.

This data will be transferred via Bluetooth only. The sending will be a write operation on a particular characteristic of the BLE chip.

We are not sure if this is possible with data types like variable, uint128 etc. defined in the Chip or we have to follow any other approach.

1) Can we send this text data in a one go as a write operation?

2) How to configure the chip to accept this data?

Any help would be really appreciated.

0 Likes
1 Solution

SoJa,

Try this link:  Re: BLE UART

or this one:  Psoc63 example with uart service BLE.

Len

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
3 Replies
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Soja,

Sending text:  Easy-Peasy!    Text is just a limited set of the 256 byte values that can be sent.

Sending text with a variable length:  No so easy-peasy.   The issue is that BLE messages work best with a known length.  However, having varying lengths are possible.  You can send a single BLE 5.0 ATT message with up to 244 bytes. 

If your maximum text message can be under 244 bytes, great!  If you need more there are two ways I'm aware of.

You can break up the message into multiple 244 byte packets or there is a messaging method that sequences the messages to know if data in the sequence is missing.   This method is theoretically better but may reduce the payload and take a small amount of time longer to send.

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

Thanks LePo_1062026​,

It is encouraging, but how to configure a BLE characteristic to accept this bytes? Can you please help us with that as well, any link or tutorial will also work.

0 Likes

SoJa,

Try this link:  Re: BLE UART

or this one:  Psoc63 example with uart service BLE.

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes