This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Questions about UART in CC2430.

Other Parts Discussed in Thread: CC2430

Hi everyone,

I'm using a CC2430 with the TI Z Stack 1.4.3-1.2.1.

I would like to use the SerialApp to send 10 bytes every 50ms with a external MCU connected to the UART1 of the CC2430.  I don't want to use the CTS/RTS for the Flow Control but I want the CC2430 to send the 10 bytes as soon as it has received them.

So I think I have to choose the RX1_FLOW_OFF but I don't know where I can indicate the expected 10 bytes the cc2430 will have to send. Is it in the SerialApp.c file (SERIAL_APP_RX_MAX or SERIAL_APP_TX_MAX, SERIAL_APP_RX_CNT or SERIAL_APP_IDLE ???) or in hal_uart.c (SAFE_RX_MIN, DMA_RX_DLY or DMA_TX_DLY  ???). I'm a bit lost with all these parameters...

Could you help me ?? Thanks a lot.

Best regards.

ioio59fr.

  • Hello,

    If you are using the serial app example you should not need to set any flow control.  You should simply be able to send UART data out your serial port.  However, note that you might encounter a problem if you have a device set up for polling (end device) and are also sending lots of UART data.  The chip may reach a point where it can not keep up with the data.  So I would recommend turning polling off and only using devices that do not sleep when sending serial data.

    Hope this helps.

    Cheers,

    Yoda

  • Hi Yoda and thank you for answering.

    I have made some tests with just : uartConfig.flowControl = FALSE  and it works.

    The only problem I have is that when I look at the received frames in the coordinator, they come out off his uart every 120ms by 20 or 30 bytes, instead of having 10 bytes every 50ms like it was written to the uart of the ED.

    I don't understand why, do you think it may come from the value of the parameters I talked about (SERIAL_APP_RX_MAX,...) or from other parameters (like MAC_CFG_TX_MAX or MAC_CFG_RX_MAX in mac_cfg.c), or from something else ??

    Thanks, best regards,

    ioio59fr