Here are the logs again ...
/dev/ttyS10 works fine with minicom

//////////////////////////////////////////////////////////

Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Mar 13 2008, 00:58:14.
Port /dev/ttyS10

                Press CTRL-A Z for help on special keys

OK
AT
OK

//////////////////////////////////////////////////////////

the program logs are ....


//////////////////////////////////////////////////////////

classpath is
.:/root/cvsprojects/DHG2/RCS/library/log4j-1.2.14.jar:/root/Download/comm3.0_u1_linux/commapi/jar/comm.jar:/root/cvsprojects/JSMSLib/lib/commons-net-2.0.jar:/usr/java/jboss-4.0.3SP1/server/default/lib/mail.jar:/root/Download/smslib-v3.3.1-src/dist/classes

ld_library_path is /root/Download/comm3.0_u1_linux/commapi/lib

executing java -showversion -Dsmslib.debug
-Djava.library.path=/root/Download/comm3.0_u1_linux/commapi/lib
examples.modem.SendMessage

cd to directory /root/Download/smslib-v3.3.1-src/dist/classes

Example: Send message from a serial gsm modem.
SMSLib: A Java API library for sending and receiving SMS via a GSM modem or
other supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
Version: 3.3.1
0 [main] INFO org.smslib  - SMSLib: A Java API library for sending and
receiving SMS via a GSM modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
2 [main] INFO org.smslib  - Version: 3.3.1
2 [main] INFO org.smslib  - JRE Version: 1.6.0_07
2 [main] INFO org.smslib  - JRE Impl Version: 10.0-b23
2 [main] INFO org.smslib  - O/S: Linux / i386 / 2.6.25-14.fc9.i686
21 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog started.
21 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
21 [Thread-1] INFO org.smslib  - GTW: ttyS10: Starting gateway, using
Generic AT Handler.
22 [Thread-1] INFO org.smslib  - GTW: ttyS10: Opening: /dev/ttyS10 @115200
class name is -- class javax.comm.SerialPort
69 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: ModemDriver: KeepAlive thread
started.
70 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: ModemReader thread started.
72 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: AsyncNotifier thread started.
73 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: AsyncMessageProcessor thread
started.
73 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: clearBuffer() called.
1074 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :(27)
1275 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :+++
1477 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :ATZ
1679 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: clearBuffer() called.
2679 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :ATZ(cr)
2881 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :ATE0(cr)
3082 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: clearBuffer() called.
4082 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CPIN?(cr)
4094 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CPIN: READY

4094 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :+CPIN: READY(cr)
4094 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :ATE0(cr)
4295 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: clearBuffer() called.
5295 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CLIP=1(cr)
5347 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: OK

5348 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :OK(cr)
5348 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+COPS=0(cr)
5358 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: OK

5359 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :OK(cr)
5359 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :ATE0(cr)
5559 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: clearBuffer() called.
6559 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CREG?(cr)
6572 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CREG: 0,1
OK

6573 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :+CREG: 0,1(cr)OK(cr)
6573 [Thread-1] INFO org.smslib  - GTW: ttyS10: GSM: Registered to home
network.
6573 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CMEE=1(cr)
6581 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: OK

6582 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :OK(cr)
6582 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CPMS?(cr)
6598 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CPMS:
"SM",0,16,"SM",0,16,"ME",4,200
OK

6599 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :+CPMS:
"SM",0,16,"SM",0,16,"ME",4,200(cr)OK(cr)
6599 [Thread-1] INFO org.smslib  - GTW: ttyS10: MEM: Storage Locations
Found: SMME
6599 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CNMI=?(cr)
6612 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CNMI:
(2),(0,1,3),(0,2),(0,1),(0)
OK

6612 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :+CNMI:
(2),(0,1,3),(0,2),(0,1),(0)(cr)OK(cr)
6613 [Thread-1] DEBUG org.smslib  - CNMI: Found best match: 2
6613 [Thread-1] DEBUG org.smslib  - CNMI: Found best match: 1
6613 [Thread-1] DEBUG org.smslib  - CNMI: Found best match: 0
6613 [Thread-1] INFO org.smslib  - CNMI: No best match, returning: 1
6613 [Thread-1] DEBUG org.smslib  - CNMI: Found best match: 0
6613 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CNMI=2,1,0,1,0(cr)
6623 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: OK

6624 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :OK(cr)
6624 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CMGF=0(cr)
6633 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: BUFFER: OK

6638 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: RECV :OK(cr)
6639 [Thread-1] DEBUG org.smslib  - GTW: ttyS10: SyncMessageProcessor thread
started.
6640 [Thread-1] INFO org.smslib  - GTW: ttyS10: Gateway started.
6641 [SMSLib-QueueManager] INFO org.smslib  - GTW: ttyS10: Starting Queue
Manager.

Modem Information:
7022 [main] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CGMI(cr)
7030 [main] DEBUG org.smslib  - GTW: ttyS10: BUFFER: Sony Ericsson
OK

