Discussion:
gammu-smsd won't initialize device
Pascal Panneels
2017-02-06 13:06:24 UTC
Permalink
Hi,

I'm running an Ubuntu 16.04.1 x86-64 machine.

I've following USB modem:

***@pp-1:~$ sudo gammu identify
Device : /dev/ttyUSB0
Manufacturer : Huawei
Model : unknown (K4505)
Firmware : 11.828.03.01.11
IMEI : XXXXXXXXXXXXXXXXXX
SIM IMSI : XXXXXXXXXXXXXXXXXX

I can use it properly to send SMS :

***@pp-1:~$ sudo gammu entersecuritycode PIN 1234
***@pp-1:~$ sudo gammu sendsms TEXT 0123456789 -text "a simple test"
If you want break, press Ctrl+C...
Sending SMS 1/1....waiting for network answer..OK, message reference=3

Works flawlessly.

I'm trying to make the daemon gammu-smsd running, but it fails to start;
that's an extract from the logs :

-8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: Starting phone communication...
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Gammu -
1.37.0]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Connection -
"at115200"]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Connection index - 0]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Model type - ""]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Device -
"/dev/USB0"]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Running on -
Linux, kernel 4.4.0-59-generic (#80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017)]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [System error -
open in serial_open, 2, "Aucun fichier ou dossier de ce type"]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: Init:GSM_TryGetModel
failed with error DEVICENOTEXIST[4]: Erreur à l'ouverture du
périphérique: il n'existe pas.
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: Error at init connection:
Erreur à l'ouverture du périphérique: il n'existe pas. (DEVICENOTEXIST[4])
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: Going to 30 seconds sleep
because of too much connection errors
-8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-

The configuration file is simple:

[gammu]
port = /dev/USB0
connection = at115200

[smsd]
service = files
PIN = 1234
logfile = /var/log/smsd.log
debuglevel = 255
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/

(parameters are identical to the ones used in working gammurc)

Any idea what's wrong with the daemon ?
--
*Pascal Panneels*
Mübin İçyer
2017-02-06 14:31:18 UTC
Permalink
In configuration there is a typo port = /dev/USB0. It must be /dev/*tty*USB0
.
Post by Pascal Panneels
Hi,
I'm running an Ubuntu 16.04.1 x86-64 machine.
Device : /dev/ttyUSB0
Manufacturer : Huawei
Model : unknown (K4505)
Firmware : 11.828.03.01.11
IMEI : XXXXXXXXXXXXXXXXXX
SIM IMSI : XXXXXXXXXXXXXXXXXX
simple test"
If you want break, press Ctrl+C...
Sending SMS 1/1....waiting for network answer..OK, message reference=3
Works flawlessly.
I'm trying to make the daemon gammu-smsd running, but it fails to start;
-8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: Starting phone communication...
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Gammu -
1.37.0]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Connection -
"at115200"]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Connection index - 0]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Model type - ""]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Device -
"/dev/USB0"]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Running on -
Linux, kernel 4.4.0-59-generic (#80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017)]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [System error - open
in serial_open, 2, "Aucun fichier ou dossier de ce type"]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: Init:GSM_TryGetModel
il n'existe pas.
Erreur à l'ouverture du périphérique: il n'existe pas. (DEVICENOTEXIST[4])
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: Going to 30 seconds sleep
because of too much connection errors
-8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-
[gammu]
port = /dev/USB0
connection = at115200
[smsd]
service = files
PIN = 1234
logfile = /var/log/smsd.log
debuglevel = 255
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/
(parameters are identical to the ones used in working gammurc)
Any idea what's wrong with the daemon ?
--
*Pascal Panneels*
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/
lists/listinfo/gammu-users
Pascal Panneels
2017-02-07 08:26:32 UTC
Permalink
Well seen, thank you!

I've passed over and over it without seeing the stupid typo in my config...

Thank you

Pascal
Post by Mübin İçyer
In configuration there is a typo port = /dev/USB0. It must
be/dev/*tty*USB0.
Hi,
I'm running an Ubuntu 16.04.1 x86-64 machine.
Device : /dev/ttyUSB0
Manufacturer : Huawei
Model : unknown (K4505)
Firmware : 11.828.03.01.11
IMEI : XXXXXXXXXXXXXXXXXX
SIM IMSI : XXXXXXXXXXXXXXXXXX
<tel:01%2023456789> -text "a simple test"
If you want break, press Ctrl+C...
Sending SMS 1/1....waiting for network answer..OK, message reference=3
Works flawlessly.
I'm trying to make the daemon gammu-smsd running, but it fails to
-8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: Starting phone
communication...
[Gammu - 1.37.0]
[Connection - "at115200"]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Connection index - 0]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Model
type - ""]
[Device - "/dev/USB0"]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [Running
on - Linux, kernel 4.4.0-59-generic (#80-Ubuntu SMP Fri Jan
6 17:47:47 UTC 2017)]
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: gammu: [System
error - open in serial_open, 2, "Aucun fichier ou dossier de
ce type"]
Init:GSM_TryGetModel failed with error DEVICENOTEXIST[4]: Erreur à
l'ouverture du périphérique: il n'existe pas.
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: Error at init
connection: Erreur à l'ouverture du périphérique: il n'existe pas.
(DEVICENOTEXIST[4])
Mon 2017/02/06 14:01:34 gammu-smsd[27704]: Going to 30 seconds
sleep because of too much connection errors
-8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-
[gammu]
port = /dev/USB0
connection = at115200
[smsd]
service = files
PIN = 1234
logfile = /var/log/smsd.log
debuglevel = 255
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/
(parameters are identical to the ones used in working gammurc)
Any idea what's wrong with the daemon ?
--
*Pascal Panneels*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list -
https://lists.sourceforge.net/lists/listinfo/gammu-users
<https://lists.sourceforge.net/lists/listinfo/gammu-users>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
--
*Pascal Panneels*
Project Manager
Belnet - Services
Louizalaan 231 Avenue Louise
Brussel 1050 Bruxelles
België - Belgique
T: +32 2 790 33 33
*www.belnet.be <http://www.belnet.be>*
Loading...