# Strange behavior on US915

**URL:** <https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301>\
**Category:** TTKG - The Things Kickstarter Gateway\
**Created:** [June 20, 2019, 5:53am UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301 "2019-06-20T05:53:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![disk91](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/disk91/32/35863_2.png) [@disk91](https://www.thethingsnetwork.org/forum/u/disk91)\
**Post date:** [June 20, 2019, 5:53am UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/1 "2019-06-20T05:53:26Z")

</div>

One information if someone have the same issue =\> when debugging on US915 with a EU868 gateway around both gateway capture the traffic… as a consequence it is a mess as the device is registered twice on TTN and downlink not necessary goes to the right gateway. The use of an attenuator fixed it.

One question:

- Since 2 days have an issue: I’m joining network (US915). then I try to do uplink with ack to get downlink and adr. I’m seing the message uplink from the gateway page  
 ![04](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/e/de7d5b3d535e0dbd1e7c38ee0dfde9a81dde4dce.png)
- but i don’t see it in the Device Data page  
 ![img](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/5/d5e46e669d7e0a5c111e753dc604d3a873a3d3d4.png)
- I also not see the Downlink response (and I do not get downlink response)

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [June 22, 2019, 6:41am UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/2 "2019-06-22T06:41:26Z")

</div>

> [@disk91](#):
>
> I’m joining network (US915)

According to [the documentation](https://www.thethingsnetwork.org/docs/lorawan/address-space.html#device-address-assignment) your `0x26012EBC` DevAddr seems to indicate it is still being assigned an address for the EU-region:

> Within TTN, we assign device address prefixes to “regions” (for example, device addresses in the `eu` region start with `0x2601`).

I don’t know if the documentation is current, and if it matters, but my guess would be that the gateway settings in TTN Console still use the EU router? Or the node’s configuration in TTN Console is still set to use the EU handler?

Maybe people from different regions can post some prefixes here.

> [@disk91](#):
>
> as a consequence it is a mess as the device is registered twice on TTN

Do you mean it’s configured in TTN Console twice? That’s easily solved by removing one?

> [@disk91](#):
>
> and downlink not necessary goes to the right gateway

In case you did not know: devices do not send their uplinks to a specific gateway. Instead, they just transmit, and zero or more gateways might then receive that uplink and forward it to their network. If the network recognizes the device that sent the uplink (here: TTN; any other network will just drop the packet), then it determines which gateway is used for a downlink based on things like signal strength and duty cycle of the gateways that received the uplink.

A network will never make a gateway transmit a downlink if said gateway did not receive the uplink.

All said: unplug that EU868 gateway?

---

<div class="post-metadata">

**Author:** ![disk91](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/disk91/32/35863_2.png) [@disk91](https://www.thethingsnetwork.org/forum/u/disk91)\
**Post date:** [June 22, 2019, 10:14am UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/3 "2019-06-22T10:14:00Z")

</div>

> [@arjanvanb](#):
>
> > as a consequence it is a mess as the device is registered twice on TTN
> 
> Do you mean it’s configured in TTN Console twice? That’s easily solved by removing one?

Forget this part it was an information, not a question : When you have 2 gateways around, one on US915 and another on EU868, both are capturing the traffic and respond with a joinAccept on different frequencies due to the signal straight too high for a correct frequency isolation.

> [@](#):
>
> According to [the documentation](https://www.thethingsnetwork.org/docs/lorawan/address-space.html#device-address-assignment) your `0x26012EBC` DevAddr seems to indicate it is still being assigned an address for the EU-region:

Thank you for this element. The device has been registered on EU868 but now I don’t see it on the EU868 Gateway traffic and the join accept is coming from the US915 gateway.  
The gateway is configured like this:  
 ![47](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/7/b/7b4c07c25bae188e16fa9f6f296786fe7a80e702.png)  
The gateway itself is connected on:  
“server\_address”: “router.us.thethings.network”,  
In the device itself I did not saw any setting related to location in the console. The device is setup (by TTN) to the corresponding address by I do not see how to clear it:  
 ![25](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/b/3/b3faeab4b7c8783c7d8a599aa5c35b974c99a2f6.png)

If it comes from the device adresse How do we manage device moving from a zone to another zone properly ?

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [June 22, 2019, 10:45am UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/4 "2019-06-22T10:45:06Z")

</div>

> [@disk91](#):
>
> When you have 2 gateways around, one on US915 and another on EU868, both are capturing the traffic and respond with a joinAccept on different frequencies due to the signal straight too high for a correct frequency isolation.

If both respond with a Join Accept, then apparently the network is indeed segregating the network for different regions, boldly forwarding the handling to multiple regions as it’s not expecting multiple regions to handle the same uplink. (I’d expect the Join Accepts to have different values for DevAddr and secret keys then.)

When moving the device further away from the gateways you might see that only one is receiving the packets?

> [@disk91](#):
>
> In the device itself I did not saw any setting related to location in the console.

I was wrong about the devices; it’s the applications that have a setting for the handler, while in TTN Console devices should then be registered to a single application:

 ![TTN Console](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/3/f3d1daeba39b7a2014bcdbecbb30c1d65924d085.png)

> [@disk91](#):
>
> If it comes from the device adresse How do we manage device moving from a zone to another zone properly ?

That has indeed not been implemented. Even within the single world-wide TTN community network, I’d assume this needs some roaming just like when it would be different networks, but as far as I know, roaming has not been specified yet, let alone implemented.

> [@disk91](#):
>
> The device is setup (by TTN) to the corresponding address by I do not see how to clear it

You cannot clear the DevAddr; a new OTAA Join will get you a new DevAddr.

I don’t know if _changing_ the handler for an application is properly supported. _Maybe_ deleting and re-creating is a better option.

---

<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:** [June 22, 2019, 10:54am UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/5 "2019-06-22T10:54:52Z")

</div>

> [@arjanvanb](#):
>
> I don’t know if _changing_ the handler for an application is properly supported.

Moving applications to a different region is not supported, but you can move devices from one application to another if required.  
Check [this message](https://www.thethingsnetwork.org/forum/t/the-application-is-down/26451/5) for a reference to a script to move devices between applications.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [June 22, 2019, 11:17am UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/6 "2019-06-22T11:17:53Z")

</div>

> [@arjanvanb](#):
>
> If both respond with a Join Accept, then apparently the network is indeed segregating the network for different regions, boldly forwarding the handling to multiple regions as it’s not expecting multiple regions to handle the same uplink.

But, wait: even if the above is true, then only one of the regions would have an application that knows about the device? Or did you create multiple applications (for different regions) that know about the very same OTAA device, and use the same DevEUI, AppEUI and AppKey? Only when all match, multiple handlers could accept the OTAA Join?

(When you cannot change the keys in the device, then be sure to read [How can I reuse hardcoded AppEUI and AppKey after I deleted an application? - #4 by htdvisser](https://www.thethingsnetwork.org/forum/t/how-can-i-reuse-hardcoded-appeui-and-appkey-after-i-deleted-an-application/5113/4) before deleting anything.)

---

<div class="post-metadata">

**Author:** ![disk91](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/disk91/32/35863_2.png) [@disk91](https://www.thethingsnetwork.org/forum/u/disk91)\
**Post date:** [June 22, 2019, 12:10pm UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/7 "2019-06-22T12:10:59Z")

</div>

The reason why the two gateway got the message is just the proximity … forget that point in fact. It was just to share my experience if someone will be in the same situation with different gateways, it can create a mess on the communication …

I cleared the device =\> by creating a new one …  
I’ll create a new App, I did not know we have that feature at app level. And I will let you know. (the strange thing is : is was working past weekend)

Currently the US915 gateway is not able to be seen by the US router since 51 minutes. As my other gateways are working on EU area, I assume you have something down on US server, I’ll wait the link to be re-established.

---

<div class="post-metadata">

**Author:** ![disk91](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/disk91/32/35863_2.png) [@disk91](https://www.thethingsnetwork.org/forum/u/disk91)\
**Post date:** [June 22, 2019, 12:29pm UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/8 "2019-06-22T12:29:43Z")

</div>

Good news it’s working better  
 ![07](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/c/6cf27815b37debf9a05a746a1620588b7c316f9f.png)

Now I have a downlink response.  
and my sensors is working normally.

Thank you for the help !

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [June 22, 2019, 1:17pm UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/9 "2019-06-22T13:17:44Z")

</div>

> [@disk91](#):
>
> The reason why the two gateway got the message is just the proximity … forget that point in fact.

Yeah, I saw you mentioning “forget that” earlier, but: you’ve got a `0x2602` DevAddr now, so I’d assume it was really related. 😉

(As an aside" “both” in “both respond with a Join Accept” referred to regions/handlers, not necessarily gateways.)

> [@disk91](#):
>
> I’ll create a new App

For future reference: did you indeed create a new one, and did see which handler the previous one was using? And has there always been just a single application (at least: one that knew this device)?

---

<div class="post-metadata">

**Author:** ![disk91](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/disk91/32/35863_2.png) [@disk91](https://www.thethingsnetwork.org/forum/u/disk91)\
**Post date:** [June 22, 2019, 8:38pm UTC](https://www.thethingsnetwork.org/forum/t/strange-behavior-on-us915/27301/10 "2019-06-22T20:38:25Z")

</div>

> [@arjanvanb](#):
>
> For future reference: did you indeed create a new one, and did see which handler the previous one was using? And has there always been just a single application (at least: one that knew this device)?

I’ve created a new one on ttn-handler-us-west the original on was on ttn-handler-eu. The application was created specifically for this device. The device connect for the first time to this application from US915. The gateway use [router.us](http://router.us)

Previously, the application was on ttn-handler-eu, the gateway configured on US915 frequency. At first the gateway were connected to router.EU. In this configuration the device has communicated for the first time. Then the gateway was connected to [router.US](http://router.US).
