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.

[参考译文] CC2340R5:CC2340R5:BLE-485、通过低功耗蓝牙(RS)

Guru**** 2540720 points
Other Parts Discussed in Thread: CC2340R5, SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1372633/cc2340r5-cc2340r5-rs-485-over-bluetooth-le-ble

器件型号:CC2340R5
主题中讨论的其他器件: SysConfig

工具与软件:

您好!

我最近被问及 CC2340R5器件是否可以通过 BLE 仿真 RS485。 答案是 这相当容易实现。

此视频 https://www.ti.com/video/6107769508001详细介绍了 RS -485格式及其对数据可靠性的影响。

TI 提供 RS -485收发器、要求 MCU 通过 UART 输出数据、并在传输 rs rs 数据时驱动至高电平-请参阅 https://www.ti.com/interface/UART-485-GPIO-422/overview.html

将此类 RS 至485收发器与 CC2340R5连接时、应该需要将 GPIO 配置为输出(使用 SysConfig)。 然后,应该在 UART_write()之前调用 GPIO_write()。 如果您处于回调模式、则应在回调函数中将 GPIO 设置为低电平。 如果您处于阻塞模式、则可以在 UART_WRITE ()返回后将 GPIO 设置为低电平。  

现在、为了实现"BLE"部分、您应该考虑下面链接中提供的基于 BLE 的数据流 UART: https://github.com/TexasInstruments/ble_examples/tree/simplelink_low_power_f3_sdk-7.40/examples/rtos/LP_EM_CC2340R5/ble5stack/data_stream_UART_over_BLE

我希望这将有所帮助、

此致、