Events

:

:

Elektronik | Funk | Software

Der Technik-Blog

  • Social Media

    YouTube

    Werbung:


    New Posts


    Events

    • Keine zukünftigen Events vorhanden

    The Tech-Blog

    LoRaWAN Packet Recorder Setup

    Packet Recorder (Windows)

    Alex @ AEQ-WEB

    The Packet Recorder logs all LoRaWAN uplink messages and stores them in a MySQL or MariaDB database. This tool can determine, based on the Device Address, which LoRaWAN network operator a message belongs to. The program opens a socket on UDP port 1700 (similar to the UDP Packet Forwarder), where all data from a gateway is received and stored in a database.


    Note: This program requires a connection to a MySQL or MariaDB database server with native authentication. Encrypted connections, which are typically not needed for a local database connection, are currently not supported!


    Requirements

    The program is provided as an executable file (EXE) and requires a MySQL or MariaDB database server with native authentication. Additionally, ensure that the Windows Firewall does not block incoming traffic on port 1700.

    If the database server is to run locally on Windows, the tool XAMPP is highly recommended, as it includes a local Apache web server and sets up the MySQL database server.

    Database Setup

    With XAMPP, the phpMyAdmin tool is included for database management. Under the "User Accounts" menu, a new user is created on the local computer with native authentication. Additionally, a database should be created at the same time:

    Werbung:

    Next to the "PacketRecorder.exe" file, there is another file in the same directory called "config.ini." This file must contain all the information for the database connection. Username, password, and database name should be specified as previously defined in phpMyAdmin:

    Once the config file has been edited accordingly, the program can be started. If the socket on UDP port 1700 is successfully opened and a connection to the database server is established, the program output will look as follows:

    Werbung:

    Connect Gateway & Verify Database

    The tool displays the local IP address of the network interfaces. The displayed IP address should be configured on the LoRaWAN gateway. Once the first messages are received, they will be visible in phpMyAdmin.

    Webinterface Setup

    The web interface consists of a single file (index.php). In the home directory of XAMPP (C:/xampp/htdocs), a new folder is created, and the PHP file is copied into it. Using a text editor, the file is edited to include the connection parameters for the database server:

    The web interface can be accessed via a web browser at http://localhost/packet-recorder:

    Werbung:

    During operation, the activity is displayed. Using the "config.ini" file, the output can be restricted to error messages only by setting loglevel=1. Level 3 provides very detailed information about the activity:


    Info: This page was automatically translated and may contain errors
    122X122

    About the Author

    Alex, the founder of AEQ-WEB. He works for more of 10 years with different computers, microcontroller and semiconductors. In addition to hardware projects, he also develops websites, apps and software for computers.

    Top articles in this category:

    Vaisala RS41 Radiosonde Firmware Flash

    Radiosonde RS41 Firmware Flash

    • Video
    • DE/EN

    Every day hundreds of meteorological radiosondes fall from the sky. In this article we convert a radiosonde into a GPS tracker for APRS, RTTY & CW

    read more
    TTGO LILYGO GPS Problem

    TTGO/LILYGO GPS-Problem

    • Video
    • DE/EN

    With newer versions of TTGO & LILYGO LoRaWAN GPS boards there are problems with the serial processing of GPS data. The reason is the deactivation of NMEA

    read more

    Social Media

    YouTube

    Werbung:


    New Posts


    Events

    • Keine zukünftigen Events vorhanden