Feat: add packages for RAK GW, cellular utilities, and led utilities#24
Open
devleesch001 wants to merge 11 commits intochirpstack:masterfrom
Open
Feat: add packages for RAK GW, cellular utilities, and led utilities#24devleesch001 wants to merge 11 commits intochirpstack:masterfrom
devleesch001 wants to merge 11 commits intochirpstack:masterfrom
Conversation
- better parsing AT Command error - error printed on stderr
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
Abstract
This pull request follows issue #150 of chirpstack-gateway-os.
It's dependent on issue #151 of chirpstack-gateway-os
It adds tools for RAK Gateways to manage the gateway's LED and modem.
Several things need to be reviewed and discussed, particularly the constante of device files in scripts.
Content
I am adding two new feed repository grouped on rak folder.
rak/cellular-utilities
The packet depends on:
socatThe packet contains :
atinuoutcli to send AT command ussingsocaton any bus.modem.atrcpd script to get information fromubuscommand (can be use for luci web interface)ubus call modem.qmi info99-rak-cellular-rpcd, uci-default script use to restart rcpd when package isntalled especialy on running systematinuout
Sending AT commands and parsing the responses is a terrible task. therefore, I developed a script to parse and extract data from the specific format of AT responses.
By default use /dev/ttyUSB2 for rak modem, with 115200 bauds.
(I haven't found anything existing, in the form of a shell script, at least.)
Example :
modem.at
It's an sh file can be used by ubus rcpd system, it's to permit any luci app to get modem information. It uses
atinuoutto send AT commands and get parsed reponses.Exmaple:
rak/led-utilities
The packet depends on:
i2c-toolsThe packet contains :
aw2013cli is used to send i2c commands, to manage led controller on rak7268v2 (it's probly work on rak7268 first version, and other if have aw2013 controler)Example :