zhgzhg / LoRaPacketForwarder

LoRa single channel packet forwarder based on the Semtech UDP protocol v2
27 stars 12 forks source link

Chirpstack v4 #15

Closed batsuurib closed 5 months ago

batsuurib commented 5 months ago

Hello

Can LoRaPacketForwarder be used by chirpstack v4? The problem is that chirpstack v4 requires Gateway ID DevEUI 64.

zhgzhg commented 5 months ago

I have not tested it with v4, but it should be compatible.

The forwarder's gateway ID is printed in the terminal when it's started and is based on the MAC address of the network adapter used by it for the data transmission.

It should look something like this in the logs:

(Tue Mar 19 07:15:25 2024) Started /usr/bin/LoRaPktFwrd...
PlatformInfo:
------------
LoRa Packet Forwarder Version: next-5dd7e0d
ID (EUI-64): 0d:ab:99:ff:ff:cd:32:d6
Target LoRa Chip Model: SX1278
SPI Settings:
  SPI port=0
  SPI channel=1
  SPI clock speed=2000000 Hz
...
...
...
LoRa chip setup succeeded! Waiting for data...

So in this example 0d:ab:99:ff:ff:cd:32:d6 is the Gateway ID DevEUI 64.

On some Linux distros the MAC address randomization is turned on by default which can cause changing of the DevEUI 64 after every device reboot. In that case turning off the randomization will fixate the id.

batsuurib commented 5 months ago

Thank you,

I didn't know that. Try it.