kartben / lorawan-node-simulator

Simulation infrastructure for a LoRaWAN network (gatways and end devices) that's easy to configure and run from your CLI. Also available as a Docker container.
MIT License
105 stars 14 forks source link

Add LPP payload generator #4

Open donsez opened 3 years ago

donsez commented 3 years ago

Adding a LPP payload generator with value taken into a value range could be a cool feature.

Values (including lattitude and longitude) could be generated with various functions (rand, sin, cos, linear ...)

This module could be imported for the payload encoding https://bitbucket.org/pni-jmattison/node-cayenne-lpp/src/master/

kartben commented 3 years ago

That's a great idea, @donsez! I've tried to stay away from implementing an actual simulation framework just yet, but maybe an option would be to use an external tool for generating CSVs of scenarios (using the kind of data generation functions that you are referring to), and then use this as an input for my tool? In a nutshell, I guess I would like to strongly decouple the traffic generation from the data generation aspect.

donsez commented 3 years ago

@kartben kartben Good remark. So the simulator can replay real LoRaWAN trafic extracted from logs with timestamp, payload, RSSI, LSNR, fCnt, DR ...