Higher baud rate for CYBLE-022001

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

cross mob
caycee
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

In our existing products (using CYBLE-022001 module on a custom MCU board), we use CYSPP mode to establish a 'pipe' to our other software running on a PC.  Our MCU firmware is required to use 9600 baud rate, or must add arbitrary wait states after sending 10 bytes or so, to guarantee that the data has been transferred over the air before sending the next packet.

I'm looking for methods of getting faster/more robust communication, such as ACK/NAK returns at the BLE level on successful transmission of a given data-packet.  This may not be possible given that CYSPP mode is a pipe and bypasses BLE module commands.

I assume binary vs ASCII command-modes don't provide any better MCU knowledge of connection throughput.

It is difficult to tell where the issue lies, since once in CYSPP mode, the radio-link is a black-box.

 

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

Please refer to the attached latest EZ Serial FW v1.1.2.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
7 Replies
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

Are you using the custom firmware or Ez-BLE serial firmware in your application as mentioned in the link below?

https://www.cypress.com/documentation/software-and-drivers/ez-serial-ez-ble-module-firmware-platform

Thanks and regards

Ganesh

 

0 Likes
caycee
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

Yes.

0 Likes
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

If you have configured CYSPP to operate in peripheral mode, then upon connection, a remote peer must subscribe to one of the two “Data” characteristics:
a. Acknowledged Data, enable indications (for guaranteed reliability).
b. Unacknowledged Data, enable notifications (for faster potential throughput).
Please refer to the section '2.4.5 Using CYSPP Mode' for more information.

Thanks,
P Yugandhar.

0 Likes
caycee
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

Actually, CYSPP mode may not be what we need.   Although we have our own protocol which has a retry mechanism in place, we still have data drops causing retries which slow down our throughput.

Maybe what I'm looking for is how might I accomplish our data passing using GATT instead of the CYSPP transparent mode.

I have a CY8CKIT-042 pioneer kit with our 002201-00 module where I can do testing.  Perhaps you could recommend one of the many example programs for me to study.  It seems BLE 4.2 has a higher per-packet payload which I'd like to try in an effort to solve our issues...

0 Likes
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

For acknowledgement, you can use Indication instead of Notification. The Indicate property has application-level acknowledgement while Notify does not have application-level acknowledgement.

EZ-Serial platform uses the CYSPP profile for bidirectional serial data transfer between two remote devices. You can also use the Direct L2CAP connectivity for maximum throughput feature from EZ-Serial platform.

If you don't use the EZ-Serial platform then you can refer to the example projects from this GitHub link. Please refer to the Day024_Throughput code example. 

Thanks,

P Yugandhar.

0 Likes
caycee
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

In an effort to reduce the connection interval, I requested a connection update, however the responses are confusing:

/UCP,I=18,L=0,O=64
@R,000A,/UCP,0000
@E,001D,CU,C=04,I=0000,L=0000,O=0000

Why does this show an interval of zero?  This also shows up twice during the initial negotiations:

@E,0035,C,C=04,A=5F1201479AE0,T=01,I=0027,L=0000,O=01F4,B=00
@E,001D,CU,C=04,I=0000,L=0000,O=0000
@E,001B,B,B=04,A=5F1201479AE0,T=01
@E,000F,PR,C=04,R=0000
@E,000E,ENC,C=04,S=01
@E,001D,CU,C=04,I=0000,L=0000,O=0000
@E,001A,W,C=04,H=000B,T=00,D=0200

How can I confirm a change, be it zero or any other value? Shouldn't it at least show the minimum value of 6?

The CySmart App connection on my phone did not show any activity it its logger when I issued the /UCP command at the 022001 module...

 

0 Likes
lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

Please refer to the attached latest EZ Serial FW v1.1.2.

Thanks,

P Yugandhar.

0 Likes