Latest Raspbian for LoRaWAN Gateway

Hello!



I was using RisingHF LoRaWAN Gateway for a while and it has worked well.

For security policy on my institution, I need to use the latest Raspbian image applying some security controls (firewall, av, no root shell, etc).

So, I downloaded the latest image of Raspbian, I burned into a new microSD card, I applied all the security measurements, I copied /home/rxhf (from older micro SD card) into /home/user/rxhf (new micro SD with latest Raspbian)

Hopefully, the packet forwarder should works on new OS. But it is not the case. I receive message error when i start packet_forwarder:

[code]
admin@raspberrypi:~/rxhf/risinghf/pktfwd $ sudo ./lora_pkt_fwd
[sudo] password for admin:
*** Beacon Packet Forwarder for Lora Gateway ***
Version: 3.1.0
*** Lora concentrator HAL library version info ***
Version: 4.1.1;


INFO: Little endian host
INFO: found global configuration file global_conf.json, parsing it
INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
INFO: lorawan_public 1, clksrc 1
lgw_board_setconf:392: Note: board configuration; lorawan_public:1, clksrc:1
INFO: no configuration for LBT
INFO: antenna_gain 0 dBi
INFO: Configuring TX LUT with 16 indexes
INFO: radio 0 enabled (type SX1257), center frequency 904300000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0
lgw_rxrf_setconf:441: WARNING: NOT A VALID TX NOTCH FILTER FREQUENCY [126000…250000]Hz
lgw_rxrf_setconf:453: Note: rf_chain 0 configuration; en:1 freq:904300000 rssi_offset:-166.000000 radio_type:2 tx_enable:1 tx_notch_freq:0
INFO: radio 1 enabled (type SX1257), center frequency 905000000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
lgw_rxrf_setconf:453: Note: rf_chain 1 configuration; en:1 freq:905000000 rssi_offset:-166.000000 radio_type:2 tx_enable:0 tx_notch_freq:0
INFO: Lora multi-SF channel 0> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:572: Note: LoRa ‘multi’ if_chain 0 configuration; en:1 freq:-400000 SF_mask:0x7e
INFO: Lora multi-SF channel 1> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:572: Note: LoRa ‘multi’ if_chain 1 configuration; en:1 freq:-200000 SF_mask:0x7e
INFO: Lora multi-SF channel 2> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:572: Note: LoRa ‘multi’ if_chain 2 configuration; en:1 freq:0 SF_mask:0x7e
INFO: Lora multi-SF channel 3> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:572: Note: LoRa ‘multi’ if_chain 3 configuration; en:1 freq:200000 SF_mask:0x7e
INFO: Lora multi-SF channel 4> radio 1, IF -300000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:572: Note: LoRa ‘multi’ if_chain 4 configuration; en:1 freq:-300000 SF_mask:0x7e
INFO: Lora multi-SF channel 5> radio 1, IF -100000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:572: Note: LoRa ‘multi’ if_chain 5 configuration; en:1 freq:-100000 SF_mask:0x7e
INFO: Lora multi-SF channel 6> radio 1, IF 100000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:572: Note: LoRa ‘multi’ if_chain 6 configuration; en:1 freq:100000 SF_mask:0x7e
INFO: Lora multi-SF channel 7> radio 1, IF 300000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:572: Note: LoRa ‘multi’ if_chain 7 configuration; en:1 freq:300000 SF_mask:0x7e
INFO: Lora std channel> radio 0, IF 300000 Hz, 500000 Hz bw, SF 8
lgw_rxif_setconf:546: Note: LoRa ‘std’ if_chain 8 configuration; en:1 freq:300000 bw:1 dr:4
INFO: FSK channel 8 disabled
lgw_rxif_setconf:480: Note: if_chain 9 disabled
INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to AA555A0000000000
INFO: server hostname or IP address is configured to “localhost”
INFO: upstream port is configured to “1680”
INFO: downstream port is configured to “1680”
INFO: downstream keep-alive interval is configured to 10 seconds
INFO: statistics display interval is configured to 30 seconds
INFO: upstream PUSH_DATA time-out is configured to 100 ms
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: found local configuration file local_conf.json, parsing it
INFO: redefined parameters will overwrite global parameters
INFO: local_conf.json does not contain a JSON object named SX1301_conf
INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to B827EBFFFE66BE8D
INFO: server hostname or IP address is configured to “localhost”
INFO: upstream port is configured to “1680”
INFO: downstream port is configured to “1680”
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: Auto-quit after 5 non-acknowledged PULL_DATA
ERROR: Failed to load fw 1
ERROR: Version of calibration firmware not expected, actual:0 expected:2
ERROR: [main] failed to start the concentrator
[/code]

I wonder if there is something else that it would be needed to modify to make it works.



With best regards



Sebastian Barillaro

Hi there,



Please check below steps. actually they are located at LoRaWAN Gateway website. thanks.



Installation steps

Download and boot the Raspbian image on your Raspberry Pi.



Feel free to use any other distributions / your existing image, but then additional installation steps might be required that are not covered in this guide.



You will need SSH / SCP or direct console access to your Raspberry Pi to perform the following steps.


  1. Install cacertificates by running apt-get install ca-certificates
  2. Install libftdi by running apt-get install libftdi1
  3. Make sure that no other process is accessing the SX1301! Otherwise, the binary might fail to start or will only receive a subset of all the packets on the air.
  4. Use the command of the Quick install on your gateway page to download and install Loriot gateway binary.



    Once connected on the gateway with an SSH console. Run the folowing commands



    cd /tmp

    wget <LINK_TEXT text=“http://cn1.loriot.io/home/gwsw/loriot-p … -latest.sh”>http://cn1.loriot.io/home/gwsw/loriot-pi-3-rhf1257-SPI-0-latest.sh</LINK_TEXT> -O loriot-install.sh

    chmod +x loriot-install.sh

    ./loriot-install.sh





    Bill