Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTN v3: parameters and en-/decoder #437

Open
Marwe opened this issue Jul 4, 2021 · 3 comments
Open

TTN v3: parameters and en-/decoder #437

Marwe opened this issue Jul 4, 2021 · 3 comments

Comments

@Marwe
Copy link
Contributor

Marwe commented Jul 4, 2021

I want to migrate my LoRA applications from v2 (EOL 2021-12) to v3, does anyone have experience with it or already wrote some updated code snippet?

As far as I can see, the application definition needs more parameters (LoRA specific, e.g. versions, which I did not really know) and the js Decoder function needs adaption.
May not be too difficult, though I am not really a js coder. I can see some patterns looking at
the payload formater examples, but find it too difficult to transpile due to lacking background.

There is only one variable input with input.bytes and input.fPort, the rest of the function may be similar. I don't yet get the events and where/how they are transferred (port definition? data.event = events[input.fPort]).

I don't know if a downlink function would be necessary, it may be needed (with a reversed logic).

There is a device repository with payload formatters, maybe this is the right place for this kind of code?

@rexfue
Copy link
Collaborator

rexfue commented Jul 5, 2021

Migration from V2 to V3 for devices is easy: follow the description at https://www.thethingsnetwork.org/docs/the-things-stack/migrate-to-v3/migrate-using-console/.
For the payload decoder there is a 'Helper Script'written by Severin Schols, that lets you use your old V2 payload formatter, see: https://www.thethingsnetwork.org/community/munich/post/using-ttn-v2-payload-decode-functions-with-ttn-v3
I tried it and it works.

@sbiermann
Copy link

I can confirm, it works like a charm after following the two descriptions. I'm now using old 1.12.0 version with TTN V3, no need for a new flashing.

@ThomasWaldmann
Copy link
Contributor

Is there anything left to do here? Do we need to document that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants