How to change the baudrate of ZigbeeNodeControlBridge for JN5169?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to change the baudrate of ZigbeeNodeControlBridge for JN5169?

跳至解决方案
1,496 次查看
YeelongWong
Contributor III

Hi,there

I am developing based on JN-AN-1223-ZigBee-IoT-Gateway-Control-Bridge-v1014, and I want to connect this ZigBee JN5169 to another MCU, but I want to change the baudrate to 115200, and failed:(

I saw the default value is 1000000 in the Mafefile, why it can not work after I update it to 115200?

Can anybody help answer this question?

Tks sooooo much!!!

0 项奖励
回复
1 解答
1,426 次查看
YeelongWong
Contributor III

Hi, all

In the end, I gave up the idea to change the baudrate, because the project code can not support this feature very well.

I update the baudrate of the other node to 1000000 bps to make them two nodes communicate.

Tks!

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,427 次查看
YeelongWong
Contributor III

Hi, all

In the end, I gave up the idea to change the baudrate, because the project code can not support this feature very well.

I update the baudrate of the other node to 1000000 bps to make them two nodes communicate.

Tks!

0 项奖励
回复
1,488 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @YeelongWong,

I hope you are doing great.

You could change the UART baud rate in the makefile. BAUD ?= 1000000

Also, the debug UART baud rate is different, so you have to change this as well.

    /* Send debug output to DBG_UART */
    DBG_vUartInit(DEBUG_UART, DBG_E_UART_BAUD_RATE_115200);

 

Regards,

Mario

0 项奖励
回复
1,467 次查看
YeelongWong
Contributor III

Hi, Mario,

The project ZigbeeNodeControlBridge has two uart channels.

UART0 is for control channel, which is used to transport the cmd and response, the default baudrate is 1000000.

1makefile.png2 uart.png

UART1 is the debug port, which is used to output the log, whose default baudrate is 115200, but also disabled as default.

 

Now, I was planning to change the UART0 baudrate to 115200 from 1000000.I think I should update the BAUD ?= 1000000 and it should be ok. Because this number will defined to CFLAGS += -DUART_BAUD_RATE=$(BAUD) and the source code will use 

 

/* Set the clock divisor register to give required buad, this has to be done
directly as the normal routines (in ROM) do not support all baud rates */
UART_vSetBaudRate(UART_BAUD_RATE);

 

As you mentioned, the debug port baudrate is already 115200, if this port is desired to be used, just enable this line:

DEBUG_PORT ?= UART1 is ok.

 

The problem is: change the UART0 baudrate to 115200 from 1000000, the system is down:(

 

B.R.

Yeelong

0 项奖励
回复