7031 [main] DEBUG org.smslib  - GTW: ttyS10: RECV :Sony Ericsson(cr)OK(cr)
  Manufacturer: Sony Ericsson
7031 [main] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CGMM(cr)
7083 [main] DEBUG org.smslib  - GTW: ttyS10: BUFFER: AAB-1022031-BV
OK

7084 [main] DEBUG org.smslib  - GTW: ttyS10: RECV :AAB-1022031-BV(cr)OK(cr)
  Model: AAB-1022031-BV
7084 [main] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CGSN(cr)
7097 [main] DEBUG org.smslib  - GTW: ttyS10: BUFFER: 355255010693258
OK

7098 [main] DEBUG org.smslib  - GTW: ttyS10: RECV :355255010693258(cr)OK(cr)
  Serial No: 355255010693258
  SIM IMSI: ** MASKED **
7098 [main] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CSQ(cr)
7110 [main] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CSQ: 14,99
OK

7111 [main] DEBUG org.smslib  - GTW: ttyS10: RECV :+CSQ: 14,99(cr)OK(cr)
  Signal Level: 45%
7111 [main] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CBC(cr)
7122 [main] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CBC: 1, 89
OK

7123 [main] DEBUG org.smslib  - GTW: ttyS10: RECV :+CBC: 1, 89(cr)OK(cr)
  Battery Level: 89%

7142 [main] DEBUG org.smslib  - GTW: ttyS10:
=================================================
<< SmsSubmitPdu >>
Raw Pdu:
0011000C911989226229380000FF2D54747A0E4ACF416110BD3CA783DAE5F93C7C2E835C2E17C82C7FB7417079B94C0FB7E12190AE9502

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: 12 (0C), Type: 91 (10010001), Address:
919822269283]
TP-PID: 00 (00000000)
TP-DCS: 00 (7-bit GSM Alphabet) (00000000)
TP-VPF: 10584 hours

User Data Length: 45 (2D) septets
User Data (pdu) :
54747A0E4ACF416110BD3CA783DAE5F93C7C2E835C2E17C82C7FB7417079B94C0FB7E12190AE9502
User Data (decoded): [This is a test message ... from preetamp! :-)]
=================================================

7142 [main] DEBUG org.smslib  - GTW: ttyS10: Sending Pdu:
0011000C911989226229380000FF2D54747A0E4ACF416110BD3CA783DAE5F93C7C2E835C2E17C82C7FB7417079B94C0FB7E12190AE9502
7142 [main] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CMGS=54(cr)
7343 [main] DEBUG org.smslib  - GTW: ttyS10: clearBuffer() called.
8343 [main] DEBUG org.smslib  - GTW: ttyS10: SEND
:0011000C911989226229380000FF2D54747A0E4ACF416110BD3CA783DAE5F93C7C2E835C2E17C82C7FB7417079B94C0FB7E12190AE9502
8354 [main] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CMS ERROR: 304

8354 [main] DEBUG org.smslib  - GTW: ttyS10: RECV :+CMS ERROR: 304(cr)
8354 [main] WARN org.smslib  - GTW: ttyS10: CMS Error 304: Retrying...
11354 [main] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CMGS=54(cr)
11556 [main] DEBUG org.smslib  - GTW: ttyS10: clearBuffer() called.
12556 [main] DEBUG org.smslib  - GTW: ttyS10: SEND
:0011000C911989226229380000FF2D54747A0E4ACF416110BD3CA783DAE5F93C7C2E835C2E17C82C7FB7417079B94C0FB7E12190AE9502
12566 [main] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CMS ERROR: 304

12566 [main] DEBUG org.smslib  - GTW: ttyS10: RECV :+CMS ERROR: 304(cr)
12566 [main] WARN org.smslib  - GTW: ttyS10: CMS Error 304: Retrying...
15021 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
15566 [main] DEBUG org.smslib  - GTW: ttyS10: SEND :AT+CMGS=54(cr)
15768 [main] DEBUG org.smslib  - GTW: ttyS10: clearBuffer() called.
16769 [main] DEBUG org.smslib  - GTW: ttyS10: SEND
:0011000C911989226229380000FF2D54747A0E4ACF416110BD3CA783DAE5F93C7C2E835C2E17C82C7FB7417079B94C0FB7E12190AE9502
16782 [main] DEBUG org.smslib  - GTW: ttyS10: BUFFER: +CMS ERROR: 304

16782 [main] DEBUG org.smslib  - GTW: ttyS10: RECV :+CMS ERROR: 304(cr)
16782 [main] ERROR org.smslib  - GTW: ttyS10: CMS Error 304: Quit retrying,
message lost...
===============================================================================
<< OutboundMessage >>
-------------------------------------------------------------------------------
 Gateway Id:
 Encoding: 7-bit
 Date: Wed Nov 12 16:09:23 IST 2008
 SMSC Ref No: null
 Recipient: +919822269283
 Dispatch Date: null
 Message Status: FAILED
 Validity Period (Hours): -1
 Status Report: false
 Source / Destination Ports: -1 / -1
 Flash SMS: false
 Text: This is a test message ... from preetamp! :-)
 PDU data:
