Parent Directory | Revision Log | Patch
revision 57 by torben, Wed Jun 11 16:08:37 2008 UTC | revision 58 by torben, Wed Jun 11 16:14:28 2008 UTC | |
---|---|---|
# | Line 170 int GsmModem::DeleteAllSms() | Line 170 int GsmModem::DeleteAllSms() |
170 | ||
171 | void GsmModem::Init() | void GsmModem::Init() |
172 | { | { |
173 | Command( "ATZ" ); //Reset any previous setup | Command( "AT" ); |
174 | if (_timeout) | if (_timeout) |
175 | throw std::runtime_error("Modem did not respond!"); | throw std::runtime_error("Modem did not respond!"); |
176 | ||
177 | Command( "ATZ" ); //Reset any previous setup | |
178 | ||
179 | Command( "AT\\Q3" ); //Hardware flow control | Command( "AT\\Q3" ); //Hardware flow control |
180 | ||
181 | Command( "ATE0" ); //Disable echo | Command( "ATE0" ); //Disable echo |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |