6310 Modem Setup Problem

6310 Modem Setup Problem SearchSearch
Author Message
Philip Fagan
New member
Username: En1gma

Post Number: 8
Registered: 02-2004
Posted on Friday, March 05, 2004 - 05:33 pm:   

Hi,

I've just connected my Nokia 6310 to my PC via the RS232 DLR-3P Adapter Cable. I have installed the Nokia PC Suite and I can conect to my phone but I am Having difficulty sending SMS messages. I cannot set up the modem at all in NowSMS. When I go to ADD/TEST MODEM, I get the following error:

"NowSMS/MMS Gateway v5.01 (b20040120)
Unable to access Modem, ensure that it is powered on and passes diagnostic tests"

Am I doing Something Wrong?
Should I set up the nokia modem in The "Modem"
folder in control panel?

Thanks in Advance!!

Philip.
Philip Fagan
New member
Username: En1gma

Post Number: 9
Registered: 02-2004
Posted on Friday, March 05, 2004 - 06:14 pm:   

Hi,

I've just succesfully sent an SMS from the HyperTerminal using AT commands, but I stll cant setup my NowSMS!!

Thanks,

Philip
Philip Fagan
New member
Username: En1gma

Post Number: 10
Registered: 02-2004
Posted on Saturday, March 06, 2004 - 07:27 pm:   

Hi,

I have set up my Nokia 6310 GSM Modem as a Standard 9600bps Modem and it now works with NowSMS. I can successfully send SMS from the NowSMS web interface.
My Problem is that I cannot receive any SMS through using the 2-way setup. I have setup NowSMS to run as a service. I have configured the 2-way as instructed by the Docs. I have tried to test it by using the wildcard as prefix to issue the echo command, which sends a response SMS,
But to no avail!!

Please Help. I am running out of time for my University Final Year Project!!

Thanks In Advance!!

Philip
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1991
Registered: 10-2002
Posted on Tuesday, March 09, 2004 - 02:55 pm:   

Hi Philip,

Apologies for the delay getting back to you.

Although maybe we discussed this via e-mail, as I seem to remember a similar problem that I discussed with someone over e-mail. In the end, the problem was that they were trying to launch NOTEPAD as the command in the 2-way command table. Because NowSMS runs as a service in the background, it is not possible to launch a program that pops up on the desktop from the 2-way command facility.

If that is not the problem that you are experiencing, then let's forget about the 2-way commands initially, and just confirm that you are able to receive messages.

Make sure that on the "SMSC" page, if you highlight the modem defintion, and press "Properties". Make sure that "Receive SMS
Messages" is checked. And I recommend leaving the "SMS Message Storage" setting to "Default".

Leave the "2-way" command table blank for now.

Now, let's make sure that the messages are being received. So on the "2-way" page, make sure that "Process Received Messages" is checked. But leave the command table blank.

Restart the service, and send a message in to the phone/modem. Does NowSMS create a file in the SMS-IN subdirectory? If yes, then messages are definitely being received, and there is something about the command being executed that is the problem.

If no messages are appearing in SMS-IN, put the gateway into debug mode. You can do this by manually editing SMSGW.INI, and under the [SMSGW] section header, add Debug=Yes. Then restart the gateway service.

Send out a message to another phone number. Send in a message to the modem. Also try having the modem send a message to itself.

After this sequence, wait a few minutes, then post the SMSDEBUG.LOG in reply to this message (or e-mail it to nowsms@now.co.uk), and hopefully this will provide some insight.

-bn
Philip Fagan
New member
Username: En1gma

Post Number: 11
Registered: 02-2004
Posted on Tuesday, March 09, 2004 - 03:30 pm:   

Thanks Bryce,

I have resolved most of the issues regarding the receiving of my SMS messages. I can now execute ASP scripts via a HTTP URL upon receiving certain "command prefixes". I am having two problems however.

1).I have an asp script which checks to see that the "Sender" number is valid. i.e.
"If mobilenumber = 353861234567 Then........"

This asp works when I type my url into Internet Explorer but it does not work through the 'execute command' in 2-way SMS.

This works in IE:
http://localhost/fypasp/eventx12.asp?mobilenumber=353861234567&dev=A1&action=off &dim=0

But this does not work in NowSMS:
http://localhost/fypasp/eventx12.asp?mobilenumber=@@@SENDER@@@&dev=A1&action=off &dim=0

Could this be something to do with the format of "@@@SENDER@@@"?

2). The other problem is that I am able to send MMS messages which are activating the "G" in the top corner of my phone, as well as the "receivng MMS symbol", but the picture message is not arriving at the phone. I have the MMSC running on Port 8800, and the NowSMS web interface running on port 8080. What could this problem be?

Thanks Very Much for all of your Help,

Regards,

Philip.
Philip Fagan
New member
Username: En1gma

Post Number: 12
Registered: 02-2004
Posted on Tuesday, March 09, 2004 - 03:44 pm:   

Sorry Bryce,

I've just realised that I was using @@@SENDER@@@ instead of @@SENDER@@. But the problem remains.
I am getting a response text which reads:
"Command not completed. Request returned invalid content type: text/html"

My asp script is not set to return anything and it's content type is set to "text/plain".

Is @@SENDER@@ a string or an integer? Does it have the "+" sign in front of it? (+353861234567)

Thanks again,

Philip
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2014
Registered: 10-2002
Posted on Tuesday, March 09, 2004 - 06:39 pm:   

Hi Philip,

We might see some more details in the debug log. Manually edit SMSGW.INI, and under the [SMSGW] section header, add Debug=Yes. Then restart the service.

