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.000000] 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 = <none>,
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).