- Newest
- Most votes
- Most comments
Good morning Greg B how are you?
Here too, everything is in holy peace, thank you.
I did the math here and it really matches but there is one thing that caught my attention, the configuration of "chan_multiSF_4":{"enable":true,"radio":0,"if":400000}, should not be for radio 1 instead of zero?
I made an image to try to illustrate this in a more visual way, comparing it with the TTN configuration that normally works on the gateway.
once again thank you for your attention.
Hi pssimoes. I use AU915 (in Australia).
I haven't found a way to get the frequency settings sent by the WSS server
If you set log_level
to XDEBUG
in station.conf, the router_config message from the LNS is reported in the Basics Station log like this:
2023-06-14 21:31:46.878 [AIO:XDEB] [6|WS] < {"msgtype":"router_config","NetID":null,"JoinEui":null,"region":"AU915","hwspec":"sx1301/1","freq_range":[915000000,928000000],"DRs":[[12,125,0],[11,125,0],[10,125,0],[9,125,0],[8,125,0],[7,125,0],[8,500,0],[0,0,0],[12,500,0],[11,500,0],[10,500,0],[9,500,0],[8,500,0],[7,500,0],[0,0,0],[0,0,0]],"sx1301_conf":[{"radio_0":{"enable":true,"freq":917200000},"radio_1":{"enable":true,"freq":917900000},"chan_multiSF_0":{"enable":true,"radio":0,"if":-400000},"chan_mul
2023-06-14 21:31:46.878 [AIO:XDEB] [6|WS] . tiSF_1":{"enable":true,"radio":0,"if":-200000},"chan_multiSF_2":{"enable":true,"radio":0,"if":0},"chan_multiSF_3":{"enable":true,"radio":0,"if":200000},"chan_multiSF_4":{"enable":true,"radio":1,"if":-300000},"chan_multiSF_5":{"enable":true,"radio":1,"if":-100000},"chan_multiSF_6":{"enable":true,"radio":1,"if":100000},"chan_multiSF_7":{"enable":true,"radio":1,"if":300000},"chan_Lora_std":{"enable":true,"radio":0,"if":300000,"bandwidth":500000,"spread_factor":
2023-06-14 21:31:46.878 [AIO:XDEB] [6|WS] . 8},"chan_FSK":{"enable":false}}],"nocca":true,"nodc":true,"nodwell":true,"MuxTime":1686778306.7884324,"bcning":{"DR":8,"layout":[5,11,23],"freqs":[923300000,923900000,924500000,925100000,925700000,926300000,926900000,927500000]}}
And later in the log:
2023-06-14 21:31:52.978 [S2E:INFO] Configuring for region: AU915 -- 915.0MHz..928.0MHz
2023-06-14 21:31:52.978 [S2E:INFO] DR0 SF12/BW125
2023-06-14 21:31:52.978 [S2E:INFO] DR1 SF11/BW125
2023-06-14 21:31:52.978 [S2E:INFO] DR2 SF10/BW125
2023-06-14 21:31:52.978 [S2E:INFO] DR3 SF9/BW125
2023-06-14 21:31:52.978 [S2E:INFO] DR4 SF8/BW125
2023-06-14 21:31:52.978 [S2E:INFO] DR5 SF7/BW125
2023-06-14 21:31:52.978 [S2E:INFO] DR6 SF8/BW500
2023-06-14 21:31:52.978 [S2E:INFO] DR7 FSK
2023-06-14 21:31:52.978 [S2E:INFO] DR8 SF12/BW500
2023-06-14 21:31:52.978 [S2E:INFO] DR9 SF11/BW500
2023-06-14 21:31:52.978 [S2E:INFO] DR10 SF10/BW500
2023-06-14 21:31:52.978 [S2E:INFO] DR11 SF9/BW500
2023-06-14 21:31:52.978 [S2E:INFO] DR12 SF8/BW500
2023-06-14 21:31:52.978 [S2E:INFO] DR13 SF7/BW500
2023-06-14 21:31:52.978 [S2E:INFO] DR14 FSK
2023-06-14 21:31:52.978 [S2E:INFO] DR15 FSK
2023-06-14 21:31:52.978 [S2E:INFO] TX power: 30.0 dBm EIRP
2023-06-14 21:31:52.978 [S2E:INFO] JoinEui list: 0 entries
2023-06-14 21:31:52.978 [S2E:INFO] NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
Hello Greg_B Good morning, I wish you well.
First thanks for answering.
I changed the log_Level of my station.conf to XDEBUG as instructed, and made a connection, unfortunately my gateway model here does not generate a log with the information that came from the LNS as can be seen in the log in the link below...
https://drive.google.com/file/d/1vsJfhRLlLwa_IfWZevEfOvzZZoqksYXY/view?usp=sharing
Looking at your log I could see that the LNS is sending AU915 SubBand 2 configuration. Here in Brazil we use AU915 SubBand 1.
In your gateway registration did you set subband 1 or 2?
I believe that the LNS is sending SubBand2 configuration even though I am setting SubBand 1.
When I put the gateway to communicate with TTN , everything works normally.
Do you have any idea where I can raise this with AWS?
Hi. My gateway was using sub-band 2 (which BTW is the default if you don't specify a sub-band). However I recreated the gateway in AWS ioT Core for LoRaWAN, but with sub-band 1 specified. The
router_config
message correctly carries the setting for sub-band 1 in thesw1301_conf
field."sx1301_conf":[{"radio_0":{"enable":true,"freq":915600000},"radio_1":{"enable":true,"freq":916600000},"chan_FSK":{"enable":false},"chan_Lora_std":{"enable":false,"radio":0,"if":0},"chan_multiSF_0":{"enable":true,"radio":0,"if":-400000},"chan_multiSF_1":{"enable":true,"radio":0,"if":-200000},"chan_multiSF_2":{"enable":true,"radio":0,"if":0},"chan_multiSF_3":{"enable":true,"radio":0,"if":200000},"chan_multiSF_4":{"enable":true,"radio":0,"if":400000},"chan_multiSF_5":{"enable":true,"radio":1,"if":-400000},"chan_multiSF_6":{"enable":true,"radio":1,"if":-200000},"chan_multiSF_7":{"enable":true,"radio":1,"if":0}}]
Good morning Greg B how are you?
I spent a few days without any feedback because I was trying to understand what was going on. And come to some conclusions...
When I put my gateway to communicate with the things network using lora_pkt_fwd it works correctly. It captures all packets of the AU915 subBand 1 frequency. Being operating in this way, it uses the global_conf.json file as configuration, I put a copy of this file in my google drive if you want to take a look. Follow the link below... https://drive.google.com/file/d/11ZLvcEaMFfwzQxY9wpOaM12MksdKvEvd/view?usp=sharing
Analyzing this file I noticed that the central frequencies start at 915600000 and 916300000 and that the rssi_offset is fixed at -166.
Here's the boot log, notice that radio 0 is set to center frequency at 915600000, and radio 1 at 916300000.
https://drive.google.com/file/d/1AtL6lcotln1cgQZZTAOOO58sDZ3ulmze/view?usp=sharing
I managed to make my gateway print the json it is receiving from the aws LNS, for that I had to start the station with log level 0 with the following command...
/usr/bin/lora/station -h /etc/config/dusun/station/ -i /usr/bin/lora/reset_lgw.sh -l0 -t /tmp/
After messing with this command, I now have the print of the router_config
The full boot log can be seen at the link below... https://drive.google.com/file/d/1przEnPFp5aw3Nf4DCMQ0r70OJnspd35A/view?usp=sharing
What caught my attention is that the base frequency that is being provided by lns is different from the one that works in the case of the Things Network.
Radio 0 was set to frequency 915600000 Ok as expected. But radio 1 916600000 has a different frequency than the one that works here for us, it should be 916300000.
{"msgtype":"router_config","NetID":null,"JoinEUI":null,"region":"AU915","hwspec":"sx1301/1","freq_range":[915000000,928000000],"DRs":[[12,125,0],[11,125,0],[10,125,0],[9,125,0],[8,125,0],[7,125,0],[8,500,0],[-1,0,0],[12,500,1],[11,500,1],[10,500,1],[9,500,1],[8,500,0],[7,500,1],[-1,0,0],[-1,0,0]],"sx1301_conf":[{"radio_0":{"enable":true,"freq":915600000},"radio_1":{"enable":true,"freq":916600000},"chan_FSK":{"enable":false},"chan_Lora_std":{"enable":false,"radio":0,"if":0},"chan_multiSF_0":{"enable":true,"radio":0,"if":-400000},"chan_multiSF_1":{"enable":true,"radio":0,"if":-200000},"chan_multiSF_2":{"enable":true,"radio":0,"if":0},"chan_multiSF_3":{"enable":true,"radio":0,"if":200000},"chan_multiSF_4":{"enable":true,"radio":0,"if":400000},"chan_multiSF_5":{"enable":true,"radio":1,"if":-400000},"chan_multiSF_6":{"enable":true,"radio":1,"if":-200000},"chan_multiSF_7":{"enable":true,"radio":1,"if":0}}],"protocol":0,"regionid":0}
In summary, the gateway works normally communicating with The Things network, with the central frequency starting at 915600000 and 916300000. However, what is coming from AWS is different "freq_range":[915000000,928000000], even as a gateway registered in AU915 Subband 1.
Can I somehow act on what aws is sending to the gateway?
Thank you for your attention.
I'm sensational!. Thanks for asking. I hope you're good too. I think you need to consider the
chan_multiSF
values as well. The offsets defined there work with the radio centre frequencies. It looks to me that both the TTN and the AWS router_config will produce the same 8 frequencies: 915.2 to 916.6 in 200kHz steps. For example, in the case ofchan_multiSF_6
, which is for radio 1, we have 916600000 - 200000 = 916400000. For TTN, it's 916300000 + 100000 = 916400000.
Greg B good morning how are you? I'll try to get help from the gateway manufacturer as it seems to be ok.
But the gateway is intermittent, sometimes it takes the packages and sometimes not.
Thank you for your attention.
Relevant content
- asked 8 months ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 5 months ago
No I don't believe so. If you calculate the 8 subband frequencies from these settings, you will get 915.2 to 916.6 in 200kHz steps, as I previously stated. For my RAK7246G gateway connected to AWS, on 915MHz sub-band 2, I have exactly the same
chan_multiSF
settings. But theradio_0
frequency is 917.2 andradio_1
frequency is 918.2. So it all seems to make sense.