Ok,
I added setSmscNumber("+12063130004"); in the ModemGateway.java on the private
void init
and I'm getting the same error.
Could it be the in the PduGenerator.java?
My USB modem the same make and model work fine....
Is upgrade to the latest version the only option?
Thanks
Stan
<< SmsSubmitPdu >>
Raw Pdu: 07812160130300F411000B814170843504F30000FF04D4E2940A
SMSC Address: [Length: 7 (07) octets, Type: 81 (10000001), Address: 12063130004]
First Octet: 11 [TP-MTI: (SMS-SUBMIT), TP-RD: (allow duplicates), TP-VPF:
(validity format, integer, TP-SRR: (No Status Report), TP-UDHI: (no UDH)]
Message Reference: 00
Destination Address: [Length: 11 (0B), Type: 81 (10000001), Address:
14074853403]
TP-PID: 00 (00000000)
TP-DCS: 00 (7-bit GSM Alphabet) (00000000)
TP-VPF: 10584 hours
User Data Length: 4 (04) septets
User Data (pdu) : D4E2940A
User Data (decoded): [TEST]
=================================================
06/18/09 09:42:06 DEBUG smslib:77 - GTW: modem1: Sending Pdu:
07812160130300F411000B814170843504F30000FF04D4E2940A
06/18/09 09:42:06 DEBUG smslib:77 - GTW: modem1: SEND :AT+CMGS=18(cr)
06/18/09 09:42:07 DEBUG smslib:77 - GTW: modem1: clearBuffer() called.
06/18/09 09:42:07 INFO smslib:63 - WatchDog running...
06/18/09 09:42:08 DEBUG smslib:77 - GTW: modem1: SEND
:07812160130300F411000B814170843504F30000FF04D4E2940A
06/18/09 09:42:08 DEBUG smslib:77 - GTW: modem1: BUFFER: +CMS ERROR: 304
06/18/09 09:42:08 DEBUG smslib:77 - GTW: modem1: RECV :+CMS ERROR: 304(cr)
06/18/09 09:42:08 WARN smslib:70 - GTW: modem1: CMS Error 304: Retrying...
________________________________
From: Thanasis <[email protected]>
To: SMSLib User Group <[email protected]>
Sent: Thursday, June 18, 2009 2:18:01 PM
Subject: [smslib] Re: IP Modem Gateway +CMS ERROR: 304 Invalid PDU mode
parameter
Its Ok that you find the PDUs different. Once you define the SMSC
yourself, this goes into the PDU, that's why you see differences.
Do you get this same error even if you send a 4-letter message?
Last catch is to try and upgrade to the latest version. You are using
an old one, maybe it has some relevant fixes that skip my mind right
now.
On Jun 18, 5:17 pm, Stan Byrdsell <[email protected]> wrote:
> Thanks for your replay.
> I set my SMSC in the code and I get the same error. I used a wabbase pdu
> encode / decoder and the pdu is not the same.
>
> ________________________________
> From: Thanasis <[email protected]>
> To: SMSLib User Group <[email protected]>
> Sent: Thursday, June 18, 2009 3:47:49 AM
> Subject: [smslib] Re: IP Modem Gateway +CMS ERROR: 304 Invalid PDU mode
> parameter
>
> Hi,
>
> Try to set the SMSC number yourself and see if this is the cause of
> the 304 error.
>
> On Jun 17, 6:17 pm, sbyrdsell <[email protected]> wrote:
>
>
>
> > I changed from a MultiTech USB F4 to an IP Modem and now I'm getting
> > +CMS ERROR: 304 when sending SMS.
> > Also I need help accessing the IP Modem to run AT commands? I know the
> > IP and the port but I can’t telnet or ZTerm to connect it.
>
> > Thanks
> > Stan
>
> > LOG:
> > Version: 3.3.3
> > JRE Version: 1.5.0_16
> > JRE Impl Version: 1.5.0_16-133
> > O/S: Mac OS X / i386 / 10.5.6
>
> > Gateway Id: *
> > Encoding: 7-bit
> > Date: Tue Jun 16 21:46:01 EDT 2009
> > SMSC Ref No:
> > Recipient: 14074853403
> > Dispatch Date: null
> > Message Status: UNSENT
> > Validity Period (Hours): -1
> > Status Report: false
> > Source / Destination Ports: -1 / -1
> > Flash SMS: false
> > Text: This is a test from the server!
> > PDU data: 54747A0E4ACF416110BD3CA783CCF2771B44479741F3B2DC5E968700
>
> > << SmsSubmitPdu >>
> > Raw Pdu:
> > 0011000B814170843504F30000FF1F54747A0E4ACF416110BD3CA783CCF2771B44479741F3B
> > 2DC5E968700
>
> > SMSC Address: [Length: 0 octets]
> > First Octet: 11 [TP-MTI: (SMS-SUBMIT), TP-RD: (allow duplicates), TP-
> > VPF: (validity format, integer, TP-SRR: (No Status Report), TP-UDHI:
> > (no UDH)]
> > Message Reference: 00
> > Destination Address: [Length: 11 (0B), Type: 81 (10000001), Address:
> > 14074853403]
> > TP-PID: 00 (00000000)
> > TP-DCS: 00 (7-bit GSM Alphabet) (00000000)
> > TP-VPF: 10584 hours
>
> > User Data Length: 31 (1F) septets
> > User Data (pdu) :
> > 54747A0E4ACF416110BD3CA783CCF2771B44479741F3B2DC5E968700
> > User Data (decoded): [This is a test from the server!]
> > =================================================
>
> > 06/16/09 09:46:04 DEBUG smslib:77 - GTW: modem1: Sending Pdu:
> > 0011000B814170843504F30000FF1F54747A0E4ACF416110BD3CA783CCF2771B44479741F3B
> > 2DC5E968700
> > 06/16/09 09:46:04 DEBUG smslib:77 - GTW: modem1: SEND :AT+CMGS=42(cr)
> > 06/16/09 09:46:04 DEBUG smslib:77 - GTW: modem1: clearBuffer() called.
> > 06/16/09 09:46:05 DEBUG smslib:77 - GTW: modem1: SEND :
> > 0011000B814170843504F30000FF1F54747A0E4ACF416110BD3CA783CCF2771B44479741F3B
> > 2DC5E968700
> > 06/16/09 09:46:06 DEBUG smslib:77 - GTW: modem1: BUFFER: +CMS ERROR:
> > 304
> > 06/16/09 09:46:06 DEBUG smslib:77 - GTW: modem1: RECV :+CMS ERROR: 304
> > (cr)
> > 06/16/09 09:46:06 WARN smslib:70 - GTW: modem1: CMS Error 304:
> > Retrying...
> > 06/16/09 09:46:09 DEBUG smslib:77 - GTW: modem1: SEND :AT+CMGS=42(cr)
> > 06/16/09 09:46:09 DEBUG smslib:77 - GTW: modem1: clearBuffer() called.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---