In this previous tutorial, we showed you how to install Gammu and send SMS command line.

I present today how to view, stop and restart the gammu-smsd service. Indeed, if you want to explore and test the other functions of the SIM800C module in AT commands using a Minicom terminal or other, it is necessary to temporarily unload the gammu-smsd service which dialogue in the background with the card NadHAT through the serial channel, just like Minicom. A conflict between the two applicants of the resource is avoided.

Do not forget to restart the service to benefit again from the automatic reception of SMS by Gammu.

 

 View gammu-smsd service status  :

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...

Stop gammu-smsd service :

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...

Restart gammu-smsd service :

 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.

 

See you soon.