EZ-Serial: BLE pairing with fixed passkey

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

cross mob
PascalS
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

Use-Case

  1. We are using the CYBT-333047 module (CYW20706)
  2. We would like to use EZ-Serial with the CySPP communication interface
  3. The module should work as Peripheral / Server
  4. The module acts as a bidirectional gateway from UART (PUART at the module) and BLE 5
  5. The connection must be encrypted. Enycryption in this case means that a communication should only be possible, if the central device has typed in a valid passkey before writing to any characteristic. The passkey should be generated in the peripheral and is shown at the display of our device. So the central device needs physical proximity to the device to establish a communication. Pairing is not required.
  6. In my opinion the best example to start is the fixed passkey example.

Documentation issues

Refer to EZ-Serial WICED Firmware Platform User Guide for CYW2070x-based Modules​ (p. 48)

1.png

In my opinion, the yellow colored information doesn't fit together. I use the text format, so the formulated text and the text content fit, but the binary content seems to be different?!

Example reproduction

This is my communication protocol.

1.png

It seems, that there is missing the ENCryption event. Instead of the ENCryption event, I get a DISconnect event.

I tired this example with the Cypress CySMART App (Android and iOS) serveral times, and I'm sure, that I typed in the passkey correctly.

It would be great if anyone could reproduce this behaviour!

Understanding encryption

What is the API command .CYSPPGP responsible for?

It seems that I just can secure the first characteristic with UUID 65333333-A115-11E2-9E9A-0800200CA101. All other characteristics can be written and read independent of the server_security settings in .CYSPPGP Is that right? In our scenario all characteristics should be secured and not read or writeable until a secured connection is established.

Best Regards!

1 Solution

Time is over now, where can we download the fixed firmware file?

Best Regards!

View solution in original post

4 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

I can reproduce the pairing failure problem. I need to confirm with our EZ-Serial FW engineer and reply you later.

Hi XinghaoZ_26​,

could you please tell me about the status in this case? We can't implement this module, if there isn't a working solution.

Best Regards!

0 Likes

The fixed passkey for BLE connection is not supported in the current EZ-Serial FW. The new version which supports this feature will be avaliable before the end of this quater.

Time is over now, where can we download the fixed firmware file?

Best Regards!