Trying to Build Helium Packet Miner but the Packet-Forwarding wont Deploy.

Hello!
Same problem and trying to solve it on my Raspberry Pi 4 + RAK2245 PI HAT.
I follow the tutorial and same issue with the concentrator.
miner service is running;
packet-forwarder are running but are in loop restart because from some reason no starting

log:
packet-forwarder 2022-04-21 22:03:48,094 - [DEBUG] - main - (main.py).validate_env – /opt/pktfwd/main.py:(63) - Starting with the following ENV:
packet-forwarder VARIANT=DIY-PISLGH
packet-forwarder REGION_OVERRIDE=EU868
packet-forwarder REGION_FILEPATH=/var/pktfwd/region
packet-forwarder SX1301_REGION_CONFIGS_DIR=/opt/pktfwd/config/lora_templates_sx1301
packet-forwarder SX1302_REGION_CONFIGS_DIR=/opt/pktfwd/config/lora_templates_sx1302
packet-forwarder SENTRY_KEY=False
packet-forwarder BALENA_ID=e3087a4dc02f97bf91af6152ee5521aa
packet-forwarder BALENA_APP=data-only-hotspot
packet-forwarder DIAGNOSTICS_FILEPATH=/var/pktfwd/diagnostics
packet-forwarder AWAIT_SYSTEM_SLEEP_SECONDS=5
packet-forwarder RESET_LGW_FILEPATH=/opt/reset_lgw.sh
packet-forwarder UTIL_CHIP_ID_FILEPATH=/opt/sx1302/chip_id
packet-forwarder ROOT_DIR=/opt
packet-forwarder SX1302_LORA_PKT_FWD_FILEPATH=/opt/sx1302/lora_pkt_fwd
packet-forwarder SX1301_LORA_PKT_FWD_DIR=/opt/sx1301
packet-forwarder
packet-forwarder 2022-04-21 22:03:48,096 - [DEBUG] - pktfwd.pktfwd_app - (pktfwd_app.py).set_variant_attributes – /opt/pktfwd/pktfwd_app.py:(91) - Variant DIY-PISLGH set with reset_pin 22 and spi_bus spidev0.0
packet-forwarder 2022-04-21 22:03:48,096 - [DEBUG] - pktfwd.pktfwd_app - (pktfwd_app.py).start – /opt/pktfwd/pktfwd_app.py:(39) - STARTING PKTFWD
packet-forwarder 2022-04-21 22:03:48,097 - [DEBUG] - hm_pyhelper.miner_param - (miner_param.py).await_spi_available – /opt/pktfwd-dependencies/hm_pyhelper/miner_param.py:(217) - SPI bus spidev0.0 Configured Correctly
packet-forwarder 2022-04-21 22:03:48,098 - [DEBUG] - pktfwd.pktfwd_app - (pktfwd_app.py).prepare_to_start – /opt/pktfwd/pktfwd_app.py:(73) - Region set to EU868
packet-forwarder 2022-04-21 22:03:48,098 - [DEBUG] - pktfwd.utils - (utils.py).await_system_ready – /opt/pktfwd/utils.py:(53) - Waiting 5 seconds for systems to be ready
packet-forwarder 2022-04-21 22:03:53,104 - [DEBUG] - pktfwd.utils - (utils.py).await_system_ready – /opt/pktfwd/utils.py:(55) - System now ready
packet-forwarder 2022-04-21 22:03:53,105 - [DEBUG] - pktfwd.pktfwd_app - (pktfwd_app.py).prepare_to_start – /opt/pktfwd/pktfwd_app.py:(76) - Finished preparing pktfwd
packet-forwarder 2022-04-21 22:03:54,737 - [DEBUG] - pktfwd.utils - (utils.py).is_concentrator_sx1302 – /opt/pktfwd/utils.py:(82) - Command ‘[’/opt/sx1302/chip_id’, ‘-d’, ‘/dev/spidev0.0’]’ returned non-zero exit status 1.
packet-forwarder 2022-04-21 22:03:54,738 - [DEBUG] - pktfwd.utils - (utils.py).replace_sx1301_global_conf_with_regional – /opt/pktfwd/utils.py:(131) - Copying SX1301 global conf from /opt/pktfwd/config/lora_templates_sx1301/EU-global_conf.json to /opt/global_conf.json
packet-forwarder 2022-04-21 22:03:54,741 - [DEBUG] - pktfwd.utils - (utils.py).replace_sx1301_global_conf_with_regional – /opt/pktfwd/utils.py:(134) - Copying SX1301 local conf from /opt/pktfwd/config/lora_templates_sx1301/local_conf.json to /opt/local_conf.json
packet-forwarder CONCENTRATOR_RESET_PIN parameter not passed in, using value from the environment (val=22)
packet-forwarder CoreCell reset through GPIO22…
packet-forwarder CONCENTRATOR_RESET_PIN parameter not passed in, using value from the environment (val=22)
packet-forwarder CoreCell reset through GPIO22…
packet-forwarder *** Beacon Packet Forwarder for Lora Gateway ***
packet-forwarder Version: 4.0.1
packet-forwarder *** Lora concentrator HAL library version info ***
packet-forwarder Version: 5.0.1;
packet-forwarder ***
packet-forwarder INFO: Little endian host
packet-forwarder INFO: found global configuration file global_conf.json, parsing it
packet-forwarder INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
packet-forwarder INFO: lorawan_public 1, clksrc 1
packet-forwarder INFO: no configuration for LBT
packet-forwarder INFO: antenna_gain 0 dBi
packet-forwarder INFO: Configuring TX LUT with 16 indexes
packet-forwarder INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -158.000000, tx enabled 1, tx_notch_freq 0
packet-forwarder INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -158.000000, tx enabled 0, tx_notch_freq 0
packet-forwarder INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
packet-forwarder INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
packet-forwarder INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
packet-forwarder INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
packet-forwarder INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
packet-forwarder INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
packet-forwarder INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
packet-forwarder INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
packet-forwarder INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
packet-forwarder INFO: FSK channel 8 disabled
packet-forwarder INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
packet-forwarder INFO: server hostname or IP address is configured to “helium-miner”
packet-forwarder INFO: upstream port is configured to “1680”
packet-forwarder INFO: downstream port is configured to “1680”
packet-forwarder INFO: downstream keep-alive interval is configured to 10 seconds
packet-forwarder INFO: statistics display interval is configured to 30 seconds
packet-forwarder INFO: upstream PUSH_DATA time-out is configured to 100 ms
packet-forwarder INFO: packets received with a valid CRC will be forwarded
packet-forwarder INFO: packets received with a CRC error will NOT be forwarded
packet-forwarder INFO: packets received with no CRC will NOT be forwarded
packet-forwarder INFO: Reference latitude is configured to 0.000000 deg
packet-forwarder INFO: Reference longitude is configured to 0.000000 deg
packet-forwarder INFO: Reference altitude is configured to 0 meters
packet-forwarder INFO: fake GPS is enabled
packet-forwarder INFO: found local configuration file local_conf.json, parsing it
packet-forwarder INFO: redefined parameters will overwrite global parameters
packet-forwarder INFO: local_conf.json does not contain a JSON object named SX1301_conf
packet-forwarder INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
packet-forwarder INFO: server hostname or IP address is configured to “helium-miner”
packet-forwarder INFO: upstream port is configured to “1680”
packet-forwarder INFO: downstream port is configured to “1680”
packet-forwarder INFO: downstream keep-alive interval is configured to 10 seconds
packet-forwarder INFO: statistics display interval is configured to 30 seconds
packet-forwarder INFO: upstream PUSH_DATA time-out is configured to 100 ms
packet-forwarder INFO: packets received with a valid CRC will be forwarded
packet-forwarder INFO: packets received with a CRC error will NOT be forwarded
packet-forwarder INFO: packets received with no CRC will NOT be forwarded
packet-forwarder INFO: Reference latitude is configured to 0.000000 deg
packet-forwarder INFO: Reference longitude is configured to 0.000000 deg
packet-forwarder INFO: Reference altitude is configured to 0 meters
packet-forwarder INFO: fake GPS is enabled
packet-forwarder ERROR: [main] failed to start the concentrator
packet-forwarder 2022-04-21 22:04:00,515 - [WARNING] - pktfwd.utils - (utils.py).retry_start_concentrator – /opt/pktfwd/utils.py:(226) - lora_pkt_fwd stopped with code=1.
packet-forwarder 2022-04-21 22:04:00,516 - [WARNING] - pktfwd.pktfwd_app - (pktfwd_app.py).start – /opt/pktfwd/pktfwd_app.py:(59) - Shutting down concentrator.
packet-forwarder 2022-04-21 22:04:00,517 - [DEBUG] - pktfwd.pktfwd_app - (pktfwd_app.py).stop – /opt/pktfwd/pktfwd_app.py:(79) - STOPPING PKTFWD
packet-forwarder 2022-04-21 22:04:00,519 - [INFO] - main - (main.py).start – /opt/pktfwd/main.py:(106) - Stopping and cleaning up pktfwd
packet-forwarder 2022-04-21 22:04:00,520 - [DEBUG] - pktfwd.pktfwd_app - (pktfwd_app.py).stop – /opt/pktfwd/pktfwd_app.py:(79) - STOPPING PKTFWD

