LoRa Gateway Combined Systems Test

CN470

Upstream
         96 channels numbered 0 to 95 utilizing 
         125 kHz BW varying from DR0 to DR5
         coding rate 4/5
         Min = 470.3 MHz, Max = 489.3 MHz, Step 200 kHz
Downstream
         48 channels numbered 0 to 47 utilizing 
         125 kHz BW varying from DR0 to DR5
         coding rate 4/5
         Min = 500.3 MHz, Max = 509.7 MHz, Step 200 kHz
Frequency     470,000,000
RF chain      0
RX chain      0
Status        CRC_OK                            CRC_OK,CRC_BAD,NO_CRC,UNDEF
Size          15
Modulation    LORA                              LORA,FSK
BandWidth     125,000                           5000002500001250006250031200156007800
DataRate      SF7                               SF7,SF8,SF9,SF10,SF11,SF12
CodeRate      4/5                               14/524/634/744/8
RSSI          -15
SNR           8.8
Payload       64646464-64000000-00000000-000000
/home/pi>sudo stty -F /dev/ttyAMA0 -a
speed 3000000 baud; rows 0; columns 0; line = 15;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O;
min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc

Package

-------- ------ --- -------- ---
Preamble Header CRC Playload CRC
-------- ------ --- -------- ---
cat pktlog_DCA632FFFEDF3519_20220429T025448Z.csv
"gateway ID","node MAC","UTC timestamp","us count","frequency","RF chain","RX chain","status","size","modulation","bandwidth","datarate","coderate","RSSI","SNR","payload"
"DCA632FFFEDF3519","","2022-04-29 02:54:51.901Z",   5617539, 470000000,0, 0,"CRC_OK" , 15,"LORA",125000,"SF7"   ,"4/5",-10, +9.0,"64646464-64000000-00000000-000000"
"DCA632FFFEDF3519","","2022-04-29 02:55:04.095Z",  17811275, 470000000,0, 0,"CRC_OK" , 15,"LORA",125000,"SF7"   ,"4/5",-9, +8.8,"64646464-64000000-00000000-000000"
grep -ni "json up" /var/log/daemon.log | grep LORA
239970:Apr 29 11:00:27 LoRa-GW lora_pkt_fwd[1519]: JSON up: {"rxpk":[{"tmst":187786843,"chan":0,"rfch":0,"freq":470.000000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":9.2,"rssi":-9,"size":15,"data":"ZGRkZGQAAAAAAAAAAAAA"}]}
336681:Apr 29 11:02:47 LoRa-GW lora_pkt_fwd[1519]: JSON up: {"rxpk":[{"tmst":328020411,"chan":0,"rfch":0,"freq":470.000000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":9.2,"rssi":-9,"size":15,"data":"ZGRkZGQAAAAAAAAAAAAA"}]}
391434:Apr 29 11:04:07 LoRa-GW lora_pkt_fwd[1519]: JSON up: {"rxpk":[{"tmst":407286299,"chan":0,"rfch":0,"freq":470.000000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":9.2,"rssi":-9,"size":15,"data":"ZGRkZGQAAAAAAAAAAAAA"}]}
404013:Apr 29 11:04:25 LoRa-GW lora_pkt_fwd[1519]: JSON up: {"rxpk":[{"tmst":425577611,"chan":0,"rfch":0,"freq":470.000000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":9.0,"rssi":-8,"size":15,"data":"ZGRkZGQAAAAAAAAAAAAA"}]}
458686:Apr 29 11:05:44 LoRa-GW lora_pkt_fwd[1519]: JSON up: {"rxpk":[{"tmst":504842819,"chan":0,"rfch":0,"freq":470.000000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":9.0,"rssi":-9,"size":15,"data":"ZGRkZGQAAAAAAAAAAAAA"}]}
660584:Apr 29 11:10:37 LoRa-GW lora_pkt_fwd[1519]: JSON up: {"rxpk":[{"tmst":242164588,"chan":0,"rfch":0,"freq":470.000000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":9.2,"rssi":-16,"size":15,"data":"ZGRkZGQAAAAAAAAAAAAA"}]}
1165564:Apr 29 11:22:48 LoRa-GW lora_pkt_fwd[1519]: JSON up: {"rxpk":[{"tmst":973827732,"chan":0,"rfch":0,"freq":470.000000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":8.5,"rssi":-23,"size":15,"data":"ZGRkZGQAAAAAAAAAAAAA"}]}
1426525:Apr 29 11:29:06 LoRa-GW lora_pkt_fwd[1519]: JSON up: {"rxpk":[{"tmst":1351960124,"chan":0,"rfch":0,"freq":470.000000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":9.0,"rssi":-19,"size":15,"data":"ZGRkZGQAAAAAAAAAAAAA"}]}
echo "ZGRkZGQAAAAAAAAAAAAA" | base64 -d
ddddd

echo "ddddd" | base64
ZGRkZGQK
Industrial-Scientific-Medical                                 ISM
Internet of Things                                            IoT
Message Queuing Telemetry Transport                           MQTT
Low-Power Wide-Area Network                                   LPWAN
Long Range Communication                                      LoRa
Serial Peripheral Interface                                   SPI
Frequency-shift keying                                        FSK
Received Signal Strength Indication                           RSSI
Signal Noise Ratio                                            SNR
Listen Before Talk                                            LBT
Look Up Table                                                 LUT
Spreading Factor                                              SF
Adaptive Data Rate                                            ADR

SX1301 Power On
SX1262 Power Off
在这里插入图片描述
在这里插入图片描述
SX1262 Power On
在这里插入图片描述
在这里插入图片描述

sudo systemctl status lrgateway
● lrgateway.service - packet forwarder
     Loaded: loaded (/etc/systemd/system/lrgateway.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-04-26 09:09:46 CST; 42min ago
    Process: 2310 ExecStartPre=/home/pi/lora/packet_forwarder/reset_pkt_fwd.sh start /home/pi/lora/packet_forwarder/lora_pkt_fwd/local_conf.json (code=exited, status=0/SUCCESS)
   Main PID: 2331 (lora_pkt_fwd)
      Tasks: 5 (limit: 4165)
        CPU: 29.702s
     CGroup: /system.slice/lrgateway.service
             └─2331 /home/pi/lora/packet_forwarder/lora_pkt_fwd/lora_pkt_fwd

426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: lgw_spi_rb:371: BURST READ: to trans 5 # chunk 5 # transferred 5
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: Note: SPI burst read success
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: lgw_spi_rb:371: BURST READ: to trans 5 # chunk 5 # transferred 5
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: Note: SPI burst read success
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: lgw_spi_rb:371: BURST READ: to trans 5 # chunk 5 # transferred 5
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: Note: SPI burst read success
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: lgw_spi_rb:371: BURST READ: to trans 5 # chunk 5 # transferred 5
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: Note: SPI burst read success
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: lgw_spi_rb:371: BURST READ: to trans 5 # chunk 5 # transferred 5
426 09:52:41 LoRa-GW lora_pkt_fwd[2331]: Note: SPI burst read success
 -r         <int>   radio type (SX1255:1255, SX1257:1257)
 -n         <uint>  TX notch filter frequency in kHz [126..250]
 -f         <float> target frequency in MHz
 -k         <uint>  concentrator clock source (0:Radio A, 1:Radio B)
 -m         <str>   modulation type ['LORA', 'FSK']
 -b         <uint>  LoRa bandwidth in kHz [125, 250, 500]
 -s         <uint>  LoRa Spreading Factor [7-12]
 -c         <uint>  LoRa Coding Rate [1-4]
 -d         <uint>  FSK frequency deviation in kHz [1:250]
 -q         <float> FSK bitrate in kbps [0.5:250]
 -p         <int>   RF power (dBm) [ 0dBm 10dBm 14dBm 20dBm 27dBm ]
 -l         <uint>  LoRa preamble length (symbols)
 -z         <uint>  payload size (bytes, <256)
 -i                 send packet using inverted modulation polarity
 -t         <uint>  pause between packets (ms)
 -x         <int>   nb of times the sequence is repeated (-1 loop until stopped)
 --lbt-freq         <float> lbt first channel frequency in MHz
 --lbt-nbch         <uint>  lbt number of channels [1..8]
 --lbt-sctm         <uint>  lbt scan time in usec to be applied to all channels [128, 5000]
 --lbt-rssi         <int>   lbt rssi target in dBm [-128..0]
 --lbt-rssi-offset  <int>   rssi offset in dB to be applied to SX127x RSSI [-128..127]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值