Re: R: Using my phone and Kannel to send SMS
;: Speed 38400: AT -- OK ttyACM0<*1>: Speed 57600: AT -- OK ttyACM0<*1>: Speed 115200: AT -- OK ttyACM0<*1>: Speed 230400: AT -- OK ttyACM0<*1>: Speed 460800: AT -- OK ttyACM0<*1>: Max speed is 460800; that should be safe. ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- failed with 460800 baud, next try: 9600 baud ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- +CME ERROR: 513 ttyACM0<*1>: failed with 9600 baud, next try: 115200 baud ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- ATQ0 V1 E1 S0=0 ttyACM0<*1>: and failed too at 115200, giving up. ttyACM1<*1>: ATQ0 V1 E1 -- On 14/02/2017 14:58, Alvaro Cornejo wrote: Hi You can use vwdial to detect your modem and it will even give you an initialization string to start with. run "wvdialconf" and check what does it said about your ports Regards, Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com <http://www.perusms.com> 2017-02-14 4:40 GMT-05:00 info.ubichip <info.ubic...@free.fr <mailto:info.ubic...@free.fr>>: Hello, perhaps, the first step is not to start kannel, but only try to make a connect to your tty then, try to make 'ATZ', and then see the answer from the modem. If there is no answer, it looks to be an speed connection modem setup issue, then try another speed, and so on. BR *De :*users [mailto:users-boun...@kannel.org <mailto:users-boun...@kannel.org>] *De la part de* umbertofilippo *Envoyé :* lundi 13 février 2017 22:46 *À :* users@kannel.org <mailto:users@kannel.org> *Objet :* Re: R: Using my phone and Kannel to send SMS I finally managed to recognize which tty my phone is assigned (tty9). But now I ma having permission issues. I read from the user guide "In Ubuntu linux you just need to assign kannel user to group "dial"", but I don't know what that means... So I tried the discouraged way just for testing: the initialization with sudo. I am still having issues. I am receiving: "ERROR: AT2[/dev/tty9]: Wrong or no answer to ATZ" "INFO: AT2[/dev/tty9]: Closing device" "ERROR: AT2[/dev/tty9]: Couldn't connect" Is it something related to the speed (at the moment it is set to 9600)? Thanks in advance for any help. On 13/02/2017 08:02, umbertofilippo wrote: Forgot to say that I plugged my phone via USB cable and it was recognized properly by my system. I am on Ubuntu 16.04. *Da: *umbertofilippo <mailto:umbertofili...@tiscali.it> *Inviato: *12/02/2017 20:03 *A: *users@kannel.org <mailto:users@kannel.org> *Oggetto: *Using my phone and Kannel to send SMS Hi, I am trying to use my Nokia Lumia 625 to send SMS using Kannel. I followed the tutorial, and I am using the 'smskannel.conf' combined with the 'modems.conf' to get it work, but I need some help. I am encountering difficulties, since I don't know what is the actual value of the variable 'device' in my configuration. So, when I start the bearerbox, it panics as expected. Below is a piece of my configuration file, and the output of bearerbox. The /dev/ttyACM was just a guess, but it is not working. I tried the doing "grep tty /var/log/messages" from terminal but it seems I have no such file/folder. I also tried "dmesg | grep tty" and it only gives "[ 0.00] console [tty0] enabled". # CORE group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar box-deny-ip = "*.*.*.*" # SMSC CONNECTIONS group = smsc smsc = at modemtype = auto *device = /dev/ttyACM* speed = 9600 sms-center = [HIDDEN :)] BEARERBOX OUTPUT AFTER "bearerbox -v 1 /home/umberto/Documents/call_my_dog/kannel_conf/smsphone.conf" 2017-02-12 20:00:54 [5400] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0 2017-02-12 20:00:54 [5400] [0] WARNING: DLR: using default 'internal' for storage type. 2017-02-12 20:00:54 [5400] [0] INFO: DLR using storage type: internal 2017-02-12 20:00:54 [5400] [0] INFO: HTTP: Opening server at port 13000. 2017-02-12 20:00:54 [5400] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2017-02-12 20:00:54 [5400] [0] INFO: Set
Re: R: Using my phone and Kannel to send SMS
Hi again, first of all thanks BR and Alvaro for your advices. I am sorry I didn't have time to do some test before. So, I am still having issues, but I am pretty sure I am very close to the solution. I have tried another telephone: it's a Samsung GT S7309. I removed the PIN from the SIM and I turned off the data connectivity from the telephone. Then I plugged it in my laptop and I can see a New Mobile Broadband connection in the Network Manager (I'm on Ubuntu 16.04). Then I downloaded wvdial and did 'wvdialconf' as suggested to see info for the kannel config file. At this point, I receive some messages, however it stalls on ttyACM1<*1>: ATQ0 V1 E1 --. From the message I somehow noticed that the phone is probably under /dev/ttyACM1, so I changed my kannel conf file to point to that (the device variable is set to "/dev/ttyACM1"). I tried to launch the bearerbox with the edited conf file, and I received ERROR: AT2[/dev/ttyACM1]: Initialization of device failed. Attempt #1 on -1 max. Does anybody have other ideas? I am digging in something new for me, but I am confident I can make it working! The output from wvdialconf is pasted below, thanks in advance. Editing `/etc/wvdial.conf'. Scanning your serial ports for a modem. Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7 Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15 Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23 Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31 ttyACM0<*1>: ATQ0 V1 E1 -- OK ttyACM0<*1>: ATQ0 V1 E1 Z -- OK ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- ATQ0 V1 E1 S0=0 ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- ATQ0 V1 E1 S0=0 ttyACM0<*1>: ATQ0 V1 E1 S0=0 +FCLASS=0 -- ERROR ttyACM0<*1>: Modem Identifier: ATI -- +CME ERROR: 513 ttyACM0<*1>: Speed 4800: AT -- OK ttyACM0<*1>: Speed 9600: AT -- AT ttyACM0<*1>: Speed 9600: AT -- OK ttyACM0<*1>: Speed 19200: AT -- OK ttyACM0<*1>: Speed 38400: AT -- OK ttyACM0<*1>: Speed 57600: AT -- OK ttyACM0<*1>: Speed 115200: AT -- OK ttyACM0<*1>: Speed 230400: AT -- OK ttyACM0<*1>: Speed 460800: AT -- OK ttyACM0<*1>: Max speed is 460800; that should be safe. ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- failed with 460800 baud, next try: 9600 baud ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- +CME ERROR: 513 ttyACM0<*1>: failed with 9600 baud, next try: 115200 baud ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- ATQ0 V1 E1 S0=0 ttyACM0<*1>: and failed too at 115200, giving up. ttyACM1<*1>: ATQ0 V1 E1 -- On 14/02/2017 14:58, Alvaro Cornejo wrote: Hi You can use vwdial to detect your modem and it will even give you an initialization string to start with. run "wvdialconf" and check what does it said about your ports Regards, Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com <http://www.perusms.com> 2017-02-14 4:40 GMT-05:00 info.ubichip <info.ubic...@free.fr <mailto:info.ubic...@free.fr>>: Hello, perhaps, the first step is not to start kannel, but only try to make a connect to your tty then, try to make 'ATZ', and then see the answer from the modem. If there is no answer, it looks to be an speed connection modem setup issue, then try another speed, and so on. BR *De :*users [mailto:users-boun...@kannel.org <mailto:users-boun...@kannel.org>] *De la part de* umbertofilippo *Envoyé :* lundi 13 février 2017 22:46 *À :* users@kannel.org <mailto:users@kannel.org> *Objet :* Re: R: Using my phone and Kannel to send SMS I finally managed to recognize which tty my phone is assigned (tty9). But now I ma having permission issues. I read from the user guide "In Ubuntu linux you just need to assign kannel user to group "dial"", but I don't know what that means... So I tried the discouraged way just for testing: the initialization with sudo. I am still having issues. I am receiving: "ERROR: AT2[/dev/tty9]: Wrong or no answer to ATZ" "INFO: AT2[/dev/tty9]: Closing device" "ERROR: AT2[/dev/tty9]: Couldn't connect" Is it something related to the speed (at the moment it is set to 9600)? Thanks in advance for any help. On 13/02/2017 08:02, umbertofilippo wrote: Forgot to say that I plugged my phone via USB cable and it was recognized properly by my system. I am on Ubuntu 16.04. ------------ *Da: *u
Re: R: Using my phone and Kannel to send SMS
Hi You can use vwdial to detect your modem and it will even give you an initialization string to start with. run "wvdialconf" and check what does it said about your ports Regards, Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com 2017-02-14 4:40 GMT-05:00 info.ubichip <info.ubic...@free.fr>: > Hello, > > > > perhaps, the first step is not to start kannel, but only try to make a > connect to your tty then, try to make 'ATZ', and then see the answer from > the modem. > > If there is no answer, it looks to be an speed connection modem setup > issue, then try another speed, and so on. > > > > BR > > > > *De :* users [mailto:users-boun...@kannel.org] *De la part de* > umbertofilippo > *Envoyé :* lundi 13 février 2017 22:46 > *À :* users@kannel.org > *Objet :* Re: R: Using my phone and Kannel to send SMS > > > > I finally managed to recognize which tty my phone is assigned (tty9). > > But now I ma having permission issues. I read from the user guide "In > Ubuntu linux you just need to assign kannel user to group "dial"", but I > don't know what that means... > > So I tried the discouraged way just for testing: the initialization with > sudo. > > I am still having issues. I am receiving: > > "ERROR: AT2[/dev/tty9]: Wrong or no answer to ATZ" > > "INFO: AT2[/dev/tty9]: Closing device" > > "ERROR: AT2[/dev/tty9]: Couldn't connect" > > Is it something related to the speed (at the moment it is set to 9600)? > > Thanks in advance for any help. > > > > > > On 13/02/2017 08:02, umbertofilippo wrote: > > Forgot to say that I plugged my phone via USB cable and it was recognized > properly by my system. I am on Ubuntu 16.04. > -- > > *Da: *umbertofilippo <umbertofili...@tiscali.it> > *Inviato: *12/02/2017 20:03 > *A: *users@kannel.org > *Oggetto: *Using my phone and Kannel to send SMS > > Hi, > > I am trying to use my Nokia Lumia 625 to send SMS using Kannel. > > I followed the tutorial, and I am using the 'smskannel.conf' combined with > the 'modems.conf' to get it work, but I need some help. > > I am encountering difficulties, since I don't know what is the actual > value of the variable 'device' in my configuration. So, when I start the > bearerbox, it panics as expected. Below is a piece of my configuration > file, and the output of bearerbox. > > The /dev/ttyACM was just a guess, but it is not working. I tried the doing > "grep tty /var/log/messages" from terminal but it seems I have no such > file/folder. > > I also tried "dmesg | grep tty" and it only gives "[0.00] console > [tty0] enabled". > > # CORE > > group = core > admin-port = 13000 > smsbox-port = 13001 > admin-password = bar > box-deny-ip = "*.*.*.*" > > > > # SMSC CONNECTIONS > > > > group = smsc > smsc = at > modemtype = auto > *device = /dev/ttyACM* > speed = 9600 > sms-center = [HIDDEN :)] > > BEARERBOX OUTPUT AFTER "bearerbox -v 1 /home/umberto/Documents/call_ > my_dog/kannel_conf/smsphone.conf" > > > > 2017-02-12 20:00:54 [5400] [0] INFO: Debug_lvl = 1, log_file = , > log_lvl = 0 > 2017-02-12 20:00:54 [5400] [0] WARNING: DLR: using default 'internal' for > storage type. > 2017-02-12 20:00:54 [5400] [0] INFO: DLR using storage type: internal > 2017-02-12 20:00:54 [5400] [0] INFO: HTTP: Opening server at port 13000. > 2017-02-12 20:00:54 [5400] [0] INFO: BOXC: 'smsbox-max-pending' not set, > using default (100). > 2017-02-12 20:00:54 [5400] [0] INFO: Set SMS resend frequency to 60 > seconds. > 2017-02-12 20:00:54 [5400] [0] INFO: SMS resend retry set to unlimited. > 2017-02-12 20:00:54 [5400] [0] INFO: DLR rerouting for smsc id <(null)> > disabled. > 2017-02-12 20:00:54 [5400] [0] INFO: AT2[/dev/ttyACM]: configuration > doesn't show modemtype. will autodetect > 2017-02-12 20:00:54 [5400] [0] INFO: -- > -- > 2017-02-12 20:00:54 [5400] [6] INFO: AT2[/dev/ttyACM]: opening device > 2017-02-12 20:00:54 [5400] [0] INFO: Kannel bearerbox II version 1.4.4 > starting > 2017-02-12 20:00:54 [5400] [6] ERROR: AT2[/dev/ttyACM]: open failed! > ERRNO=2 > 2017-02-12 20:00:54 [5400] [6] ERROR: System error 2: No such file or > directory > 2017-02-12 20:00:54 [5400] [6] ERROR: AT2[/dev/ttyACM]: Couldn't connect > (retrying in 10 seconds). > > >
RE: R: Using my phone and Kannel to send SMS
Hello, perhaps, the first step is not to start kannel, but only try to make a connect to your tty then, try to make 'ATZ', and then see the answer from the modem. If there is no answer, it looks to be an speed connection modem setup issue, then try another speed, and so on. BR De : users [mailto:users-boun...@kannel.org] De la part de umbertofilippo Envoyé : lundi 13 février 2017 22:46 À : users@kannel.org Objet : Re: R: Using my phone and Kannel to send SMS I finally managed to recognize which tty my phone is assigned (tty9). But now I ma having permission issues. I read from the user guide "In Ubuntu linux you just need to assign kannel user to group "dial"", but I don't know what that means... So I tried the discouraged way just for testing: the initialization with sudo. I am still having issues. I am receiving: "ERROR: AT2[/dev/tty9]: Wrong or no answer to ATZ" "INFO: AT2[/dev/tty9]: Closing device" "ERROR: AT2[/dev/tty9]: Couldn't connect" Is it something related to the speed (at the moment it is set to 9600)? Thanks in advance for any help. On 13/02/2017 08:02, umbertofilippo wrote: Forgot to say that I plugged my phone via USB cable and it was recognized properly by my system. I am on Ubuntu 16.04. _ Da: umbertofilippo <mailto:umbertofili...@tiscali.it> Inviato: 12/02/2017 20:03 A: users@kannel.org Oggetto: Using my phone and Kannel to send SMS Hi, I am trying to use my Nokia Lumia 625 to send SMS using Kannel. I followed the tutorial, and I am using the 'smskannel.conf' combined with the 'modems.conf' to get it work, but I need some help. I am encountering difficulties, since I don't know what is the actual value of the variable 'device' in my configuration. So, when I start the bearerbox, it panics as expected. Below is a piece of my configuration file, and the output of bearerbox. The /dev/ttyACM was just a guess, but it is not working. I tried the doing "grep tty /var/log/messages" from terminal but it seems I have no such file/folder. I also tried "dmesg | grep tty" and it only gives "[0.00] console [tty0] enabled". # CORE group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar box-deny-ip = "*.*.*.*" # SMSC CONNECTIONS group = smsc smsc = at modemtype = auto device = /dev/ttyACM speed = 9600 sms-center = [HIDDEN :)] BEARERBOX OUTPUT AFTER "bearerbox -v 1 /home/umberto/Documents/call_my_dog/kannel_conf/smsphone.conf" 2017-02-12 20:00:54 [5400] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0 2017-02-12 20:00:54 [5400] [0] WARNING: DLR: using default 'internal' for storage type. 2017-02-12 20:00:54 [5400] [0] INFO: DLR using storage type: internal 2017-02-12 20:00:54 [5400] [0] INFO: HTTP: Opening server at port 13000. 2017-02-12 20:00:54 [5400] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2017-02-12 20:00:54 [5400] [0] INFO: Set SMS resend frequency to 60 seconds. 2017-02-12 20:00:54 [5400] [0] INFO: SMS resend retry set to unlimited. 2017-02-12 20:00:54 [5400] [0] INFO: DLR rerouting for smsc id <(null)> disabled. 2017-02-12 20:00:54 [5400] [0] INFO: AT2[/dev/ttyACM]: configuration doesn't show modemtype. will autodetect 2017-02-12 20:00:54 [5400] [0] INFO: 2017-02-12 20:00:54 [5400] [6] INFO: AT2[/dev/ttyACM]: opening device 2017-02-12 20:00:54 [5400] [0] INFO: Kannel bearerbox II version 1.4.4 starting 2017-02-12 20:00:54 [5400] [6] ERROR: AT2[/dev/ttyACM]: open failed! ERRNO=2 2017-02-12 20:00:54 [5400] [6] ERROR: System error 2: No such file or directory 2017-02-12 20:00:54 [5400] [6] ERROR: AT2[/dev/ttyACM]: Couldn't connect (retrying in 10 seconds).
Re: R: Using my phone and Kannel to send SMS
I finally managed to recognize which tty my phone is assigned (tty9). But now I ma having permission issues. I read from the user guide "In Ubuntu linux you just need to assign kannel user to group "dial"", but I don't know what that means... So I tried the discouraged way just for testing: the initialization with sudo. I am still having issues. I am receiving: "ERROR: AT2[/dev/tty9]: Wrong or no answer to ATZ" "INFO: AT2[/dev/tty9]: Closing device" "ERROR: AT2[/dev/tty9]: Couldn't connect" Is it something related to the speed (at the moment it is set to 9600)? Thanks in advance for any help. On 13/02/2017 08:02, umbertofilippo wrote: Forgot to say that I plugged my phone via USB cable and it was recognized properly by my system. I am on Ubuntu 16.04. Da: umbertofilippo <mailto:umbertofili...@tiscali.it> Inviato: 12/02/2017 20:03 A: users@kannel.org <mailto:users@kannel.org> Oggetto: Using my phone and Kannel to send SMS Hi, I am trying to use my Nokia Lumia 625 to send SMS using Kannel. I followed the tutorial, and I am using the 'smskannel.conf' combined with the 'modems.conf' to get it work, but I need some help. I am encountering difficulties, since I don't know what is the actual value of the variable 'device' in my configuration. So, when I start the bearerbox, it panics as expected. Below is a piece of my configuration file, and the output of bearerbox. The /dev/ttyACM was just a guess, but it is not working. I tried the doing "grep tty /var/log/messages" from terminal but it seems I have no such file/folder. I also tried "dmesg | grep tty" and it only gives "[ 0.00] console [tty0] enabled". # CORE group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar box-deny-ip = "*.*.*.*" # SMSC CONNECTIONS group = smsc smsc = at modemtype = auto *device = /dev/ttyACM* speed = 9600 sms-center = [HIDDEN :)] BEARERBOX OUTPUT AFTER "bearerbox -v 1 /home/umberto/Documents/call_my_dog/kannel_conf/smsphone.conf" 2017-02-12 20:00:54 [5400] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0 2017-02-12 20:00:54 [5400] [0] WARNING: DLR: using default 'internal' for storage type. 2017-02-12 20:00:54 [5400] [0] INFO: DLR using storage type: internal 2017-02-12 20:00:54 [5400] [0] INFO: HTTP: Opening server at port 13000. 2017-02-12 20:00:54 [5400] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2017-02-12 20:00:54 [5400] [0] INFO: Set SMS resend frequency to 60 seconds. 2017-02-12 20:00:54 [5400] [0] INFO: SMS resend retry set to unlimited. 2017-02-12 20:00:54 [5400] [0] INFO: DLR rerouting for smsc id <(null)> disabled. 2017-02-12 20:00:54 [5400] [0] INFO: AT2[/dev/ttyACM]: configuration doesn't show modemtype. will autodetect 2017-02-12 20:00:54 [5400] [0] INFO: 2017-02-12 20:00:54 [5400] [6] INFO: AT2[/dev/ttyACM]: opening device 2017-02-12 20:00:54 [5400] [0] INFO: Kannel bearerbox II version 1.4.4 starting 2017-02-12 20:00:54 [5400] [6] ERROR: AT2[/dev/ttyACM]: open failed! ERRNO=2 2017-02-12 20:00:54 [5400] [6] ERROR: System error 2: No such file or directory 2017-02-12 20:00:54 [5400] [6] ERROR: AT2[/dev/ttyACM]: Couldn't connect (retrying in 10 seconds).