Async GSM modem control library
This library allows to control GSM modem connected over serial interface asynchronously. Current features are listed below.
- Check CSQ
- Send USSD
- Send SMS
- Make call
gsm_modem = GsmModem('/dev/ttyS0')
print('CSQ:', await gsm_modem.get_csq())
print('USSD reply:', await gsm_modem.send_ussd('*111#'))
await gsm_modem.send_sms(number='123456789', text='Hello!')
await gsm_modem.call(number='123456789', seconds=60)
Install package:
python3 setup.py install
Run tests (optionally):
python3 -m unittest discover tests