Data verification


Closed Thread
Results 1 to 6 of 6
  1. #1

    Default Data verification

    I am working with two PICs different in different frequencies (10 and 20 MHz).
    My doubt if relates to the use of HSERIN and HSEROUT. The baud rate is 9600.
    The first PIC1 read seven sensors/potentiometers and send for the second PIC2, only three variables with eight bits. The second PIC2 will control an industrial DC motor.
    In case of timeout, ok, stop the motor. Could be a broken wire. No problem here. The project is working.
    These two pics are work fine. The motor control is OK and HSERIN/HSEROUT are OK
    My problem is:
    How to make the verification of the data sent?
    In case that it occurs errors in the data, it will be able to cause an accident.
    I do not know as to make or a verification or a automatic correction of the data sent.
    The maximum time of delay will not be able to exceed 1,5mS
    Do you can help me? Thanks,

    Daniel

  2. #2
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Default

    Search the forum/internet for information about CRC. That will provide you with error notification within each packet.

  3. #3

    Default

    I looked for CRC and I did not find nothing. What it is CRC?

  4. #4
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Default

    Cyclic redundancy check

    or

    CheckSum

    http://en.wikipedia.org/wiki/Cyclic_redundancy_check

  5. #5

    Default

    Hi DynamoBen,

    Ok, but how make it in picbasic pro?
    I send three variables with eight bits (byte) each, for another pic.
    I don't know how to implement it.
    Thanks, Daniel

  6. #6
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Default

    What you are asking is very general, I'm not sure what would work best for your application. You will have to choose a method that works for you. The best I can do is suggest things that might work, you will have to sort through the details or each option. If you have specific questions about a specific method we should be able to help you out.

    Have you searched the forums and read through other discussions on this topic? If so that should give you a start. Below are some threads that might help spark some ideas.

    http://www.picbasic.co.uk/forum/sear...d=146892&pp=25

    http://www.picbasic.co.uk/forum/show...light=checksum

    http://www.picbasic.co.uk/forum/show...light=checksum

    http://www.picbasic.co.uk/forum/show...light=checksum

    http://www.picbasic.co.uk/forum/show...light=checksum
    Last edited by DynamoBen; - 26th August 2006 at 03:04.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  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 : 1

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