will127534 / LoRa-concentrator

A simple Board for SX1301 and SX125X LoRa Gateway / Concentrator
MIT License
336 stars 123 forks source link

Unreliable RF receive #4

Closed will127534 closed 7 years ago

will127534 commented 7 years ago

Testing Setup: one Transmitter @ 433.5Mhz, config Radio_B to 433.2Mhz and two channel with IF 0Khz and +3Khz.

Problem: the transmitter is transmitting package one per second (confirm by other SX1278), but SX1301 cannot receive package reliably, receive a package for a couple seconds, as the log show below.

pi@raspberrypi:~/lora_gateway/util_pkt_logger $ ./util_pkt_logger loragw_pkt_logger: INFO: found global configuration file global_conf.json, trying to parse it loragw_pkt_logger: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters loragw_pkt_logger: INFO: lorawan_public 1, clksrc 1 lgw_board_setconf:427: Note: board configuration; lorawan_public:1, clksrc:1 loragw_pkt_logger: INFO: radio 0 enabled (type SX1255), center frequency 433000000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0 lgw_rxrf_setconf:488: Note: rf_chain 0 configuration; en:1 freq:433000000 rssi_offset:-166.000000 radio_type:1 tx_enable:0 tx_notch_freq:0 loragw_pkt_logger: INFO: radio 1 enabled (type SX1255), center frequency 433200000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0 lgw_rxrf_setconf:476: WARNING: NOT A VALID TX NOTCH FILTER FREQUENCY [126000..250000]Hz lgw_rxrf_setconf:488: Note: rf_chain 1 configuration; en:1 freq:433200000 rssi_offset:-166.000000 radio_type:1 tx_enable:1 tx_notch_freq:0 loragw_pkt_logger: INFO: LoRa multi-SF channel 0 enabled, radio 1 selected, IF 0 Hz, 125 kHz bandwidth, SF 7 to 12 lgw_rxif_setconf:607: Note: LoRa 'multi' if_chain 0 configuration; en:1 freq:0 SF_mask:0x7e loragw_pkt_logger: INFO: LoRa multi-SF channel 1 enabled, radio 1 selected, IF 300000 Hz, 125 kHz bandwidth, SF 7 to 12 lgw_rxif_setconf:607: Note: LoRa 'multi' if_chain 1 configuration; en:1 freq:300000 SF_mask:0x7e loragw_pkt_logger: INFO: LoRa multi-SF channel 2 disabled lgw_rxif_setconf:515: Note: if_chain 2 disabled loragw_pkt_logger: INFO: LoRa multi-SF channel 3 disabled lgw_rxif_setconf:515: Note: if_chain 3 disabled loragw_pkt_logger: INFO: LoRa multi-SF channel 4 disabled lgw_rxif_setconf:515: Note: if_chain 4 disabled loragw_pkt_logger: INFO: LoRa multi-SF channel 5 disabled lgw_rxif_setconf:515: Note: if_chain 5 disabled loragw_pkt_logger: INFO: LoRa multi-SF channel 6 disabled lgw_rxif_setconf:515: Note: if_chain 6 disabled loragw_pkt_logger: INFO: LoRa multi-SF channel 7 disabled lgw_rxif_setconf:515: Note: if_chain 7 disabled loragw_pkt_logger: INFO: LoRa standard channel 8 disabled lgw_rxif_setconf:515: Note: if_chain 8 disabled loragw_pkt_logger: INFO: FSK channel 8 disabled lgw_rxif_setconf:515: Note: if_chain 9 disabled loragw_pkt_logger: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters loragw_pkt_logger: INFO: gateway MAC address is configured to AA555A0000000000 loragw_pkt_logger: INFO: found local configuration file local_conf.json, trying to parse it loragw_pkt_logger: INFO: local_conf.json does not contain a JSON object named SX1301_conf loragw_pkt_logger: INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters loragw_pkt_logger: INFO: gateway MAC address is configured to AA555A0000000101 lgw_start:819: Note: calibration started (time: 2300 ms) lgw_start:840: Note: calibration finished (status = 197) WARNING: calibration could not access radio A WARNING: problem in calibration of radio A for image rejection WARNING: problem in calibration of radio B for image rejection Info: Initialising AGC firmware... Info: putting back original RADIO_SELECT value loragw_pkt_logger: INFO: concentrator started, packet can now be received loragw_pkt_logger: INFO: Now writing to log file pktlog_AA555A0000000101_20170904T022342Z.csv lgw_receive:1151: FIFO content: 1 10 0 5 20 lgw_receive:1170: [1 17] Note: LoRa packet "2017-09-04 02:23:46.551Z", 433500000,1, 1,-85, +9.8,14020300009E09E2E5C447840200000000000000000000000000000000000000" lgw_receive:1151: FIFO content: 1 40 0 5 20 lgw_receive:1170: [1 17] Note: LoRa packet "2017-09-04 02:23:57.570Z", 433500000,1, 1,-85, +8.0,1F020300009E0974E6C4477F0200000000000000000000000000000000000000" lgw_receive:1151: FIFO content: 1 70 0 5 20 lgw_receive:1170: [1 17] Note: LoRa packet "2017-09-04 02:24:18.558Z", 433500000,1, 1,-85,+11.2,34020300009C0940E5C447840200000000000000000000000000000000000000" lgw_receive:1151: FIFO content: 1 a0 0 5 20 lgw_receive:1170: [1 17] Note: LoRa packet "2017-09-04 02:24:27.555Z", 433500000,1, 1,-81,+11.2,3D020300009E0916E6C447820200000000000000000000000000000000000000" lgw_receive:1151: FIFO content: 1 d0 0 5 20 lgw_receive:1170: [1 17] Note: LoRa packet "2017-09-04 02:24:32.579Z", 433500000,1, 1,-76, +9.0,42020300009E095AE5C447810200000000000000000000000000000000000000" lgw_receive:1151: FIFO content: 1 0 1 5 20 lgw_receive:1170: [1 17] Note: LoRa packet "2017-09-04 02:24:59.563Z", 433500000,1, 1,-79, +9.2,5D02030000A0096AE5C447830200000000000000000000000000000000000000"

The problem may cause by

  1. Unstable Crystal (I'm using normal OSC now)
  2. missing inductor at SX1255 input RF
  3. missing SAW

So currently I'm going to get some TCXO, inductor, and SAW to see if any of them helps.

will127534 commented 7 years ago

also note that if I'm using single channel with SX1255 @ 433.5Mhz and IF =0Khz I can not even receive a single package.

will127534 commented 7 years ago

TCXO doesn't help, confirmed.

will127534 commented 7 years ago

OK, solved the problem I'm using radiohead and Arduino to transmit LoRa packet Which is using LoRa Private Sync Word, so I need to adjust Gateway to Private mode.