LoRa/LoRaWAN tutorial 28.2: Enable Debug Logging Semtech LoRa Gateway & Semtech UDP Packet Forwarder

Опубликовано: 10 Октябрь 2024
на канале: Mobilefish.com
3,789
40

If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
   / mobilefish  

This is part 28.2 of the LoRa/LoRaWAN tutorial.

In this video series different topics will be explained which will help you to understand LoRa/LoRaWAN.
It is recommended to watch each video sequentially as I may refer to certain LoRa/LoRaWAN topics explained earlier.

In this short tutorial I will show you how to enable debug logging in the Semtech LoRa gateway and Semtech UDP packet forwarder.

In this tutorial the following Semtech LoRa gateway and Semtech UDP packet forwarder are used:
Semtech LoRa Gateway (V5.0.1)
https://github.com/Lora-net/lora_gateway
/opt/ttn-gateway/lora_gateway *
Semtech UDP Packet Forwarder (V4.0.1)
https://github.com/Lora-net/packet_fo...
/opt/ttn-gateway/packet_forwarder *

*) For example in the RAK831 Pilot Gateway

Stop the ttn-gateway service:
sudo service ttn-gateway stop

The LoRa library contains a file (RAK831 Pilot Gateway):
/opt/ttn-gateway/lora_gateway/libloragw/library.cfg
where you can enable the debug logging for several modules.

To enable debug logging, change the value from 0 to 1.
DEBUG_AUX= 0
DEBUG_SPI= 0
DEBUG_REG= 0
DEBUG_HAL= 0
DEBUG_LBT= 1
DEBUG_GPS= 0

DEBUG_AUX
HAL auxiliary functions.

DEBUG_SPI
Functions to address the LoRa concentrator registers through an SPI interface.

DEBUG_REG
Functions used to handle FPGA register access for LoRa concentrator.
Functions used to handle LoRa concentrator radios.
Functions used to handle a single LoRa concentrator.

DEBUG_HAL
LoRa concentrator Hardware Abstraction Layer.

DEBUG_LBT
Functions used to handle the Listen Before Talk feature.

DEBUG_GPS
Functions to manage a Global Navigation Satellite System (GNSS) module, typically GPS, for accurate time-stamping of packets and synchronisation of gateways.

After the library.cfg file is modified enter the following commands in this order:
First, build the Semtech LoRa library:
cd /opt/ttn-gateway/lora_gatewaysudo
make clean all

Build the Semtech UDP Packet Forwarder:
cd /opt/ttn-gateway/packet_forwardersudo
make clean all

Start the ttn-gateway service:
sudo service ttn-gateway start

After you’re done with debugging don’t forget to set the values back to 0 in the library.cfg file otherwise the /var/syslog file will increase in size very fast.

More information about the RAK831 Pilot Gateway:
https://www.aliexpress.com/store/prod...

Interested in the RAK831 components:
https://www.aliexpress.com/store/prod...

Check out all my other LoRa/LoRaWAN tutorial videos:
   • LoRa/LoRaWAN tutorials  

Subscribe to my YouTube channel:
   / @mobilefish  

The presentation used in this video tutorial can be found at:
https://www.mobilefish.com/developer/...

#mobilefish #lora #lorawan