Stampa

In questo tutorial precedente, ti abbiamo mostrato come installare Gammu e inviare un SMS alla riga di comando.

Vi presento oggi come visualizzare, fermare e riavviare il servizio gammu-smsd. Infatti, se si desidera esplorare e testare le altre funzioni del modulo SIM800C nei comandi AT utilizzando un terminale Minicom o altro, è necessario scaricare temporaneamente il servizio gammu-smsd che dialoga in background con la scheda NadHAT attraverso il canale seriale , proprio come Minicom. Viene evitato un conflitto tra i due candidati alla risorsa.

Non dimenticare di riavviare il servizio per beneficiare nuovamente della ricezione automatica di SMS da parte di Gammu.

Visualizza lo stato del servizio gammu-smsd :

systemctl status gammu-smsd.service

systemctl status gammu-smsd.service 
● gammu-smsd.service - LSB: Gammu SMS daemon
   Loaded: loaded (/etc/init.d/gammu-smsd)
   Active: active (running) since ven. 2017-12-01 09:38:30 CET; 7min ago
  Process: 1000 ExecStart=/etc/init.d/gammu-smsd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/gammu-smsd.service
           └─1005 /usr/bin/gammu-smsd --daemon --user gammu --pid /var/run/ga...

Arresta il servizio gammu-smsd :

sudo systemctl stop gammu-smsd.service & systemctl status gammu-smsd.service

pi@raspberrypi:~ $ sudo systemctl stop gammu-smsd.service & systemctl status gammu-smsd.service 
● gammu-smsd.service - LSB: Gammu SMS daemon
   Loaded: loaded (/etc/init.d/gammu-smsd)
   Active: inactive (dead)

déc. 01 09:38:30 raspberrypi gammu-smsd[1004]: Using FILES service
déc. 01 09:38:30 raspberrypi gammu-smsd[1004]: Configuring Gammu SMSD...
déc. 01 09:38:30 raspberrypi gammu-smsd[1005]: Created POSIX RW shared memory at 0xb6fe4000
déc. 01 09:38:30 raspberrypi gammu-smsd[1005]: Starting phone communication...
déc. 01 09:38:30 raspberrypi gammu-smsd[1000]: Starting Gammu SMS Daemon: gammu-smsd.
déc. 01 09:38:30 raspberrypi systemd[1]: Started LSB: Gammu SMS daemon.
déc. 01 09:49:29 raspberrypi systemd[1]: Stopping LSB: Gammu SMS daemon...
déc. 01 09:49:29 raspberrypi gammu-smsd[1069]: Stopping Gammu SMS Daemon: gammu-smsd.
déc. 01 09:49:29 raspberrypi systemd[1]: Stopped LSB: Gammu SMS daemon.
déc. 01 09:49:31 raspberrypi gammu-smsd[1005]: Terminating communication...

Riavvia il servizio gammu-smsd :

 sudo systemctl restart gammu-smsd.service & systemctl status gammu-smsd.service

pi@raspberrypi:~ $ sudo systemctl restart gammu-smsd.service & systemctl status gammu-smsd.service 
● gammu-smsd.service - LSB: Gammu SMS daemon
   Loaded: loaded (/etc/init.d/gammu-smsd)
   Active: active (running) since ven. 2017-12-01 09:52:02 CET; 6s ago
  Process: 1095 ExecStart=/etc/init.d/gammu-smsd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/gammu-smsd.service
           └─1100 /usr/bin/gammu-smsd --daemon --user gammu --pid /var/run/gammu-smsd.pid

déc. 01 09:52:02 raspberrypi gammu-smsd[1099]: Using FILES service
déc. 01 09:52:02 raspberrypi gammu-smsd[1099]: Configuring Gammu SMSD...
déc. 01 09:52:02 raspberrypi gammu-smsd[1100]: Created POSIX RW shared memory at 0xb6f03000
déc. 01 09:52:02 raspberrypi gammu-smsd[1100]: Starting phone communication...
déc. 01 09:52:02 raspberrypi systemd[1]: Started LSB: Gammu SMS daemon.
déc. 01 09:52:02 raspberrypi gammu-smsd[1095]: Starting Gammu SMS Daemon: gammu-smsd.

 A presto.

 

 

Visite: 1355