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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/30/08 17:23
Modified:
  04/30/08 18:54

Read: times


 
#154229 - Guessing the time
Responding to: ???'s previous message
If I was doing this, I would work from the baud rate and the message sizes to estimate how long it takes to do one "cycle" of the algorithm--that is, how long it takes to transmit the mask and the test address and then to receive the slaves' responses. Then I would modify the simulator program that I posted to count and display the number of cycles used. Then I would run the program with various combinations of slave addresses to see how it performed under different conditions.

As Erik has mentioned, the worst situation is when the slave addresses differ only in their least significant bits. When that's true, the algorithm has to search all the way to the bottom of the tree before it can distinguish the slaves. So to get worst case timing, you would want to specify some number of consecutive slave addresses. To get more "typical" timing, you might specify some number of random slave addresses.

Please note that the algorithm ASSUMES that you can reliably distinguish between "no response", "one response", and "multiple responses". As others have pointed out, this may not be as easy as it sounds. Your first task should probably be to make sure you can do that. It would be silly to waste time estimating the performance of an algorithm that you can't use.

-- Russ


List of 19 messages in thread
TopicAuthorDate
Followup on slave enumeration algorithm            01/01/70 00:00      
   algorithm            01/01/70 00:00      
      well, it's simple            01/01/70 00:00      
      Typo            01/01/70 00:00      
      a matter of time            01/01/70 00:00      
         Time            01/01/70 00:00      
            figure it out this way            01/01/70 00:00      
            Guessing the time            01/01/70 00:00      
   More on theory vs. practice            01/01/70 00:00      
      the practical reality ...            01/01/70 00:00      
         of course ....            01/01/70 00:00      
            Well done..starting for third countries            01/01/70 00:00      
            But still            01/01/70 00:00      
               Starting for third countries            01/01/70 00:00      
                  Jecksons please read the previous thread            01/01/70 00:00      
                     Third countries            01/01/70 00:00      
                        I am feeling Dizzy            01/01/70 00:00      
                  and what does that tell us            01/01/70 00:00      
                     Keeping this thread alive            01/01/70 00:00      

Back to Subject List