# Can't join network, only see Accept join-request

**URL:** <https://www.thethingsnetwork.org/forum/t/cant-join-network-only-see-accept-join-request/53055>\
**Category:** Pycom\
**Created:** [November 10, 2021, 1:20pm UTC](https://www.thethingsnetwork.org/forum/t/cant-join-network-only-see-accept-join-request/53055 "2021-11-10T13:20:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yadomi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/yadomi/32/40235_2.png) [@yadomi](https://www.thethingsnetwork.org/forum/u/yadomi)\
**Post date:** [November 10, 2021, 1:20pm UTC](https://www.thethingsnetwork.org/forum/t/cant-join-network-only-see-accept-join-request/53055/1 "2021-11-10T13:20:18Z")

</div>

Hi,

I have a Lopy with Pysense 2.x and I’m trying to connect to TTN. However, I only get the “Accept join-request” in the **Live Data** tab of TTN Console of my end device.

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

Here is the code I’ve been using so far:

```auto
pycom.heartbeat(False)
pycom.rgbled(0x111100) # Yellow

lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868)

app_eui = ubinascii.unhexlify('1EA96CDF138F07DF')
app_key = ubinascii.unhexlify('4C8EB51FF05C97D8FA49C2C1465AA30F')

print('Joinning')
lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)

for wait_time in [2,4,6,8,10,12,14]:
    if not lora.has_joined():
        time.sleep(2)
        print("Waited {}s".format(wait_time))

if not lora.has_joined():
  pycom.rgbled(0x110000) # Red
  print("Can't join")
else:
  pycom.rgbled(0x001100) # Green
  print('Joinned !')

```

It never reach the join part:

```auto
Joinning
Waited 2s
Waited 4s
Waited 6s
Waited 8s
Waited 10s
Waited 12s
Waited 14s
Can't join

```

The `DevEUI` is correct, I got it from `binascii.hexlify(lora.mac()`. I’ve also tried by using a generated one from TTN and using it in my code with no success as well.

I’ve also tried using a zero-filled `AppEUI` with no luck.  
My `AppKey` is correct as well.

I’m in Europe, France and I’ve created my end device with thoses settings:

- Frequency plan: **Europe 863-870Mhz (SF9 for RX2 - recommended)**
- LoRaWAN version: **MAC V1.0.2** as specified [here](https://docs.pycom.io/gettingstarted/registration/lora/ttn/)
- Regional Parameters version: **PHY 1.0.2 REV A** (as specified in the same document above)

I can’t figure what’s not working, since there is no error or message to look for.

---

<div class="post-metadata">

**Author:** ![yadomi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/yadomi/32/40235_2.png) [@yadomi](https://www.thethingsnetwork.org/forum/u/yadomi)\
**Post date:** [November 11, 2021, 4:43pm UTC](https://www.thethingsnetwork.org/forum/t/cant-join-network-only-see-accept-join-request/53055/2 "2021-11-11T16:43:32Z")

</div>

Ok, look like I was just too far from the nearest gateway.

I was able to join and send a message by moving my lopy around with a battery. In the TTN Console it shows an SNR of -5.75 and an RSSI of -113 which confirm that the signal is very weak.

I thought there where more gateways in my area. Might needs to add my own 😃

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [November 14, 2021, 6:06am UTC](https://www.thethingsnetwork.org/forum/t/cant-join-network-only-see-accept-join-request/53055/3 "2021-11-14T06:06:42Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
