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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/17/08 12:33
Read: times


 
#154842 - 1 Suggesion to get slave ID
Responding to: ???'s previous message
Hi Shruti,

Before suggesting I want to know few things from u.

1. Does Master knows how many maximum slaves are there?
2. Is it possible for you to introduce hierarchy of slaves?
3. As you said earlier is it only the problem before knowing IDs at power on.
4. Is it possible to change logic of OE atleast for this part of power on.

If answers to all 4 questions are YES then you can try out following. (other wise also you can give it a try)

when master sends request for ID, (AAh, 01h, CCh), let the slaves start a timer.

A.> Slave1 (say id 49h) will respond immediately (AAh, 49h, CCh) by becoming a transmitter. while other slaves will remain in slave reciever mode.
When transmition is over for slave1 it will go back to reciever mode. & stop its timer.

B.> After say 10ms slave2 (say id 76h) will responds by becoming transmitter. When transmission is over it will go back to reciever mode & stop its timer.

C.> After another 10ms (20 ms after getting request from Master) slave 3 will do same thing. This will continue till all of them have finished sending ID.

D.> After receiving last ID master will go to transmitter mode.


In above method it 10ms is just indicative, you can change it according to your system.

Mahesh

List of 18 messages in thread
TopicAuthorDate
RS            01/01/70 00:00      
   Sorry about the subject-- I should ahve typed            01/01/70 00:00      
   how do you expect that to work?            01/01/70 00:00      
      Send slave ID again..            01/01/70 00:00      
      one transmitter            01/01/70 00:00      
         maybe            01/01/70 00:00      
   Keep in mind that RS485 also...            01/01/70 00:00      
      I'd get rid of the "OE"            01/01/70 00:00      
         I agree            01/01/70 00:00      
         more to add            01/01/70 00:00      
            get rid of the OE            01/01/70 00:00      
            how can slave turn OE line high?            01/01/70 00:00      
   1 Suggesion to get slave ID            01/01/70 00:00      
      again: OE will not work            01/01/70 00:00      
         OE line connected , but not used            01/01/70 00:00      
            changes            01/01/70 00:00      
      Use ID as timer value            01/01/70 00:00      
         Use ID as timer value wil not work ...            01/01/70 00:00      

Back to Subject List