Hi,

There is the method setSMscNumber() (in the modem gateway class) which
allows you to set the SMSC number if the build in one does not work.

To what "false" indication are you referring to? Are you talking about
this "Flash SMS: false "??? I don't see any problem in your log, the
message seems to have been sent ok.

On Feb 14, 7:36 am, janeleee <[email protected]> wrote:
> I have found the position of code on reset() and syc(). and when I
> denote these two lines, I can send message. and I have checked AT
> command on mel9181 modem, ATZ will reset modem to factory setting. So
> when smslib executes the reset() or syc() function, the SMSC will
> reset to factory number, it is not the same with my local SMSC.
>
> another quesiton, I have send message correctly, but I got the false
> status in Outboundmessage log info. The log info:
> 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.3
> 0 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog started.
> 0 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
> 0 [Thread-1] INFO org.smslib  - GTW: sms: Starting gateway, using
> Generic AT Handler.
> 0 [Thread-1] INFO org.smslib  - GTW: sms: Opening: COM8 @9600
> 297 [Thread-1] DEBUG org.smslib  - GTW: sms: ModemDriver: KeepAlive
> thread started.
> 297 [Thread-1] DEBUG org.smslib  - GTW: sms: ModemReader thread
> started.
> 297 [Thread-1] DEBUG org.smslib  - GTW: sms: AsyncNotifier thread
> started.
> 297 [Thread-1] DEBUG org.smslib  - GTW: sms: AsyncMessageProcessor
> thread started.
> 297 [Thread-1] DEBUG org.smslib  - GTW: sms: clearBuffer() called.
> 1297 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :ATE0(cr)
> 1500 [Thread-1] DEBUG org.smslib  - GTW: sms: clearBuffer() called.
> 2500 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+CPIN?(cr)
> 2531 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: +CPIN: READY
>
> 2547 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :+CPIN: READY(cr)
> 2547 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :ATE0(cr)
> 2734 [Thread-1] DEBUG org.smslib  - GTW: sms: clearBuffer() called.
> 3734 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+CLIP=1(cr)
> 3765 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: OK
>
> 3765 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :OK(cr)
> 3765 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+COPS=0(cr)
> 9968 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: OK
>
> 9968 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :OK(cr)
> 9968 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :ATE0(cr)
> 10172 [Thread-1] DEBUG org.smslib  - GTW: sms: clearBuffer() called.
> 11172 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+CREG?(cr)
> 11218 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: +CREG: 0,1
> OK
>
> 11218 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :+CREG: 0,1(cr)OK
> (cr)
> 11218 [Thread-1] INFO org.smslib  - GTW: sms: GSM: Registered to home
> network.
> 11218 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+CMEE=1(cr)
> 11250 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: OK
>
> 11250 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :OK(cr)
> 11250 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+CPMS?(cr)
> 11422 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: +CPMS: "SM",
> 11,70,"SM",11,70,"SM",11,70
> OK
>
> 11422 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :+CPMS: "SM",
> 11,70,"SM",11,70,"SM",11,70(cr)OK(cr)
> 11422 [Thread-1] INFO org.smslib  - GTW: sms: MEM: Storage Locations
> Found: SM
> 11422 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+CNMI=?(cr)
> 11500 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: +CNMI: (0-2),
> (0-3),(0,2),(0,1),(0,1)
> OK
>
> 11500 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :+CNMI: (0-2),
> (0-3),(0,2),(0,1),(0,1)(cr)OK(cr)
> 11500 [Thread-1] DEBUG org.smslib  - CNMI: Found best match: 2
> 11500 [Thread-1] DEBUG org.smslib  - CNMI: Found best match: 1
> 11500 [Thread-1] DEBUG org.smslib  - CNMI: Found best match: 0
> 11500 [Thread-1] INFO org.smslib  - CNMI: No best match, returning: 1
> 11500 [Thread-1] DEBUG org.smslib  - CNMI: Found best match: 0
> 11500 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+CNMI=2,1,0,1,0
> (cr)
> 11547 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: OK
>
> 11547 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :OK(cr)
> 11547 [Thread-1] DEBUG org.smslib  - GTW: sms: SEND :AT+CMGF=0(cr)
> 11578 [Thread-1] DEBUG org.smslib  - GTW: sms: BUFFER: OK
>
> 11578 [Thread-1] DEBUG org.smslib  - GTW: sms: RECV :OK(cr)
> 11578 [Thread-1] DEBUG org.smslib  - GTW: sms: CNMIEmulatorProcessor
> thread started.
> 11578 [Thread-1] INFO org.smslib  - GTW: sms: Gateway started.
> 11578 [SMSLib-QueueManager] INFO org.smslib  - GTW: sms: Starting
> Queue Manager.
>
> Modem Information:
> 12000 [main] DEBUG org.smslib  - GTW: sms: SEND :AT+CGMI(cr)
> 12047 [main] DEBUG org.smslib  - GTW: sms: BUFFER: M2 Laboratories
> OK
>
> 12047 [main] DEBUG org.smslib  - GTW: sms: RECV :M2 Laboratories(cr)OK
> (cr)
>   Manufacturer: M2 Laboratories
> 12047 [main] DEBUG org.smslib  - GTW: sms: SEND :AT+CGMM(cr)
> 12093 [main] DEBUG org.smslib  - GTW: sms: BUFFER: MEL9181_2.70a
> OK
>
> 12093 [main] DEBUG org.smslib  - GTW: sms: RECV :MEL9181_2.70a(cr)OK
> (cr)
>   Model: MEL9181_2.70a
> 12093 [main] DEBUG org.smslib  - GTW: sms: SEND :AT+CGSN(cr)
> 12156 [main] DEBUG org.smslib  - GTW: sms: BUFFER: 353354010041097
> OK
>
> 12156 [main] DEBUG org.smslib  - GTW: sms: RECV :353354010041097(cr)OK
> (cr)
>   Serial No: 353354010041097
>   SIM IMSI: ** MASKED **
> 12156 [main] DEBUG org.smslib  - GTW: sms: SEND :AT+CSQ(cr)
> 12203 [main] DEBUG org.smslib  - GTW: sms: BUFFER: +CSQ: 31,0
> OK
>
> 12203 [main] DEBUG org.smslib  - GTW: sms: RECV :+CSQ: 31,0 (cr)OK(cr)
>   Signal Level: 100%
>
> 12250 [main] DEBUG org.smslib  - GTW: sms:
> =================================================
> << SmsSubmitPdu >>
> Raw Pdu:
> 0011000D91683119313764F10000FF17C8329BFD0699E5EF3668DA9C82E8E5393DED3E8700
>
> 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: 13 (0D), Type: 81 (10000001), Address:
> 8613911373461]
> TP-PID: 00 (00000000)
> TP-DCS: 00 (7-bit GSM Alphabet) (00000000)
> TP-VPF: 10584 hours
>
> User Data Length: 23 (17) septets
> User Data (pdu) : C8329BFD0699E5EF3668DA9C82E8E5393DED3E8700
> User Data (decoded): [Hello from SMS testing!]
> =================================================
>
> 12250 [main] DEBUG org.smslib  - GTW: sms: Sending Pdu:
> 0011000D91683119313764F10000FF17C8329BFD0699E5EF3668DA9C82E8E5393DED3E8700
> 12250 [main] DEBUG org.smslib  - GTW: sms: SEND :AT+CMGS=36(cr)
> 12453 [main] DEBUG org.smslib  - GTW: sms: clearBuffer() called.
> 13453 [main] DEBUG org.smslib  - GTW: sms: SEND :
> 0011000D91683119313764F10000FF17C8329BFD0699E5EF3668DA9C82E8E5393DED3E8700
> 15000 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
> 16671 [main] DEBUG org.smslib  - GTW: sms: BUFFER: +CMGS: 130
> OK
>
> 16671 [main] DEBUG org.smslib  - GTW: sms: RECV :+CMGS: 130(cr)OK(cr)
> =========================================================================== 
> ====
> << OutboundMessage >>
> --------------------------------------------------------------------------- 
> ----
>  Gateway Id: sms
>  Encoding: 7-bit
>  Date: Sat Feb 14 13:31:32 CST 2009
>  SMSC Ref No: 130
>  Recipient: +8613911373461
>  Dispatch Date: Sat Feb 14 13:31:37 CST 2009
>  Message Status: SENT
>  Validity Period (Hours): -1
>  Status Report: false
>  Source / Destination Ports: -1 / -1
>  Flash SMS: false
>  Text: Hello from SMS testing!
>  PDU data: C8329BFD0699E5EF3668DA9C82E8E5393DED3E8700
> =========================================================================== 
> ====
>
> Now Sleeping - Hit <enter> to terminate.
>
> 27968 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog stopped.
> 27968 [main] INFO org.smslib  - GTW: sms: Stopping gateway...
> 27968 [SMSLib-QueueManager] INFO org.smslib  - GTW: sms: QueueManager
> stopped.
> 27968 [main] DEBUG org.smslib  - GTW: sms: Trying to shutdown
> keepAlive thread...
> 27968 [main] DEBUG org.smslib  - GTW: sms: Trying to shutdown
> asyncNotifier thread...
> 27968 [main] DEBUG org.smslib  - GTW: sms: Trying to shutdown
> asyncMessageProcessor thread...
> 27968 [main] DEBUG org.smslib  - GTW: sms: Trying to shutdown
> modemReader thread...
> 27968 [main] DEBUG org.smslib  - GTW: sms: Trying to shutdown
> syncMessageProcessor thread...
> 27968 [SMSlib-KeepAlive : sms] DEBUG org.smslib  - GTW: sms:
> ModemDriver: KeepAlive thread ended.
> 27968 [SMSLib-AsyncNotifier : sms] DEBUG org.smslib  - GTW: sms:
> AsyncNotifier thread ended.
> 27968 [SMSLib-AsyncMessageProcessor : sms] DEBUG org.smslib  - GTW:
> sms: AsyncMessageProcessor thread ended.
> 27968 [SMSLib-CNMIEmulator : sms] DEBUG org.smslib  - GTW: sms:
> CNMIEmulatorProcessor thread ended.
> 27968 [SMSlib-ModemReader-sms] DEBUG org.smslib  - GTW: sms:
> ModemReader thread ended.
> 28031 [main] INFO org.smslib  - GTW: sms: Closing: COM8 @9600
> 28031 [main] INFO org.smslib  - GTW: sms: Gateway stopped.
>
> what is the problem??
>
> Jane
--~--~---------~--~----~------------~-------~--~----~
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