python-gsmmodem | Python module to control a GSM modem | SMS library
kandi X-RAY | python-gsmmodem Summary
kandi X-RAY | python-gsmmodem Summary
Python module to control a GSM modem attached to the system: send/receive SMS messages, handle calls, etc
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Connect to the modem
- Write data to the modem
- Compiles regexes
- Unlock the given pin
- Wait for network coverage
- Connect to the device
- Start the input thread
- Returns the first line matching the given regular expression string
- Callback called when a call is answered
- Send DTMF tones
- Reply to a USSD session
- Send a USSD string
- Send a USSD notification
- Send DTMF tones to the device
- Main loop
- Handle an incoming call
- Return supported supported commands
- Parse command line arguments
- Returns the signal strength
- Return the SMSC number
- Parse command line arguments
- Handles modem notification
- Poll for the call status
- Start a voice call
- Input loop
- Send SMS to destination
- Read loop
- Process command completion
python-gsmmodem Key Features
python-gsmmodem Examples and Code Snippets
Community Discussions
Trending Discussions on python-gsmmodem
QUESTION
I try to read SMS received while python-gsmmodem was not running but not able to make it work...
== MODEM INFORMATION ==
Manufacturer: huawei Model: E3531 Revision: 22.521.31.00.400
Here is my python code:
...ANSWER
Answered 2019-Nov-08 at 01:04Self answer : I created this script that can read all long and short sms and also read old sms in memory.
More info in the README : https://gist.github.com/stevecohenfr/8d3908da4ed39169992e407261f4c0e6
QUESTION
I'll describe a scenario that I want to implement but I don't know if it is possible with my equipment and my knowledge about this topic.
Suppose, that one calls me on the telephone at home. If I have an appropriate device then I can see his number on the phone device. How, could I get the phone number (using a simple modem) to the computer?
Is there any python library that could work on this ?
Could you propose me some resources from which I can learn some terminology and technical things ?
EDIT
I have found this python library https://pypi.org/project/python-gsmmodem/ but it is not related with my problem since I haven't got gsm modem and actually, I don't want to call someone from the computer. I just want to find a way for showing the caller number in the computer.
...ANSWER
Answered 2019-Aug-31 at 15:59Several ideas and some terminology:
- the device attached to a line is serial modem, where serial stands for a method of connection to a computer (port type)
- you can also attach a cellular phone to a computer, term to look for is GSM modem
- a set of low-level commands to manipulate a serial modem is called AT commands, like pick / send call
- low-level means that you have to learn quite a bit of internals about settings, port, etc - be prepared it can be a bit of a pain. Part of the pain is that people do not use this functionslity as much, so reading documentation needs care, some things perhaps outdated.
- there us a cloud-based service called Twilio and a high-level python library for it, that makesit easier to send/recieve calls, but parts of the service is paid, it will not help with a localline either
Hope it is good enough for a start.
Update: for determining the caller number you have to look for caller ID capability in your modem, similar to described here. For program to listen to the the port you wrap it in eternal loop and print the number after a call, for example.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install python-gsmmodem
You can use python-gsmmodem like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page