Getting Started-Pysense-LoPy4-Node Configuration



  • I am a newbie to Lorawan and have received my boards just a couple of days ago. I have two boards as below

    1. Pygate with Lopy4
    2. Pysense with Lopy4
      I am trying to send some data to the TTN website. I am running the same code from Lora-nano-gateway folder with otaa node on my Pysense with LoPy4. My activation request reaches the TTN website as shown below but the lora.has_joined() does not return true. The gateway details in the activation request are of my pygate.
      66fd7e69-280b-467d-adb0-712bb97ccba5-image.png

    The pygate keeps spitting the below stack.

    [2170122886] lorapf: WARN_ [up  ] ignored out-of sync PUSH_ACK packet buff_ack[0:170] != token[0:171]
    [2170122935] lorapf: WARN_ [up  ] PUSH_ACK recieve timeout 1
    [2170126284] lorapf: INFO_ jitqueue: Current concentrator tv_sec=3100 time_us=3100338587, pkt_type=0, packet->count_us=3101095549, (c-t)=756962/756962 us = 0/0 s
    [2170126287] lorapf: WARN_ jitqueue: IGNORED: not REJECTED, already too late to send it (current=3100338587, packet=3101095549, type=0)
    [2170132067] lorapf: INFO_ [up  ] received pkt from mote: D003268F (fcnt=46037/B3D5), RSSI -123.0
    [2170132071] lorapf: WARN_ [up  ] ignored out-of sync PUSH_ACK packet buff_ack[0:171] != token[0:172]
    [2170132123] lorapf: WARN_ [up  ] PUSH_ACK recieve timeout 1
    [2170142080] lorapf: INFO_ [up  ] received pkt from mote: D003268F (fcnt=46037/B3D5), RSSI -124.0
    [2170142083] lorapf: WARN_ [up  ] ignored out-of sync PUSH_ACK packet buff_ack[0:172] != token[0:174]
    [2170142136] lorapf: WARN_ [up  ] PUSH_ACK recieve timeout 1
    [2170146236] lorapf: INFO_ jitqueue: Current concentrator tv_sec=3510 time_us=3510119707, pkt_type=0, packet->count_us=3510913858, (c-t)=794151/794151 us = 0/0 s
    [2170146240] lorapf: WARN_ jitqueue: IGNORED: not REJECTED, already too late to send it (current=3510119707, packet=3510913858, type=0)
    [2170152056] lorapf: INFO_ [up  ] received pkt from mote: D003268F (fcnt=46037/B3D5), RSSI -125.0
    [2170152059] lorapf: WARN_ [up  ] ignored out-of sync PUSH_ACK packet buff_ack[0:174] != token[0:175]
    [2170152112] lorapf: WARN_ [up  ] PUSH_ACK recieve timeout 1
    [2170152851] lorapf: INFO_ [main] report
    ##### 2020-07-24 15:03:39 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 4
    # CRC_OK: 75.00%, CRC_FAIL: 25.00%, NO_CRC: 0.00%
    # RF packets forwarded: 3 (69 bytes)
    # PUSH_DATA datagrams sent: 4 (731 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (100.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 2 (420 bytes)
    # RF packets sent to concentrator: 2 (66 bytes)
    # TX errors: 0
    # TX rejected (collision packet): 0.00% (req:85, rej:0)
    # TX rejected (collision beacon): 0.00% (req:85, rej:0)
    # TX rejected (too late): 0.00% (req:85, rej:0)
    # TX rejected (too early): 0.00% (req:85, rej:0)
    ### [JIT] ###
    [jit] queue is empty
    ### [GPS] ###
    # GPS sync is disabled
    ##### END #####
    


  • [2176354266] lorapf: INFO_ [main] Little endian host
    [2176354300] lorapf: INFO_ [main] lorawan_public 1, clksrc 1
    lgw_board_setconf:584: Note: board configuration; lorawan_public:1, clksrc:1
    [2176354301] lorapf: INFO_ [main] antenna_gain 0 dBi
    [2176354309] lorapf: INFO_ [main] Configuring TX LUT with 16 indexes
    [2176354312] lorapf: INFO_ [main] radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -164.000000, tx enabled 1
    lgw_rxrf_setconf:618: Note: rf_chain 0 configuration; en:1 freq:867500000 rssi_offset:-164.000000 radio_type:2 tx_enable:1        
    [2176354334] lorapf: INFO_ [main] radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -164.000000, tx enabled 0
    lgw_rxrf_setconf:618: Note: rf_chain 1 configuration; en:1 freq:868500000 rssi_offset:-164.000000 radio_type:2 tx_enable:0        
    [2176354357] lorapf: INFO_ [main] Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
    lgw_rxif_setconf:737: Note: LoRa 'multi' if_chain 0 configuration; en:1 freq:-400000 SF_mask:0x7e
    [2176354375] lorapf: INFO_ [main] Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
    lgw_rxif_setconf:737: Note: LoRa 'multi' if_chain 1 configuration; en:1 freq:-200000 SF_mask:0x7e
    [2176354392] lorapf: INFO_ [main] Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
    lgw_rxif_setconf:737: Note: LoRa 'multi' if_chain 2 configuration; en:1 freq:0 SF_mask:0x7e
    [2176354409] lorapf: INFO_ [main] Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
    lgw_rxif_setconf:737: Note: LoRa 'multi' if_chain 3 configuration; en:1 freq:-400000 SF_mask:0x7e
    [2176354427] lorapf: INFO_ [main] Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
    lgw_rxif_setconf:737: Note: LoRa 'multi' if_chain 4 configuration; en:1 freq:-200000 SF_mask:0x7e
    [2176354445] lorapf: INFO_ [main] Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
    lgw_rxif_setconf:737: Note: LoRa 'multi' if_chain 5 configuration; en:1 freq:0 SF_mask:0x7e
    [2176354462] lorapf: INFO_ [main] Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
    lgw_rxif_setconf:737: Note: LoRa 'multi' if_chain 6 configuration; en:1 freq:200000 SF_mask:0x7e
    [2176354480] lorapf: INFO_ [main] Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
    lgw_rxif_setconf:737: Note: LoRa 'multi' if_chain 7 configuration; en:1 freq:400000 SF_mask:0x7e
    [2176354498] lorapf: INFO_ [main] Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
    lgw_rxif_setconf:711: Note: LoRa 'std' if_chain 8 configuration; en:1 freq:-200000 bw:2 dr:2
    [2176354514] lorapf: INFO_ [main] FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
    lgw_rxif_setconf:767: Note: FSK if_chain 9 configuration; en:1 freq:300000 bw:3 dr:50000 (50000 real dr) sync:0xc194c1
    [2176354570] lorapf: INFO_ [main] gateway MAC address is configured to 26AB27CD15DC19BA
    [2176354570] lorapf: INFO_ [main] server hostname or IP address is configured to "router.eu.thethings.network"
    [2176354577] lorapf: INFO_ [main] upstream port is configured to "1700"
    [2176354583] lorapf: INFO_ [main] downstream port is configured to "1700"
    [2176354589] lorapf: INFO_ [main] downstream keep-alive interval is configured to 10 seconds
    [2176354597] lorapf: INFO_ [main] statistics display interval is configured to 30 seconds
    [2176354605] lorapf: INFO_ [main] upstream PUSH_DATA time-out is configured to 100 ms
    [2176354613] lorapf: INFO_ [main] packets received with a valid CRC will be forwarded
    [2176354620] lorapf: INFO_ [main] packets received with a CRC error will NOT be forwarded
    [2176354628] lorapf: INFO_ [main] packets received with no CRC will NOT be forwarded
    [2176354639] lorapf: INFO_ [main] found global configuration file and parsed correctly
    lgw_calibrate_sx125x:503: Note: calibration started (time: 2300 ms)
    lgw_calibrate_sx125x:524: Note: calibration finished (status = 0xBF)
    lgw_calibrate_sx125x:561: calibration a_i = 27
    lgw_calibrate_sx125x:561: calibration a_i = 21
    lgw_calibrate_sx125x:561: calibration a_i = 17
    lgw_calibrate_sx125x:561: calibration a_i = 15
    lgw_calibrate_sx125x:561: calibration a_i = 11
    lgw_calibrate_sx125x:561: calibration a_i = 9
    lgw_calibrate_sx125x:561: calibration a_i = 7
    lgw_calibrate_sx125x:561: calibration a_i = 6
    lgw_calibrate_sx125x:503: Note: calibration started (time: 2300 ms)
    lgw_calibrate_sx125x:524: Note: calibration finished (status = 0xBF)
    lgw_calibrate_sx125x:561: calibration a_i = 14
    lgw_calibrate_sx125x:561: calibration a_i = 11
    lgw_calibrate_sx125x:561: calibration a_i = 9
    lgw_calibrate_sx125x:561: calibration a_i = 7
    lgw_calibrate_sx125x:561: calibration a_i = 5
    lgw_calibrate_sx125x:561: calibration a_i = 4
    lgw_calibrate_sx125x:561: calibration a_i = 3
    lgw_calibrate_sx125x:561: calibration a_i = 3
    Info: Initialising AGC firmware...
    Info: putting back original RADIO_SELECT value
    [2176361808] lorapf: INFO_ [main] concentrator started, packet can now be received
    [2176361809] lorapf: INFO_ [up  ] start
    LoRa GW started
    [2176361810] lorapf: INFO_ [down] start
    [2176361811] lorapf: INFO_ [jit ] start
    [2176361812] lorapf: INFO_ [ts  ] start
    [2176379962] lorapf: INFO_ [up  ] received pkt from mote: D003268F (fcnt=46037/B3D5), RSSI -125.0
    [2176380015] lorapf: WARN_ [up  ] PUSH_ACK recieve timeout 0
    [2176380065] lorapf: WARN_ [up  ] PUSH_ACK recieve timeout 1
    [2176384348] lorapf: INFO_ jitqueue: Current concentrator tv_sec=25 time_us=25206060, pkt_type=0, packet->count_us=25805347, (c-t)=599287/599287 us = 0/0 s
    [2176384351] lorapf: WARN_ jitqueue: IGNORED: not REJECTED, already too late to send it (current=25206060, packet=25805347, type=0)
    [2176391814] lorapf: INFO_ [main] report
    ##### 2020-07-24 16:47:38 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 1
    # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 1 (23 bytes)
    # PUSH_DATA datagrams sent: 1 (206 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (66.67% acknowledged)
    # PULL_RESP(onse) datagrams received: 1 (208 bytes)
    # RF packets sent to concentrator: 1 (33 bytes)
    # TX errors: 0
    # TX rejected (collision packet): 0.00% (req:1, rej:0)
    # TX rejected (collision beacon): 0.00% (req:1, rej:0)
    # TX rejected (too late): 0.00% (req:1, rej:0)
    # TX rejected (too early): 0.00% (req:1, rej:0)
    ### [JIT] ###
    [jit] queue is empty
    ### [GPS] ###
    # GPS sync is disabled
    ##### END #####
    [2176391875] lorapf: WARN_ [up  ] ignored out-of sync PUSH_ACK packet buff_ack[0:0] != token[0:1]
    [2176391930] lorapf: WARN_ [up  ] PUSH_ACK recieve timeout 1
    [2176421871] lorapf: INFO_ [main] report
    ##### 2020-07-24 16:48:08 GMT #####
    ### [UPSTREAM] ###
    # RF packets received by concentrator: 0
    # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
    # RF packets forwarded: 0 (0 bytes)
    # PUSH_DATA datagrams sent: 1 (111 bytes)
    # PUSH_DATA acknowledged: 0.00%
    ### [DOWNSTREAM] ###
    # PULL_DATA sent: 3 (100.00% acknowledged)
    # PULL_RESP(onse) datagrams received: 0 (0 bytes)
    # RF packets sent to concentrator: 0 (0 bytes)
    # TX errors: 0
    # TX rejected (collision packet): 0.00% (req:1, rej:0)
    # TX rejected (collision beacon): 0.00% (req:1, rej:0)
    # TX rejected (too late): 0.00% (req:1, rej:0)
    # TX rejected (too early): 0.00% (req:1, rej:0)
    ### [JIT] ###
    [jit] queue is empty
    ### [GPS] ###
    # GPS sync is disabled
    ##### END #####```


  • @sachindayma could you please just edit your post and make the log a code block (using the icon in the toolbar or by adding ``` alone on a line before and after the block)? It would make things more readable.


Log in to reply
 

Pycom on Twitter