# Questions about BEACON STATE LOST

**URL:** <https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144>\
**Category:** End Devices (Nodes)\
**Tags:** guide\
**Created:** [November 25, 2022, 7:55am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144 "2022-11-25T07:55:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 25, 2022, 7:55am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/1 "2022-11-25T07:55:55Z")

</div>

Problem with Class B in LoRaWAN1.0.3 SDK.

This problem has been bothering me for a long time. I hope you can give me some advice . I used AU915. I don’t know if the problem is with the gateway or the server Settings or the End-device.

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/7/87f32c9c9792ab062099aa08fae23938ee9f447b.jpeg)  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/c/a/ca1d1d7ab1e7fb9c99429b0f5ac5747127260e4f.png)

---

<div class="post-metadata">

**Author:** ![jreiss](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jreiss/32/46529_2.png) [@jreiss](https://www.thethingsnetwork.org/forum/u/jreiss)\
**Post date:** [November 27, 2022, 9:57pm UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/2 "2022-11-27T21:57:47Z")

</div>

Do you have any specific questions?  
Have you made progress since first post?

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 28, 2022, 1:41am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/3 "2022-11-28T01:41:14Z")

</div>

Thank you for your response. I have read the relevant data and it seems that nothing has changed when the Settings of frequency and DR Are default. Not much progress. Is this problem related to the GPS of the gateway?

---

<div class="post-metadata">

**Author:** ![jreiss](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jreiss/32/46529_2.png) [@jreiss](https://www.thethingsnetwork.org/forum/u/jreiss)\
**Post date:** [November 28, 2022, 7:35am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/4 "2022-11-28T07:35:32Z")

</div>

GPS is normally required for a gateway to transmit beacons.

Do you have a gateway?  
Does it have GPS?  
Is it configured to emit beacons?

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 28, 2022, 8:00am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/5 "2022-11-28T08:00:38Z")

</div>

Yes I have the gateway, I also read the SRV\_MAC\_DEVICE\_TIME\_ANS return the time is also normal.

```auto
            gpsEpochTime.Seconds = ( uint32_t )payload[macIndex++];
            gpsEpochTime.Seconds |= ( uint32_t )payload[macIndex++] << 8;
            gpsEpochTime.Seconds |= ( uint32_t )payload[macIndex++] << 16;
            gpsEpochTime.Seconds |= ( uint32_t )payload[macIndex++] << 24;
            gpsEpochTime.SubSeconds = payload[macIndex++];

          // Convert the fractional second received in ms
          // round( pow( 0.5, 8.0 ) * 1000 ) = 3.90625
          gpsEpochTime.SubSeconds = ( int16_t )( ( ( int32_t )gpsEpochTime.SubSeconds * 1000 ) >> 8 );

          // Copy received GPS Epoch time into system time
         sysTime = gpsEpochTime;
	     printf("sysTime:%lld",sysTime);

```

- Is the time here coming from the gateway or the server?

---

<div class="post-metadata">

**Author:** ![jreiss](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jreiss/32/46529_2.png) [@jreiss](https://www.thethingsnetwork.org/forum/u/jreiss)\
**Post date:** [November 28, 2022, 8:03am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/6 "2022-11-28T08:03:09Z")

</div>

MAC commands are authored by the network server. DeviceTimeAns is a MAC command.

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 28, 2022, 8:04am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/7 "2022-11-28T08:04:37Z")

</div>

So first of all, I need to make sure that the GPS of the gateway is working, right?

---

<div class="post-metadata">

**Author:** ![jreiss](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jreiss/32/46529_2.png) [@jreiss](https://www.thethingsnetwork.org/forum/u/jreiss)\
**Post date:** [November 28, 2022, 8:12am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/8 "2022-11-28T08:12:41Z")

</div>

Yes. Gateway logs should be clear is GPS and beacons are functioning.

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 28, 2022, 8:26am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/9 "2022-11-28T08:26:12Z")

</div>

- I looked at the gateway log. Here’s the screenshot.  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/b/4/b484375d73d7a9fd6c422dfdf6ae91c1acd01c71.png)

---

<div class="post-metadata">

**Author:** ![jreiss](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jreiss/32/46529_2.png) [@jreiss](https://www.thethingsnetwork.org/forum/u/jreiss)\
**Post date:** [November 28, 2022, 8:46am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/10 "2022-11-28T08:46:41Z")

</div>

Nice screenshot.

What do you see is or isn’t happening?  
Is the gateway configured to use GPS and emit beacons?

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 28, 2022, 9:15am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/11 "2022-11-28T09:15:12Z")

</div>

It seems that the GPS doesn’t work, I asked the gateway staff, I re-upgraded the firmware of the gateway, but it still seems to have the same effect. This is a screenshot of the new gateway log.

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/0/d0a0ba6f9a6c73b73b82fd73d7c0faa6e928f3b8.png)

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/b/f/bf1924c79b884478fbd72d4281d45c08cc703681.png)

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/5/f/5f0036f5933a43107aea41b011e47731efbfc30c.png)

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 28, 2022, 10:28am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/12 "2022-11-28T10:28:57Z")

</div>

Also make sure the gateway is configured to transmit beacons. TTN provided configs do not switch it on (and by default it is off).

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 29, 2022, 1:32am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/13 "2022-11-29T01:32:35Z")

</div>

I do not seem to find the switch of bencon transmission in the gateway configuration interface.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 29, 2022, 7:18am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/14 "2022-11-29T07:18:53Z")

</div>

It is a keyword : value pair in the local\_conf.json or global\_conf.json file.

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 29, 2022, 8:11am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/15 "2022-11-29T08:11:04Z")

</div>

This is the global conf.json I downloaded from TTN.

```auto
{
  "SX1301_conf": {
    "lorawan_public": true,
    "clksrc": 1,
    "antenna_gain": 0,
    "radio_0": {
      "enable": true,
      "type": "SX1257",
      "freq": 917200000,
      "rssi_offset": -166,
      "tx_enable": true,
      "tx_freq_min": 915000000,
      "tx_freq_max": 928000000
    },
    "radio_1": {
      "enable": true,
      "type": "SX1257",
      "freq": 917900000,
      "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": "",
    "server_address": "au1.cloud.thethings.network",
    "serv_port_up": 1700,
    "serv_port_down": 1700,
    "servers": [
      {
        "gateway_ID": "",
        "server_address": "au1.cloud.thethings.network",
        "serv_port_up": 1700,
        "serv_port_down": 1700,
        "serv_enabled": true
      }
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 29, 2022, 8:36am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/16 "2022-11-29T08:36:59Z")

</div>

Do you see anything regarding beacons in that file? Probably not as I wrote yesterday. So you need to modify it to enable beacons.

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [November 29, 2022, 9:06am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/17 "2022-11-29T09:06:52Z")

</div>

Did you turn on beacon global\_conf.json? I can compare. Now the problem is that I can’t seem to find the gateway beacon switch.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 30, 2022, 11:11pm UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/18 "2022-11-30T23:11:27Z")

</div>

You could try googling, took me 5 minutes to find example global\_conf.json files with beacon settings. Try something like “beacon”: true, in the gateway\_conf part. If that doesn’t work there are other settings to try, check for instance the example at [packet\_forwarder/global\_conf.json.US902.beacon at master · Lora-net/packet\_forwarder · GitHub](https://github.com/Lora-net/packet_forwarder/blob/master/lora_pkt_fwd/cfg/global_conf.json.US902.beacon) for beacon related settings.

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [December 1, 2022, 12:48am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/19 "2022-12-01T00:48:05Z")

</div>

Thank you very much, this lets me know it’s not the End-device code’s fault. I can’t use Google because of restrictions, so I have limited access to information. Thanks again.

---

<div class="post-metadata">

**Author:** ![orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/orange_zouxiangcheng/32/35697_2.png) [@orange\_zouxiangcheng](https://www.thethingsnetwork.org/forum/u/orange_zouxiangcheng)\
**Post date:** [December 1, 2022, 5:52am UTC](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144/20 "2022-12-01T05:52:39Z")

</div>

This is the gateway’s generate-config.sh file for beacon Settings. After I changed it, nothing seems to have changed.

```auto

	###Beacon Related
	json_add_int "beacon_period" "32"
	json_add_int "beacon_freq_hz" "923300000"
    json_add_int "beacon_freq_nb" "8"
    json_add_int "beacon_freq_step" "600000"     
	json_add_int "beacon_datarate" "8"
	json_add_int "beacon_bw_hz" "125000"	
	json_add_int "beacon_power" "14"
	json_add_int "beacon_infodesc" "0"	
	json_add_int	"time_interval" "`uci -q get gateway.general.stat`"

```

[Next page](https://www.thethingsnetwork.org/forum/t/questions-about-beacon-state-lost/60144.md?page=2)
