@ Charles ..thanks a million for the tips will check them out as soon as I have the array(s) built up.
@ Al .. Thanks for the tip there , has me wondering how I can put the 2D array to use for my a solution.
I am guessing as a start I should replace the DEBUG sommand with something like serin2 and build the array with one command ?
Something like :
Code:
SerIn2 GPIO.4,T2400,500, main,[WAIT(SYNK),STR DATAIN\4]
This would indeed create an array and store the 4 bytes and the checksum byte.
But again I want to to do this 4 times and have either one array with the contents of each time OR I could try have 4 different arrays (one created for each time) and then check the checksum values for each array.
Now I am wondering if I am doing the right thing , perhaps I should rather have more SYNK/qualifier bytes and send and receive one instance of the data and checksum that.
Problem is that sometimes some corruption occurs at the receiver side so to solve this I thought it best to send more instances of the same data.
Any more suggestions are welcome
Kind regards
Dennis
Bookmarks