Desired behaviour not acheived ... | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through September 26, 2009 ⬆ |
◄ ► |
Author | Message | |||
umesh chand New member Username: Umeshchand Post Number: 1 Registered: 07-2009 |
Hello All, I'm developing a wince application which listens at a particular port eg 1234 for the sms directed to this port. As we know in windows mobile we can send/receive sms directed to a port using WAP api's. As long as i'm using my self developed application for sending and receiving sms ( port sms) more technically WAP PDU's everything is ok but when i'm using NowSMS gateway connected through Sony K310i GSM phone as a modem for sending a sms directed to a port my application does not receive this port directed sms.Moreover it is receives by the typical mail client and message appears in Inbox whereas if my receive application is not running then sending port directed sms (wap pdu) is lost it not received by natve mail application. One more question is it possible to use window mobile phones as a GSM modem for NowSMS gateway ?. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 968 Registered: 08-2008 |
Hi Umesh, What mobile operator are the modem and destination device connected to? I know that sending port addressed messages can be difficult with some mobile operators in the USA. How are you submitting the message with NowSMS? Are you sending a simple text message and specifying a destination port ... or are you building your own complete PDU and submitting it? (If you are doing the latter, can you try the former to see if your application receives it?) Are you able to send a standard WAP Push SI message using the NowSMS web interface and have your device receive it? (This will help us determine if there is a problem with port addressing being lost when sending out through the GSM modem.) Are you able to send a long text message with NowSMS and have the recipient receive it as a single message? (This will help us determine if there is a user data header related problem.) Regarding using a Windows Mobile phone as a GSM modem ... unfortunately I don't think this is possible. I have never encountered a Windows Mobile phone that supported the AT commands for SMS (as defined in ETSI GSM 07.05 and 3GPP TS 27.005). In fact, it seems that most "so called smart phones" ... including Windows Mobile, BlackBerry and the iPhone ... do not support this protocol. -- Des NowSMS Support | |||
umesh chand New member Username: Umeshchand Post Number: 2 Registered: 07-2009 |
Hi Des, I'm using NowSMS gateway connected through Sony K310i GSM phone with Airtel Delhi India sim as a modem for sending a sms directed to a port. Yes i'm sending a simple text message and specifying a destination port. No I havn't tried to send a standard WAP Push SI message using the NowSMS web interface. Are you able to send a standard WAP Push SI message using the NowSMS web interface and have your device receive it? Its my second requirement but i failed at 1st requirement due to this i havn't checked this too.Truly with my requirements i cann't check this. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 973 Registered: 08-2008 |
Hi Umesh, I believe that India may have some GSM modem issues similar to the United States, where there is a mix of GSM and CDMA technologies. Sometimes in these environments, you can only use features that require UDH (port addressing such as WAP messages, or long messages) when the modem and the receiving device are on the same network. In most of the rest of the world, where it's primarily GSM ... you don't have these issues. To troubleshoot this further, I need you to try sending a simple WAP Push SI message from the NowSMS web interface to determine whether or not WAP push works. If WAP push doesn't work, then we know there is a problem with UDH (user data headers) on your operator network. If WAP push does work, then we need to investigate a little further to determine why your port addressing test does not. I've got another suggestion for you ... have you tried text mode port addressing? Send a simple test like this: //SCKLxxxx test message xxxx is the hex for your destination port. Oh ... that does remind me of one other issue. In the port number parameter for NowSMS, NowSMS expects to see the port number in decimal format ... not hexadecimal. That is a common issue that causes confusion because usually people expect to specify port numbers in hexadecimal format. -- Des NowSMS Support | |||
umesh chand New member Username: Umeshchand Post Number: 3 Registered: 07-2009 |
Hello Des, sorry 4 late reply..coz i was out of station. Yes WAP push work.I'm able to receive the WAP push SI messages. I'm not getting your another suggestion "have you tried text mode port addressing?" ..if you are trying to say send a simple text message with port yes i tried but it received by messaging application ie message get saved in box. Also i'm giving port in decimal number. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 995 Registered: 08-2008 |
Hello Umesh, I do not know why it is not working. If no application is listening on the port, then it is normal for the message to go to the messaging application inbox (port number ignored). However, if an application is listening, then the port number should not be ignored. If the application can send an SMS message to itself using this port number, then it would seem that the application has registered the port ok. (You did say that you can do this ok from your application, correct?) As mentioned, on our web interface, we expect the port number to be specified in decimal format. It sounds like this is what you have tried, correct? Can you try sending another message, and then post the entry from the SMSOUT-yyyymmdd.LOG file, so that I can confirm that it is being sent out in the expected format? I don't know what else to suggest, other than having you post entries from the SMSOUT-yyyymmdd.LOG file, so that I can confirm that they are being sent out with port addressing. -- Des NowSMS Support | |||
umesh chand New member Username: Umeshchand Post Number: 4 Registered: 07-2009 |
yes...if both application sender and receiver running on windows phones. I'm sending following message from web interface : phone no : 9910405754(j2me), 9810818942(wm) dest port: 8765 Here the log from SMSOUT-20090707.log 2009-07-07 11:05:48,4A4AFB8F.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;UDH=060504223D0000;Data=F3701BCE2E83E06F391D346FCF01 2009-07-07 11:06:39,4A4AFB90.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;UDH=060504223D0000;Data=F3701BCE2E83E06F391D346FCF01 WAP push: 2009-07-07 11:20:29,4A4AFB91.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;DCS=F5;UDH=0605040B8423F0;Data=0D0601AE02056A0045C60D03676F6F676C 652E636F6D00070103446F6E277420646F776E6C6F6164 000101 Flash sms: 2009-07-07 11:25:20,4A4AFB92.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,DCS=10;Text="flash sms" Flash sms with port: 2009-07-07 11:27:45,4A4AFB93.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;DCS=10;UDH=060504223D0000;Data=6676788E06CDDB73 class2 sms : 2009-07-07 11:50:34,4A4AFB97.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,DCS=12;Text="class2 sms" 2009-07-07 11:29:57,4A4AFB94.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,DCS=12;Text="class2 sms" class2 sms with port : 2009-07-07 11:48:41,4A4AFB96.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;DCS=12;UDH=060504223D0000;Data=6376783E9781E6ED39 2009-07-07 11:46:55,4A4AFB95.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;DCS=12;UDH=060504223D0000;Data=6376783E9781E6ED39 class3 sms : 2009-07-07 11:51:54,4A4AFB98.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,DCS=13;Text="class3 sms" 2009-07-07 11:54:38,4A4AFB9B.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,DCS=13;Text="class3 sms" class3 sms with port : 2009-07-07 11:52:11,4A4AFB99.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;DCS=13;UDH=060504223D0000;Data=6376783E9F81E6ED39 2009-07-07 11:54:30,4A4AFB9A.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;DCS=13;UDH=060504223D0000;Data=6376783E9F81E6ED39 ReplaceOption1: 2009-07-07 11:57:27,4A4AFB9D.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,PID=41;Text="test sms" 2009-07-07 11:56:00,4A4AFB9C.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,PID=41;Text="test sms" ReplaceOption1 with port: 2009-07-07 11:57:55,4A4AFB9F.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;PID=41;UDH=060504223D0000;Data=F4F29C0E9AB7E7 2009-07-07 11:57:41,4A4AFB9E.req,127.0.0.1,9810818942,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;PID=41;UDH=060504223D0000;Data=F4F29C0E9AB7E7 misc : 2009-07-07 12:02:55,4A4AFBA2.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,PID=42;DCS=10;Text="test sms Replace Type 2 with msg class 2" 2009-07-07 12:03:22,4A4AFBA3.req,127.0.0.1,9910405754,OK -- Sony Ericsson Device 125 USB WMC Modem,Binary=1;PID=42;DCS=10;UDH=060504223D0000;Data=F4F29C0E9AB7E7206919CE0E8FC B206A1E5E06C940F7341D0D6ACFCFA0313B3C9F8364 Is it true UDH always contain the port information.? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1028 Registered: 08-2008 |
Sorry for the delay in response. So your application is listening on port 8765 (hex 223D), correct? It definitely looks like the message is going out with the correct headers. I don't know why WAP Push would work (it goes to port 2948), but messages directed to other ports would not work. The UDH always contains the port information in GSM environments. Have you tried the simple message with text headers instead, like I suggested earlier? Send a text message (no special attributes) with the following format: //SCKL223D test message In some environments, this will will work for port addressing. -- Des NowSMS Support |