Hey all.
At the risk that I am somehow missing the obvious or sounding completely silly I would like to share my experience trying to get a Gateway and a Lilygo working in V3.
Please read this as informational and not as a rant.
I have basic TTN knowledge, I know how how to build my own nodes and flash them with Arduino or Platform.io and mess with the code a bit.
However I am by no means a pro but make that up with my google skills and a plenty of tips from the helpful people in this community.
The first part was actually easy. Getting into the new console and setting up the gateway that I have here for V3 took less than 5 minutes. It is a Lorrier LR2. From there I could easily register a new gateway and insert the address eu1.cloud.thethings.network.
Succes. The gateway now forwards to both V2 and V3. I did however have to check in the slack community to know if I can actually get away with this or that I cause strange side effects. @jpmeijers was able to tell me that this is ok. This is not documented it seems so if anyone finds this thread: Yes it is ok to configure a poly packet forwarder to forward to both backends at the same time:
I also have a working setup for pax counter in Visual Studio Code so I thought it would be a good time now to reflash a Lilygo by just changing the parameters from a node that I have already working in V2.
Next step, register a node in the console.
Click applications, and then
Now I’m slightly lost because what do I put here?
The docs didn’t really help me here so I just an Application ID that described my node “lily1-v3” and as Application name I choose “TTN Mapper” because that is what I want to do with it.
After pressing “Create application” I soon realised this was a mistake because in the next screen I should now add a node “Add end device” but I already named the Application ID with the name of my node.
No problem, just rename the Application ID, right? Not possible.
Go back, delete the application and just start a new one. Delete is not possiblele or I cannot find it. I guess this follows later.
Start again, create an application with an appropriate name “ttn-mappers”.
Now the rabbit hole begins.
A dropdown! Nice.
I click it and the list is long with brands that I never heard of which if fine but sadly no TTGO or anything like that.
I go for “Other…” and am linked to the manual config where the rabbit hole deepens.
For testing and dev I really like ABP without frame checks but I’ve also read that this is not the preferred way and since the pax counter project is actually working quite well I selected OTAA.
Next I am greeted with a choice that I didn’t know existed. Choose your LoRaWan version.
But wait! There is help hover thingy.
“The LoRaWAN version for your end device should be provided by the manufacturer in a datasheet”.
It is at this point that I decide that I do not have all day to go find the datasheets and dig through them hoping that I find the desired version. It is not like I’m configuring lithium batteries that will set my house on fire if choose a wrong parameter so I choose the highest one in the hope that my Lilygo board is advanced enough.
The Application Server address and the Join Server address are refilled so I press Start.
I choose ttgo-v3-1 for End device ID
Now what? There is no button next to the JoinEUI so let’s look at the help pop-up/
???
Contact the manufacturer? No way, that cannot be the solution. Now what?
The docs have the solution:
In the section about OTAA scroll down a bit more and find this:
All zeros it is then.
Next hurdle, the DevEUI
No generate button. Help states: “Contact the manufacturer or reseller”.
I don’t think so.
I decided to make one myself my taking the DevEUI of one of my other nodes in the V2 console and change two of the numbers on the far right to make it unique.
xxxxxxxxxxxxFAFA into xxxxxxxxxxxxF9EA
Now it is unique - I hope
Give it a name and go to the next screen.
“Regional Parameters version”
No idea and “Contact the manufacturer”
I just choose PHY V1.1 REV B for no other reason than that it looks better than REV A to me.
LoRTaWAN capabilities class B seems ok to me.
Next screen.
This one is easy, I can just generate keys here and press
(don’t worry, I’m not actually using these keys in real life)
By the way, as a result of my testing for this I now have two End devices in this application without a way to delete one
Next step.
Go to visual studio code and insert the data in the sketch in loraconf.h
From the console I can easily copy DEVEUI end APPKEY.
But what to put in APPEUI?
I found earlier today in the docs (see above) that I can put all zeros there, or to quote @jpmeijers
“AppEUI defaults to all 00’s on V3, where as on V2 it was generated from one of TTI’s EUI blocks”
Done. Upload sketch, observe result.]
No join but I do see a bunch of errors.
I am yet to figure out what is wrong here. by now it is dinner time.
I hope this is useful to anyone, maybe to improve the docs or for reference.
Any tips to me why I have no join now are welcome!
Please remember, if I sound n00b it is because I actually am