Hi

Please, try again with those parameters:

-Dsmslib.serial.polling -Dsmslib.serial.noflush
-Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0

Best regards.

Marcos.

On Wed, Oct 19, 2011 at 10:45 AM, netMouse <[email protected]>wrote:

> I bought one of these to figure this library out and I seem to be
> having a little difficulty getting it going?  Any help would be
> appreciated.
>
> lsusb shows
> ...
> Bus 006 Device 002: ID 0471:1210 Philips (or NXP)
>
>
> to switch the device from a storage device to a usb serial device
> sudo usb_modeswitch ...
> [   57.109734] usbcore: registered new interface driver uas
>
> [   57.115798] Initializing USB Mass Storage driver...
>
> [   57.115894] scsi14 : usb-storage 6-1:1.0
>
> [   57.116088] usbcore: registered new interface driver usb-storage
>
> [   57.116090] USB Mass Storage support registered.
>
> [  180.253893] usb 6-1: usbfs: process 1792 (usb_modeswitch) did not
> claim interface 0 before use
>
> [  180.280916] usb 6-1: USB disconnect, address 2
>
> [  184.868452] usb 6-1: new full speed USB device using uhci_hcd and
> address 3
>
> [  185.101582] cdc_acm 6-1:1.0: ttyACM0: USB ACM device
>
> [  185.103818] usbcore: registered new interface driver cdc_acm
>
> [  185.103822] cdc_acm: v0.26:USB Abstract Control Model driver for
> USB modems and ISDN adapters
>
>
> shows the disconnect of usb 6 and the device at ttyACM0
>
> lsusb again shows
> ...
> Bus 006 Device 003: ID 1dbc:0005
>
>
> sudo modprobe usbserial vendor=0x1dbc product=0x0005
>
>
> [  459.581232] usbcore: registered new interface driver usbserial
>
> [  459.581243] USB Serial support registered for generic
>
> [  459.581253] usbcore: registered new interface driver
> usbserial_generic
>
> [  459.581254] usbserial: USB Serial Driver core
>
>
> The line I changed in SendMessage to define the gateway
>  SerialModemGateway gateway = new
> SerialModemGateway("modem.com1",
>
> "/dev/ttyACM0",
>
> 115200,
>
> "Huawei", "");
>
>
>
> Now I try to run
> java examples.modem.SendMessage
>
> 15     2011-10-19 01:35:45,543 [main] INFO  org.smslib.Service  -
> Version: 3.5.1
>
> 15     2011-10-19 01:35:45,543 [main] INFO  org.smslib.Service  - JRE
> Version: 1.6.0_22
>
> 19     2011-10-19 01:35:45,547 [main] INFO  org.smslib.Service  - JRE
> Impl Version: 20.0-b11
>
> 19     2011-10-19 01:35:45,547 [main] INFO  org.smslib.Service  - O/S:
> Linux / i386 / 2.6.38-11-generic-pae
>
> 60     2011-10-19 01:35:45,588 [main] DEBUG
> org.smslib.threading.AServiceThread  - Initialized.
>
> 61     2011-10-19 01:35:45,589 [NotifyQueueManager] DEBUG
> org.smslib.threading.AServiceThread  - Running...
>
> 61     2011-10-19 01:35:45,589 [NotifyQueueManager] DEBUG
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
> NotifyQueueManager running...
>
> 64     2011-10-19 01:35:45,592 [main] INFO
> org.smslib.queues.DefaultQueueManager  - Queue directory not defined.
> Queued messages will not be saved to filesystem.
>
> 65     2011-10-19 01:35:45,593 [main] DEBUG
> org.smslib.threading.AServiceThread  - Initialized.
>
> 66     2011-10-19 01:35:45,594 [DelayQueueManager] DEBUG
> org.smslib.threading.AServiceThread  - Running...
>
> 66     2011-10-19 01:35:45,594 [DelayQueueManager] DEBUG
> org.smslib.queues.AbstractQueueManager$DelayQueueManager  -
> DelayQueueManager running...
>
> 67     2011-10-19 01:35:45,595 [main] DEBUG
> org.smslib.threading.AServiceThread  - Initialized.
>
> 67     2011-10-19 01:35:45,595 [WatchDog] DEBUG
> org.smslib.threading.AServiceThread  - Running...
>
> 70     2011-10-19 01:35:45,598 [Thread-3] INFO
> org.smslib.modem.ModemGateway  - GTW: modem.com1: Starting gateway,
> using Huawei (Generic) AT Handler.
>
> 70     2011-10-19 01:35:45,598 [Thread-3] INFO
> org.smslib.modem.SerialModemDriver  - GTW: modem.com1: Opening: /dev/
> ttyACM0 @115200
>
> Experimental:  JNI_OnLoad called.
>
> Stable Library
>
> =========================================
>
> Native lib Version = RXTX-2.1-7
>
> Java lib Version   = RXTX-2.1-7
>
> 122    2011-10-19 01:35:45,650 [Thread-3] INFO
> org.smslib.modem.SerialModemDriver  - GTW: modem.com1: Closing: /dev/
> ttyACM0 @115200
>
> 1073   2011-10-19 01:35:46,601 [NotifyQueueManager] DEBUG
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
> NotifyQueueManager end...
>
> 1073   2011-10-19 01:35:46,601 [DelayQueueManager] DEBUG
> org.smslib.queues.AbstractQueueManager$DelayQueueManager  -
> DelayQueueManager end...
>
> 1173   2011-10-19 01:35:46,701 [NotifyQueueManager] DEBUG
> org.smslib.threading.AServiceThread  - Running...
>
> 1173   2011-10-19 01:35:46,701 [NotifyQueueManager] DEBUG
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
> NotifyQueueManager running...
>
> 1276   2011-10-19 01:35:46,804 [WatchDog] DEBUG
> org.smslib.threading.AServiceThread  - Stopped.
>
> 1276   2011-10-19 01:35:46,804 [main] INFO
> org.smslib.modem.ModemGateway  - GTW: modem.com1: Stopping gateway...
>
> 1277   2011-10-19 01:35:46,805 [main] INFO
> org.smslib.modem.SerialModemDriver  - GTW: modem.com1: Closing: /dev/
> ttyACM0 @115200
>
> 1277   2011-10-19 01:35:46,805 [main] INFO
> org.smslib.modem.ModemGateway  - GTW: modem.com1: Gateway stopped.
>
> 1277   2011-10-19 01:35:46,805 [NotifyQueueManager] DEBUG
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
> NotifyQueueManager end...
>
> 1377   2011-10-19 01:35:46,905 [NotifyQueueManager] DEBUG
> org.smslib.threading.AServiceThread  - Running...
>
> 1378   2011-10-19 01:35:46,906 [NotifyQueueManager] DEBUG
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
> NotifyQueueManager running...
>
> 1378   2011-10-19 01:35:46,906 [NotifyQueueManager] DEBUG
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
> NotifyQueueManager end...
>
> 1480   2011-10-19 01:35:47,008 [NotifyQueueManager] DEBUG
> org.smslib.threading.AServiceThread  - Running...
>
> 1480   2011-10-19 01:35:47,008 [NotifyQueueManager] DEBUG
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
> NotifyQueueManager running...
>
> 1480   2011-10-19 01:35:47,008 [NotifyQueueManager] DEBUG
> org.smslib.threading.AServiceThread  - Stopped.
>
> org.smslib.GatewayException: Comm library exception:
> java.lang.RuntimeException: gnu.io.NoSuchPortException
>
>        at
> org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:
> 102)
>
>        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
>
>        at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
>
>        at org.smslib.Service$1Starter.run(Service.java:276)
>
>
> What did I not do correctly?
>
> --
> You received this message because you are subscribed to the Google Groups
> "SMSLib Discussion 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.
>
>

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