Is the RAK2245 SX1301 ?
because in tutorial are RAK2287 what is SX1302 and firmware from example are just for SX1302?!

I open a SenseCapM1 and concentrator are SX1302

Im trying to make this data only from 5 months and now I regret to don’t buy a RAK2287 because I see the tutorial with RAK2245 using raspbian and rak gateway…
No chance to work with that option, concentrator start, on TTN console is connecting in 30 sec but in Helium Console never connect…

Thanks!

OFF TOPIC: when I discover helium network I research more on this about what have these miners inside and I buy RPI4 and RAK2245 PI HAT and I flash the sd with: Replacing SD Card | Helium Documentation this image provided here, and after boot for first 5 minutes my DIY device was visible on helium app but not passing onboarding process with error: NO_ONBOARDING_KEY.
I connected with helium app developer and I connect it to internet via wifi and was succesfull updated with a firmware update and sync all the blockchain… :))

Is any chance to buy a ECC KEY CHIP from somewhere to build one?!

Hello @bogdan0393 that’s a good question! Nowadays the DIY hotspots are not allowed anymore at the Helium network. You have to buy one hotspots through the official manufacturers.

Having said that, you still can run a Data-Only Hotspot. That means that you are not going to get rewarded for the PoC but only for relying data.

Feel free to try this project balenaHub: an easier way to find and publish fleets, projects, and blocks for edge devices

