A tool which makes AT communication easier.
Project description
ATCom
AT commands are the instructions used to control and communicate with the cellular modems. In order to, send AT commands to a cellular device, one needs to check several parameters and might need a serial monitor tool. ATCom is a command-line interface tool that makes AT command operations easier.
Installation
pip3 is required to install the atcom. pip3 can be intalled by
sudo apt install python3-pip
Use the package manager pip3 to install atcom.
pip3 install atcom
Usage
$ atcom [OPTIONS] AT_COMMAND
Examples
Running atcom without --port parameter, scans for available ports, and selects a valid modem port if available.
$ atcom AT
or
$ atcom --port /dev/ttyUSB2 AT
Configuration File
Configuration file(configs.yaml) can be created for persist args. ATCom first checks the current working directory for the configs.yml to read the arguments from. The path of the configuration file can also be specified using the --config parameter. The configuration file must be in yaml format, for example:
port: /dev/ttyUSB2
baudrate: 115200
timeout: 10
The keys, config file can contain:
- port (str)
- baudrate (int)
- timeout (int)
- rts_cts (boolean)
- dsr_dtr (boolean)
- verbose (boolean)
Parameters
default | description | |
---|---|---|
-p / --port | - | PORT of modem |
-b / --baudrate | 115200 | Baudrate for serial communication |
-t / --timeout | 10 | Communication timeout |
-c / --config | ./configs.yaml | Configurations file Path |
-v / --verbose | - | Enable full log output |
--rts-cts | - | Enable RTS-CTS mode |
--dsr-dtr | - | Enable DSR-DTR mode |
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
File details
Details for the file atcom-0.3.1.tar.gz
.
File metadata
- Download URL: atcom-0.3.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d43a7a9b69b11528b780b2bd8c2c7f963bcc2dd97eb46047ddb1a8d15c84a8ac |
|
MD5 | e03d656a3b398c316e482058da6f22a3 |
|
BLAKE2b-256 | 4d4d35dcdf0add3998d2e71ed0f1200962f105a4554ce044d6efa1b4bd1faad3 |