ABP Device V2 to V3 Migration Issue

In the meanwhile, you could try adding the device again, but ensuring you check the Resets Frame Counters - it doesn’t work so well if you do it after you’ve created the device.

And these are ALL of the EU frequencies (which also apply to UK, Swiss & EEA Bees).

Screenshot 2021-07-05 at 18.43.12

Sorry, I didn’t catch the accuracy of your question : on the concerned device, I have 2 scales , 1 voltage, 1 T° , that is to say 30 or 33 bytes for payload .
Is it the responses you expect ?
Here is one received message copied from the gateway console V3:

19:36:17 Receive uplink message DevAddr 260BA800 FPort 1
MAC payload A519304F80688C42BB2F21539A0A063BC30D0BA1
Bandwidth 125000
SNR 7.5
RSSI -31
Raw payload 4000A80B2680000001A519304F80688C42BB2F21539A0A063BC30D0BA10A5BCD2F

Reset frame is already checked ; I add immediately the 5 missing frequencies and come back.

OK, perhaps some Pilot Induced Oscillation - far too much information, just need the sensors on the device. This Bee is an OCD Geek.

What is the brand and model number of the temperature sensor?

But quite probably not working - which is why I said:

But worth adding the other frequencies as a first test.

I check Reset Frame right at the device creation since V2 version ; definitively :innocent:

Not sure if this is clear to me, what is v2 in this equation?

When you created the device on v3, did you click Resets Frame Counters BEFORE you saved changes.

YES : it is clearly mentioned in the beelogger tuto and i read a lot on that counter to be reseted.

No changes …

you can see on the following image the 2 other devices that I can still read on Stack V2, the first line shows the device created on V3 :

DHT 21/22 is configured but I don’t implement it .
I use the T° information from the DS3231 module (RT clock)
For Volt, Nano board analog input are used.

You can use also a DS18b20 sensor for T°

Does this mean it is wired to the Nano?

Does this mean it is NOT used in the code?

I am asking what you are using on your device so I can check the compiled size.

I think we have now established that you have the HX711 and a DS3231.

Is there anything else (apart from the SX1276 & the batteries) that is wired to the Nano?

Please do not embellish.

Can you see the serial output from the device so we can tell what is happening?

I have to go on the hives but the weather is really poor (let’s say a bit Brit…). We will have to wait until bees can go out also …
I will have the time to read more .
Thanks anyway

This was the right direction : with an updated library ,tonight i have some better results. Some messages are properly decoded at the level of the console. They do not reach my server presently but it’s a great step already. Tomorrow is an other day !
Thanks for your help. It has been a pleasure to fly with you a moment.
See you later.

Dear Descartes, please find the information on the message transferred :

  • at the level of the device :
    07:28:12.806 → Payload
    07:28:12.806 → 5 T°-Out:2125
    07:28:12.806 → 1 V-Batt:7727
    07:28:12.853 → 2 V-Sol:3
    07:28:12.853 → 3 65 FC1F Gewicht: -993
    07:28:12.901 → 4 65 939 Gewicht: 2361
    07:28:12.901 → Length ; 20
    07:28:12.901 → Packet queued len:20
    07:28:14.173 → 11413143: TX Complete!
    07:28:14.173 → Cnt:113 bs:0 wr:1
    07:28:14.173 → Wakeup:7:33

  • at the level of the Device console :

  • 07:28:12

Forward uplink data message

Payload decoded
analog_out_1 77.27 ; analog_out_2 0.03 ; luminosity_3 64543 ; luminosity_4 2361 ; temperature_5 212.5
Raw Payload
0567084D01031E2F020300030365FC1F04650939
FPort 1
SNR 10.5
RSSI -32
Bandwidth 125000

Analog out fort Volts, luminosity for Weight, T° for Temperature. This work fine now with the proper LMIC library .
Now I have to understand why I cannot read the MQTT server V3 such as in V2 . But this is an other topic , if I have well understood.
Bye on that one.

The MQTT topics are different from v2:

https://www.thethingsindustries.com/docs/integrations/mqtt/

Thanks . Very interesting information in it
Have a good day

hi, i also run multiple bee sensors. the setup is :

  • micropython
  • esp32
  • sx1276 / abp activation
  • rpi4_ic880_lora_gw

when moving from v2 to v3:

  • for single esp i have used all new data from ttn v3

ttn_config = {
‘devaddr’: bytearray([0x…]),
‘nwkey’: bytearray([0x…]),
‘app’: bytearray([0x…]),
‘country’: ‘EU’,
}

then i had to totally rewrite mqtt handler as V3 has different format then V2 (this makes sense)

there was only one pitfall: if you start fresh device and your frame_counter start at 0, then mqtt payload is missing key: [‘uplink_message’][‘f_cnt’]

(but probably i should start with 1 not 0)

pavel

That is a ‘feature’ (according to some, others consider it the error it is) of the V3 backend. You can start your counter at one if you want to or just catch the ‘missing’ field by defaulting it to zero.

yes you are right, it can be taken as feature.

please is there anything like json schema for ttn data formats, let’s say for uplink message

i have only find info here:
https://www.thethingsindustries.com/docs/reference/data-formats/

thank you, pavel