Looking forward to know if that works for you!

Thank you!
Sorry but my first subject was hidden by system and probably. I found this topic and I’m interesting to develop how I can in creating a DIY data only hotspot, preferably with balena but I already buy the RAK2245 witch is SK1301 and I think is not working with balena after few try I discover same problem in this subject on the topic here. After all setup the concentrator not starting with tutorial using balena and RAK2245 because I think I need RAK2287.

I remember I install as well the ChirpStack OS on my DIY project and I see in sudo gateway-config the similar menu with the latest version of RAK2245 raspbian already configured by RAK somewhere was FLASH CONCENTRATOR.
Is any chance to provide it another flash image just for concentrator not for RPI4 to cheat or hack the concentrator RAK2245 to convert in RAK2287 ?

Another question or idea is about the DRAGINO LPS8 who are used by people to create a simple data only hotspot and uses the same gateway provided by alpha but on other build because this device is not using a RPI4.
The question or challenge is: Is possible to flash the RPI4 with exactly same os which is used by DRAGINO LPS8 ?!
Because Dragino LPS8 uses same SX1301 based concentrator, but not SX1302.
Thank you!
Many thanks for your response and if are possible to get in touch with you, my discord are: Instrumentalle#4093 and email bogdan0393@gmail.com

Many thanks again!

1 Like

Hey @bogdan0393

Could you please try this project to check if this works? GitHub - alexissusset/helium-rak2245-balena: Balena Implementation of RAK2245 on Helium

Let us know if you succeed :slight_smile:

Hello @bogdan0393 i was doing some housekeeping and i found this unanswered! did you find time to test it?

Let us know if we can help you more!

Hello, did you make it run with the repo i recommended? Let us know if we can help you more.