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.

Compiler/TMS320F2808: Simple modbus protocol for serial communication in F2808 controller.

Part Number: TMS320F2808
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI C/C++ Compiler

I am currently working on a project which will allow different automates to communicate. To do so, I would like talk using the modbus protocol serial communication from SCI to bluetooth module. I am not sure if I want to be using ModBus/TCP, ModBus/RTU  for now.

I have searched for simple examples in C and I could find f28335 based controller example but am not sure about the communication in it. I would like to start from scratch so libraries are not what I am looking for.

What I am asking for is if someone could give me a simple code written in C for serial communication that communicate using Modbus, since I am not sure of what I will be using any type of Modbus would be a great help (RTU/TCP/ASCII).

The simpler the better, what I would like the code to demonstrate is.

Thank you very much for your time.