User Tools

Site Tools


Sidebar

WMC v3.x wiki


Introduction


Quick Start


System Management


Network Management


SNMP


Push


LoRa features


GMS API


Troubleshooting


Gateway software resources

WMC 3.2:

Previous version

Server software resources

WMC 3.2:

Previous version


FAQ

WMC 3.x:

WMC 3.0:

WMC 3.1:

>= WMC 3.2:

>= WMC 3.1:

wiki:wiki3:faq_message_buffering

This is an old revision of the document!


FAQ: Message Buffering

How to activate the message buffering on my gateway?

To activate message buffering, issue the following command:

lorafwdctl database.enable true

You can verify that the feature is enabled by reading the database.enable variable in the configuration file specified in /etc/default/lorafwd

  • For FW < 4.3.3 :

root@klk-lpbs-050792:~ # cat /etc/default/lorafwd
# Configuration file for lorafwd.

# The configuration file.
# The configuration files can be found in: /user/etc/lorafwd
CONFIGURATION_FILE="/user/etc/lorafwd/lorafwd.toml"

# The extra arguments.
EXTRA_ARGS="-v"

root@klk-lpbs-050792:/etc/default # grep -i -A10 "\[ database \]" /user/etc/lorafwd/lorafwd.toml
[ database ]

# Whether or not a persistent database will store the incoming messages until
# they will be sent and acknowledged.
#
# Type:    boolean
# Example: true
# Default: false
#
enable = true

  • For FW >= 4.3.3 :

root@klk-lpbs-050792:~ # cat /etc/default/lorafwd
# Configuration file for lorafwd.

# The configuration file.
# The configuration files can be found in: /etc/lorafwd
CONFIGURATION_FILE="/etc/lorafwd/lorafwd.toml"

# The extra arguments.
EXTRA_ARGS="-v"

root@klk-lpbs-050792:/etc/default # grep -i -A10 "\[ database \]" /etc/lorafwd/lorafwd.toml
[ database ]

# Whether or not a persistent database will store the incoming messages until
# they will be sent and acknowledged.
#
# Type:    boolean
# Example: true
# Default: false
#
enable = true

Then restart the packet forwarder:
monit stop lorafwd
monit stop lorad
monit start lorad
monit start lorafwd


How to deactivate the message buffering on my gateway?

To deactivate message buffering, issue the following command:

lorafwdctl database.enable false
You can verify that the feature is enabled by reading the database.enable variable in the configuration file specified in /etc/default/lorafwd

  • For FW < 4.3.3 :

root@klk-lpbs-050792:~ # cat /etc/default/lorafwd
# Configuration file for lorafwd.

# The configuration file.
# The configuration files can be found in: /user/etc/lorafwd
CONFIGURATION_FILE="/user/etc/lorafwd/lorafwd.toml"

# The extra arguments.
EXTRA_ARGS="-v"

root@klk-lpbs-050792:/etc/default # grep -i -A10 "\[ database \]" /user/etc/lorafwd/lorafwd.toml
[ database ]

# Whether or not a persistent database will store the incoming messages until
# they will be sent and acknowledged.
#
# Type:    boolean
# Example: true
# Default: false
#
enable = false

  • For FW >= 4.3.3 :

root@klk-lpbs-050792:~ # cat /etc/default/lorafwd
# Configuration file for lorafwd.

# The configuration file.
# The configuration files can be found in: /etc/lorafwd
CONFIGURATION_FILE="/etc/lorafwd/lorafwd.toml"

# The extra arguments.
EXTRA_ARGS="-v"

root@klk-lpbs-050792:/etc/default # grep -i -A10 "\[ database \]" /etc/lorafwd/lorafwd.toml
[ database ]

# Whether or not a persistent database will store the incoming messages until
# they will be sent and acknowledged.
#
# Type:    boolean
# Example: true
# Default: false
#
enable = false


Then restart the packet forwarder:

monit stop lorafwd 
monit stop lorad
monit start lorad 
monit start lorafwd


How to configurate the number of messages in database ?

The default value is 200 messages stored in the database.
The maximum value is 1000 but Kerlink does not recommend to change the default value of 200 to avoid system load issues.
  • FW < 4.3.3:

root@klk-lpbs-050792:/etc/default # grep -i -A10 "\[ limit.messages \]" /user/etc/lorafwd/lorafwd.toml

  • FW >= 4.3.3:

root@klk-lpbs-050792:/etc/default # grep -i -A10 "\[ limit.messages \]" /etc/lorafwd/lorafwd.toml

# The maximum number of messages allowed to be stored in the database. When
# full the newest message will replace the oldest one.
#
# Type:    integer
# Example: 20000
# Default: 200
#
#limit.messages = 200

Uncomment the variable limit.messages. Modify the value then restart the packet forwarder:

monit stop lorafwd
monit stop lorad
monit start lorad
monit start lorafwd

wiki/wiki3/faq_message_buffering.1608569783.txt.gz · Last modified: 2020/12/21 17:56 by tda