1 of 1 people found this helpful
Hi NeDh_4602711 ,
By default baud rate is 115200. Most of our demo examples output logs on PUART with the default baud rate.
Hope you were able to see the logs with the same on serial monitor like Tera term.
If you want to set different baudrate , you may use API wiced_hal_puart_set_baudrate (/wiced_btsdk/dev-kit/baselib/20706A2/include/wiced_hal_puart.h)
PUART demo for generic puart usage: /HAL-CYBT-343026.puart
I am using CYBT-213043-02 Eval mesh kit. I explored and worked with Mesh kit demos like dimmable light, dimmer switch and sensor server models, But which ever code belongs to this eval board doesn't has main.c function, instead it has application start or application init. Although i know c programming, This seems something new for me. Do you know any tutorials that would be helpful in learning the program structure.
Also After downloading the program into the board, I opened putty with PUART(Baud rate is 115200) terminal but haven't seen any character gets printed in the screen. But the PUART port is getting detected and the program i download has WICED_BT_TRACE functions to print the data. Even i tried using Modustoolox ide Console but still i didn't see any data.
I downloaded the HAL-213043EVAL.puart example program into the mesh kit. Even then i haven't received any data on the putty terminal.
Help me in figuring out the issues, Thanks in advance:-).
Like PrRa_4726466 said. I am also facing same issue. I am checking on baud rate 115200 & I am getting junk characters shown below.
You can refer the below app note for understanding BLE MESH stack and code flow.
Please check the other documentations as well from the cypress ble mesh page.
The PUART baud rate is set to 921600 for mesh applications. (check mesh_app_hci.c). Please try it.
The mesh sample application is implemented in mesh_application.c where you will be able to see application_start() which is the entry point of the app.
I tried 921600 baud rate for mesh applications. It prints some status data and the screen remains halted. It is not printing wiced_bt_trace function data's on the putty terminal.
Are you getting buffer usage statistics as shown below? This is expected and useful to monitor the internal buffer usage.
pool size/cur/max/total 68/3/13/42 140/0/1/20 392/0/1/10 1024/0/0/3
Could you please attach the error log. (Please "Use advanced editor" to attach file in the response).
You should get a log similar to the attached one after downloading the mesh application or after a reset. (attached log is for light_dimmable).
At this time you should receive the mesh advertisement from the device so that you can scan and configure the device using a provisioner.
logs.txt.zip 560 bytes
I have checked at baud rate 921600 and I am getting similar data. But I am looking for a log function which I wish to print. I have tried to print at baud rate 115200 using the below functions but no luck.
I have just tried using some above random functions of wiced_hal_puart but no success.
Thanks and regards,
I have attached a screen shot for your reference. As per your response i got the same serial data. But the problem is i am not getting the data which i wish to print, I uploaded the Demo_mesh_temperature code and in the init function i am making a led to glow and i am printing a sting called "PRINTING LED ON ". But after intilization the led blinks but the data is not printed. Actually i used wiced_set_debug_uart(4); in the begining of the void mesh_app_init() function.
Help me to solve the issue. Thanks in advance.
After googling a lot finally I got a solution. My CYBT-343026 module was connected to the CYW920719Q40EVB-01 board using VDD, TXD, RDX, CTS & RTS pins. I have written the below code.
wiced_set_debug_uart( WICED_ROUTE_DEBUG_TO_HCI_UART );
WICED_BT_TRACE("**** App Start **** \n\r");
and most importantly instead of checking on COMXX WICED Peripheral UART I have used COMXX WICED HCI UART port. and it works for me.
Thank you all for your support.