Saving RFID Data


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Hi Skimask,

    What you mean with out of bond!?

    Did you mean when I receive a wrong character.

    Regards Pesti

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pesticida View Post
    Hi Skimask,
    What you mean with out of bond!?
    Did you mean when I receive a wrong character.
    Regards Pesti
    What happens if you get a character that you weren't expecting? One with a value too low or too high...

    For instance:
    Daten[N]= ((Daten[N]-$30) *10) + (Daten[N-1]-$30)

    What happens if the value in 'Daten[N]' or 'Daten[N-1] is $30? is $20? is $0?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Ok this is a very good argument ! :-)

    Is good that you have warnning me I forgot this :-(

    I think that i should the Data discard !

    Or I think wrong !?

    Something like this:

    Bad_Data var bit
    Bad_Data = 0

    Data_Check:
    for N = 0 to 13
    If Daten(N) < $30 then Bad_Data = 1 : Daten(N) = $30
    Next N
    Select case Bad_Data
    case 0 ' it's all ok
    for N = 13 to 1 step - 2
    Daten[N]= ((Daten[N]-$30) *10) + (Daten[N-1]-$30)
    Pause 5
    next N
    case 1 ' no good :-)
    Bad_Data = 0
    Goto Warning or something like that
    end select

    If I have Daten[N] = $30 this is not bad while $30-$30 = 0

    Regards Pesti
    Last edited by Pesticida; - 2nd February 2008 at 06:42.

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