Other Parts Discussed in Thread: CC2640, , LAUNCHXL-CC2650, LAUNCHXL-CC2640R2
Dear Experts
Do you have any example code to implement RS485 on CC2640R2?
Thanks for your comment.
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.
Dear Experts
Do you have any example code to implement RS485 on CC2640R2?
Thanks for your comment.
Dear Fredrik
Most of RS232 & RS485 firmware are the same except RS485 need to handle half-duplex.
If there is any existing RS485 firmware, it will be easier for my customer.
Otherwise, they may need to spend time to modify it.
So do you have an example with half-duplex for RS485 exactly?
Thanks for your support.
Dear Fredrik
The link you propose is UartEcho.
My customer tried this driver program successfully some weeks ago.
It only receives a byte from UART RXD input, CC2640R2 LaunchPad then echos this byte to UART TXD pin.
And it has no relationship with BLE and could not relay the byte got from RXD to a mobile phone APP.
Nor it could receive a byte from mobile phone via BLE of 2640R2 and send to UART TXD pin.
That is, it only does the following:
CC2640R2 LaunchPad <-- UART RXD <-- MCU
CC2640R2 LaunchPad --> UART RXD --> MCU
Hope to have a firmware that can do the following communications:
Mobile Phone APP <-- BLE <-- CC2640R2 LaunchPad <-- UART RXD <-- MCU
Mobile Phone APP --> BLE --> CC2640R2 LaunchPad --> UART RXD --> MCU
Do you have any comment on this?
Thanks for your support.