Which Communication protocol to use


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default Which Communication protocol to use

    Hello,

    I want to communicate between two pic chip. I would like to know which command to use that create the most stable and reliable wired connection.
    I am not sure which one to use between Serout, Serout2, Hserout, I2C ...

    Can somebody suggest me one, and possibly the receiving pic can send back a validation number to confirm it has received all the information.
    Also does someone has an example of this ?
    thanks

    K

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


    Did you find this post helpful? Yes | No

    Default Re: Which Communication protocol to use

    I would go with HSERIN/HSEROUT, then you can use interrupts.
    http://www.picbasic.co.uk/forum/show...097#post107097
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Which Communication protocol to use

    Great thanks

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,662


    Did you find this post helpful? Yes | No

    Default Re: Which Communication protocol to use

    A lot of I2C techniques discussed recently in this thread:
    http://www.picbasic.co.uk/forum/showthread.php?t=10141

    Robert

  5. #5
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Which Communication protocol to use

    If absolute reliability is required, then some type of error detection and/or correction should be used. ALL physical interface types are prone to an error every now and then. Choice of method depends on what overhead you are prepared to pay. A Hamming code generator is fairly easy to implement, but cuts your thoughput in half. More common is CRC which for relatively low computational overhead is very good at detecting errors so you can ask for a retransmission. Simplest is a checksum. Or send things twice and compare received results... lots of ways to get around errors, so just pick a convenient protocol for other reasons like how far you want to send data, how much bandwidth is available, etc.

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,662


    Did you find this post helpful? Yes | No

    Default Re: Which Communication protocol to use

    Yup, and checksum does not have to be nasa-type complexity either.

    There are simple techniques on google (maybe even on these forums).

    Robert

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