Easy CLI for interfacing with mobile modems
Project description
sim-modem-cli
A command line interface for SIM modems. It uses the sim-modem library to communicate with the modem through AT commands. Tested with Simcom SIM7600G-H on Raspberry PI Zero W. The commands could be different for other modems.
Installation
From pip
python3 -m pip install sim-modem-cli
Usage
sim-modem-cli <command> address [<args>...] [--options]
Options
| Option | Description |
|---|---|
| --help | Show help message |
| --version | Show the version |
| --baudrate | The baudrate to use. |
| --timeout | The timeout to use. |
| --debug | Enable debug mode. |
Commands
| Command | Arguments | Description |
|---|---|---|
| Hardware related commands | ||
| get_model_identification | Get the model identification | |
| get_manufacturer_identification | Get the manufacturer identification | |
| get_serial_number | Get the serial number | |
| get_firmware_version | Get the firmware version | |
| get_volume | Get the volume. The volume range is between 0 and 5 | |
| set_volume | int volume (1-5) | Set the volume. The volume must be between 0 and 5 |
| improve_tdd | Decrease TDD Noise effect | |
| enable_echo_suppression | Enable echo suppression | |
| disable_echo_suppression | Disable echo suppression | |
| Network related commands | ||
| get_network_registration_status | Get the network registration status | |
| get_network_mode | Get the network mode | |
| get_network_name | Get the network name | |
| get_network_operator | Get the network operator | |
| get_signal_quality | Get the signal quality | |
| get_signal_quality_db | Get the signal quality in dB | |
| get_signal_quality_range | Get the signal quality as a range | |
| get_phone_number | Get the phone number | |
| get_sim_status | Get the SIM status | |
| set_network_mode | auto | gsm_only | lte_only | no_lte | Set the network |
| Calls related commands | ||
| call | Number to call (with international prefix) | Call a number |
| answer | Answer a call | |
| hangup | Hangup a call | |
| SMS related commands | ||
| get_sms_list | Get the list of SMS | |
| empty_sms | Empty the SMS storage | |
| send_sms str, message: str | Number, message | Send an SMS |
| get_sms | SMS index | Get an SMS by ID |
| delete_sms | SMS index | Delete an SMS by ID |
| GPS related commands | ||
| get_gps_status | Get the GPS status | |
| start_gps | Start the GPS | |
| stop_gps | Stop the GPS | |
| get_gps_coordinates | Get the GPS coordinates |
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sim-modem-cli-1.0.2.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sim-modem-cli-1.0.2.tar.gz.
File metadata
- Download URL: sim-modem-cli-1.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
478024ab0af4d884128d6f1c222a5f921fda8325f0a2b270ec192382cb6e7615
|
|
| MD5 |
a466840bb0f31181e45c8d2c89b43fd9
|
|
| BLAKE2b-256 |
f1423887437bec254192233101fe9ef309334f7435714b5a4f1ac5fe3bb9c3da
|
File details
Details for the file sim_modem_cli-1.0.2-py3-none-any.whl.
File metadata
- Download URL: sim_modem_cli-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a92fdb4501eb44146d7783f33e04917e6038c9d9536b83a598c0708f2bcb92c0
|
|
| MD5 |
0a46cbed93c1b965158fbfc064cdc50d
|
|
| BLAKE2b-256 |
cef8bbf239e055e9d5acd37722f4e0ead6b3ab28713f21cc1adb8276566da035
|