Picture SMS encoding issue

Picture SMS encoding issue SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through January 22, 2009 » Picture SMS encoding issue « Previous || Next »
Author Message
srinivasarao
New member
Username: Srinivasarao

Post Number: 1
Registered: 11-2008
Posted on Wednesday, December 03, 2008 - 10:33 am:   

Hello,

I am able to successfully send the picture message to Nokia handset.

Steps followed to send the picture (152pix*32pix) message:
----------------------------------------------------------

1) Convert the image into hex format.
2) From Nowsms web -> EMS Picture message
3) Put all the data into ‘Textbox’ (test box for hex string of message)
4) Select option “Nokia Smart Messaging”.
5) Submit.

Message is sent in 5 part and Nokia 6300 is able to receive the image.

Nowsms log:

2008-12-03 12:22:33,SAR-9811743526-f6-5-1.req,127.0.0.1,9811743526,OK -- MultiTech Systems USB GSM_GPRS Wireless Modem,Binary=1;DCS=F5;UDH=0B0504158A158A0003F60501;Data=300000000202640098200100 8BBA51DD28EE94774A3BA51DD3A2B9177400008BBA51DD28EE94774A3BA51DD3A2B9177400008BBA 51DD28EE94774A3BA51DD3A2B9177400008BBA51DD28EE94774A3BA51DD3A2B9177400008BBA51DD 28EE94774A3BA51DD3A2B9177400008BBA51DD28EE94774A3BA51DD3A2B9177400008BBA
2008-12-03 12:22:38,SAR-9811743526-f6-5-2.req,127.0.0.1,9811743526,OK -- MultiTech Systems USB GSM_GPRS Wireless Modem,Binary=1;DCS=F5;UDH=0B0504158A158A0003F60502;Data=51DD28EE94774A3BA51DD3A2 B9177400008BBA51DD28EE94774A3BA51DD3A2B9177400008BBA51DD28EE94774A3BA51DD3A2B917 7400008BBA51DD28EE94774A3BA51DD3A2B9177400008BBA51DD28EE94774A3BA51DD3A2B9177400 008BBA51DD28EE94774A3BA51DD3A2B9177400008BBA51DD28EE94774A3BA51DD3A2B917
2008-12-03 12:22:42,SAR-9811743526-f6-5-3.req,127.0.0.1,9811743526,OK -- MultiTech Systems USB GSM_GPRS Wireless Modem,Binary=1;DCS=F5;UDH=0B0504158A158A0003F60503;Data=7400008BBA51DD28EE94774A 3BA51DD3A2B9177400008BBA51DD28EE94774A3BA51DD3A2B9177400008BBA51DD28EE94774A3BA5 1DD3A2B9177400008BBA51DD28EE94774A3BA51DD3A2B91774000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000
2008-12-03 12:22:47,SAR-9811743526-f6-5-4.req,127.0.0.1,9811743526,OK -- MultiTech Systems USB GSM_GPRS Wireless Modem,Binary=1;DCS=F5;UDH=0B0504158A158A0003F60504;Data=000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000
2008-12-03 12:22:51,SAR-9811743526-f6-5-5.req,127.0.0.1,9811743526,OK -- MultiTech Systems USB GSM_GPRS Wireless Modem,Binary=1;DCS=F5;UDH=0B0504158A158A0003F60505;Data=000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000



Now I am trying to do same in the java application using following code:

“String finalURL = SMS_NOW_SERVER_URL+"?PhoneNumber=xxxxxxx"+"&Binary=1&DCS=F5&UDH=060504158A158A&D ata=HEXSTRING";
URL url = new URL(finalURL);
HttpURLConnection connection =( HttpURLConnection)url.openConnection();”


Issue:


Nowsms is sending the message in 15 parts and it is received on the handset; but not able to display the image (Nokia 6300).

Quries:

