cancel
Showing results for 
Search instead for 
Did you mean: 

AIROC™ Bluetooth

MaFi_4674431
New Contributor

I loaded an application in the CYBT-423028 module and I communicate with Wiced-HCI protocol with it.

When the system is switched on, my CPU frees the CYBT module from reset .

After releasing the reset I wait 1.5 seconds before sending the first serial command and the serial communication with the CYBT module always works (115200 baud).

If without turning off the power I reset the CYBT module, wait 1.5 seconds and restart the serial communication

Sometimes the module does not respond to commands, (I do not receive serial characters).

 

Do you have any suggestions to better resynchronize my CPU with the CYBT module?

 

Best regards

Marco

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator

Hello @MaFi_4674431 

Hope you have connected all 4 pins of HCI UART pins with the host device . If not, can you please share the hardware connection diagram? 

Q) If without turning off the power I reset the CYBT module, wait 1.5 seconds and restart the serial communication 

=> here do you mean hard reset or HCI reset ?

=> if hard reset , Can you please let me know why you need to do hard reset in this case ? 

=> Can you try sending HCI reset command and see if it works with with rest of the commands? 

 

Regards,

Anjana

 

View solution in original post

0 Likes
4 Replies
AnjanaM_61
Moderator
Moderator

Hello @MaFi_4674431 

Hope you have connected all 4 pins of HCI UART pins with the host device . If not, can you please share the hardware connection diagram? 

Q) If without turning off the power I reset the CYBT module, wait 1.5 seconds and restart the serial communication 

=> here do you mean hard reset or HCI reset ?

=> if hard reset , Can you please let me know why you need to do hard reset in this case ? 

=> Can you try sending HCI reset command and see if it works with with rest of the commands? 

 

Regards,

Anjana

 

View solution in original post

0 Likes
MaFi_4674431
New Contributor

Hello Anjana, in my system only the TX and RX signals are used, the CTS_N signal is pulled to ground, the RTS_N signal is left floating, the XRES signal is controlled by a GPIO of the microcontroller, see attached image.

When my application is started, a reset pulse of about 500 ms is generated and then after about 1.5 s the configuration of the CYBT module begins. 

When I am debugging on my application and I restart the CPU, the problem I have reported occurs.
 
I added the HCI reset command and a further 1.5 s wait to my boot sequence and now the module responds correctly.
If the CYBT module receives spurious characters what happens with subsequent HCI commands?
Regards,
 
Marco
 
 

CYBT_connections.jpg

0 Likes
AnjanaM_61
Moderator
Moderator

Hello @MaFi_4674431 ,

For HCI communication, we recommend you to use flow control . Please use HCI UART CTS , RTS pins as well. 

Also Keeping CTS pin grounded is not suggested. In that case, the module may go in to download mode when you do a hard reset. Thus the device will not respond to any HCI commands other than programming commands. 

Regards,

Anjana

0 Likes
MaFi_4674431
New Contributor

Hello Anjana,

we don't have a full functionality UART in our CPU. We have only TX and RX available and we have followed the instructions found in the document 002-23238 Rev. * E (page 12)

UART connections.jpg

0 Likes