NowSMS will produce an SMSDEBUG.LOG as it runs, and it should show the exact URL that it is sending out.

Usually the sender address will be a string, and it will normally start with "+".

-bn
Philip Fagan
New member
Username: En1gma

Post Number: 13
Registered: 02-2004
Posted on Tuesday, March 09, 2004 - 08:36 pm:   

Thanks Bryce

The returned number for @@SENDER@@ was: %2B353860797179. So i've accounted for that in my ASP script and now all seems to work fine!

My other problem remains however. The sending of the MMS seems to be a success. But the phone only receives the "Downloading Symbol" (paper clip + envelope rotating on nokia phones). Could it be that the port number for my MMSC (8800) is not opened up to be accessible outside the university LAN. I've asked my system Administrator to open up that port and he says he has!

Below is an exerpt from Debug.log for the sending of an MMS:

###############################################################################
20:20:00:466 [5] ThreadProcessConnection: Processing connection from 141.203.16.53...

20:20:00:476 [5] ThreadProcessConnection: Processing request /Send%20MMS%20Message.htm
20:21:29:664 [5] ThreadProcessConnection: Processing connection from 141.203.16.53...

20:21:29:875 [5] ThreadProcessConnection: Processing request /Send%20MMS%20Message.htm
20:21:29:875 [5] ParseMultipart: POST /Send%20MMS%20Message.htm HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
Referer: http://127.0.0.1:8080/Send%20MMS%20Message.htm
Accept-Language: en-us
Content-Type: multipart/form-data; boundary=---------------------------7d42841d1f0188
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Content-Length: 8216
Pragma: no-cache
Via: 1.0 castor-a.it.nuigalway.ie:3128 (Squid/2.4.STABLE6)
X-Forwarded-For: 127.0.0.1
Host: 127.0.0.1:8080
Cache-Control: max-age=259200
Connection: keep-alive

PhoneNumber=353879910007&MMSFrom=353879275375&MMSSubject=&MMSText=Test From NowSMS 2220h&MMSFile=Snapshot1.jpg&MMSFile=&MMSFile=&MMSFile=&MMSFile=&MMSFile=&MMSFile =&MMSFile=&MMSFile=&MMSFile=&Submit=Submit&
20:21:29:875 [5] Debug: 1 recipient entries
20:21:29:875 [5] Debug: 353879910007
20:21:29:955 [5] RetrieveURL: Retrieving http://127.0.0.1:8800/20040309/20/404E261Ca.MMS
20:21:29:965 [5] RetrieveURL: Retrieving 20040309/20/404E261Ca.MMS
20:21:29:965 [5] RetrieveURL: GET /20040309/20/404E261Ca.MMS HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.01 (b20040120)
Accept: */*
Connection: Close
Host: 127.0.0.1:8800


20:21:29:975 [5] RetrieveURL: got success response
20:21:29:975 [5] RetrieveURL: application/vnd.wap.mms-message
20:21:31:978 [2] ThreadProcessModem: Processing SAR-353879910007-16-2-1.req...
20:21:31:978 [2] ThreadProcessModem: OUT: AT+CMGS=153

20:21:32:058 [2] ThreadProcessModem: IN:
>
20:21:32:058 [2] ThreadProcessModem: OUT: 0041000C8153839719007000F58C0B05040B8423F000031602011606226170706C69636174696F6E 2F766E642E7761702E6D6D732D6D65737361676500AF848C82983430344532363144008D90890E80 3335333837393237353337350096286E6F207375626A65637429008A808E02184088058103093A80 83687474703A2F2F3134302E3230332E31362E33343A383830302F32303034303330
20:21:37:496 [2] ThreadProcessModem: +CMGS: 125

OK

20:21:37:506 [2] ThreadProcessModem: Processing SAR-353879910007-16-2-2.req...
20:21:37:506 [2] ThreadProcessModem: OUT: AT+CMGS=44

20:21:37:596 [2] ThreadProcessModem: IN:
>
20:21:37:596 [2] ThreadProcessModem: OUT: 0041000C8153839719007000F51F0B05040B8423F00003160202392F32302F343034453236314361 2E4D4D5300
20:21:44:105 [2] ThreadProcessModem: +CMGS: 126
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2056
Registered: 10-2002
Posted on Wednesday, March 10, 2004 - 02:01 pm:   

Philip,

It could be a problem if that port is not accessible from outside of your network.

But in this case, the bigger problem is that you have the address configured as "127.0.0.1". So when the phone receives the notification, the phone tries to connect to "127.0.0.1" to retrieve the MMS, which is not going to work.

Here's a thread that talks about this "Local Host Name or IP Address" setting:

http://support.nowsms.com/discus/messages/485/1958.html

If you have a situation where you have separate internal and external IP addresses, and you cannot connect to the external address from inside of the firewall, then see this thread:

http://support.nowsms.com/discus/messages/1/463.html

But if you're not sure whether or not you can route inbound, you might want to configure NowSMS to route the MMS messages through the operator MMSC.

See the following for info on that type of configuration:

http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Connecting_to_operator_MMSC.htm

Also, for tips on common problems with that type of configuration:

http://support.nowsms.com/discus/messages/485/3030.html

And for MMS settings for common operators when using this feature:

http://support.nowsms.com/discus/messages/485/491.html

-bn
Philip Fagan
New member
Username: En1gma

Post Number: 14
Registered: 02-2004
Posted on Wednesday, March 10, 2004 - 08:50 pm:   

Thanks Bryce,

I used 127.0.0.1 so as to disguise my real IP address!! Sorry for misleading you there.

I'll try using an Operator's MMSC instead. If that doesn't work I'll get back to you.

Thanks Again!

Philip