Re: gammu-smsd won't initialize device

Pascal Panneels <[email protected]> Tue, 7 Feb 2017 09:26:32 +0100
Newsgroups gmane.linux.drivers.gammu
Organization Belnet
Message-ID <[email protected]>
Well seen, thank you!

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

Thank you

Pascal

Le 06/02/17 à 15:31, Mübin İçyer a écrit :
> In configuration there is a typo port = /dev/USB0. It must
> be/dev/*tty*USB0.
>
> 2017-02-06 14:06 GMT+01:00 Pascal Panneels <[email protected]
> <mailto:[email protected]>>:
>
>     Hi,
>
>     I'm running an Ubuntu 16.04.1 x86-64 machine.
>
>     I've following USB modem:
>
>     pep@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 :
>
>     pep@pp-1:~$ sudo gammu entersecuritycode PIN 1234
>     pep@pp-1:~$ sudo gammu  sendsms TEXT 0123456789
>     <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
>     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*
>
>
>     ------------------------------------------------------------------------------
>     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>*

------------------------------------------------------------------------------
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
smime.p7s (application/pkcs7-signature, 3.6 KB) - not displayed