Forums | Other (Public) | busy tone detection | Watch |
Author | Topic |
dan.me Tl Posts: 3 Romania | Posted - 11/22/2006 5:08:38 PM I use an external com1 dial-up modem. In a .bat file after this line: ECHO ATDT0742286318 >COM1 i need to write a command to detect busy tone (and if it is detected to continue the script). The modem i use is a Creatix V90/56k external modem. Creatix Lifetec GC 326.0 modem You damn sadist, you try to make people think! |
v.Richard Tl Posts: 6222 USA | Posted - 11/25/2006 5:52:43 PM Sorry - not an expert on batch files, and not sure if you can do what you are asking. 1) Can you write a batch file that would stop and wait for you to enter multiple characters from keyboard until pressing ENTER key and take conditional action? (I don't think you can.) If you can't do that with a batch file, I don't think there's anyway you can go further. 2) If you can do (1) above, then you'd redirect console COM1 to be the console input.... Aloha! Richard. |
dan.me Tl Posts: 3 Romania | Posted - 11/26/2006 12:46:29 AM But how can be explained the fact that fortunately i received the "busy" string in file.txt as soon as it detected busy signal. I hear it in the modem speaker and it is sync with the creation of file.txt. I used this: ECHO ATDT0742286318 >COM1 As i know modem is default set on X4 Result codes, Busy and dial tone detect enabled (factory setting) so it automatically sends X4 Result codes to Com1, no need to ask them myself. This is what i think it is happening here. I can write a batch file that would stop and listen to com1 but that's the problem here, it blocks here, i can't pass to the next line. This is the line in cause: PS: You damn sadist, you try to make people think! |
v.Richard Tl Posts: 6222 USA | Posted - 11/26/2006 4:54:27 PM Take a look at http://www.codeproject.com/threads/redir.asp Sugest you try and find forum for programming/batch files as you might be able to get more help there.... Aloha! Richard. |
Click Here To Close Thread, Administrators & Moderators Only.
Show All Forums |