Problem with TTN stack V3

Here are screen of gateway and device in ttn where hour to see gateway receive but not application

Gateway
gw

and device (application)
application

i just see on my log server and nothing. Webhooks don’t send datas to my server and application in ttn v3 don’t see my device but gateway see it :upside_down_face:

Can you change to OTAA?

Because ABP comes with complications - like Frame Counter Resets - search the forum & read the documentation for details.

if i change for OTAA, all my arduino script will be the same and my php file too ?
at this time, i heva abp :

// define the activation method ABP or OTAA
#define ACT_METHOD_ABP

// show debug statements; comment next line to disable debug statements
#define DEBUG

/* **************************************************************

  • clefs TTN
  • *************************************************************/
    // LoRaWAN NwkSKey, network session key
    // This is the default Semtech key, which is used by the early prototype TTN
    // network.
    static const uint8_t PROGMEM NWKSKEY[16] = { xxxxxxxxxxxxxxxxx}; // Modifier les valeurs en fonction des infos de TTN

// LoRaWAN AppSKey, application session key
// This is the default Semtech key, which is used by the early prototype TTN
// network.
static const uint8_t PROGMEM APPSKEY[16] = { xxxxxxxxxxxxxxxxxxx }; // Modifier les valeurs en fonction des infos de TTN

// LoRaWAN end-device address (DevAddr)
static const uint32_t DEVADDR = 0xxxxxxx; // Modifier les valeurs en fonction des infos de TTN

do you have sample with OTAA ?

Where did you get the Arduino script from?

:thinking: @descartes Nick, This looks ancient! Johan and team have been telling people to not use the default Semtech keys (big security headache) for at least 4 if not 5+ years - suspect this goes back to the early original Semtech Neuchatel/Grenoble/IBM Zurich LMIC early releases (note French comments embedded) used when TTN started in 2015! Think I still have an old SX1301 demo system (closed/private test network) that had those embedded…

i founded on the net (arduino forum)

ok, so i must to look for a new arduino script. I am not good in english and i don’t find any script that i can adapt to my need
i am only a beekeeper and not a professional from lora :blush:

i use a new arduino code OTAA
My device send “joining”, i see on gateway but joining and no repsonse from ttn
I am lost, I no longer have any information from my hives and it is the most important time of the year. Thanks for your help

Which code? Do you mean Arduino library? If so, name & version?

Or do you mean the EUI’s & AppKey?

What made you change from a working v2 setup?
Which gateway do you have (brand, model, version)?
Did you take a device being used on a hive and try and change it for v3?

i use thethingnetwork library
i changed to V3 because on my ttn account, it was write : change for V3 bafore end of the year !
My gateway is a mikrotik
thanks for help

version of thethingnetwok librayry is 2.6.0 and this is the last version

That is for the Things Uno which is a totally different sort of device.

But you don’t have to change now, the most important time of year for your bees.

I asked for model & version, please try to provide the detail.

If you have 100 devices, do you have 99 that are still working?

My gateway :blush: MikroTik wAP LoRa8 kit for Europe, RBWAPR-2ND&R11E-LORA8

i have about 15 devices who works. The other must be connected quickly but i cant create devices on V2 !! it is th ereason i changed for V3

So you don’t need to change the 15 that are still working.

If you can use Visual Studio Code & PlatformIO, then I would use this:

or if you just want to use the Arduino IDE, then use the Library Manager to download the MCCI LoRaWAN LMIC library. Search the forum for help on configuring your ESP32 LoRa v2, I have not used that board so I don’t have immediate answers for that.

I am really very disappointed. I spent a lot of money on hardware because my script worked fine in V2 and ttn’s V3 destroys my work and nothing works anymore! I have about $ 3000 worth of hardware that no longer works. :rage: :rage:

Just so we are clear, I’m a volunteer with what appears to be an infinite supply of patience. I am not staff.

And you have $3000 worth of perfectly good kit and a “can’t do” attitude to getting it setup. If you want to use LoRaWAN, perhaps you could stop saying you aren’t in IT and just learn LoRaWAN like many others do.

As to the upgrade that “destroys your work”, v2 was built in the early days of LoRaWAN - the software is becoming harder to maintain in the face of increased traffic, upgraded specifications and original design decisions.

So 2½ years ago TTI designed & started on v3. They released it to us all end of January and told us clearly that v2 would be going read-only soon (originally April) and then turned off later in the year.

All of these servers that run TTN are funded by TTI - community users do not pay for the software development, server hardware or expertise in maintaining the systems.

So you’ve had use of a system for free that has given plenty of notice of what’s happening. So I’m sorry, but not sorry you’ve arrived at this state of affairs but all the information has been around for you to plan - you could have setup your devices on v2 before it went read-only (even if you didn’t physically have them) or you could have learnt how to setup for v3 earlier in the year.

I suspect if you have 100 hives and have spent $3000 on hardware that you are running a business, which is fine, but comes with some levels of personal responsibility to manage it’s affairs in a timely fashion.

If you believe you save money with these devices, then why not pay someone to create the firmware for you? Or invest in the time required to learn what you are doing with LoRaWAN - it’s not something you can just hack at and expect quick results.

As you must have got to a point where you originally setup your Arduino IDE and found some code and got the sensor code in place, I’m not sure why you can’t do the same with the newer code. It may take a couple of hours, but by reading the documentation for MCCI LMIC and searching the forum for the settings for the Heltec device you aren’t doing much different than you did in the first place.

You could search the internet for other beekeepers who use LoRaWAN - last week I sat and read a couple of web pages in German for someone on here who asked for assistance - in the end we established he need to update his firmware and I gave him the same links as I’ve just done above and he’s got things going.

Installing VS Code and PlatformIO is well documented. The documentation & setup of the LMIC-node is amazing and I believe it directly supports your device. And, bonus, if you can be civil, the library was created by one of the other moderators.

Over to you, your approach will determine your success here.

2 Likes

You have been getting a lot of help and services for free. I’ve invested a lot more on hardware for the TTN community and have had issues as well, but as I knew up front that using a free service without paid support means I need to know my stuff I embarked on it with the basic knowledge and learned the rest as I went along. That means I invested the equivalent of a number of times the amount you quote in hours to learn everything I need to know to solve my own issues, create my own hardware and maintain it.
You could pay someone to solve your issues for you, there are professionals that can help and have the required knowledge.

1 Like

To Daviddu08 :

Let me confirm the prompt and efficient Descartes’ diagnostic of my problem related to the inappropriate LMIC library and some minor points. Now it’s works fine for one device and I will migrate my other scales soon.
I fully agree and support all Kersing and Descartes arguments even if I am in a very similar situation than you except I have only 7 hives. I have built some scales on a German DIY base ; such as Descartes and his colleagues , they kindly and quickly bring to me a free support when necessary. Most of time, it is well and heavily documented and ,as non specialist,it is sometimes difficult to find the right page without deep resesearch. Let me thank them for their help.
All this stuff is very sophisticated even if it looks simple and easy. If your are building a business around, you have to make it on a professional base. This is not the same game.
Will it be possible to get some information on the system you have developed ? do you have site where I could see your realization ? What did you buy for 3000€ ?! Electronic for my scale costs less than 15€…
Good luck anyway and , as Descartes says before, have a look to the LMIC library if you use a Module LoRa RFM95 868MHz avec puce SX 1276.

To Descartes : you seem to attract the bees presently. I hope that your aren’t allergic , or that you will not become allergic :joy: :joy: :joy: :joy:( don’t worry, they sting only when disturbed)

2 Likes

Hi
Ok i am really sorry and i stop to ask you, i will find alone as i made all time.