Aws Iot Core , Configuration error coming from LNS to Gateway Band AU915 Brazil.

0

Hi everyone, I hope you're doing well.

I am using AWS iot-core to receive data from lora gateways. However, the devices cannot communicate with the gateway because I believe that the frequency configuration that is being provided by the LNS is incorrect for the AU915 Brazil band.

Those same Devices that are not able to communicate with the gateway, can communicate normally in the LoraWan network.

I configured that same gateway to communicate with the things stack network, and everything worked normally.

I haven't found a way to get the frequency settings sent by the WSS server, but the TTN frequency settings that work are the ones given below...

{ "SX1301_conf": { "lorawan_public": true, "clksrc": 1, "antenna_gain": 0, "radio_0": { "enable": true, "type": "SX1257", "freq": 915600000, "rssi_offset": -166, "tx_enable": true, "tx_freq_min": 915000000, "tx_freq_max": 928000000 }, "radio_1": { "enable": true, "type": "SX1257", "freq": 916300000, "rssi_offset": -166, "tx_enable": false }, "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": 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": 8 }, "chan_FSK": { "enable": false }, "tx_lut_0": { "pa_gain": 0, "mix_gain": 8, "rf_power": -6, "dig_gain": 0 }, "tx_lut_1": { "pa_gain": 0, "mix_gain": 10, "rf_power": -3, "dig_gain": 0 }, "tx_lut_2": { "pa_gain": 0, "mix_gain": 12, "rf_power": 0, "dig_gain": 0 }, "tx_lut_3": { "pa_gain": 1, "mix_gain": 8, "rf_power": 3, "dig_gain": 0 }, "tx_lut_4": { "pa_gain": 1, "mix_gain": 10, "rf_power": 6, "dig_gain": 0 }, "tx_lut_5": { "pa_gain": 1, "mix_gain": 12, "rf_power": 10, "dig_gain": 0 }, "tx_lut_6": { "pa_gain": 1, "mix_gain": 13, "rf_power": 11, "dig_gain": 0 }, "tx_lut_7": { "pa_gain": 2, "mix_gain": 9, "rf_power": 12, "dig_gain": 0 }, "tx_lut_8": { "pa_gain": 1, "mix_gain": 15, "rf_power": 13, "dig_gain": 0 }, "tx_lut_9": { "pa_gain": 2, "mix_gain": 10, "rf_power": 14, "dig_gain": 0 }, "tx_lut_10": { "pa_gain": 2, "mix_gain": 11, "rf_power": 16, "dig_gain": 0 }, "tx_lut_11": { "pa_gain": 3, "mix_gain": 9, "rf_power": 20, "dig_gain": 0 }, "tx_lut_12": { "pa_gain": 3, "mix_gain": 10, "rf_power": 23, "dig_gain": 0 }, "tx_lut_13": { "pa_gain": 3, "mix_gain": 11, "rf_power": 25, "dig_gain": 0 }, "tx_lut_14": { "pa_gain": 3, "mix_gain": 12, "rf_power": 26, "dig_gain": 0 }, "tx_lut_15": { "pa_gain": 3, "mix_gain": 14, "rf_power": 27, "dig_gain": 0 } }, "gateway_conf": { "gateway_ID": "0000XXXXXXXXXXXXXXXX", "server_address": "XXXXXXXXXXXcloud.thethings.industries", "serv_port_up": 1700, "serv_port_down": 1700, "servers": [ { "gateway_ID": "000030AE7BE52601", "server_address": "XXXXXXXXXXXXcloud.thethings.industries", "serv_port_up": 1700, "serv_port_down": 1700, "serv_enabled": true } ] } }

Has anyone made any gateway work on the AU915 frequency being in Brazil?

profile picture
asked 10 months ago248 views
4 Answers
0
Accepted Answer

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.

Insira a descrição da imagem aqui

once again thank you for your attention.

profile picture
answered 10 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 the radio_0 frequency is 917.2 and radio_1 frequency is 918.2. So it all seems to make sense.

  • {"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":917200000},"radio_1":{"enable":true,"freq":918200000},"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}}]
    
0

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
profile pictureAWS
EXPERT
Greg_B
answered 10 months ago
  • 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 the sw1301_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}}]

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.

profile picture
answered 10 months ago
  • 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 of chan_multiSF_6, which is for radio 1, we have 916600000 - 200000 = 916400000. For TTN, it's 916300000 + 100000 = 916400000.

0

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.

profile picture
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions