AT communication library and cli tool for cellular modules.
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.
Listed in modems.go file in the library.
go get github.com/sixfab/atcomv2
Run the example code.
cd examples
go run test.go
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