How to simulate PUSH message

How to simulate PUSH message SearchSearch
Author Message
Marine
Posted on Tuesday, September 30, 2003 - 09:15 am:   

Hi,

I have encountered a question during push development. please help me.

I want to simulate push message on pc(not

phone), I wish that I can received push message in

Visual C++6.0 in order to debug it. I see that

nowsms only provide phone message fuctionality.

could you tell me how to simulate push message on

pc(what software will be install) ?

Thanks in advance.










Bryce Norwood - NowSMS Support
Posted on Tuesday, September 30, 2003 - 09:15 pm:   

You can specify an IP address in place of the phone number, and when NowSMS detects this, it sends a push out over IP (UDP Port 2948) instead of SMS.

Note that very few phone simulators support receiving IP-based push. After loading a phone simulator, you can use the "NETSTAT -a" command to determine if the simulator is even listening for push requests on UDP port 2948.

kevin
New member
Username: Kevin

Post Number: 1
Registered: 10-2003
Posted on Tuesday, October 21, 2003 - 10:54 am:   

Hi,
Thanks for your answer.

I do it in light of your suggestion,but I dont

receive any question with port monitor tools,

could you please explain it detailedly, including

how to configure nowsms.

thank you very much.


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 933
Registered: 10-2002
Posted on Tuesday, October 21, 2003 - 11:07 am:   

First, you need a push client (simulator) that can receive messages over IP.

The only simulators that I have seen which have this support are the Nokia one when the default phone is used (not one of the simulators that emulates a real phone).

You can determine if any simulator or application is listening for a push over IP using the "NETSTAT -a" command. When you run "NETSTAT -a" it tells you all of the active IP connections (and ports open for listen) on your local PC. In the "Local Address" column, if port "2948" (follows ":") is listed with "UDP" in the "Proto" column, then this indicates that there is an application listening on the WAP push port over IP.

If you do not see any such entry in the results of the "NETSTAT -a" command, then any further attempts will be futile, as there is no simulator or application even listening for WAP push over IP.

In NowSMS, from the web menu interface, you can send a WAP push or MMS message by specifying an IP address in the "phone number" field.

-bn
kevin
New member
Username: Kevin

Post Number: 2
Registered: 10-2003
Posted on Tuesday, October 21, 2003 - 02:16 pm:   

I have dowloaded simulator from NOKIA website.

when I startup this appication and use netstat -an command, result is below:
Proto Local Address Foreign Address State
TCP 0.0.0.0:25 0.0.0.0:0 LISTENING
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:371 0.0.0.0:0 LISTENING
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1044 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1063 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1071 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1077 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1100 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1101 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1103 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1111 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1112 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1114 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1387 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1741 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1891 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1896 0.0.0.0:0 LISTENING
TCP 0.0.0.0:2040 0.0.0.0:0 LISTENING
TCP 0.0.0.0:2049 0.0.0.0:0 LISTENING
TCP 0.0.0.0:8800 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1100 127.0.0.1:1101 ESTABLISH
TCP 127.0.0.1:1101 127.0.0.1:1100 ESTABLISH
TCP 127.0.0.1:1111 127.0.0.1:1112 ESTABLISH
TCP 127.0.0.1:1112 127.0.0.1:1111 ESTABLISH
TCP 127.0.0.1:1895 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1895 127.0.0.1:1896 ESTABLISH
TCP 127.0.0.1:1896 127.0.0.1:1895 ESTABLISH
TCP 127.0.0.1:8800 127.0.0.1:2110 TIME_WAIT
TCP 127.0.0.1:8800 127.0.0.1:2111 TIME_WAIT
TCP 127.0.0.1:8800 127.0.0.1:2112 TIME_WAIT
TCP 127.0.0.1:8800 127.0.0.1:2114 TIME_WAIT
TCP 127.0.0.1:8800 127.0.0.1:2115 TIME_WAIT
TCP 127.0.0.1:8800 127.0.0.1:2120 TIME_WAIT
TCP 127.0.0.1:8800 127.0.0.1:2121 TIME_WAIT
TCP 127.0.0.1:8800 127.0.0.1:2123 TIME_WAIT
TCP 127.0.0.1:8800 127.0.0.1:2124 TIME_WAIT
TCP 192.168.57.5:139 0.0.0.0:0 LISTENING
TCP 192.168.57.5:1741 192.168.50.2:8080 CLOSE_WAI
TCP 192.168.57.5:2014 0.0.0.0:0 LISTENING
TCP 192.168.57.5:2014 192.168.50.5:139 ESTABLISH
TCP 192.168.57.5:2040 192.168.50.2:445 ESTABLISH
TCP 192.168.57.5:2049 192.168.50.5:445 ESTABLISH
TCP 192.168.57.5:2058 0.0.0.0:0 LISTENING
TCP 192.168.57.5:2058 192.168.50.101:139 ESTABLISH
TCP 192.168.57.5:2066 0.0.0.0:0 LISTENING
TCP 192.168.57.5:2066 192.168.50.3:139 ESTABLISH
TCP 192.168.57.5:2117 192.168.57.5:1891 TIME_WAIT
TCP 192.168.57.5:2118 192.168.50.1:445 TIME_WAIT
UDP 0.0.0.0:135 *:*
UDP 0.0.0.0:371 *:*
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:1027 *:*
UDP 0.0.0.0:1049 *:*
UDP 0.0.0.0:1055 *:*
UDP 0.0.0.0:1074 *:*
UDP 0.0.0.0:1090 *:*
UDP 0.0.0.0:1091 *:*
UDP 0.0.0.0:1099 *:*
UDP 0.0.0.0:1102 *:*
UDP 0.0.0.0:1104 *:*
UDP 0.0.0.0:1105 *:*
UDP 0.0.0.0:1106 *:*
UDP 0.0.0.0:1110 *:*
UDP 0.0.0.0:1113 *:*
UDP 0.0.0.0:1115 *:*
UDP 0.0.0.0:1116 *:*
UDP 0.0.0.0:1119 *:*
UDP 0.0.0.0:2948 *:*
UDP 0.0.0.0:2967 *:*
UDP 0.0.0.0:3456 *:*
UDP 0.0.0.0:9200 *:*
UDP 0.0.0.0:9201 *:*
UDP 127.0.0.1:1248 *:*
UDP 127.0.0.1:1257 *:*
UDP 127.0.0.1:1328 *:*
UDP 127.0.0.1:1403 *:*
UDP 127.0.0.1:1847 *:*
UDP 127.0.0.1:1949 *:*
UDP 192.168.57.5:137 *:*
UDP 192.168.57.5:138 *:*
UDP 192.168.57.5:500 *:*

