Coder Social home page Coder Social logo

k4203-at's Introduction

Vodafone Huawei K4203 USB Modem AT Command Interface

This is a program that allows you to execute and read AT commands for the Vodafone Huawei K4203 USB Modem. The program is written in Python and uses the serial library to communicate with the modem. For headless execution use maincli.py and for the GUI version use main.py file.

Usage

To use the program, you need to have Python 3 installed on your computer. You also need to connect the Vodafone Huawei K4203 USB Modem to your computer via USB.

  1. Clone or download the repository to your computer.
  2. sudo nano /etc/usb_modeswitch.conf and set DisableSwitching flag to 1.
  3. Open a terminal or command prompt and navigate to the directory where the program is located.
  4. Run the program by typing python3 maincli.py or python3 main.py and pressing Enter.
  5. Follow the on-screen instructions to select an option and enter any required parameters.

Features

The program provides the following features:

  • Execute AT commands: You can enter any AT command and the program will send it to the modem and display the response.
  • Get all SMS PDU's: You can retrieve all SMS PDU's stored on the modem and display their information.
  • Get unread SMS PDU's: You can retrieve only the unread SMS PDU's stored on the modem and display their information.
  • Send text SMS: You can send a text SMS to a recipient by entering their phone number and the message.
  • Send PDU SMS: You can send a PDU SMS to a recipient by entering the CMGS number and the PDU message.

Command-line arguments

The program accepts the following command-line arguments in the CLI:

  • 1 <AT Command> Execute AT Command
  • 2 Get all SMS PDU's
  • 3 Get unread SMS PDU's
  • 4 phone_num messsage Send text SMS
  • 5 cmgs pdu Send PDU SMS

However setup is not done automatically if command-line arguments are used, first do the setup with:

  • s Only do modem setup

To use a command-line argument, run the program with the argument followed by any required additional arguments. For example:

python3 maincli.py s
python3 maincli.py 1 AT

k4203-at's People

Contributors

selimcavas avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.