Testing Modem connection through NowSMS api

Testing Modem connection through NowSMS api SearchSearch
Author Message
adi
Unregistered guest
Posted on Monday, February 07, 2005 - 05:45 pm:   

Hi

I am using a Bluetooth phone as a GSM modem for my Now SMS gateway. Occasionally, for reasons that I don't understand, NowSMS loses its pairing with the phone. This is quite probably a problem with the bluetooth driver although I am only having a problem with the NowSMS gateway. I find that if I restart the SMSC and MMSC services, everything seems to right itself.

My question is this: Is there a NowSMS api call through the http interface or some other interface that will allow me to test whether I am able to communicate with this particular modem? I cannot open the device myself since NowSMS has a lock on the resource. What I really want to do is check for a connection, if it does not exist, restart the services.

Another question, possibly related to the first is that when NowSMS does control the phone, the phone grinds to a halt. After pressing a button, I only get a response from the phone minutes later. Is this normal behaviour, the phone that I am using is a Nokia 6820.

Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4041
Registered: 10-2002
Posted on Wednesday, February 09, 2005 - 10:54 pm:   

Hi adi,

I don't know about the phone grinding to a halt. I normally use SonyEricsson phones as a modem in my personal use, and I haven't seen that behaviour. But it is possible that keeping the modem connection alive could take up processing time on some phones.

I'm curious about the bluetooth phone losing connection.

I've only seen the pairing issue that you describe happen when I change phones frequently. On my laptop, you never know which phone I'm going to be using as a Bluetooth modem at any particular point in time, and I do have to re-establish pairings from time to time. I'm not aware of anything that we can do about that, as it is entirely within the scope of the bluetooth driver.

However, if you have a situation where stopping the NowSMS service and restarting it allows you to re-establish modem connectivity, then I would like to learn more about this and investigate it more.

Enable the SMSDEBUG.LOG, and let's see if you can catch a situation when this occurs.

Unfortunately, we don't have an API to check the modem status. That is something that we should add. But with 3GSM next week, I can't rush anything through development at the moment.

So let's check the SMSDEBUG.LOG. The log will roll over when you restart the service. So if you have a situation where restarting the service re-establishes the modem connectivity, I would like to see both SMSDEBUG.LOG and SMSDEBUG.BAK.

-bn