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 -~----------~----~----~----~------~----~------~--~---
