Click here to Skip to main content
16,005,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

Can someone show me how to reboot a modem with c# programming

It's a Siemens Modem,

thank you very much
Posted
Updated 12-Aug-10 22:31pm
v2
Comments
Henry Minute 12-Aug-10 23:49pm    
What sort of Modem? Edit your question to give more information.

1 solution

Do you have any code that lets you communicate with the modem already? If so, the proper command sequence is:

+++
ATZ


Wait for an OK response after you send the +++ sequence; that sequence tells the modem to enter Command Mode and to listen for a command string. When it's ready, it responds by sending back OK. You do not need a CRLF after the +++ string, but you do need it after sending the ATZ command. Modern modems are able to hold multiple sets of default settings. These can accept the command ATZn, where n is a number that selects the proper state to reset the unit to. Use n = 0 to select the factory default settings.

If you haven't written the code to communicate with the modem yet, research the SerialPort class in System.IO.Ports. You should find what you need there. If not, post again after you've tried a few things and include any code you've written, That will help us to provide you with better answers. Good luck!
 
Share this answer
 
Comments
Wayne Gaylard 13-Aug-10 2:54am    
Reason for my vote of 5
Hows that for a good answer 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900