1). Why its sending in 15 parts.
2). Why its not able to display the image on handset.
3). Nowsms is providing any API’s to integrate with Java Application.
4). I have the licensed nowsms (v2006.10.31)

Observations:
When I am sending the message using nowsms web page, it’ doing some encoding resulting the message size ‘compressed’ and is sent in 5 parts. It’s not doing any encoding while sending from Java Application.

All the advices and guidance is welcome

Thanks,
Srinivasa Rao
Vsr.rao@gmail
Mobile +919312233576
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 287
Registered: 08-2008
Posted on Wednesday, December 03, 2008 - 02:06 pm:   

Hi Srinivasa,

The URL format that you're using for submission is just submitting the raw image data as the message data without any actual encoding/conversion.

Since the web interface is working ok, what you want to do is submit the message using the same URL parameters as the web interface.

Look for the section of the manual titled "Sending EMS Messages – EMS Picture Message". It's on page 183 of the 2006 manual, page 194 of the 2007/2008 manual.

Basically, you want to do this:

“String finalURL = SMS_NOW_SERVER_URL+"?PhoneNumber=xxxxxxx"+"&PictureMessageDataText=HEXSTRING&Pic tureMessageOut=Nokia";

--
Des
NowSMS Support
srinivasarao
New member
Username: Srinivasarao

Post Number: 3
Registered: 11-2008
Posted on Thursday, December 04, 2008 - 03:34 am:   

Thanks, Des . I am able to send the Picture Message successfully.
Now I want to send sample text along with Picture Message. Plz guide me to achieve it.
Gita Bhojwani
New member
Username: Gita

Post Number: 1
Registered: 12-2008
Posted on Friday, December 05, 2008 - 04:11 pm:   

Des,

Just to add to this thread. I am working with Srini on this issue. He was able to successfully able to send the Image in a Picture EMS message with the direction you provided. However, now we want to extend it by adding text to the image as part of the same message and that does not seem to work. Can you help how to structure the message so that we can send an image and a text string with it as part of a single message.

Thanks
Gita
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 291
Registered: 08-2008
Posted on Friday, December 05, 2008 - 04:22 pm:   

That particular URL interface does not support including any text.

It's actually not that difficult to include text in a Nokia picture message. We didn't include this capability because it was a lot harder to implement for a multipart EMS message.

I mentioned this to one of our engineers, and he quickly added the capability. He made it so in your URL string, you can also include a "&Text=" parameter to specify text to be included in the picture message.

This release has not been through our full testing cycle yet, but you can download it at http://www.nowsms.com/download/nowsms20081204.zip if you want to give it a try.

If you want to try manually encoding, it is not very difficult.

I could explain by working backward from the raw message in the SMSOUT log.

Concatenate the data from the multiple parts into one long string.

The data will always start out with the following pattern:

3000000002xxxxyyyyyyyyyy....

30 - Nokia smart messaging header
00 - iso-8859-1 text part
0000 - length of text part
02 - OTA bitmap part
xxxx - OTA bitmap len
yyyy.... - OTA bitmap data

To include text, it's simply a matter of modifying the first part of this header.

In this example, I've inserted a 7 byte string "testing" into the picture message by replacing the null text part with actual data:

30 000774657374696E67 02xxxxyyyyyyyyyy....

Submit with UDH=060504158A158A, and NowSMS will segment it automatically.

That said, the update is a lot easier, because then you just need to add "&Text=testing" to the URL string.

--
Des
NowSMS Support
Gita Bhojwani
New member
Username: Gita

Post Number: 2
Registered: 12-2008
Posted on Friday, December 05, 2008 - 04:28 pm:   

Does the image format have to be in .OTA format in case it has to be combined with the text string?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 293
Registered: 08-2008
Posted on Friday, December 05, 2008 - 04:31 pm:   

In the update, no.

If you are going to encode the binary data for Nokia Smart Messaging directly, yes.
srinivasarao
New member
Username: Srinivasarao

Post Number: 6
Registered: 11-2008
Posted on Saturday, December 06, 2008 - 07:08 am:   

