decentlab-decoders

17 views
Skip to first unread message

Toni Juola

unread,
Sep 13, 2019, 4:05:42 AM9/13/19
to LoRaWAN Server Users
Hi!

Asking from the experts is it somehow possible to use these decoders straight in LoRaWAN for these sensors:


If it is somehow possible, what kind of changes do these need? There is an erlang version for every single sensor there.

Br,

Stonde

Александр Тищенко

unread,
Sep 13, 2019, 7:51:52 AM9/13/19
to Toni Juola, LoRaWAN Server Users
Not very straightforward IMHO.
The problem is, that these decoders are designed for copy-paste. As Erlang part shows, every single decoder is internally named  decentlab_decoder , so the actual source file must have the same name... Looks like this collection is meant to be handpicked.

Regards,
Alexander Tishchenko



пт, 13 сент. 2019 г. в 11:05, Toni Juola <juol...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "LoRaWAN Server Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lorawan-serve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lorawan-server/6b98cd26-184d-4302-adad-7021a2a37987%40googlegroups.com.

Petr Gotthard

unread,
Sep 23, 2019, 3:49:06 AM9/23/19
to Александр Тищенко, Toni Juola, LoRaWAN Server Users

Another problem is that there is one decoder for each individual device, which would overpopulate the selection box, however you can build your own server version and inclide whatever you want.

 

Try to search for CBOR (both upper and lower case), which is another type supported. You will need to add your type there. The decoder function is here:

https://github.com/gotthardp/lorawan-server/blob/master/src/lorawan_application_backend.erl#L364

 

I can add some general provisions to help you, but as Alex said, the decoders are not very suitable for inclusion in the main branch

 

 

Petr

 

______________________________________________________________
> Od: "Александр Тищенко" <ati...@gmail.com>
> Komu: "Toni Juola" <juol...@gmail.com>
> Datum: 13.09.2019 13:51
> Předmět: Re: decentlab-decoders
>

> CC: <lorawan...@googlegroups.com>

To view this discussion on the web visit https://groups.google.com/d/msgid/lorawan-server/CAC17Du1%3DWUrQE5w8D_ncymxHhaRnLgfM8w6aL9YEjUM5pahKJA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages