# Problem getting my first node working

**URL:** <https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795>\
**Category:** LMIC\
**Created:** [April 15, 2022, 3:38am UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795 "2022-04-15T03:38:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maubaum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/maubaum/32/35697_2.png) [@maubaum](https://www.thethingsnetwork.org/forum/u/maubaum)\
**Post date:** [April 15, 2022, 3:38am UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795/1 "2022-04-15T03:38:54Z")

</div>

Hi, I’m new to LoraWan and I’m having problems to create my first node.  
I´m using the library [LMIC-node](https://github.com/lnlp/LMIC-node)

I´m not receiving errors in serial monitor, however I’m not reveiving data in the console.  
Below is the serial monitor:

LMIC-node

Device-id: baum-device-1  
LMIC library: MCCI  
Activation: OTAA  
Interval: 60 seconds

000000006473: Event: EV\_JOINING  
000000006525: Event: EV\_TXSTART

000000006618: doWork job started  
000000408280: Event: EV\_JOIN\_TXCOMPLETE  
000000447891: Event: EV\_TXSTART  
000000828243: Event: EV\_JOIN\_TXCOMPLETE  
000001237402: Event: EV\_TXSTART  
000001639153: Event: EV\_JOIN\_TXCOMPLETE  
000001664196: Event: EV\_TXSTART  
000002044548: Event: EV\_JOIN\_TXCOMPLETE  
000002659962: Event: EV\_TXSTART  
000003061715: Event: EV\_JOIN\_TXCOMPLETE  
000003103782: Event: EV\_TXSTART  
000003484136: Event: EV\_JOIN\_TXCOMPLETE

000003756618: doWork job started  
000004078319: Event: EV\_TXSTART  
000004480068: Event: EV\_JOIN\_TXCOMPLETE  
000004501980: Event: EV\_TXSTART  
000004882333: Event: EV\_JOIN\_TXCOMPLETE  
000005665922: Event: EV\_TXSTART  
000006067672: Event: EV\_JOIN\_TXCOMPLETE  
000006102419: Event: EV\_TXSTART  
000006482771: Event: EV\_JOIN\_TXCOMPLETE  
000007264902: Event: EV\_TXSTART

000007506618: doWork job started  
000007666653: Event: EV\_JOIN\_TXCOMPLETE  
000007670471: Event: EV\_TXSTART  
000008050824: Event: EV\_JOIN\_TXCOMPLETE  
000008987912: Event: EV\_TXSTART  
000009389662: Event: EV\_JOIN\_TXCOMPLETE  
000009392037: Event: EV\_TXSTART  
000009772388: Event: EV\_JOIN\_TXCOMPLETE  
000010710969: Event: EV\_TXSTART  
000011112719: Event: EV\_JOIN\_TXCOMPLETE  
000011156044: Event: EV\_TXSTART

Seems to be the same problem that @ [Arnaudroussac](https://www.thethingsnetwork.org/forum/u/Arnaudroussac) faced.

Some usefull information:

I’m using a nodemcu esp8266 as a node.  
In TTN, my end device is OOTA, and frequency plan “United States 902-928 Mhz, FSB 2” and LoraWan specification 1.0.3

In region I uncommented -D CFG\_us915=1

I uncommented the correct board (nodemcuv2) and commented the line that contain “board selection guard”.

I created the file lorawan-keys.h and filled with the correct OTAA\_DEVEUI, OTAA\_APPKEY and OTAA\_APPEUI (the APPEUI is all zero).

The gateway is 1 meter distance, and is conected.

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![wolfp](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/wolfp/32/45304_2.png) [@wolfp](https://www.thethingsnetwork.org/forum/u/wolfp)\
**Post date:** [April 15, 2022, 7:01am UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795/2 "2022-04-15T07:01:26Z")

</div>

> [@maubaum](#):
>
> The gateway is 1 meter distance,

This maybe a little bit to close. Try 5m or more or a wall in between.

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [April 15, 2022, 7:29am UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795/3 "2022-04-15T07:29:42Z")

</div>

> [@maubaum](#):
>
> I´m using the library [LMIC-node](https://github.com/lnlp/LMIC-node)

Hi,

FYI: LMIC-node is an (example) application, it is not a library. 🙂

Did you wire your hardware _exactly_ as described in the BSF file (`bsf_nodemcuv2.h`) and double-checked?

To begin, use LMIC-node with all settings to their default values (except for region if your region is not EU868).  
Including device-id. Just leave it to its default. This will make it easier to verify in the log that the correct board was selected. Once everything works you can start tweaking things to your liking.

> [@maubaum](#):
>
> In region I uncommented -D CFG\_us915=1

I assume that you did comment-out the default `-D CFG_eu868=1`, right?

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [April 22, 2022, 8:58pm UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795/4 "2022-04-22T20:58:16Z")

</div>

> [@maubaum](#):
>
> Can anyone help me?

You got instant response with suggestions and questions from other users more than a week ago but you did not respond.

FYI: As a general rule on the forum, it is commonly not appreciated when you do not respond to users who make effort to help you.

---

<div class="post-metadata">

**Author:** ![maubaum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/maubaum/32/35697_2.png) [@maubaum](https://www.thethingsnetwork.org/forum/u/maubaum)\
**Post date:** [April 30, 2022, 12:15pm UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795/5 "2022-04-30T12:15:17Z")

</div>

Hi @wolfp , I tried 5+ meters away from gtw. Unfortunatelly didn’t work.  
I was wondering if it’s it’s not working because my TTN gtw is a 1ch.

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [April 30, 2022, 12:27pm UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795/6 "2022-04-30T12:27:00Z")

</div>

> [@maubaum](#):
>
> I was wondering if it’s it’s not working because my TTN gtw is a 1ch.

Yes, unfortunately. Single channel devices are not LoRaWAN gateways. You will need to use a LoRaWAN compliant gateway instead.

See: [Single Channel Packet Forwarders (SCPF) are obsolete and not supported](https://www.thethingsnetwork.org/forum/t/single-channel-packet-forwarders-scpf-are-obsolete-and-not-supported/31117)

---

<div class="post-metadata">

**Author:** ![maubaum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/maubaum/32/35697_2.png) [@maubaum](https://www.thethingsnetwork.org/forum/u/maubaum)\
**Post date:** [April 30, 2022, 12:35pm UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795/7 "2022-04-30T12:35:03Z")

</div>

> [@bluejedi](#):
>
> Did you wire your hardware _exactly_ as described in the BSF file (`bsf_nodemcuv2.h`) and double-checked?

Yes, now I triple checked the _bsf\_nodemcuv2.h_ 😉  
Yes, I added a comment in -D CFG\_eu868=1. Only -D CFG\_us915=1 is uncommented.

Regarding device-id I changed ABP\_DEVICEID to “baum-device-2”. Are you refering to it?

I found 2 errors warned by VSCode in c\_cpp\_properties.json:  
- in configuration.includePath VCCode couldn’t find …PlatformIO/Projects/LMIC-node-main/include  
- in configuration.browse.path the same problem above.

Thanks a lot an sorry for the response delay! 🙏

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [April 30, 2022, 12:47pm UTC](https://www.thethingsnetwork.org/forum/t/problem-getting-my-first-node-working/56795/8 "2022-04-30T12:47:01Z")

</div>

> [@maubaum](#):
>
> I found 2 errors warned by VSCode in c\_cpp\_properties.json:
> 
> - in configuration.includePath VCCode couldn’t find …PlatformIO/Projects/LMIC-node-main/include
> - in configuration.browse.path the same problem above.

Those warnings can be ignored. Your issue is caused by not using a proper LoraWAN gateway.