Hi Des,

Friday morning(5th 11am IST) . I done some trials to send the text along with picture. I facing some issues.

Code to send Picture message + text
“String finalURL = SMS_NOW_SERVER_URL+"?PhoneNumber=xxxxxx&PictureMessageDataText=HEXSTRING&Picture MessageOut=Nokia&Data=samplestring";
URL url = new URL(finalURL);
HttpURLConnection connection =( HttpURLConnection)url.openConnection();”

Issues / Observations:
If I pass the value to the parameters Data and PictureMessageDataText.
On the handset I am able to receive only Picture no text on top or at bottom of Picture.

If I pass the value to Data parameter and no hexstring with PictureMessageDataText parameter. That time I am able to receive the text message.

Can I use Parameter name as “Data” instead of “Text” or it must be “Text” only?

By Monday. I will download installer V 20081204 http://www.nowsms.com/download/nowsms20081204.zip and will perform my trail.

All the advices and guidance is welcome.

Thanks,
SrinivasaRao
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 296
Registered: 08-2008
Posted on Saturday, December 06, 2008 - 11:15 am:   

Hi,

Please re-read my message. Support for that URL parameter is only available in the update:


quote:

I mentioned this to one of our engineers, and he quickly added the capability. He made it so in your URL string, you can also include a "&Text=" parameter to specify text to be included in the picture message.

This release has not been through our full testing cycle yet, but you can download it at http://www.nowsms.com/download/nowsms20081204.zip if you want to give it a try.


srinivasarao
New member
Username: Srinivasarao

Post Number: 7
Registered: 11-2008
Posted on Monday, December 08, 2008 - 10:19 am:   

Thanks Des,
It is working fine with nowsms20081204 installer. But not able to send the image or image+text message to Nokia N70/N73 handset. Please provide help to over come this issue.
Error message: Unsupported message format
URL is :SMS_NOW_SERVER_URL+"?PhoneNumber=XXXXXXXXX"+"&Text="+text+"&PictureMessageDataT ext="+imagecontent+"&PictureMessageOut=Nokia";

Queries :
1.Is there any special URL or URL parameters to deal with CDMA handset?.
2.As of now text is displaying after the image, I want to display the image between the text, is it possible? (text image text).
3.Does the image format have to be in .OTA format in case it has to be combined with the text string? And image data is in Hex format (not in a binary).

Thanks,
SrinivasaRao
srinivasarao
New member
Username: Srinivasarao

Post Number: 8
Registered: 11-2008
Posted on Monday, December 08, 2008 - 10:25 am:   

Thanks Des,
It is working fine with nowsms20081204 installer. But not able to send image or image+text to Nokia N70/N73 handset. Please provide help to over come this issue.
Error message: Unsupported message format.

Queries :
1. Is there any special URL or URL parameters to deal with CDMA handset?.
2. As of now text is displaying after the image, I want to display the image between the text, is it possible? (text image text).

Thanks,
SrinivasaRao}
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 299
Registered: 08-2008
Posted on Monday, December 08, 2008 - 07:34 pm:   

I'm sorry, but I don't have any information regarding any issues with Nokia Smart Messaging picture messages on the N70 or N73 handsets.

You may want to try downloading the Nokia Smart Messaging specification from forum.nokia.com and try some test messages.

Maybe there is an issue that only messages of specific heights or widths are supported.

I don't have either of those devices, so I can't try any tests.

To answer your other queries ...

1.) Nokia Smart Messaging does not define any support for picture messages on CDMA handsets. (Ringtones and operator logos are supported, but picture messaging is not.)

I'm not aware of any solutions for CDMA handsets other than using MMS instead of SMS.

2.) The picture messaging format defined by the Nokia Smart Messaging specification does not deine any parameters for text display location. Whether text is displayed before or after the image is handset dependent.

