This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
wiki:lora:connect_an_istation_to_chirpstack [2023/04/12 10:32] ehe removed |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Keros application configuration ====== | ||
- | |||
- | Starting from version 4.3, KerOS firmware is delivered with Kerlink Common Packet Forwarder and WMC Embedded applications. These applications are disabled by default. | ||
- | |||
- | ===== klk_apps_config ===== | ||
- | |||
- | klk_apps_config is a script used to configure Kerlink Common Packet Forwarder and WMC Embedded applications. \\ | ||
- | Kerlink advises to reboot the gateway after using klk_apps_config to enable/disable an application. | ||
- | |||
- | <code> | ||
- | # klk_apps_config -h | ||
- | klk_apps_config [options] | ||
- | |||
- | options: | ||
- | -h, --help show help | ||
- | --activate-wmc activate wmc embedded (and CPF) | ||
- | --deactivate-wmc deactivate wmc embedded (and CPF) | ||
- | --activate-cpf activate lorad and lorafwd | ||
- | --deactivate-cpf deactivate lorad and lorafwd | ||
- | -s, --wmc-server WMC server (mandatory if activating WMC) | ||
- | -p, --wmc-port WMC port (default 1194) | ||
- | --lns-server LNS server (default 172.17.0.1) | ||
- | --lns-dport LNS downlink port (default 1700) | ||
- | --lns-uport LNS uplink port (default 1700) | ||
- | --loradconf lorad configuration file name/path | ||
- | Can be: | ||
- | - a complete file path | ||
- | - an example file name (ex:AS923-JP.json) | ||
- | </code> | ||
- | |||
- | This script can be used to: | ||
- | * activate CPF (lorad and lorafwd) only. | ||
- | * deactivate CPF | ||
- | * activate WMC embedded applications (CPF + BSCC + lora_snmp) | ||
- | * deactivate WMC embedded applications | ||
- | |||
- | It can also be used to switch to another WMC server while WMC embedded is already activated (use --activate-wmc action with another server parameter while WMC Embedded is already activated). | ||
- | |||
- | |||
- | Script parameters details: | ||
- | * One of the four possible actions must be chosen (activate-wmc, deactivate-wmc, activate-cpf, deactivate-cpf) | ||
- | * ''-////-wmc-server'': address of the WMC server to connect to (example: wmcvalidinstall.wanesy.com) | ||
- | * ''-////-wmc-port'': port of the WMC server to connect to | ||
- | * ''-////-lns-server'': address of the LNS server (lorafwd parameter) | ||
- | * ''-////-lns-dport'': LNS downlink port (lorafwd parameter) | ||
- | * ''-////-lns-uport'': LNS uplink port (lorafwd parameter) | ||
- | * ''-////-loradconf'': this can be the complete path of the Lorad configuration you want to use or the file name of the example lorad configuration delivered for your platform. If not given the platform default will be used (EU868XXX.json) | ||
- | |||
- | <note important>Please note that to use WMC Embedded application, you still have to install the required security certificate; | ||
- | [[https://wikikerlink.fr/wanesy-ran/doku.php?id=wiki:wiki3:gateway_sw_4.3.3|WMC installation page]] | ||
- | </note> | ||
- | |||
- | ===== Connect a Wirnet i-series gateway to The Things Network ===== | ||
- | |||
- | Activation of the CPF on European TTN server: | ||
- | <code> | ||
- | klk_apps_config --activate-cpf --lns-server eu1.cloud.thethings.network --lns-dport 1700 --lns-uport 1700 | ||
- | </code> | ||
- | |||
- | Deactivation: | ||
- | <code> | ||
- | klk_apps_config --deactivate-cpf | ||
- | </code> | ||
- | |||
- | If you need to activate the WMC on your gateway, consult the WMC wiki page: [[https://wikikerlink.fr/wanesy-ran/doku.php?id=wiki:wiki3:gateway_sw_4.3.3|click here]]. | ||
- | |||
- | Kerlink also recommends to consult the TTN page: [[https://www.thethingsindustries.com/docs/getting-started/ttn/addresses/|click here]]. | ||
- | ===== Connect a Wirnet i-series gateway to ChirpStack ===== | ||
- | |||
- | Download ChirpStack gateway bridge ipk file: chirpstack-gateway-bridge_3.13.1-r1_klkgw.ipk | ||
- | [[https://artifacts.chirpstack.io/vendor/kerlink/keros-gws/|click here]]. | ||
- | |||
- | Then open the Web interface of your gateway and add the ChirpStack bridge by drag & dropping it in the Administration Update menu. | ||
- | |||
- | |||
- | Connect over SSH and activate the CPF on ChirpStack server. | ||
- | <code> | ||
- | klk_apps_config --activate-cpf --lns-server 127.0.0.1 --lns-dport 1700 --lns-uport 1700 | ||
- | </code> | ||
- | |||
- | In /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml , add ChirpStack IP server | ||
- | <code> | ||
- | # Generic MQTT authentication. | ||
- | [integration.mqtt.auth.generic] | ||
- | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) | ||
- | server="tcp://127.0.0.1:1883" | ||
- | </code> | ||
- | |||
- | Replace 127.0.0.1 with the address of your server | ||
- | |||
- | Restart chirpstak bridge | ||
- | <code> | ||
- | monit restart chirpstack-gateway-bridge | ||
- | </code> | ||
- | |||
- | |||
- | |||
- | |||