SX130x 868M/915M LoRaWAN Gateway Module/HAT for Raspberry Pi, L76K Module(HAT only), Standard Mini-PCIe Socket, Long range Transmission, Large Capacity,…
It looks like the hardware is physically capable of running a Chirpstack network as it’s referenced in the manufacturer’s product wiki however the documentation and provided sample code is based on a setup using The Things Network. You would likely have a lot of custom configuration ahead of you.
Did anyone successfully get the data from lora module ? i only got GPS data but not lora data from my lora transmitter. I wrote simple readline command using pySerial python library.
from machine import UART, Pin
from utime import sleep_ms, ticks_ms
sleep_ms(1000)
uart = UART(1, baudrate=9600, tx=Pin(4), rx=Pin(5), timeout=1000)
def receive_uart():
'''Polls the uart until all data is dequeued'''
rxData=bytes()
while uart.any()>0:
rxData += uart.read(1)
sleep_ms(2)
return rxData.decode('utf-8')
def send_AT(command):
'''Wraps the "command" string with AT+ and \r\n'''
buffer = 'AT' + command + '\r\n'
uart.write(buffer)
# sleep_ms(300)
uart.readline()
def echo():
while uart.any() > 0:
rxData = uart.readline()
print(rxData.decode('utf-8'))
send_AT('+MODE=TEST')
send_AT('+TEST=RFCFG,915,SF7')
last_transmit = 0
transmit_period = 500
while True:
now = ticks_ms()
if now - last_transmit > transmit_period:
last_transmit = now
send_AT('+TEST=TXLRPKT,"00 00 01 00 00 af 80 07 02 00 00 39"\n') # send test data
echo() # show debug data from LoRa-E5 module
sleep_ms(600)
Here is the scenarios: I want those two small transmitter sending data to the raspi 4 with lora hat.
I don’t want to use TTN, just raw data, because i am planning to push the data from raspi 4 to company server via mqtt only. No third party services.
I was looking at the sx1302 git repo and noticed that there wasn’t an AU915 configuration file.
Does anyone know where i can get one or more about the packet_forwarder configuration to modify an existing config file?