This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:lora:multiforwarder [2022/12/20 16:37] lge [Features] |
wiki:lora:multiforwarder [2022/12/20 17:11] (current) ehe [Creation of the instance] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Lorafwd Instance Manager ====== | + | ====== Multi Packet Forwarder ====== |
<note important>**This functionnality is only available for Keros version 5.5.1 and above**</note> | <note important>**This functionnality is only available for Keros version 5.5.1 and above**</note> | ||
- | This tool allows the create multiple instances of packet forwarder to connect a gateway to multiple LNS. | ||
- | ===== Features ===== | + | |
+ | ===== lorafwd_instance_manager ===== | ||
+ | |||
+ | This tool allows the create and manage multiple instances of packet forwarder to connect a gateway to multiple LNS. | ||
Following features are available in ''lorafwd_instance_manager'' tool: | Following features are available in ''lorafwd_instance_manager'' tool: | ||
Line 23: | Line 26: | ||
- | ===== How to use lorafwd_instance_manager ===== | + | ===== How to create and configure multiple instances ===== |
- | ==== creation of the instance ==== | + | ==== Creation of the instance ==== |
- | First, if you want to connect your gateway to a second LNS you will need to create a new instance of lorafwd to do this use the command: | + | If you want to connect your gateway to a second LNS, you will need to create a new instance of lorafwd. To do this, use the following command: |
<code>lorafwd_instance_manager add second_instance</code> | <code>lorafwd_instance_manager add second_instance</code> | ||
<note> In the example the instance is named "second_instance" but you can name it as you like.</note> | <note> In the example the instance is named "second_instance" but you can name it as you like.</note> | ||
Line 31: | Line 34: | ||
It will create all the files needed for its configuration. | It will create all the files needed for its configuration. | ||
- | **List of generated files:** <hidden> | + | **List of generated files:** |
<code bash> | <code bash> | ||
/ | / | ||
Line 63: | Line 66: | ||
`-- database.sqlite # Created at first start | `-- database.sqlite # Created at first start | ||
</code> | </code> | ||
- | </hidden> | ||
- | ==== Configure the instance ==== | + | |
- | Then to configure the new instance you will need to use the [[wiki:keros_custo:keros_applications_configuration|klk_apps_config]] like this: | + | |
+ | ==== Configuration of the instance ==== | ||
+ | Then, to configure the new instance, you will need to use the [[wiki:keros_custo:keros_applications_configuration|klk_apps_config]] as follow: | ||
<code>klk_apps_config --activate-lorafwd -i second_instance --lns-server second_instance.url --lns-dport 1700 --lns-uport 1700</code> | <code>klk_apps_config --activate-lorafwd -i second_instance --lns-server second_instance.url --lns-dport 1700 --lns-uport 1700</code> | ||
Line 75: | Line 79: | ||
- | All lorafwd instances will write to the same log file ''/var/log/lora.log'', and are distinguished by their names, for example: | + | All lorafwd instances will write into the same log file ''/var/log/lora.log'', and are distinguished by their names, for example: |
<code> | <code> |