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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/17/06 14:08
Read: times


 
#126576 - Checksums are not spackle
Responding to: ???'s previous message
Andy said:
Shouldn't be any problem at all with a proper interrupt-driven, buffered UART "driver"

Wrong, wrong, wrong! How can you say this? Depending on how long his timer interrupt takes and how fast he wants to run the motor, there may not even be enough time to handle the motor by itself, let alone the message handling on top of it. Yu needs to make measurements we have been discussing before anyone can say "shouldn't be any problem at all".

Andy said:
However, you should design your serial protocol to be tolerant of the odd dropped character...

True. You should always design your serial protocols to be tolerant of the odd dropped or garbled character, because sometimes they just happen. But you should not a design a system where you expect dropped characters to result from things that you control. In this particular case, it would be wrong to design the system so close to the edge that characters were occasionally dropped because there was not time to process them, and then hope to cover up the problem with a fancy message protocol.

Checksums and error correrction and message retries are appropriate for dealing with noisy communications channels. They are not appropriate for trying to patch up holes in a poor systems design.

-- Russ


List of 43 messages in thread
TopicAuthorDate
How to calculate CPU usage?            01/01/70 00:00      
   Generally            01/01/70 00:00      
      multicore '52?            01/01/70 00:00      
   Keil Tools            01/01/70 00:00      
   With what tools ?            01/01/70 00:00      
      Always 100.0%            01/01/70 00:00      
      Or            01/01/70 00:00      
         LED?            01/01/70 00:00      
            A way, Not the Way            01/01/70 00:00      
               spelling and syntax, just as an aside            01/01/70 00:00      
                  Thanks guys.            01/01/70 00:00      
                     What would that tell you?!            01/01/70 00:00      
                        100% is not always 100%            01/01/70 00:00      
                           Idle Not Idle            01/01/70 00:00      
                              We can not see your code            01/01/70 00:00      
                                 60% is not arbitrary            01/01/70 00:00      
                              Run a co-operative tasker!            01/01/70 00:00      
                                 he is doing the right thing, why lead him astray            01/01/70 00:00      
                              WHY            01/01/70 00:00      
                     then this is off-topic            01/01/70 00:00      
                        This isn't the Keil forum, so why ?            01/01/70 00:00      
                  My spelling sucks            01/01/70 00:00      
   Be sure to measure what's important            01/01/70 00:00      
      Good point            01/01/70 00:00      
         ISRs            01/01/70 00:00      
         Protocol?            01/01/70 00:00      
            adding a word            01/01/70 00:00      
            Checksums are not spackle            01/01/70 00:00      
         Try this            01/01/70 00:00      
            clarification            01/01/70 00:00      
               Delay.            01/01/70 00:00      
               Thanks            01/01/70 00:00      
            I'll try this!            01/01/70 00:00      
               Now try this!            01/01/70 00:00      
                  It still qualifies as simple ...            01/01/70 00:00      
                  Stepping inside ISR            01/01/70 00:00      
                     Essential things ...            01/01/70 00:00      
                  it still applies            01/01/70 00:00      
         re; control task            01/01/70 00:00      
            an added word            01/01/70 00:00      
            Buffered UART ?            01/01/70 00:00      
               there is a reason            01/01/70 00:00      
   Done!            01/01/70 00:00      

Back to Subject List