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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/11/05 02:00
Read: times


 
#93285 - command Timing
Responding to: ???'s previous message

Nahed, Assuming the hardware connections are correct, then you must look at your code on the microcontroller. Earlier I mentioned a delay - your code sends a command to the modem say a ATDT01955 to dial a number, the modem doesn't respond immediately, so you must wait an amount of time before sending another command. This time may vary between say 100mS to many seconds. Most of the protocol analyser software can actually give you timing information so you can use this in your software.

Normally I would use a finite state machine to build the code for talking to the modem. This makes it easy to code the various command sequences.

Put simply the sequence is like this:

(a)send command
wait delay
check for response
if response failed, decrement retry counter and goto (a)
send next command ...... and so on












List of 26 messages in thread
TopicAuthorDate
interfacing serial modem with 89c51??            01/01/70 00:00      
   rs232 level converter.            01/01/70 00:00      
      interfacing serial modem with 89c51??            01/01/70 00:00      
   Modem Settings            01/01/70 00:00      
      interfacing serial modem with 89c51??            01/01/70 00:00      
         Read the modem manual!            01/01/70 00:00      
            interfacing serial modem with 89c51??            01/01/70 00:00      
               Evaluate what is different            01/01/70 00:00      
                  interfacing serial modem with 89c51??            01/01/70 00:00      
                     Modem            01/01/70 00:00      
   Rx Tx pins            01/01/70 00:00      
   interfacing serial modem with 89c51??            01/01/70 00:00      
      connecting the front end of two cars            01/01/70 00:00      
         Errr...what did I mention earlier?            01/01/70 00:00      
            interfacing serial modem with 89c51??            01/01/70 00:00      
               Still            01/01/70 00:00      
   Modem sinulator on PC            01/01/70 00:00      
      Protocol analyzer            01/01/70 00:00      
         interfacing external modem to at89c51            01/01/70 00:00      
            How do you know?            01/01/70 00:00      
   command Timing            01/01/70 00:00      
      command timming            01/01/70 00:00      
   I don't want to give any secrets away!            01/01/70 00:00      
      please help !!            01/01/70 00:00      
         SCOPE            01/01/70 00:00      
         STOP trying to fix it, learn what it is.            01/01/70 00:00      

Back to Subject List