-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,47 @@ | ||
# atcomv2 | ||
AT communication library for golang | ||
# atcomv2 | ||
AT communication library and cli tool for cellular modules. | ||
|
||
# What does it do? | ||
This library is intended to be used with cellular modules that support AT commands. It provides a simple interface to send and receive AT commands and parse the responses. It also provides a cli tool to send AT commands to the module and receive the responses on the terminal. Both library and cli tool have auto detection of the serial port of the supported cellular modules. | ||
|
||
# Supported modules | ||
Listed in modems.go file in the library. | ||
|
||
# Installation | ||
``` | ||
go get github.com/sixfab/atcomv2 | ||
``` | ||
|
||
# Usage | ||
## Library | ||
Run the example code. | ||
|
||
``` | ||
cd examples | ||
go run test.go | ||
``` | ||
|
||
## CLI Tool | ||
Build the cli tool. | ||
|
||
``` | ||
cd pkg/cli | ||
go build -o atcom | ||
``` | ||
|
||
Run the cli tool. | ||
|
||
List the available commands. | ||
``` | ||
./atcom -h | ||
``` | ||
|
||
Send AT command to the module. | ||
``` | ||
./atcom AT | ||
``` | ||
|
||
Send AT command to the module and wait for the desired response for 5 seconds. | ||
``` | ||
./atcom AT+CREG? -d "+CREG: 0,1" -t 5 | ||
``` |