I think that port2948 has been opened.

In now sms gateway, 'SMSC' add GSM phone to PC
and 'test' is ok.

In wap push message of Nowsms Web interface, I setup values below:
Connection Type: Service Indication (SI)
Phone Number: 192.167.57.5 (my local address)
WAP URL: wap.yahoo.com
Text: This is a test !
Signal Action:Medium
SI ID (optional):
SI Created (optional):
SI Expires (optional):

when I submit this message, smslog indicate ERROR.
Port2948 hasn't received any data (usiing port monitor tools) and simulator hasn't any respond.
Please tell me where is wrong?

thanks!



Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 939
Registered: 10-2002
Posted on Tuesday, October 21, 2003 - 06:52 pm:   

You say that the SMSLOG indicates an ERROR.

What exactly does it indicate?
kevin
New member
Username: Kevin

Post Number: 3
Registered: 10-2003
Posted on Wednesday, October 22, 2003 - 04:46 am:   

Hi,

If I set
Phone Number: 192.168.57.5 (my local address) ,
smslog is blank.
but I set Phone Number: http://192.168.57.5 ,
"SMSOUT-20031022.LOG" indicate below:
2003-10-22 11:36:30,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:36:37,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:36:43,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:36:49,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:36:55,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:37:01,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:37:07,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:37:13,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:37:19,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:37:25,3F95F90D.req,127.0.0.1,192168575,Retry Pending - ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:
2003-10-22 11:37:31,3F95F90D.req,127.0.0.1,192168575,ERROR - Modem Response (2): +CMS ERROR:0 -- COM4:,Binary=1;DCS=F5;UDH=0605040B8423F0;Data=E60601AE02056A0045C60C037761702E79 61686F6F2E636F6D00070103546869732069732061207465737421000101
I think that the modem communicate with pc via at
command. If we set phonenumber is IP address and when the phone receive this command, the phone must be return +CMS ERROR( I havn't get the meaning of '0' from GSM04.11 spec)due to incorrect
number. is my understanding correct?
If it is, how to simulate push message from nowsms
gateway?








Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 948
Registered: 10-2002
Posted on Wednesday, October 22, 2003 - 08:00 pm:   

Don't put an "http://" in the address ... it is not an HTTP request.

Just put the IP address in there:

192.168.57.5
kevin
New member
Username: Kevin

Post Number: 4
Registered: 10-2003
Posted on Thursday, October 23, 2003 - 04:35 am:   

Hi,
I only put 192.168.57.5 in phone number, but

it don't generate any information, no data is

writen in smslog. is my nowsms setting wrong?

please help me confirm it. It is urgent to

me,thank you very much!



Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 952
Registered: 10-2002
Posted on Friday, October 24, 2003 - 10:36 pm:   

When you push to an IP address, it doesn't end up getting logged (we added this functionality for people who were testing).

So I expect the push is getting sent.

But what do you have receiving it?

As an example of how it works, download the Nokia Mobile Internet Toolkit (if you haven't already) from www.forum.nokia.com.

The Nokia Mobile Browser Simulator will display a message envelope when a push is sent to its IP address, and you can open it from that simulator. (Most of the actual real phone simulators do not actually listen for push over IP.)