Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. communication protocol

communication protocol

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    udayGovekar
    wrote on last edited by
    #1

    Hi, can any one tell me about the implementation of RS-485 and also about the difference btw full duplex and half duplex if example is provided it would be of great help thanks Uday

    R 1 Reply Last reply
    0
    • U udayGovekar

      Hi, can any one tell me about the implementation of RS-485 and also about the difference btw full duplex and half duplex if example is provided it would be of great help thanks Uday

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      I can tell you about the basics. RS-485 works by voltage differential. Their are two lines which are either +ve or -ve depending on whether a 1 or a 0 is being transmitted. These lines are labelled A and B. So a 0 = A+, B- a 1 = A-, B+ (or visa-versa) Also, many devices can be on an RS-485 bus at a time. They need to use some kind of communication protocol to decide when they want to transmit on the bus. Any number of devices can listen, but only 1 can transmit at a time or you get garbled communication. Typiclly, you have 1 master device which initiates all transmissions, and then the other devices reply to the message, but they have to do so in a set time frame. DOnt forget to use checksums etc if needed to avoid bad messages. Full-duplex/Half duplex. In one of these modes you also receive in your input buffer what you send, in the other you do not. I forget which way round it is. Hope this info helps. Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

      P 1 Reply Last reply
      0
      • R Roger Allen

        I can tell you about the basics. RS-485 works by voltage differential. Their are two lines which are either +ve or -ve depending on whether a 1 or a 0 is being transmitted. These lines are labelled A and B. So a 0 = A+, B- a 1 = A-, B+ (or visa-versa) Also, many devices can be on an RS-485 bus at a time. They need to use some kind of communication protocol to decide when they want to transmit on the bus. Any number of devices can listen, but only 1 can transmit at a time or you get garbled communication. Typiclly, you have 1 master device which initiates all transmissions, and then the other devices reply to the message, but they have to do so in a set time frame. DOnt forget to use checksums etc if needed to avoid bad messages. Full-duplex/Half duplex. In one of these modes you also receive in your input buffer what you send, in the other you do not. I forget which way round it is. Hope this info helps. Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

        P Offline
        P Offline
        Phil Speller
        wrote on last edited by
        #3

        Roger Allen wrote: Full-duplex/Half duplex. In one of these modes you also receive in your input buffer what you send, in the other you do not. I forget which way round it is. Are you not getting confused with "loop back"? Full-duplex means that both transmission and reception of data can occur simultaneously. Half-duplex means that only transmission or reception can take place at any one time. There is also a form of communication called Simplex which means that only transmission or reception ever occur. Free

        R 1 Reply Last reply
        0
        • P Phil Speller

          Roger Allen wrote: Full-duplex/Half duplex. In one of these modes you also receive in your input buffer what you send, in the other you do not. I forget which way round it is. Are you not getting confused with "loop back"? Full-duplex means that both transmission and reception of data can occur simultaneously. Half-duplex means that only transmission or reception can take place at any one time. There is also a form of communication called Simplex which means that only transmission or reception ever occur. Free

          R Offline
          R Offline
          Roger Allen
          wrote on last edited by
          #4

          FreeLancer wrote: Are you not getting confused with "loop back"? Hmmm, maybe. I am going by the driver stuff installed for the RS-485 card in my PC. It can have a half/full duplex mode. Your probably right. Its been a long time since I looked at it*. * Need to get my memory chips upgraded - finally I may have 2K! Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups