SEN0658 weather station for RAK4631#1924
Conversation
|
I found that all the existing sensors use Channel 1 to display their values. If multiple sensors are installed that utilize the same "add" function for example: telemetry.addTemperature() The CayenneLLP software will only display one. Any sensor that adds another Temperature will not be displayed and it's silently dropped. Only one Temperature can be displayed in a channel. Since they all use Channel one, I found that hard coding my values to Channel 2 would work fine. I presume that your next_available_channel will always be greater than one, so there will be no conflict and your values are displayed together and all will be displayed. |
|
@KPrivitt yeah I am unsure about how multiple sensors are supposed to work on the same device. Some sensors look like they are written to be hardcoded to a certain channel (so it's predictable) and others (like mine) err on "playing nice" with other sensors (but adding one sensor might change the channel of another). I'm not sure what's better. 🤷♂️ My RAK4631 already has a built in temp + voltage on channel 1 and my thought was to keep different "things" (repeater itself, weather station) on different channels, but to try to keep any one "thing" as just one channel - that way multiple instances of a sensor (some of the RAK demos have 4 soil sensors) each have exactly 1 channel. I feel it keeps it tidy but I admit it's an arbitrary opinion. 😄 The downside here is that I have two concentration values and I had to force one in to a type other than "concentration". Actually, now that i am talking through it, maybe it would be better to just to say that "each instance of a sensor type has a hardcoded number of values" and that "each instance of a sensor should start a new channel for a different 'thing'". What I mean by that is that the RAK barometer sensor board would use the SELF channel because it is part of the mesh radio system itself, but the barometer in my external weather station should be on a different channel from SELF. That said, these are all just thoughts I had while reading through the code by myself so I don't know how much they align with the project. |
Adds support for SEN0658 Ultrasonic 9-in-1 RS485 Weather Sensor to the RAK4631.
Test configuration:
There's not perfect mappings for the sensors so what I have is: