Zapro:
OK. To clarify what's going on, i will post my test program here.
I'm sorry if this seems unkind but I am not prepared to give the time needed to learn all about the project you are trying to implement. Perhaps I'm lazy.
However if you can provide a succinct explanation of how the data in your Original Post needs to be manipulated in order to meet the requirements of your device I will try to help with the code.
In the code you posted in Reply #16 there is a function sendBytes2(). If that works for the data in that program, why won't it work for the data in your Original Post?
...R