Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wargio/fm350-util
Terminal tool for configuring FM350-XX Modules and connect to 5G networks.
https://github.com/wargio/fm350-util
5g fibocom fm350 module terminal
Last synced: 7 days ago
JSON representation
Terminal tool for configuring FM350-XX Modules and connect to 5G networks.
- Host: GitHub
- URL: https://github.com/wargio/fm350-util
- Owner: wargio
- License: mit
- Created: 2024-05-15T13:35:24.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-19T04:33:37.000Z (2 months ago)
- Last Synced: 2024-10-28T20:56:53.232Z (about 2 months ago)
- Topics: 5g, fibocom, fm350, module, terminal
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```bash
# 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`
```yaml
serial: "/dev/ttyUSB4"
simpin: "123456"
apn: "ispapn"
route: true
ntp: "whatever.ntp.com"
```Then run the util
```bash
# 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
```bash
CGO_ENABLED=0 go build -v
```for other archs:
```
CGO_ENABLED=0 GOARCH=arm64 go build -v
```