My favorites | Sign in
Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
New issue | Search
for
| Advanced search | Search tips
Issue 92: Way to shutdown modem during stopGateway
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  T.Delenikas
Type-Enhancement
Priority-Medium
Milestone-v3.3.0


Sign in to add a comment
 
Reported by panratownik, Jun 25, 2008
What do You thinking about send At command during invoking stopGateway to
SerialModem.
For example add empty shutdown() method to AtHandler and invoking this
method during stopGateway() like this:

atHandler.shutdown();
super.stopGateway();
driver.disconnect();

I working with your library in company and this is very useful for us. We
need to shutdown modem when our application shutdown. We using in our
Wavecom at handler such method to shutdown our modems (Wavecom M1203A-ON
and Wavecom M1306B):

@Override
public void shutdown() throws TimeoutException, GatewayException,
IOException, InterruptedException {
    modemDriver.write("AT+WATH=31\r"); //Hang up every call
    Thread.sleep(gateway.getService().S.AT_WAIT);
    modemDriver.write("AT+CFUN=0\r"); //Stop GSM stack
    Thread.sleep(gateway.getService().S.AT_WAIT_AFTER_SHUTDOWN);
}

I thing this change is compatibile with previous versions.
Comment 1 by T.Delenikas, Jun 25, 2008
Hi,

Yes, such a change would be harmless - I guess this should be placed in the Wavecom
handler.

Out of curiocity, why would you want to shutdown the gsm stack of your modem? Is
there any advantage of doing so?
Status: Feedback
Owner: T.Delenikas
Labels: -Type-Defect Type-Enhancement
Comment 2 by panratownik, Jun 25, 2008
Yes it can be in wavecom handler. We have three difrent models od wavecom modems and
every model seem to work correctly with these At commands. 

The advantage is that we had problems with our old wavecom modem M1203A that after
reset AT+CFUN=1 modem was still remember the sim pin. We start application and smslib
ask modem about sim status. So modem tell that he require sim pin so we put sim pin
to him. Status now is ready but. When we shutdown application modem is still in
"session" and some other device can sending sms to him and calling. We don't want
such situation. After that we start again aplication and after reset (AT+CFUN=1) we
have still sim pin status = READY. It's not acceptable in our situation so we were
forced to develop shutdown method in atHandler and modify some other controll flow in
disconnect method in ModemDriver as I remember. Similar thing you have after driver
connect() when You invoking atHandler reset() method. This shitdown is invoked at the
beggining of the disconnect() method in modemdriver before disconnect from serial port.

--
Have a nice day...
Marcin
Comment 3 by T.Delenikas, Jun 25, 2008
Thanks for the explanation.
Status: Accepted
Labels: Milestone-v3.3.0
Comment 4 by T.Delenikas, Jun 26, 2008
r1085
Status: Completed
Comment 5 by T.Delenikas, Jun 30, 2008
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Hosted by Google Code