Hello, i need to receve the lora sensors data on my local raspberry pi without using internet and have aproximatley 1 week to deliver this.
For this i have an lps8n gateway connected to a raspberry pi 4, where i’m running chipstark.
So i have followed all steps indicated here: Quickstart Debian or Ubuntu - ChirpStack open-source LoRaWAN<sup>®</sup> Network Server
Here are the steps and files modifed on the raspberry pi(i had mosquitto previously installed with user and password):
-sudo apt install mosquitto mosquitto-clients redis-server redis-tools postgresql
- sudo -u postgres psql
-- set up the users and the passwords
-- (note that it is important to use single quotes and a semicolon at the end!)
create role chirpstack_as with login password 'safe2023';
create role chirpstack_ns with login password 'safe2023';
-- create the database for the servers
create database chirpstack_as with owner chirpstack_as;
create database chirpstack_ns with owner chirpstack_ns;
-- change to the ChirpStack Application Server database
\c chirpstack_as
-- enable the pq_trgm and hstore extensions
-- (this is needed to facilitate the search feature)
create extension pg_trgm;
-- (this is needed to store additional k/v meta-data)
create extension hstore;
-- exit psql
\q
-sudo apt install apt-transport-https dirmngr
-sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00
-sudo echo "deb https://artifacts.chirpstack.io/packages/3.x/deb stable main" | sudo tee /etc/apt/sources.list.d/chirpstack.list
-sudo apt update
-sudo apt install chirpstack-gateway-bridge
-sudo systemctl start chirpstack-gateway-bridge
-sudo systemctl enable chirpstack-gateway-bridge
-sudo apt install chirpstack-network-server
-sudo nano /etc/chirpstack-network-server/chirpstack-network-server.toml
[general]
log_level=4
[postgresql]
dsn="postgres://chirpstack_ns:safe2023@localhost/chirpstack_ns?sslmode=disable"
[network_server]
net_id="000000"
[network_server.band]
name="AU915"
[network_server.network_settings]
enabled_uplink_channels=[24, 25, 26, 27, 28, 29, 30, 31, 64]
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
server="tcp://localhost:1883"
# Connect with the given username (optional) #preconfigured mosquitto
username="hydrosafe"
# Connect with the given password (optional)
password="safe2023"
-sudo systemctl start chirpstack-network-server
-sudo systemctl enable chirpstack-network-server
-sudo journalctl -f -n 100 -u chirpstack-network-server
-sudo apt install chirpstack-application-server
-sudo nano /etc/chirpstack-application-server/chirpstack-application-server.toml
[general]
log_level=4
[postgresql]
dsn="postgres://chirpstack_as:safe2023@localhost/chirpstack_as?sslmode=disable"
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
server="tcp://localhost:1883"
# Connect with the given username (optional) #preconfigured mosquitto
username="hydrosafe"
# Connect with the given password (optional)
password="safe2023"
[application_server.external_api]
jwt_secret="52KsYTQV1NhbCgkkRMM+U3FNCyBj11P5zfEbotfGwYg=”
-sudo systemctl start chirpstack-application-server
-sudo systemctl enable chirpstack-application-server
-sudo journalctl -f -n 100 -u chirpstack-application-server
-sudo mkdir /etc/certs
-cd /root/certs
On web browser:
http://localhost:8080
user: admin
pass: admin
go to gateway:
+create
Network service:
Name: local host
Host: localhost:8000
Service profile:
Name: local service
So after running this, i configure my lps8n and on the chiprstack as per image, but i can’t see the gateway:
I think the problem is in chirpstack config because i’m receving data on the pi on UDP port 1700 that is not been processed:
Someone please help, i’m new on this, i have read a lot, but can’t figure the problem.