Feat: add packages for RAK GW, cellular utilities, and led utilities#24
Feat: add packages for RAK GW, cellular utilities, and led utilities#24devleesch001 wants to merge 11 commits intochirpstack:masterfrom
Conversation
- better parsing AT Command error - error printed on stderr
| @@ -0,0 +1,4 @@ | |||
| #!/bin/sh | |||
| # Ce script redémarre rpcd puis s'auto-détruit (mécanique uci-defaults) | |||
There was a problem hiding this comment.
We might want to change that to EN 😉
There was a problem hiding this comment.
Why is this script needed, the only thing it does is restarting rpcd, but since there is no uci config change, it should not make a difference?
| @@ -0,0 +1,4 @@ | |||
| #!/bin/sh | |||
| # Ce script redémarre rpcd puis s'auto-détruit (mécanique uci-defaults) | |||
There was a problem hiding this comment.
Why is this script needed, the only thing it does is restarting rpcd, but since there is no uci config change, it should not make a difference?
| @@ -0,0 +1,73 @@ | |||
| #!/bin/sh | |||
There was a problem hiding this comment.
What is the advantage of running this through rpcd? Wouldn't it be easier to have a script in /opt/rak/cellular-info that can be integrated with the changes of this PR:
chirpstack/chirpstack-mqtt-forwarder#71
Then all the info exposed by the MQTT Forwarder over MQTT and are stored as meta-data in ChirpStack. I'm not sure if adding rpcd to the mix makes things easier.
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 :