What kind of data communication use?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2005
    Posts
    20

    Default What kind of data communication use?

    I want to create a system where all devices are able to switch on/off a relay, read value from a sensor, read an input 0-1. Naturally each device will have its own ID and they will be managed by a PC software.
    I have experience with serial communication (many times ago I got wired about 10 PICs with serial port distributed over 100m cable).
    This time probably I will have more devices, maybe >100 and distance between one device and the other will be 2-3m.
    The idea is to have max. 2 wires or do all with some RF modules. I also know that Microchip have many new solutions (LIN-WiFi modules...) for connectivity, in total I should cover more than 200 meters.
    What kind of data communication do you suggest me to use?
    Thanks, Regards

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default Re: What kind of data communication use?

    Hi,
    For the physical/electrical interface I'd use RS485, with a twisted pair cable and proper termination it'll easily handle the distance you mention. You could go the ethernet route but it adds complexity and cost - and requires at least 4 wires.
    For the protocol I'd use MODBUS (RTU for RS485 or TCP for ethernet), it's a well established protocol with good (and free) documentation.

    I don't have any experience with wireless so I won't comment on that.

    /Henrik.

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default Re: What kind of data communication use?

    Just a word of caution. Since you are talking of a Multi-master system here, you should be aware of something called CSMA-CD communications. Without implementing that, you will have a lot of trouble. FYI : it has more to do with hardware techniques to achieve that.

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default Re: What kind of data communication use?

    I don't interpret the system in the original post as a multi-master system but IF that is the case I'll take back my advice regarding MODBUS since that is a single master/multiple slave protocol only.

    /Henrik.

Similar Threads

  1. Using INTOSC 32Mhz as RF Radio Control and Data Communication
    By rayzrocket in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 13th January 2011, 12:10
  2. Kind of stuck
    By gti_uk in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 31st May 2009, 20:45
  3. Replies: 2
    Last Post: - 29th September 2007, 06:49
  4. Big Data by Serial Communication
    By piroham13 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th February 2007, 11:53

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