Just 1 degree granularity 10, 11, etc
.
Well, if it was me, and I wanted close to 100% assurance that my data was good, I guess I'd go a little bit crazy and do something like have a 'packet' of X number of bytes, each packet for one temperature reading for each 'location'...
packet start ID (example of $FF)
address X.lowbyte
address X.highbyte
data byte
same data byte (inverted)
address X.highbyte (inverted)
address X.lowbyte (inverted)
packet end ID ($00, which is the packet start ID inverted)
So, I'd end up with an 8 byte packet, everything is sent, then it's all sent again but inverted at the bit level. The packet start ID might be an $FF (because the temp's will never be that high), the addresses might be that high, but if you got that then the packet end ID wouldn't match up.
It's a bit overkill, but I don't see why it would work. And really, I think I'd trust my wiring enough to just send a couple of $FF's as a start marker, then the whole recorded memory from start to finish, maybe with a couple of $FF's as an end marker.
It's all up to you. You get to make RSP... ruijc's serial protocol.
Thanks Skimask,
I agree. Me also.Well, if it was me, and I wanted close to 100% assurance that my data was good
It makes perfect sense.
The reason i'm with this system it's because it was simple to build and simple to transfer the data to the PC using a freeware RS232 logger software. I just dump the values to it with the format i have showned ( one temp value per line ) saving them in a txt file and then just import to excel and generate the graphs.
The reason i'm asking how to do this with this system is that this way i can maintain my logger as is and just need to build the module with LCD to view the data "on site".
I cannot re-program the logger because it's encapsulated with resin to reduce size and weight.
If it could be done i was more than half way there to complete the module
Thanks
sorry, didn't read last post
Last edited by amgen; - 1st August 2008 at 23:00.
I have not tried it, but could you use 10 or 13 for the wait character and then store the data.
Dave
Always wear safety glasses while programming.
Greetings mackrackit,
The 13,10 it's just for carriage return like so:
How can i detect it ?Code:DEBUG DEC VALUE,13,10
.
Bookmarks