I must say that Jason's discovery is a pretty good one!

One of my test phones is the old (but trusty) Nokia 6310i. Lately, I
am experimenting with encrypted messages. I use binary messages for
this purpose. Those binaries were sent correctly from my phone, but
they were not received correctly. They appeared like flash messages
and they were never saved in the INBOX.

Amazingly enough, after reading this post I also removed the
GROUP_DATA field and guess what... I can now send AND receive binaries
perfectly.
I don't know which method is the right one (we must do our reading, I
guess), but this change solved my problem as well.

On Apr 16, 9:36 am, Jeff <[email protected]> wrote:
> Sounds like something specific with your modem. I usually use binary
> sending with back and forth with j2me midlets.  The phones I've tested
> against send binary messages with 0xF at the start, so thats the
> behaviour I copied.
>
> On Apr 16, 5:38 am, Jason <[email protected]> wrote:
>
>
>
> > I'm using 2 Enfora Enabler-II G Modems on COM1 and COM2,
> > respectively.  When I use the SendMessage and ReadMessage examples,
> > I've encountered some really strange behavior trying to send a PDU
> > using OutboundBinaryMessage.  The message says it was sent
> > successfully, but never shows up.  I compared the PDU byte array
> > generated from SMS lib by the bytes that I use in a terminal to use AT
> > commands to send the exact same message.  There was one difference
> > between the way I've historically sent the command and the way SMSLib
> > was sending the command:
>
> > My way read 0004 after the phone number octets
> > SMS lib read 00F4 after the phone number octets.
>
> > Strangely, if I go into Pdu.java and comment out the or of
> > DCS_CODING_GROU_DATA, like this, the ReadMessage example gets my PDU
> > successfully.
>
> > public void setDataBytes(byte[] dataBytes)
> > {
> >                 this.dataBytes = dataBytes;
> >                 this.decodedText = null;
> >                 // clear the encoding bits for this field 8-bit/data
> >                 this.dataCodingScheme &= PduUtils.DCS_ENCODING_MASK;
> >                 this.dataCodingScheme |= PduUtils.DCS_ENCODING_8BIT;
> > //              this.dataCodingScheme |= PduUtils.DCS_CODING_GROUP_DATA;
> >         }
>
> > So my question is this-- why would commenting out the
> > DCS_CODING_GROUP_DATA line result in me being able to receive my 8-bit
> > binary PDU message, whereas with it uncommented I don't?  Is this a
> > bug in the library, a unique "feature" of my modems, or outright user
> > error?
>
> > Thanks,
>
> > Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to