3.) In the actual raw message that is sent out over the air, the image is always in OTA bitmap format. NowSMS just includes logic to convert several common image formats like BMP, GIF and JPEG into OTA bitmap format in order to build the raw message.

--
Des
NowSMS Support
srinivasarao
New member
Username: Srinivasarao

Post Number: 9
Registered: 11-2008
Posted on Wednesday, December 10, 2008 - 08:15 am:   

Thanks Des, Some time my pic+text is bit large, that time I am facing “Picture is too large for selected output format". Is there any work around for this issue?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 310
Registered: 08-2008
Posted on Wednesday, December 10, 2008 - 03:11 pm:   

"Picture is too large for selected output format"

This is a "sanity check" that can be overridden if you want.

When encoding Nokia smart messages or EMS messages, if the resulting message would require more than 6 segmented messages, this error is displayed.

If you want to try sending larger messages, edit SMSGW.INI, and under the [SMSGW] header, add MaxRingToneFragmentCount=##, where ## is the maximum number of segmented messages to be allowed for one of these message types.

--
Des
NowSMS Support
srinivasarao
New member
Username: Srinivasarao

Post Number: 10
Registered: 11-2008
Posted on Thursday, December 11, 2008 - 06:49 am:   

Thanks Des,
I tried it, but it is not impacting.

Content of my “SMSGW.INI “ is following.

[SMSGW]
Modem1=SMPP - xxxxx:yyyy
MaxRingToneFragmentCount=##
WebAuth=No
WebMenu=Yes
WebPort=8800
SMPPPort=2775
AdminUser=zzzzzzzz
AdminPassword=************
SeparateUserQueues=Yes
ReceiveSMS=No
ReceiveMMS=No
ReceiveSMSCharset=utf-8
ConfigurationUpdateTriggerRestart=XXXXXX
[SMPP - 89.234.56.156:7700]
SMPPVersion=v3.4
UserName=sssssss
Password=********
SenderAddressOverride=Yes
Receive=No
ReceiveMMS=No
UseSSL=No
LongSMSAlt=Yes

Thanks,
SrinivasaRao
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 319
Registered: 08-2008
Posted on Thursday, December 11, 2008 - 04:07 pm:   

That looks right. You've got a number in there for the ##, right?

Try putting in 20.

Can you give me an example of the data that you are trying?
srinivasarao
New member
Username: Srinivasarao

Post Number: 11
Registered: 11-2008
Posted on Friday, December 12, 2008 - 11:52 am:   

Thanks Des, Its working fine by putting 20 instead of ‘##’.
Nowsms V 20081204 is supporting the EMS+text or not?
How to send EMS+Text ?
I am sending ems+text using the following URL:
URL :SMS_NOW_SERVER_URL+"?PhoneNumber=XXXXXXXXX"+"&Text="+text+"&PictureMessageDataT ext="+imagecontent+"&PictureMessageOut=EMS";

Issue: I am able to receive the picture but not the text?
Can you provide some fix for this issue.

Thanks,
Srinivasarao
srinivasarao
New member
Username: Srinivasarao

Post Number: 12
Registered: 11-2008
Posted on Friday, December 12, 2008 - 12:01 pm:   

Hi Des,

I want to configure nowsms over HTTP.
what should be Service Type, URL template for text, URL template for Binary.
this my url HTTP://hostIP:port/SENDSMS?username=username&password=password&from=from&to=to&t ext=text&Binary=Binary&DCS=DCS

An other url http://push1.maccesssmspush.com/servlet/com.aclwireless.pushconnectivity.listene rs.TextListener?userId =user& pass=pass&contenttype=8&to=xxxxxx&from=abc&selfid=true&alert=1&dlrreq=true

Can you please provide URL templates for the 32 URL

Thanks,
Srinivasa Rao
srinivasarao
New member
Username: Srinivasarao

Post Number: 13
Registered: 11-2008
Posted on Friday, December 12, 2008 - 12:02 pm:   

Can you please provide URL templates for the above 2 URLs
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 329
Registered: 08-2008
Posted on Friday, December 12, 2008 - 09:19 pm:   

For the EMS question, we don't have an option to include text with the image in the EMS encoding. I wish we did, however we do not. The "text=" parameter is not supported with the output message type for the picture message is EMS.

I will ask engineering to take another look at this, however I have been told in the past that this is technically quite involved.

Regarding the URL template question ... I'm sorry, but I don't really understand the question.

To convert a URL into a template, I find that it usually works best to take the example from the provider, and translate it into an actual working example.

In other words, take the example given by your provider, and use it to build your own URL to send a test message from a web browser.

Keeping the original example in mind, takes the URL that you built, and convert it into a template by substituting in the "@@" placeholders for NowSMS.

I can't work with your examples, as the URLs just don't seem complete to me.

For example, take:

HTTP://hostIP:port/SENDSMS?username=username&password=password&from=from&to=to&t ext=text&Binary=Binary&DCS=DCS

I would guess that the text template would be:

HTTP://hostIP:port/SENDSMS?username=username&password=password&from=@@Sender@@&t o=@@PhoneNumber@@&text=@@Text@@

And you would probably leave the Binary and DCS values off of the URL. (The Binary=Binary part of your example is not clear to me ... what are the potential values of "Binary="?)

All you're doing when defining a URL template is telling NowSMS what URL it should use for sending the message ... and there are several "placeholders" in which NowSMS will substitute in the values for the message being sent.

For example, @@Sender@@ gets replaced with the sender address for the message. @@PhoneNumber@@ gets replaced with the phone number of the intended recipient of the message. @@Text@@ gets replaced with the text of the message to be sent.

More info can be found here:

http://nowsms.com/documentation/ProductDocumentation/configuring_smsc_connection s/HTTP_SMSC.htm
srinivasarao
New member
Username: Srinivasarao

Post Number: 14
Registered: 11-2008
Posted on Monday, December 15, 2008 - 12:26 pm:   

Thanks Des,

I have integrated SMS Aggregator SMPPv3.4 with nowsms and not able to send simple text message to CDMA handset. Is it any configuration issue or issue with SMS Aggregator. I am able to send the text and pic+text to GSM handsets.

Thanks,
Srinivasa Rao
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 344
Registered: 08-2008
Posted on Wednesday, December 17, 2008 - 08:03 pm:   

The only configuration issue that I can think of would be if the message text was received, but it is corrupt.

In those cases, it could be an issue of character set (iso-8859-1 vs. GSM). Or it could be whether or not the option for 7-bit packed text is set (normally, this is not set for normal text messages ... it is required for some old SMPP 3.3 systems).
srinivasarao
New member
Username: Srinivasarao

Post Number: 15
Registered: 11-2008
Posted on Monday, December 22, 2008 - 06:48 am:   

Thanks Des,

It’s the problem with Operator. It solved and working fine.

Thanks,
SrinivasaRao
srinivasarao
New member
Username: Srinivasarao

Post Number: 16
Registered: 11-2008
Posted on Tuesday, December 23, 2008 - 12:39 pm:   

Hi Des,

Now I want to send sms (picture + text / picture) using my CDMA handset.
Which release of NOWSMS installer is supporting CDMA modem/handset?
What are the URL parameters and URL format?

Thanks,
SrinivasaRao
srinivasarao
New member
Username: Srinivasarao

Post Number: 17
Registered: 11-2008
Posted on Tuesday, December 23, 2008 - 12:44 pm:   

Hi Des,

Now I want to send sms (picture + text / picture) using my CDMA handset.
Which release of NOWSMS installer is supporting CDMA modem/handset?
What are the URL parameters and URL format?

Thanks,
SrinivasaRao
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7717
Registered: 10-2002
Posted on Friday, December 26, 2008 - 03:19 pm:   

Hi SrinivasaRao,

This isn't really a NowSMS issue as much as it is a CDMA issue.

Text messaging evolved more quickly on GSM networks.

Nokia Smart Messaging was defined for CDMA, but only ringtones and operator logos ... not the picture messages.

EMS was adapted for CDMA ... but by the time it was adapted, MMS was already here. So when you talk picture messaging on CDMA handsets, you're pretty much talking MMS.

Some CDMA handsets might support EMS ... but you'd be hardpressed to find an SMS service provider that can deliver them, as I've yet to see any that supported sending binary messages to CDMA handsets.

-bn
srinivasarao
New member
Username: Srinivasarao

Post Number: 18
Registered: 11-2008
Posted on Monday, December 29, 2008 - 06:49 am:   

Thanks for your support Bryce Norwood,

How to get the SMPP delivery report?

I am using the nowsms 20081204.
NowSMS is configured with SMSAggregator SMPP-3.4.

Following is the SMSGW.INI

[SMSGW]
SeparateUserQueues=Yes
ConfigurationUpdateTriggerRestart=20081226111334
WebAuth=Yes
WebMenu=Yes
WebPort=8800
Modem1=SMPP - xxxxxxxx:xxxx
[SMPP - xxxxxxx:xxx]
SMPPVersion=v3.4
UserName=********
Password=********
SenderAddress=*******
SenderAddressOverride=Yes
Receive=No
ReceiveMMS=No
UseSSL=No
LongSMSAlt=Yes
ReceiptRequested=Yes
TrackSMPPReceipts=On


I have tried with WebAuth=Yes and No. Where I will get the delivery report, is it in the SMPPDebug.log or else?
application/octet-streamSMPPDEBUG.LOG
SMPPDEBUG.LOG (4.0 k)


Thanks,
SrinivasaRao
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7722
Registered: 10-2002
Posted on Wednesday, December 31, 2008 - 02:29 pm:   

Hi SrinivasaRao,

There is some good info here: http://support.nowsms.com/discus/messages/1/24078.html

If my response here doesn't answer your question, take a look at that other thread, as it might have more detail that will help you.

The short answer for you should be to move "ReceiptRequested=Yes" up under the "[SMSGW]" header in the SMSGW.INI file. Right now, it is under the "[SMPP - server:port]" section.

Delivery reports will come back to you like other received messages. The other thread describes this in more detail, but the short of it is that you should define a 2-way command with a prefix of id:* ... this will route the delivery reports to a specific 2-way command via HTTP for you to process them.

-bn
srinivasarao
New member
Username: Srinivasarao

Post Number: 19
Registered: 11-2008
Posted on Thursday, January 08, 2009 - 12:01 pm:   

Thanks for your support Bryce Norwood,

I want to send the DRM formatted picture file along with text message.
What’s the way to achieve it?

Please help me to make it success.

Thanks,
Srinivasa Rao
srinivasarao
New member
Username: Srinivasarao

Post Number: 20
Registered: 11-2008
Posted on Friday, January 09, 2009 - 11:24 am:   

Hi Bryce,

Why the now sms is converting the Picture message in to OTB format.
OTB only the way to send Nokia Smart Message or any other way is there?.

Thanks,
Srinivasa Rao
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 363
Registered: 08-2008
Posted on Friday, January 09, 2009 - 08:59 pm:   

Hi Srinivasa Rao,


quote:

I want to send the DRM formatted picture file along with text message.
What’s the way to achieve it?




You can only do this in an MMS message, not an SMS message.

In MMS, you can set the "Forward lock" option which tells the handset that objects within the MMS message are not allowed to be forwarded or copied to other devices.

There is no concept of that in SMS.


quote:

Why the now sms is converting the Picture message in to OTB format.
OTB only the way to send Nokia Smart Message or any other way is there?.




OTA Bitmap is the only picture message format defined in the Nokia Smart Messaging specification.

--
Des
NowSMS Support

Login Login / Register Logout Logout Search Last 30 Days Topics Topics