it stops responding when it excute to this lines with running
ReadMessages.java
the lines is
//System.out.println("  Manufacturer: " + gateway.getManufacturer());
//System.out.println("  Model: " + gateway.getModel());
//System.out.println("  Serial No: " + gateway.getSerialNo());
it can run normally
there seems one message has been read twices
but the debug is

Example: Read messages 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-CNMIEmulator : modem.com1] ERROR org.smslib  - GTW:
modem.com1: Wrong type of PDU detected:
org.ajwcc.pduUtils.gsm3040.SmsSubmitPdu
0 [SMSLib-CNMIEmulator : modem.com1] ERROR org.smslib  - GTW:
modem.com1: ERROR PDU:
0891683108200105F011FF00810008471A95F5884C6CAA677E516C8DEF0031003900355F040032003153F7

Modem Information:
  SIM IMSI: ** MASKED **
172 [SMSLib-CNMIEmulator : modem.com1] ERROR org.smslib  - GTW:
modem.com1: Wrong type of PDU detected:
org.ajwcc.pduUtils.gsm3040.SmsSubmitPdu
172 [SMSLib-CNMIEmulator : modem.com1] ERROR org.smslib  - GTW:
modem.com1: ERROR PDU:
0891683108200105F011FF00810008471A95F5884C6CAA677E516C8DEF0031003900355F040032003153F7
  Signal Level: 58%
  Battery Level: 100%

390 [main] ERROR org.smslib  - GTW: modem.com1: Wrong type of PDU
detected: org.ajwcc.pduUtils.gsm3040.SmsSubmitPdu
390 [main] ERROR org.smslib  - GTW: modem.com1: ERROR PDU:
0891683108200105F011FF00810008471A95F5884C6CAA677E516C8DEF0031003900355F040032003153F7
531 [main] ERROR org.smslib  - GTW: modem.com1: Wrong type of PDU
detected: org.ajwcc.pduUtils.gsm3040.SmsSubmitPdu
531 [main] ERROR org.smslib  - GTW: modem.com1: ERROR PDU:
0891683108200105F011FF00810008471A95F5884C6CAA677E516C8DEF0031003900355F040032003153F7
===============================================================================
<< InboundMessage >>
-------------------------------------------------------------------------------
 Gateway Id: modem.com1
 Encoding: UCS2 (Unicode)
 Date: Thu Mar 05 15:59:17 CST 2009
 Text: dfd
 PDU data: 4F605E2E621195EE9EC453F67684662F4E865417
 Originator: 8615000634966
 Memory Index: 51
 Multi-part Memory Index:
 Memory Location: ME
 Source / Destination Ports: -1 / -1
===============================================================================

===============================================================================
<< InboundMessage >>
-------------------------------------------------------------------------------
 Gateway Id: modem.com1
 Encoding: UCS2 (Unicode)
 Date: Thu Mar 05 15:59:17 CST 2009
 Text: sss
 PDU data: 4F605E2E621195EE9EC453F67684662F4E865417
 Originator: 8615000634966
 Memory Index: 51
 Multi-part Memory Index:
 Memory Location: ME
 Source / Destination Ports: -1 / -1
===============================================================================

Now Sleeping - Hit <enter> to terminate.

i don't know the reason
thanks any more

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