PPP Dialing issue
Bogdan Dimitriu <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Hi. I use Tini OS 1.12 with a TINI 400 board. I use a Siemens TC45 modem for connecting through GPRS. I have a PPP client class capable of redialing when necessary. As sometimes the PPPEvent.UP event is not received, I need to redial the same set of AT commands to get the UP event. I am NOT using the flow control lines to reset the modem. Just to mention that I use the same PPP object all along the redialings. How it works is if in 10 seconds after the modem has finished dialing the UP event is not received, I do the following: 1) Stop the PPP 2) Close serial port 3) Open serial port again 4) Reset modem (no flow control: +++ and ATH commands) 5) Redial AT commands This scenario is working fine for hours or for a day, but at some point, after I complete step 3) from above, the first AT command that I send to the modem, which is +++, will block. Doing some investigations I have found out that the blocking occurs on the modemOutputStream.write() method (in PPPClient.atCommand()). Now, as far as I know a write() shouldn't block, yet this is what happens. Another thing I have noticed is that I always get the same behaviour if I do the following: considering the same case where I don't get the UP event - in between steps 1) and 2) I issue a reset to the modem (as in step 4)). Here the dialer blocks forever on the same thing - when writing the +++ command to the serial port. What's interesting is that if I do the same thing, but AFTER the UP event has been received the +++ won't block. Can somebody please make any suggestions to this case ? Thanks -- Bogdan Dimitriu | Software Architect *ActiveMedia Technology* 1st. floor, Universal House, 88-94 Wentworth Street London E1 7SA Tel 44 207 247 5468 Fax 44 207 247 5477 Mobile 44 078 005 84425 [email protected] <mailto:[email protected]> www.activemediatech.com <http://www.activemediatech.com> _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini