Creating custom channel plan

Hello,

I have a different issue relating to this topic. I am able to get data from Kerlink iFemtocell US915 MHz Gateway (version, 4.0.4) by using default “US915-US_8CH.json” document by editting the TTN IP and Port numbers. And it works and its data comes to the TTN, which is great.

But when i edit the frequency on US915-US_8CH.json documents, lorad coud not run (work). Here is the output of the error. Do you have any idea or advice for me?

Here is the output:

<2> Failed to start core
Jun 21 06:41:58 klk-wifc-030454 local1.debug lorafwd[959]: <7> gwmp.send: 02 0B DE 02 72 76 FF 00 39 03 04 54 |…rv…9…T|
Jun 21 06:41:58 klk-wifc-030454 local1.info lorafwd[959]: <6> Heartbeat (0BDE) sent
Jun 21 06:41:59 klk-wifc-030454 local1.debug lorafwd[959]: <7> gwmp.recv: 02 0B DE 04 |…|
Jun 21 06:41:59 klk-wifc-030454 local1.info lorafwd[959]: <6> Heartbeat (0BDE) acknowledged in 224.525 ms
Jun 21 06:42:02 klk-wifc-030454 local1.notice lorad[1407]: <5> Starting lorad 1.0.3+wifc
Jun 21 06:42:02 klk-wifc-030454 local1.info lorad[1407]: <6> No PPS device detected
Jun 21 06:42:02 klk-wifc-030454 local1.info lorad[1407]: <6> Parsing configuration file: /user/etc/lorad/US915-US_8CH.json
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “lorawan_public” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “clksrc” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “antenna_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “insertion_loss” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 8
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “freq” configured to: 9.043e+08
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “tx_enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “tx_freq_min” configured to: 9.233e+08
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “tx_freq_max” configured to: 9.275e+08
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “tx_notch_freq” configured to: 129000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “type” configured to: SX1257
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “freq” configured to: 9.05e+08
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “tx_enable” configured to: false
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “type” configured to: SX1257
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: -400000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: -200000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: 200000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: -300000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: -100000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: 100000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: 300000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “enable” configured to: true
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “radio” configured to: 0
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “if” configured to: -400000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “bandwidth” configured to: 500000
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “spread_factor” configured to: 8
Jun 21 06:42:02 klk-wifc-030454 local1.info lorad[1407]: <6> No gateway configuration
Jun 21 06:42:02 klk-wifc-030454 local1.info lorad[1407]: <6> Parsing configuration file: /tmp/calib_rf.json
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 11
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 9
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 12
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 10
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 13
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 12
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 14
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 13
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 1
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 15
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 14
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 2
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 10
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 15
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 2
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 11
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 16
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 2
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 12
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 18
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 2
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 13
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 20
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 2
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 14
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 21
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 2
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 15
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 22
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 10
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 23
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 11
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 25
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 12
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 27
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 13
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 28
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “dig_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “pa_gain” configured to: 3
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “mix_gain” configured to: 15
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rf_power” configured to: 29
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rssi_offset” configured to: -165
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> Value “rssi_offset” configured to: -165.6
Jun 21 06:42:02 klk-wifc-030454 local1.info lorad[1407]: <6> Programming FPGA with spectral scan firmware
Jun 21 06:42:02 klk-wifc-030454 local1.debug lorad[1407]: <7> SPI FPGA port opened and configured ok
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> program FPGA done CDONE TEST PASSED
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> success connecting and programming the FPGA concentrator
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> board configuration; lorawan_public:1, clksrc:1
Jun 21 06:42:03 klk-wifc-030454 local1.info lorad[1407]: <6> rf_chain 0: new RSSI offset including antenna gain (3.000000) and path loss (0.000000): -168.0
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> rf_chain 0 configuration; en:1 freq:904300000 rssi_offset:-168.000000 radio_type:2 tx_enable:1 tx_notch_freq:129000
Jun 21 06:42:03 klk-wifc-030454 local1.info lorad[1407]: <6> rf_chain 1: new RSSI offset including antenna gain (3.000000) and path loss (0.000000): -168.6
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> rf_chain 1 configuration; en:1 freq:905000000 rssi_offset:-168.600006 radio_type:2 tx_enable:0 tx_notch_freq:0
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> LoRa ‘multi’ if_chain 0 configuration; en:1 freq:-400000 SF_mask:0x7e
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> LoRa ‘multi’ if_chain 1 configuration; en:1 freq:-200000 SF_mask:0x7e
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> LoRa ‘multi’ if_chain 2 configuration; en:1 freq:0 SF_mask:0x7e
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> LoRa ‘multi’ if_chain 3 configuration; en:1 freq:200000 SF_mask:0x7e
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> LoRa ‘multi’ if_chain 4 configuration; en:1 freq:-300000 SF_mask:0x7e
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> LoRa ‘multi’ if_chain 5 configuration; en:1 freq:-100000 SF_mask:0x7e
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> LoRa ‘multi’ if_chain 6 configuration; en:1 freq:100000 SF_mask:0x7e
Jun 21 06:42:03 klk-wifc-030454 local1.debug lorad[1407]: <7> LoRa ‘multi’ if_chain 7 configuration; en:1 freq:300000 SF_mask:0x7e
Jun 21 06:42:03 klk-wifc-030454 local1.err lorad[1407]: <3> IF FREQUENCY -400000 TOO LOW
Jun 21 06:42:03 klk-wifc-030454 local1.err lorad[1407]: <3> Failed to configure channel 8
Jun 21 06:42:03 klk-wifc-030454 local1.err lorad[1407]: <3> Failed to apply core configuration
Jun 21 06:42:03 klk-wifc-030454 local1.err lorad[1407]: <3> Failed to apply configuration
Jun 21 06:42:03 klk-wifc-030454 local1.crit lorad[1407]: <2> Failed to start core

thank you very much for your time.
Best Regards,
Zafer

  1. Please don’t hijack a thread with unrelated questions. Start a new topic…

  2. You specified an offset that can’t be used with the given frequency. The radio module has a certain bandwidth, the frequency combined with offset and bandwidth required for for the the specified speed need to fit within that total radio bandwidth.
    Keep in mind your channel plan must match the TTN channel plan when you are using TTN. Easiest way to make that happen is to download it from github.

Thank you very much for your reply. It works now.

Our mistake was on chan_LoRa part. We did assign the if as -40000 instead of 30000.

            "chan_Lora_std": {
                    "desc": "LoRa, 500 kHz, SF 8, 904.6 MHz",
                    "if": 300000

Thank you!