Thanks very much!
Il giorno domenica 8 febbraio 2015 08:59:16 UTC+1, Thanasis Delenikas ha
scritto:
>
> Hello,
>
> The last parameter is the memory location, ie an id that represents the
> modems memory. Usually it's something like "SM" or "ME".
>
> When you leave it empty, smslib tries to use the default - but the default
> seems to cause errors for you.
> Try the values "SM", "ME" to see what works for you. Make sure that you
> can indeed read sms sent to your modem!
>
>
> On Wed, Feb 4, 2015, at 20:45, Daniele Renda via SMSLib Discussion Group
> wrote:
>
> I solved adding an empty parameter on Modem:
>
>
> Modem modem =newModem("modem1","/dev/ttyUSB1","9600","0000",
> "0000","393916263333","0000");
>
>
> Seems that the last parameter is the memory location....but what is that?
> I followed this guide for the configuration:
> http://smslib.org/doc/v4/UsingGSMModems
>
> Thanks
>
> Il giorno mercoledì 4 febbraio 2015 19:27:52 UTC+1, Daniele Renda ha
> scritto:
>
> Hi,
> I'm new to Smslib. I'm trying to make a simple test case on my Raspberry
> pi.
> I installed Rxtx library that works fine:
>
>
> root@raspberrypi:~# javaDjava.library.path=/usr/lib/rxtx:/usr/lib/jni
> -jar smslib-dep-dev-20140810.184201-3-all.jar
> log4j:WARN No appenders could be found for logger (org.smslib.threading.
> CallbackManager).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> SMSLib- A universal API for sms messaging
> Copyright(c)2002-2014, smslib.org
> This software is distributed under the terms of the
> Apache v2.0License(http://www.apache.org/licenses/LICENSE-2.0.html).
> SMSLibVersion: dev-SNAPSHOT
> OS Version:Linux/ arm /3.18.5+
> JAVA Version:1.8.0_33
> JAVA RuntimeVersion:1.8.0_33-b05
> JAVA Vendor:OracleCorporation
> JAVA ClassPath: smslib-dep-dev-20140810.184201-3-all.jar
>
> Running port autodetection / diagnostics...
>
> WARNING: RXTX Version mismatch
> Jar version = RXTX-2.2pre1
> native lib Version= RXTX-2.2pre2
> ======Found port:/dev/ttyUSB1
> >>Trying at 9600...GettingInfo...Found: AT+CGMME220
> >>Trying at 14400...GettingInfo...Found: AT+CGMME220
> >>Trying at 19200...GettingInfo...Found: AT+CGMME220
> >>Trying at 28800...GettingInfo...Found: AT+CGMME220
> >>Trying at 33600...GettingInfo...Found: AT+CGMME220
> >>Trying at 38400...GettingInfo...Found: AT+CGMME220
> >>Trying at 56000...GettingInfo...Found: AT+CGMME220
> >>Trying at 57600...GettingInfo...Found: AT+CGMME220
> >>Trying at 115200...GettingInfo...Found: AT+CGMME220
> ======Found port:/dev/ttyUSB0
> >>Trying at 9600...GettingInfo...Found: AT+CGMME220
> >>Trying at 14400...GettingInfo...Found: AT+CGMME220
> >>Trying at 19200...GettingInfo...Found: AT+CGMME220
> >>Trying at 28800...GettingInfo...Found: AT+CGMME220
> >>Trying at 33600...GettingInfo...Found: AT+CGMME220
> >>Trying at 38400...GettingInfo...Found: AT+CGMME220
> >>Trying at 56000...GettingInfo...Found: AT+CGMME220
> >>Trying at 57600...GettingInfo...Found: AT+CGMME220
> >>Trying at 115200...GettingInfo...Found: AT+CGMME220
>
> Test complete.
>
>
>
> This is my simple code:
>
>
> publicstaticvoid main(String[] args){
> try{
> log.debug("Avvio il servizio");
> Service.getInstance().start();
>
> Modem modem =newModem
>
> ...
--
You received this message because you are subscribed to the Google Groups
"SMSLib Discussion Group" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/smslib/d408f311-e7d1-4bfa-ba66-7505651bbe6d%40googlegroups.com.