Can you also post the log from the SendMessage example?
On Jul 18, 11:00 pm, Brillo <[email protected]> wrote:
> Hi - Has anyone got smslib working with a Rogers (Canada) ZTE 636 USB
> modem?
>
> I can send a text message to my modem; example/modem/ReadMessages
> will receive it correctly.
> However, the corresponding example/modem/SendMessage always returns
> Message Status: FAILED, but a call to
> OutboundMessage.getFailureCause() just returns NO_ERROR, so I don't
> think it is even trying to
> actually send... Has Anyone got this device fully working?
>
> thanks!
>
> PS:
>
> Below are the steps I used to verify reception, in case this helps
> anyone else.
>
> Setup of Reception on Win32 machine:
> ================================================================
> Step #1: Extract fromhttp://www.zeroflux.org/blog/post/255
> ================================================================
> Using a Windows machine, plug in the USB device and go through the
> short install wizard.
> Once done, close the Rogers app that starts up, then head into the
> Device Manager
> (Control Panel -> System -> Device Manager). Under the Ports section,
> find the COM port
> that's connected to the USB modem (ignore the Diagnostics one).
> Connect to that COM port
> through Hyperterminal, found in the Accessories area of the Start
> Menu. Connection parameters are
>
> Bits per Second: 115200
> Data bits: 8
> Parity: None
> Stop bits: 1
> Flow Control: None
>
> Once connected, type the following commands:
>
> AT+ZOPRT=5
> AT+ZCDRUN=8
>
> This tells the modem not to use CD mode when it's first plugged into a
> computer. Now exit Hypterterminal.
>
> ================================================================
> Step #2: Build and Run example/modem/ReadMessages.java
> ================================================================
> [2a Modify SerialModemGateway instantiation line in
> ReadMessages.java: ]
> ...
> SerialModemGateway gateway = new SerialModemGateway("modem.com4",
> "COM4", 115200, "ZTE", "MF636");
> ...
> [2b Modify the build.xml or other ant script to start app ]
> You will see something like this on stdout:
> [java] Example: Read messages 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] >>> Gateway Status change for modem.com4, OLD: STOPPED ->
> NEW: STARTING
> [java] >>> Gateway Status change for modem.com4, OLD: STARTING ->
> NEW: STARTED
> [java] Modem Information:
> [java] Manufacturer: ZTE INCORPORATED
> [java] Model: MF636
> [java] Serial No: 352847066601794
> [java] SIM IMSI: ** MASKED **
> [java] Signal Level: 35%
> [java] Battery Level: 100%
> [java] Now Sleeping - Hit <enter> to stop service.
> ================================================================
> Step #3: Send your modem a text message
> ================================================================
> You should see something like this on stdout:
> [java]
> ====================================================================
> [java] << InboundMessage >>
> [java]
> ---------------------------------------------------------------------------
> ----
> [java] Gateway Id: modem.com4
> [java] Encoding: 7-bit
> [java] Date: Fri Jul 17 06:45:12 PDT 2009
> [java] Text: Hi there little rocket modem
> [java] PDU data:
> C834888E2ECBCB20769A4E679741F2F7785DA683DA6F72B90D
> [java] Originator: 16043676664
> [java] Memory Index: 0
> [java] Multi-part Memory Index:
> [java] Memory Location: ME
> [java] Source / Destination Ports: -1 / -1
> [java]
> ====================================================================
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---