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.

CC2541开启POWERSAVING后使用默认串口传数据到APP,又不想使用流控,怎么做?

Other Parts Discussed in Thread: CC2541

CC2541开启POWERSAVING后使用默认串口传数据到APP,又不想使用流控,怎么做?

1):用寄存器操作,不使用协议栈提供的串口程序,按照上述操作,接收数据有时候正确,有时候错误,可能是那个地方影响了数据接收?

2):如果用协议栈程序来改动,开启POWERSAVING,开启串口,串口设置中,关闭流控,修改HAL库是否可以,使用P02 P03唤醒,然后初始化串口,接收数据

  • 目前对于UART的使用只有这两种:

    • UART (without power management): there is no handshaking needed as the device is not going to sleep. Therefore, only the Tx and Rx lines are needed.
    • UART (with power management): using CTS/RTS handshaking to control sleep.
    也就是说,powersaving模式下需要使用CTS/RTS
  •    很高兴每次都是你来回答问题,目前我翻遍论坛也就是你说的这两种用法。但是目前我们项目需求中确实遇到如下需求:1):开启串口2):开启低功耗3):不用流控4):低功耗模式下串口接收开始的几个字节可以容忍丢失 5):这种案例用的人比较多,你们FAE看看能不能申请做这样一个例程出来分享

  • 确实是没有,你的需求我可以帮你反馈上去,但是据我所知,目前没有针对CC254X系列增加串口例程的计划