Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/22/03 13:36
Read: times


 
#55105 - RE: 485 Master slave polling protocol
Responding to: ???'s previous message
1. Should the master using the Loop to montior and intake the serial port data?
or using serial interrupt to check the incoming data?

Serial = interrupt | trouble

2. I may using the array or string to store the incoming data.
Which method is easily and better?

either, however the usual is a circular buffer (do not attempt to process the data in the ISR)

3. there may be some missing byte during sending data so that may lead to system hang.
How can i avoide it?

timeouts
4. As i think the Packet length seems fixed. Is it
better to reduce the Length byte in the Packet?
It may be an idea to keep the length byte - especially if you may have to upgrade the master and create another slave in the future - that way if you ever need to go to variable length there is no major changes.

5. Any problem in my protocol?
none, but what may be related to what you do which I do not know what is.

Erik



List of 12 messages in thread
TopicAuthorDate
485 Master slave polling protocol            01/01/70 00:00      
   RE: 485 Master slave polling protocol            01/01/70 00:00      
      RE: 485 Master slave polling protocol            01/01/70 00:00      
         RE: 485 Master slave polling protocol            01/01/70 00:00      
      RE: 485 Master slave polling protocol            01/01/70 00:00      
         RE: 485 Master slave polling protocol            01/01/70 00:00      
            RE: 485 Master slave polling protocol            01/01/70 00:00      
   RE: by the way            01/01/70 00:00      
      RE: by the way            01/01/70 00:00      
         RE: by the way            01/01/70 00:00      
         RE: by the way / Code            01/01/70 00:00      
   RE: 485 Master slave polling protocol            01/01/70 00:00      

Back to Subject List