home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,519 of 68,980   
   JJ to All   
   Read modem AT command response using onl   
   18 Apr 20 19:04:16   
   
   From: jj4public@vfemail.net   
      
   I know we can use the command prompt to send modem AT commands using MODE   
   then ECHO or COPY commands, but can it also be used to receive the response   
   from the modem?   
      
   I tried using below code but it stuck at last command - waiting for data.   
   (long text warning)   
      
     @echo off   
     echo configuring port...   
     mode.com com7 baud=96 parity=n data=8 stop=1 to=on xon=off octs=on odsr=off   
   idsr=off dtr=on rts=hs   
     echo sending command...   
     >com7 echo at^&f   
     echo receiving response...   
     type com7   
      
   Same thing if I use COPY command to read the modem. e.g.: copy com7 con   
      
   FYI, the port number is already correct, and the port configuration matches   
   the one which was set by the Hyper Terminal application, and it's the   
   correct configuration for the modem.   
      
   I already confirmed that sending modem command from command prompt to e.g.   
   change modem setting, does work after checking the modem setting from Hyper   
   Terminal. Meaning that the port configuration for the command prompt is   
   correct, and the AT command is indeed sent to the modem. The problem is   
   receiving the modem response.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca