Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

LAUNCHXL-F28379D: Integration of Raspberry Pi and C2000 Board for HMI Assistance

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

I have developed a Human-Machine Interface (HMI) using Python for the front end, while the back end is implemented in C using Code Composer Studio (CCS). The challenge I am currently facing is establishing communication between the Python program and the C code. After conducting some research, I found that once the C code is flashed onto the microcontroller, communication can be established through the port to an edge device, such as a Raspberry Pi. However, despite several days of troubleshooting, I am unable to establish reliable communication between the two components. I am reaching out for assistance or guidance in resolving this issue.

I have used a 7" touch display for this which I will connect with Rasbarry Pi.

Attached is an image of the front-end interface. Could anyone provide insights or suggestions on how to establish communication between the front-end (Python) and the back-end (C code)? Any guidance or advice on this would be greatly appreciated.

Thank you for taking the time to read my message. If you have any suggestions or insights regarding this issue, I would greatly appreciate your assistance at your earliest convenience.

  • Hello,

    I apologize for the delay.

    In order to communicate between the code being run on the F2837xD microcontroller and your python script being run on your PC, you will need to use one of the communication peripherals on the F2837xD. I would suggest using SCI, as the LAUNCHXL-F28379D already contains a UART-to-USB bridge which can be connected to your PC. This will open up a serial "COM" port on your PC where characters can be sent or received. See the SCI echoback example (sci_ex3_echoback) in our C2000ware software package for an example using the COM port directly: [C2000ware install]/driverlib/f2837xd/examples/cpu1/sci/.

    On the PC side, you can use the python serial library (documentation linked here) to read to and write from this COM port.

    Best Regards,

    Delaney