Receive serial data


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    The recorded temperatures from the logger are between 0 and 160șC.
    1 degree granularity (i.e. 10C 11C) or less than that (i.e. 10.2C 11.547381223430947C)?

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Just 1 degree granularity 10, 11, etc

    .

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    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.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Thanks Skimask,

    Well, if it was me, and I wanted close to 100% assurance that my data was good
    I agree. Me also.

    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

  5. #5


    Did you find this post helpful? Yes | No

    Default logging

    sorry, didn't read last post
    Last edited by amgen; - 1st August 2008 at 23:00.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Any idea how to collect the data ? anyone ?

    .

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts