Skip to content

How to enable IoT Wireless Class B Beacons?

0

I need to configure my gateway for LoRAWAN Class B to send beacons as per https://docs.aws.amazon.com/iot-wireless/latest/developerguide/lorawan-gateway-beaconing.html . However, I cannot, I just get this:

Unknown parameter in LoRaWAN: "Beaconing", must be one of: GatewayEui, RfRegion, JoinEuiFilters, NetIdFilters, SubBands

This is in us-east-1.

Here is the log from my LoRA Basics Station, you can see it doesn't appear to receive any bcning router_config, as I get no log messages regarding it:


basicstation    | 2024-05-06 15:39:30.304 [TCE:VERB] Connecting to MUXS...
basicstation    | 2024-05-06 15:39:31.121 [S00:VERB] /app/config/reset.sh: Forked, waiting...
basicstation    | 2024-05-06 15:39:31.121 [S00:DEBU] execvp argv[0]: </app/config/reset.sh>
basicstation    | 2024-05-06 15:39:31.121 [S00:DEBU]        argv[1]: </dev/ttyACM0>
basicstation    | 2024-05-06 15:39:31.122 [S00:DEBU]        argv[2]: <0>
basicstation    | 2024-05-06 15:39:31.132 [S00:INFO] Process /app/config/reset.sh (pid=38) completed
basicstation    | 2024-05-06 15:39:31.132 [S00:INFO] Lora gateway library version: Version: 2.1.0;
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] [LGW sx1302] full_duplex=0 clksrc=0 lorawan_public=1
basicstation    | 2024-05-06 15:39:31.133 [S00:DEBU] SX130x txlut table (16 entries)
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  0:  rf_power=12 pa_gain=0 pwr_idx=15
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  1:  rf_power=13 pa_gain=0 pwr_idx=16
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  2:  rf_power=14 pa_gain=0 pwr_idx=17
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  3:  rf_power=15 pa_gain=0 pwr_idx=19
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  4:  rf_power=16 pa_gain=0 pwr_idx=20
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  5:  rf_power=17 pa_gain=0 pwr_idx=22
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  6:  rf_power=18 pa_gain=1 pwr_idx=1
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  7:  rf_power=19 pa_gain=1 pwr_idx=2
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  8:  rf_power=20 pa_gain=1 pwr_idx=3
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut  9:  rf_power=21 pa_gain=1 pwr_idx=4
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut 10:  rf_power=22 pa_gain=1 pwr_idx=5
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut 11:  rf_power=23 pa_gain=1 pwr_idx=6
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut 12:  rf_power=24 pa_gain=1 pwr_idx=7
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut 13:  rf_power=25 pa_gain=1 pwr_idx=9
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut 14:  rf_power=26 pa_gain=1 pwr_idx=11
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] SX1302 txlut 15:  rf_power=27 pa_gain=1 pwr_idx=14
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  RX/TX RF0:    904.3MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  RX    RF1:    905.3MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [mSF]   0:    903.9MHz rf=0 freq=-400.0 datarate=0
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [mSF]   1:    904.1MHz rf=0 freq=-200.0 datarate=0
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [mSF]   2:    904.3MHz rf=0 freq=  +0.0 datarate=0
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [mSF]   3:    904.5MHz rf=0 freq=+200.0 datarate=0
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [mSF]   4:    904.7MHz rf=0 freq=+400.0 datarate=0
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [mSF]   5:    904.9MHz rf=1 freq=-400.0 datarate=0
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [mSF]   6:    905.1MHz rf=1 freq=-200.0 datarate=0
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [mSF]   7:    905.3MHz rf=1 freq=  +0.0 datarate=0
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  [STD]   8:    904.6MHz rf=0 freq=+300.0 datarate=8 bw=6 Explicit header
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO]  channel 9 disabled
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] Station device: usb:/dev/ttyACM0 (PPS capture enabled)
basicstation    | 2024-05-06 15:39:31.133 [S00:INFO] [lgw_com_open:88] Opening USB communication interface
basicstation    | 2024-05-06 15:39:31.134 [S00:INFO] [lgw_usb_open:162] INFO: Configuring TTY
basicstation    | 2024-05-06 15:39:31.134 [S00:INFO] [lgw_usb_open:171] INFO: Flushing TTY
basicstation    | 2024-05-06 15:39:31.134 [S00:INFO] [lgw_usb_open:180] INFO: Setting TTY in blocking mode
basicstation    | 2024-05-06 15:39:31.134 [S00:INFO] [lgw_usb_open:195] INFO: Connect to MCU
basicstation    | 2024-05-06 15:39:31.134 [S00:INFO] [lgw_usb_open:204] INFO: Concentrator MCU version is V01.00.00
basicstation    | 2024-05-06 15:39:31.134 [S00:INFO] [lgw_usb_open:211] INFO: MCU status: sys_time:328141646 temperature:38.6oC
basicstation    | 2024-05-06 15:39:31.136 [S00:INFO] [lgw_connect:1192] chip version is 0x12 (v1.2)
basicstation    | 2024-05-06 15:39:31.051 [AIO:DEBU] [5] HTTP connection shutdown...
basicstation    | 2024-05-06 15:39:31.052 [CUP:INFO] Interaction with CUPS done (no updates) - next regular check in 1d
basicstation    | 2024-05-06 15:39:31.086 [TCE:VERB] Connected to MUXS.
basicstation    | 2024-05-06 15:39:31.120 [S2E:WARN] Unknown field in router_config - ignored: protocol (0xFD309030)
basicstation    | 2024-05-06 15:39:31.120 [S2E:WARN] Unknown field in router_config - ignored: regionid (0xE6FFB211)
basicstation    | 2024-05-06 15:39:31.120 [RAL:INFO] Region plan hwspec 'sx1301/1' mapped to 1 children 'sx1301/1'
basicstation    | 2024-05-06 15:39:31.120 [RAL:INFO] Parent sending 640 bytes of JSON sx1301conf to child (0)
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO] Configuring for region: US915 -- 902.0MHz..928.0MHz
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR0  SF10/BW125 
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR1  SF9/BW125 
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR2  SF8/BW125 
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR3  SF7/BW125 
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR4  SF8/BW500 
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR5  undefined
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR6  undefined
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR7  undefined
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR8  SF12/BW500 (DN only)
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR9  SF11/BW500 (DN only)
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR10 SF10/BW500 (DN only)
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR11 SF9/BW500 (DN only)
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR12 SF8/BW500 
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR13 SF7/BW500 (DN only)
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR14 undefined
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   DR15 undefined
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   TX power: 26.0 dBm EIRP
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   JoinEUI list: 10 entries
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
basicstation    | 2024-05-06 15:39:31.120 [S2E:INFO]   Dev/test settings: nocca=0 nodc=0 nodwell=0
basicstation    | 2024-05-06 15:39:33.410 [S00:INFO] [timestamp_counter_mode:431] using legacy timestamp
basicstation    | 2024-05-06 15:39:33.697 [S00:INFO] Concentrator started (2s563ms)
basicstation    | 2024-05-06 15:39:40.008 [SYN:INFO] First PPS pulse acquired
basicstation    | 2024-05-06 15:39:40.008 [SYN:INFO] Obtained initial PPS offset (439378) - starting timesync with LNS
asked 2 years ago261 views
4 Answers
0
Accepted Answer

Thanks guys, the root issue was actually that I was using AWS CLI 1.2 and needed to upgrade to V2. After that, I did get the issue with string vs integer and resolved. My gateway is now beaconing.

answered 2 years ago
0

Hi! Is this on an existing Gateway or are you getting this error while creating a new Gateway? If you are trying to enable beaconing on an existing Gateway, please note that this functionality is only available when creating a new Gateway. If the latter, please post the exact command you are issuing to create the Gateway and beaconing parameters.

Cheers.

AWS
answered 2 years ago
  • { "Description": "My LoRaWAN gateway", "LoRaWAN": { "Beaconing": { "DataRate": 8, "Frequencies": ["923300000","923900000"] }, "GatewayEui": "a1b2c3d4567890ab", "JoinEuiFilters": [ [ "a272bd6167b90000", "a272bd6167b900ff" ] ], "NetIdFilters": ["000000", "000001"], "RfRegion": "US915", "SubBands": [2] }
    }

    And the command:

    aws iotwireless create-wireless-gateway --name "Beaconing Gateway" --cli-input-json file://beacon.json

0

Hi. The beacon.json you've pasted produces the following error:

Parameter validation failed:
Invalid type for parameter LoRaWAN.Beaconing.Frequencies[0], value: 923300000, type: <class 'str'>, valid types: <class 'int'>
Invalid type for parameter LoRaWAN.Beaconing.Frequencies[1], value: 923900000, type: <class 'str'>, valid types: <class 'int'>

If you remove the quotes around the frequencies, your gateway should be created. No problem for me at least, and no sign of the error your original question mentioned.

you can see it doesn't appear to receive any bcning router_config, as I get no log messages regarding it

To see the router_config message, you need to enable XDEBUG logging in station.conf. Example log message:

2024-05-07 00:54:45.421 [AIO:XDEB] [4|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],[-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,"r
2024-05-07 00:54:45.421 [AIO:XDEB] [4|WS] . adio":0,"if":300000,"bandwidth":500000,"spread_factor":8},"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":{"e
2024-05-07 00:54:45.421 [AIO:XDEB] [4|WS] . nable":true,"radio":1,"if":0}}],"protocol":0,"regionid":0,"bcning":{"DR":8,"layout":[3,9,19],"freqs":[923300000,923900000,924500000,925100000,925700000,926300000,926900000,927500000]}}
AWS
EXPERT
answered 2 years ago
0

Thanks Greg! I was just coming back to comment on this same thing. I have reported the issue with the documentation and it should be addressed soon.

Cheers!

AWS
answered 2 years 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.