just check the com port number to which ur hndset is connected from
device manager n use that com port number instead of com1.

On Mar 28, 10:49 pm, Raja <[email protected]> wrote:
> Hello,
>
> I am trying use SMSlib for my project. The development system is
> Dell Vostro 1710 Laptop, Kubuntu 9.10 64 bit, JVM is java-6-
> sun-1.6.0.15
> installed through repositories, IDE is Spring Tool Suit 2.3.0.
>
> Mobile Phone being used is Samsung S3310 (dont know whether its
> Compatible with SMS lib)
> Comm Lib is TxRx but during installation there is small change
> required.
>
> The Installation Doc says - The necessary library (e.g.. for Linux
> 32bit, the librxtxSerial.so) should go under JDKDIR/jre/bin/
> But it need to be copied to - /usr/lib. No properties or parameter
> files I have coped to any place
>
> with this change I could proceed further.
>
> When Phone is connected to USB port /var/log/messages hasfollowing log
>
> Mar 28 22:34:11 DELL-1710 kernel: [ 5001.440142] usb 1-4: new high
> speed USB device using ehci_hcd and address 6
> Mar 28 22:34:11 DELL-1710 kernel: [ 5001.593991] usb 1-4:
> configuration #1 chosen from 1 choice
> Mar 28 22:34:11 DELL-1710 kernel: [ 5001.595086] cdc_acm 1-4:1.0:
> ttyACM0: USB ACM device
> Mar 28 22:34:11 DELL-1710 kernel: [ 5001.623061] tty_port_close_start:
> tty->count = 1 port count = 0.
>
> so it indicates that modem device is /dev/ttyACM0.
>
> Well it took me almost 1 day to get this device. The change required
> was at Phone and not on PC
> This phone has settings. Settings->Phone Settings->PC connection
> 1.Ask on connection 2. Samsung PC studio 3.Media Player 4. Mass
> Storage.
> initially it was Mass Storage so whenever it was connected to pc it
> was
> treated as USB Stick and I could access memory card in It. But No /dev/
> ttyACM0 was
> created. I googled and scanned many pages then somewhere a vague clue
> "type **7284 in Phone" was
> found then I guessed and searched on phone rather than struggling with
> Linux and I found these options
> So Outcome is Select 2.Samsung PC Studio to mount it as /dev/
> ttyACM0.
>
> Then I tried to run ReadMessages.java as my first trial.
> Changed         SerialModemGateway  gateway = new
> SerialModemGateway("modem.com1", "COM1", 57600, "Nokia", "");
> To                      SerialModemGateway      gateway = new
> SerialModemGateway("modem.com1","/dev/ttyACM0", 57600, "Samsung", "");
>
> While running I am Getting Following Output.
>
> 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.4.5
> log4j:WARN No appenders could be found for logger (smslib).
> log4j:WARN Please initialize the log4j system properly.
> Stable Library
> =========================================
> Native lib Version = RXTX-2.1-7
> Java lib Version   = RXTX-2.1-7>>> Gateway Status change for modem.com1, OLD: 
> STOPPED -> NEW: RESTART
> >>> Gateway Status change for modem.com1, OLD: RESTART -> NEW: STOPPING
> >>> Gateway Status change for modem.com1, OLD: STOPPING -> NEW: STOPPED
>
> org.smslib.GatewayException: Comm library exception:
> java.lang.RuntimeException: gnu.io.NoSuchPortException
>         at
> org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:
> 96)
>         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:111)
>         at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:186)
>         at org.smslib.Service$1Starter.run(Service.java:257)
> Experimental:  JNI_OnLoad called.
>
> Then I googled again I found One suggestion to create link to /dev/
> ttyACM0 to /dev/ttyS_ the next to max of ttys?
> and use that device I did it but result is same.
>
> I need help about two points
> 1. Remove Errors regarding log4j
>    I have created log4j.properties file in src folder is goes to bin
> folder automatically
>    which defines loggers for org.smslib and my test package org.rsp
> 2. The main problem is java.lang.RuntimeException:
> gnu.io.NoSuchPortException
>    how to tackle this ?
>
> Thanks and regards
>
> Raja

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