My TTGO cannot connect with ABP to V3

That is something Elisa would call “A really big mess!”

I haven’t put it through a rigorous / scientific testing regime, but as far as I can tell, if I use the CLI to setup an ABP device with counter reset turned on from the start, I’ve no issues.

I think I’ve tried doing a manual entry which worked but entering all the frequencies is a bit of a mess, so I haven’t done that in months.

afbeelding

afbeelding

LMIC_setupChannel(0, 868100000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_DECI); // g-band
LMIC_setupChannel(1, 868300000, DR_RANGE_MAP(DR_SF12, DR_SF7B), BAND_DECI); // g-band
LMIC_setupChannel(2, 868500000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_DECI); // g-band
LMIC_setupChannel(3, 867100000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_DECI); // g-band
LMIC_setupChannel(4, 867300000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_DECI); // g-band
LMIC_setupChannel(5, 867500000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_DECI); // g-band
LMIC_setupChannel(6, 867700000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_DECI); // g-band
LMIC_setupChannel(7, 867900000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_DECI); // g-band
LMIC_setupChannel(8, 868800000, DR_RANGE_MAP(DR_FSK, DR_FSK), BAND_DECI); // g2-band

i entered all these freq. one by one with save in between.
then i colapsed and expand the network layer again. Then some freq. are set to “0”

There are more bugs possibly ? Or am i doing somthing wrong.
I am still a beginner. and this will not change i am afraid.

Nope, I can enter them by hand if I choose, I enter them, click save and it works. Just delete the zeros and enter the missing ones.

What firmware are you using? Are you setting reset counters? Do you have 32 bit counters set?

" Just delete the zeros and enter the missing ones."
did that several times. entered them all at once an then saved them.

afbeelding
repalced the zeros
afbeelding

end after colapse and expand again !!!

afbeelding
I am using Firefox, shhould i try Edge??

With Edge the freq stay in the list… So it is a Firefox problem??

I use Chrome for all my system admin work but occasionally use Safari as that’s my general purpose browser.

Generally the expand & collapse of a group of fields is a display only action and doesn’t interact with the contents so that is quite surprising.

Ok, but by using Edge i was able to insert the freq.
But i still do not see data in the tab live data.
I restarted the TTGO. Nothing

any suggestions.
The keys must be OK because i received some data at first.

It’s very likely to be the f_cnt starting from zero every time you restart the device when the server is expecting a higher number. This is a security measure to stop replay attacks. You can read about it in the documentation and change the device settings.

Or use OTAA which automatically resets the counters on join.

"when the server is expecting a higher number. "
So nobody can use ABP? Or what can do in the software not to start at zero? start at 100 or so?
OTAA did not worked for me, couldnt get joins. could not solve that problem.
There was no need to switch to OTAA, ABP worked perfect on V2.
security OK. I have a problem…

Is it this counter value that is send?
//Increment boot number and print it every reboot
++bootCount ;
Or is that counter generated by Lmic ?

I don’t have any problems with ABP on v3. See Disable Frame Counter Checks in V3 - #60 by descartes

So how will your device cope when you need it to hear a downlink - discarding OTAA isn’t a solution, it’s ignoring a problem

It’s not available anymore, TTI have moved on, TTS is bigger, smarter, more compliant, more robust, still free to use.

That’s nothing to do with LoRaWAN

In the tangential way that it’s part of the LoRaWAN spec, a fundamental part of it, and so LMIC needs to keep the f_cnt.

Frame counters are so fundamental that your apparent lack of motivation to go and learn about them but to throw questions on to the forum indicates a bit of a loss leader for all those trying to help you as we’ll all be answering questions forever.

Thanks for the insult. At 74 years i try to pick up a solution, and still trying to learn.
But thanks for your answers…

2 Likes

I’ve managed to get ABP working flawlessly with V3 on my little temperature sensor, but you will need to disable frame counter checks during your development stages. You can fin this checkbox by going to your end device page, then navigating to General Settings > Network Layer > Advanced Settings, then check the box that says Resets Frame Counters.

That way when your device sends 1, 2, 3, 4, 5, 6… 99, or 100 packets, the server isn’t expecting packet 101 to arrive after the device has lost power or has been reset, as the device will begin at 0 again.

Thanks

It was already checked.

[quote=“greensladenz, post:19, topic:50018”]
after the device has lost power or has been reset, as the device will begin at 0 again.[/quote]

so the device must send 100 packets wich do not show before the the counters get in sinc again?

If it’s already checked, it shouldn’t matter what frame count is sent as they’re ignored.

The default behavior is an expected incremental count, this prevents replay attacks.

It’s not an insult to point out that we keep saying the same things and nothing is changing - and it certainly wasn’t intended as one, it was definitely designed to try to get you to find out the background to the problem. I would have no knowledge of your age and it is totally irrelevant.

And here’s the issue - if you read the docs you’ll find out it’s not 100, it’s not a specific number, it’s the next number in the sequence, which could be 10,000 or 458 or 6,942 - so if you have a power cycle at some point in a years time, you could be waiting a very long time before the device catches up.

Is there on the console not a reset possible with a button. so both can start from scratch again. Just my simple mind thinking. :smirk:

What does it say in the documentation?

We are all volunteers here, we all have to read the documentation and use the forum search.

“If you give a man a fish, you feed him for a day . If you teach a man to fish, you feed him for a lifetime.”

You will learn far more by reviewing the materials which will give you a better overall picture than having someone just provide a prescriptive procedure for a button that doesn’t exist.

{
“time”: “2021-07-26T09:45:43.083Z”,
“name”: “synthetic.error.unknown”,
“isError”: true,
“isSynthetic”: true,
“unique_id”: “synthetic.1627292743083”,
“data”: {
“error”: “TypeError: Error in body stream”
}
}

Again, this has nothing to do with the Frame Counter issue you are likely experiencing - it’s just your web browser losing connection to the server - it happens to us all and is dependent on your connection speed & latency

why does that work well, and insert via console cant get i working…
I looked at CLI but it looks too difficult for me…

To me i think the reset counter does not work. There are more users think the same.
I tried to read the docs, but it is to much, and unclear for me.
Maybe some links to read ??

just read this: