fm350-util

command module
v0.0.0-...-8d2f37a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Terminal tool for the FM350-XX Modules

Tested with FM350-GL

cli usage

Usage of fm350-util:
  -apn string
        Sets the APN
  -bands
        Prints the current modem bands
  -baud int
        Serial device baud rate (default 115200)
  -cid int
        PDP context id. (default 5)
  -config string
        path to yaml configuration (default "/etc/fm350/fm350.yaml")
  -connect
        Connects and sets up the modem
  -debug
        Prints all the AT commands
  -disconnect
        Disconnects the modem
  -dns
        Prints the DNS configuration from the ISP.
  -graph
        Shows signal graph
  -info
        Prints the modem info
  -json
        Outputs in json format (info, temp, bands, dns, sms only).
  -netdev string
        Manually sets the net device to use (default "eth2")
  -ntp string
        Updates the time using the defined ntp server
  -restart
        Restarts the modem
  -route
        Add default route via modem
  -serial string
        Serial device to use (usually /dev/ttyUSB2 or /dev/ttyUSB4)
  -simpin string
        Sets the SIM card PIN number
  -sms
        Prints all the sms received
  -temp
        Prints the modem temperature info
  -timeout int
        Serial device timeout in milliseconds (default 300)

Example usage

Via command line
# connect
./fm350-util -connect -serial /dev/ttyUSB4 -simpin 123546 -apn ispapn -route
# disconnect
./fm350-util -disconnect -serial /dev/ttyUSB4
Via saved configuration

Save this at /etc/fm350/fm350.yaml

serial: "/dev/ttyUSB4"
simpin: "123456"
apn: "ispapn"
route: true
ntp: "whatever.ntp.com"

Then run the util

# connect
./fm350-util -connect
# connect with optional custom path
./fm350-util -connect -config /path/to/config.yaml
# disconnect
./fm350-util -disconnect
# disconnect with optional custom path
./fm350-util -disconnect -config /path/to/config.yaml

how to build

CGO_ENABLED=0 go build -v

for other archs:

CGO_ENABLED=0 GOARCH=arm64 go build -v

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址