Wireless communication


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If everybody is transceiver equipped, use the "main" to poll each "remote" station.

    Each remote station have their own "address" and they hold/wait to send their data 'till they're ask to do so.

    Using this will save some possible collision.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Since you have to count and transmit the total, I insist on using the tranceiver method. You can leave every of the 40 pic as Steve stated in a polling state and when the address is valid for each station, then this station report back. No collisions this way.

    From the PC side you have to implement a way to address each one of the 40 pics in circle.

    For example in a loop:

    for i=0 to 39
    send address i
    gosub receive from station i
    next i

    Ioannis

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    If you have to update whenever any machine changes state, polling will not work since a machine may change state more than once between polls, especially if you have 40 machines to poll. Nor will just letting each machine transmit as it changes, as you are sure to have collisions and lost data. And, a loop which polls each of 40 machines will violate every European regulation on how often any one transmitter can transmit. OTOH, if you can accumulate counts locally and transmit the total periodically, polling or independent transmission will work. An occasional collision can will not matter as an accurate count can be sent with the next transmission. It all depends on how frequently each count changes and whether you need to have each change registered immediately. If you can live with independent transmitters, you can use much cheaper hardware. What distances are involved? As this sounds like a factory floor, my guess is it's not very RF friendly with lots of metal surfaces and maybe lots of interference. I'd look at a wired RS-485 network.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Yes Dave. You are right about regulations but we lack of some specs by Pedro Pinto, so only guesses we can make.

    Absolutely agree for the 485 solutions. Rock solid communications.

    Ioannis

Similar Threads

  1. Wireless serial communication question
    By Ahmadabuomar in forum Serial
    Replies: 3
    Last Post: - 21st December 2009, 03:49
  2. Simple Wireless Communication
    By jhorsburgh in forum General
    Replies: 6
    Last Post: - 27th March 2008, 11:02
  3. Replies: 2
    Last Post: - 29th September 2007, 06:49
  4. RS 485 wireless communication
    By Armadus in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 26th January 2006, 19:30
  5. Wireless communication gear.
    By toalan in forum Off Topic
    Replies: 5
    Last Post: - 17th March 2005, 16:33

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