469,323 Members | 1,575 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Dailing modem.

HI.

I need to dail a modem from python and disconnect it again. Is there a pythonic way of doing this? Life is just too short for fiddling with the complexity of TAPI via COM. But if you do have a TAPI-way of doing this, please share.

Help will be welcomed greatly!

Thanks

Herman
Jul 18 '05 #1
1 3045
> I need to dail a modem from python and disconnect it again. Is there a pythonic way of doing this? Life is just too short for fiddling with the complexity of TAPI via COM. But if you do have a TAPI-way of doing this, please share.

Help will be welcomed greatly!


Herman,

You can actually open up a file called 'COM1' or 'COM2' (or any other
com ports) and do writes to them without any win32 extensions (reads are
another matter entirely). There are tricks so that you're not trying to
open the port with both Python and some other app, but as long as your
secondary application doesn't have a hold, you can send both 'ATDT
<phone number>\r\n' and '+++ATH\r\n', for desired "dial then hangup"
behavior.

- Josiah

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Kees Bakelaar | last post: by
1 post views Thread by Ashish | last post: by
2 posts views Thread by Etienne Labuschagne | last post: by
5 posts views Thread by Cc | last post: by
17 posts views Thread by Franc Zabkar | last post: by
3 posts views Thread by Nutshell | last post: by
2 posts views Thread by muruganyuva | last post: by
reply views Thread by coaxfiber | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.