In industrial side, modbus protocol is very common to use. So I decided to write simple Modbus Library for small microcontrollers so you can use it very easyly.
When you look at the examples, you can see PIC18 example with using CocoOS and Petit Modbus library.
This is the article from my blog (It is Turkish)
If you have any suggestion please write me.