54747A0E4ACF416110BD3CA783DAE5F93C7C2E835C2E17C82C7FB7417079B94C0FB7E12190AE9502
===============================================================================

Now Sleeping - Hit <enter> to terminate.
20369 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog stopped.
20369 [main] INFO org.smslib  - GTW: ttyS10: Stopping gateway...
20369 [SMSLib-QueueManager] INFO org.smslib  - GTW: ttyS10: QueueManager
stopped.
20369 [main] DEBUG org.smslib  - GTW: ttyS10: Trying to shutdown keepAlive
thread...
20369 [main] DEBUG org.smslib  - GTW: ttyS10: Trying to shutdown
asyncNotifier thread...
20369 [main] DEBUG org.smslib  - GTW: ttyS10: Trying to shutdown
asyncMessageProcessor thread...
20369 [main] DEBUG org.smslib  - GTW: ttyS10: Trying to shutdown modemReader
thread...
20369 [main] DEBUG org.smslib  - GTW: ttyS10: Trying to shutdown
syncMessageProcessor thread...
20370 [SMSlib-KeepAlive : ttyS10] DEBUG org.smslib  - GTW: ttyS10:
ModemDriver: KeepAlive thread ended.
20370 [SMSLib-AsyncNotifier : ttyS10] DEBUG org.smslib  - GTW: ttyS10:
AsyncNotifier thread ended.
20370 [SMSLib-AsyncMessageProcessor : ttyS10] DEBUG org.smslib  - GTW:
ttyS10: AsyncMessageProcessor thread ended.
20370 [SMSLib-CNMIEmulator : ttyS10] DEBUG org.smslib  - GTW: ttyS10:
SyncMessageProcessor thread ended.
20370 [SMSlib-ModemReader-ttyS10] DEBUG org.smslib  - GTW: ttyS10:
ModemReader thread ended.
20371 [main] INFO org.smslib  - GTW: ttyS10: Closing: /dev/ttyS10 @115200
20371 [main] INFO org.smslib  - GTW: ttyS10: Gateway stopped.


//////////////////////////////////////////////////////////


please let me know if you need anything else ?

where am i making the mistake ?


thanks for your help



On Wed, Nov 12, 2008 at 10:00 AM, Preetam Palwe <[EMAIL PROTECTED]>wrote:

> yes ... i did!
> The same code i executed with just the change in message!
>
> Let me paste you some more logs here so as to help you.
>
>
> On Wed, Nov 12, 2008 at 1:12 AM, Thanasis <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>
>> No problems here.
>> Did you use the same recipient number in both of your tests? Think twice
>> before you answer!...
>> 2008/11/11 Thanasis <[EMAIL PROTECTED]>
>>
>>
>>> Preetam,
>>>
>>> I will run some checks with the message that you were trying to send
>>> and will let you know.
>>> Thanks.
>>>
>>> P.S.
>>> Max length is approximately 160 chars - if >160 chars, SMSLib will
>>> break it in multiple parts.
>>>
>>> On Nov 11, 12:14 pm, preetam <[EMAIL PROTECTED]> wrote:
>>> > also can you please tell me whats the Max length of messege that
>>> > smsLib can send in PDU mode? how much characters?
>>> >
>>> > On Nov 11, 1:46 pm, "Aryo Sanjaya" <[EMAIL PROTECTED]> wrote:
>>> >
>>> >
>>> >
>>> > > On Tue, Nov 11, 2008 at 2:32 PM, preetam <[EMAIL PROTECTED]>
>>> wrote:
>>> >
>>> > > > I changed the message contents from "hi this is a test message" to
>>> "hi
>>> > > > preetam" and it worked ! Dont know how :(
>>> >
>>> > > Maybe it's valid only if your name is there.
>>> >
>>> > > Sorry, just kidding :)
>>> >
>>> > > CMS ERROR 304 is 'Invalid PDU mode parameter'.
>>> >
>>> > > From your log, it's show this command:
>>> > > AT+CMGS=36(cr)
>>> >
>>> > > But from your PDU, the octet length is 37. This is a the problem.
>>> >
>>> > > Maybe there is a miscalculation on function sendMessagePDU at
>>> > > ModemGateway.java. That is Thanasis's area :)
>>> >
>>> > > --
>>> > > Best Regards,
>>> >
>>> > > Aryo Sanjaya- Hide quoted text -
>>> >
>>> > - Show quoted text -
>>>   >>>
>>>
>
>
> --
> Thanks&Reagards
> ~Preetam
>
>


-- 
Thanks&Reagards
~Preetam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib Users 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