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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/23/07 08:57
Read: times


 
#133530 - write the program to your specs.
Responding to: ???'s previous message
Rucha Jewlikar said:
I am trying it by saving the ack packet in an array, and the comparing the data(actually only the last byte needs to be compared)
No I don't need to save the acknowledge packet, once i compare it, instead i have to receive the next acknowledge packet, and compare it, so i have to clear the array each time ( deos this sound right?)
thanks


Why bother to check all bytes? If you only need to compare one. Just count the bytes and at the right byte, check if it's the proper value.


In stead of saving into an array, why not check immediately? keep count of the received bytes, discard them, and check when the proper byte is received. Saves time and memory.

Unless you want a generic approach to checking the returned ACK.

regards


List of 26 messages in thread
TopicAuthorDate
Code help needed            01/01/70 00:00      
   Changing Key to Star            01/01/70 00:00      
      Thanks            01/01/70 00:00      
   Help on password entry code            01/01/70 00:00      
   Eh???            01/01/70 00:00      
      Andy sir            01/01/70 00:00      
      Security.            01/01/70 00:00      
   Thank you and another query!!!            01/01/70 00:00      
      comparing bytes            01/01/70 00:00      
         Array            01/01/70 00:00      
            write the program to your specs.            01/01/70 00:00      
               sorry            01/01/70 00:00      
                  you have to count            01/01/70 00:00      
                     Ok            01/01/70 00:00      
                        Is that going to be a commercial product ?            01/01/70 00:00      
                           hobby/educational I hope            01/01/70 00:00      
                              well            01/01/70 00:00      
                                 first project?            01/01/70 00:00      
                                    yes            01/01/70 00:00      
                                 You may want to ...            01/01/70 00:00      
                                    sorry            01/01/70 00:00      
                                       In general            01/01/70 00:00      
                                       Have you considered SDCC?            01/01/70 00:00      
                                          Must still read licence carefully            01/01/70 00:00      
                                             It's a tradeoff, not a no-brainer.            01/01/70 00:00      
   No i have not            01/01/70 00:00      

Back to Subject List