Issues with Lora Gateway calibration firmware

Home Forums Conduit: mLinux Model Issues with Lora Gateway calibration firmware

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12454
    Cameron MacLeod
    Participant

    I have built util_tx_test from TheThingsNetwork/lora-gateway and am running it on a Multitech Conduit. However when I run it, I get the following output.

    ./util_tx_test -f 915 -r 1257
    Sending -1 packets on 915000000 Hz (BW 125 kHz, SF 10, CR 1, 16 bytes payload, symbols preamble) at 14 dBm, with 1000 ms between each
    ERROR: Version of calibration firmware not expected, actual:217 expected:2
    ERROR: failed to start the concentrator

    I have also built the tests in Lora-net/lora-gateway and when I run test_loragw_hal, I get the following.

    root@mtcdt:~# ./test_loragw_hal
    Beginning of test for loragw_hal.c
    *** Library version information ***
    Version: 2.0.0; Options: ftdi sx1301 sx1257 us915 no_brd private;

    lgw_rxrf_setconf:884: Note: rf_chain 0 configuration; en:1 freq:914500000
    lgw_rxrf_setconf:884: Note: rf_chain 1 configuration; en:1 freq:915500000
    lgw_rxif_setconf:988: Note: LoRa 'multi' if_chain 0 configuration; en:1 freq:-300000 SF_mask:0x7e
    lgw_rxif_setconf:988: Note: LoRa 'multi' if_chain 1 configuration; en:1 freq:300000 SF_mask:0x7e
    lgw_rxif_setconf:988: Note: LoRa 'multi' if_chain 2 configuration; en:1 freq:-300000 SF_mask:0x7e
    lgw_rxif_setconf:988: Note: LoRa 'multi' if_chain 3 configuration; en:1 freq:300000 SF_mask:0x7e
    lgw_rxif_setconf:988: Note: LoRa 'multi' if_chain 4 configuration; en:1 freq:-100000 SF_mask:0x7e
    lgw_rxif_setconf:988: Note: LoRa 'multi' if_chain 5 configuration; en:1 freq:100000 SF_mask:0x7e
    lgw_rxif_setconf:988: Note: LoRa 'multi' if_chain 6 configuration; en:1 freq:-100000 SF_mask:0x7e
    lgw_rxif_setconf:988: Note: LoRa 'multi' if_chain 7 configuration; en:1 freq:100000 SF_mask:0x7e
    lgw_rxif_setconf:962: Note: LoRa 'std' if_chain 8 configuration; en:1 freq:0 bw:2 dr:16
    lgw_rxif_setconf:1018: Note: FSK if_chain 9 configuration; en:1 freq:0 bw:2 dr:64000 (64000 real dr) sync:0xC194C1
    lgw_spi_open:88: SPI port opened and configured ok
    desc: (null)
    PID: 0x6014
    VID: 0x0403
    clock: 6000000
    Libmpsse version: 0x13
    Note: SPI write success
    Note: SPI read success
    Note: SPI read success
    Note: success connecting the concentrator
    Note: SPI write success
    Note: SPI read success
    ...
    setup_sx125x:676: Note: SX125x #0 version register returned 0x07
    Note: SPI read success
    Note: SPI write success
    ...
    setup_sx125x:681: Note: SX125x #0 clock output enabled
    Note: SPI read success
    Note: SPI write success
    ...
    setup_sx125x:724: Note: SX125x #0 PLL start (attempt 1)
    Note: SPI read success
    Note: SPI write success
    ...
    setup_sx125x:676: Note: SX125x #1 version register returned 0x1f
    Note: SPI read success
    Note: SPI write success
    ...
    setup_sx125x:681: Note: SX125x #1 clock output enabled
    Note: SPI read success
    Note: SPI write success
    ...
    setup_sx125x:724: Note: SX125x #1 PLL start (attempt 1)
    Note: SPI read success
    Note: SPI write success
    ...
    Note: SPI burst write success
    Note: SPI read success
    Note: SPI write success
    ...
    ERROR: Version of calibration firmware not expected, actual:0 expected:2
    *** Impossible to start concentrator ***

    The main difference is that actual is 0 as opposed to 217. Where I have used ‘…’ above, there are just (more or less) alternating “read success” and “write success”.

    When I diff cal_fw.var in both sources, there is no difference.

    My aim is just to get libloragw running, and the example programs seemed like an easy way of demonstrating that. Is there something obvious I am doing wrong? I can post other files and outputs if necessary.

    #12456
    Jason Reiss
    Keymaster

    The libloragw v1.7.0 is built into mLinux.

    Is there specific functionality from v2.0.0 that you need?

    We use version 1.7.0-mts branch from http://git.multitech.net/cgi-bin/cgit.cgi/lora_gateway.git/

    #12459
    Cameron MacLeod
    Participant

    Thanks for your reply Jason. I made a mistake in my previous post when I said the second output was from Lora-net/lora-gateway, that was in fact from the source you linked.

    I have since deleted and re-cloned the source directory from your linked server, and after editing a few things I have gotten back to the output as above (actual:0, expected:2). The things I have changed are below.

    • Change CFG_BAND from eu868 to us915
    • Change $CC in the Makefile to reference $CC from the environment
    • Include the directory with ftdi.h in CFLAGS
    • Change PID in loragw_spi.ftdi.c to 0x6014

    The output of test_loragw_cal now is as follows:

    root@mtcdt:~# ./test_loragw_cal
    lgw_rxrf_setconf:884: Note: rf_chain 0 configuration; en:1 freq:915500000
    lgw_rxrf_setconf:884: Note: rf_chain 1 configuration; en:1 freq:915500000
    Library version information: Version: 2.0.0; Options: ftdi sx1301 sx1257 us915 ref_1301_868 private;
    Radio A frequency: 915.500000 MHz
    Radio B frequency: 916.500000 MHz
    Number of calibration iterations: 5
    Calibration command: brd: 0, chip: 1257, dac: 3
    
    Note: success connecting the concentrator
    setup_sx125x:676: Note: SX125x #0 version register returned 0x07
    setup_sx125x:684: Note: SX125x #0 clock output disabled
    setup_sx125x:724: Note: SX125x #0 PLL start (attempt 1)
    setup_sx125x:676: Note: SX125x #1 version register returned 0x1f
    setup_sx125x:681: Note: SX125x #1 clock output enabled
    setup_sx125x:724: Note: SX125x #1 PLL start (attempt 1)
    ERROR: Version of calibration firmware not expected, actual:0 expected:2
    
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.