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.