Use and configure the SIM800C module
- Python 3 installed on your computer
- The
pyserial
module installed (you can install it using pip:pip install pyserial
) - A SIM800C module connected to a USB port on your computer
Make sure the SIM800C module is properly connected and configured before running the script. Also, ensure that the correct serial port used for the SIM800C module is set in the script.
-
Download the repository to your computer by entering the following command in a command prompt or terminal window:
git clone https://github.com/uruzFR/module-sim800c.git
-
Navigate to the directory.
cd module-sim800c
-
Connect the SIM800C module to a USB port on your computer.
-
Open the Python script in a text editor and modify any necessary information (e.g. PIN code, phone number).
-
In the command prompt or terminal window, enter the following command to run the Python script:
python name-of-the-scrip.py
Before using the other scripts, it is important to execute the configuration scripts (in configuration directory). After running the configuration scripts, you can modify the other scripts with your own information and use them as needed.
-
Enjoy.
-
Show TTY
dmesg | grep tty
-
If you encounter an error, I recommend that you remove Brltty.
sudo apt remove brltty