Brillo, this is not the log. These are just the output statements.

Copy the "log4j.properties" file to "dist/classes" (if you run from
there) and try once more. The debug log will have much more info!

On Jul 18, 11:20 pm, Brillo <[email protected]> wrote:
> ***************************************
> Sure, thanks for your help.
>
> Here is the relevant code extract from SendMessage.java:
> ***************************************
>
>         public void doIt() throws Exception
>         {
>                 Service srv;
>                 OutboundMessage msg;
>                 OutboundNotification outboundNotification = new 
> OutboundNotification
> ();
>                 System.out.println("Example: Send message from a serial gsm
> modem.");
>                 System.out.println(Library.getLibraryDescription());
>                 System.out.println("Version: " + Library.getLibraryVersion());
>                 srv = new Service();
>                 SerialModemGateway gateway = new 
> SerialModemGateway("modem.com4",
> "COM4", 115200, "ZTE", "MF636");
>                 gateway.setInbound(true);
>                 gateway.setOutbound(true);
>                 gateway.setSimPin("0000");
>
>                 srv.setOutboundNotification(outboundNotification);
>                 srv.addGateway(gateway);
>                 srv.startService();
>                 System.out.println();
>                 System.out.println("Modem Information:");
>                 System.out.println("  Manufacturer: " + 
> gateway.getManufacturer());
>                 System.out.println("  Model: " + gateway.getModel());
>                 System.out.println("  Serial No: " + gateway.getSerialNo());
>                 System.out.println("  SIM IMSI: " + gateway.getImsi());
>                 System.out.println("  Signal Level: " + 
> gateway.getSignalLevel() +
> "%");
>                 System.out.println("  Battery Level: " + 
> gateway.getBatteryLevel() +
> "%");
>                 System.out.println();
>
>                 // Send a message
>                 
> System.out.println("===================================\nCreating
> outbound message");
>                 msg = new OutboundMessage("16046669666", "Hello from 
> SMSLib!");
>                 System.out.println(msg );
>                 
> System.out.println("===================================\nSending
> message");
>                 srv.sendMessage(msg);
>                 System.out.println(msg );
>                 System.out.println("msg.getFailureCause() returns : " +
> msg.getFailureCause() );
>                 
> System.out.println("===================================\nWaiting for
> Outbound Notification Hit enter to terminate app");
>                 System.in.read();
>                 srv.stopService();
>         }
>
> ***************************************
> And here is the output:
> ***************************************
>
>      [java] Example: Send message from a serial gsm modem.
>      [java] SMSLib: A Java API library for sending and receiving SMS
> via a GSM modem or other supported gateways.
>      [java] This software is distributed under the terms of the Apache
> v2.0 License.
>      [java] Web Site:http://smslib.org
>      [java] Version: 3.4.1
>
>      [java] Modem Information:
>      [java]   Manufacturer: ZTE INCORPORATED
>      [java]   Model: MF636
>      [java]   Serial No: 352847026301794
>      [java]   SIM IMSI: ** MASKED **
>      [java]   Signal Level: 25%
>      [java]   Battery Level: 100%
>
>      [java] ===================================
>      [java] Creating outbound message
>      [java] ===================================
>      [java] << OutboundMessage >>
>      [java] ------------------------------------
>      [java]  Gateway Id: *
>      [java]  Encoding: 7-bit
>      [java]  Date: Sat Jul 18 13:14:42 PDT 2009
>      [java]  SMSC Ref No:
>      [java]  Recipient: 16046669666
>      [java]  Dispatch Date: null
>      [java]  Message Status: UNSENT
>      [java]  Validity Period (Hours): -1
>      [java]  Status Report: false
>      [java]  Source / Destination Ports: -1 / -1
>      [java]  Flash SMS: false
>      [java]  Text: Hello from SMSLib!
>      [java]  PDU data: C8329BFD0699E5EF3668DA9C32D3E210
>      [java] ===================================================
>
>      [java] ===================================
>      [java] Sending message
>      [java] ===================================
>      [java] << OutboundMessage >>
>      [java] -------------------------------------
>      [java]  Gateway Id: *
>      [java]  Encoding: 7-bit
>      [java]  Date: Sat Jul 18 13:14:42 PDT 2009
>      [java]  SMSC Ref No: null
>      [java]  Recipient: 16046669666
>      [java]  Dispatch Date: null
>      [java]  Message Status: FAILED
>      [java]  Validity Period (Hours): -1
>      [java]  Status Report: false
>      [java]  Source / Destination Ports: -1 / -1
>      [java]  Flash SMS: false
>      [java]  Text: Hello from SMSLib!
>      [java]  PDU data: C8329BFD0699E5EF3668DA9C32D3E210
>      [java] ===============================================
>
>      [java] msg.getFailureCause() returns : NO_ERROR
>      [java] ===================================
>      [java] Waiting for Outbound Notification Hit enter to terminate
> app
--~--~---------~--~----~------------~-------~--~----~
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