Skip to content

sixfab/atcomv2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

20d05b3 · Aug 23, 2024

History

19 Commits
Aug 23, 2024
Apr 5, 2024
Aug 23, 2024
Jan 18, 2024
Jan 18, 2024
Aug 23, 2024
Aug 23, 2024
Aug 23, 2024
Apr 5, 2024
Apr 5, 2024
Nov 13, 2023
Aug 23, 2024

Repository files navigation

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