-
Notifications
You must be signed in to change notification settings - Fork 307
Added default temperature for ESP32 and NRF52 repeaters in telemetry #1163
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
base: dev
Are you sure you want to change the base?
Added default temperature for ESP32 and NRF52 repeaters in telemetry #1163
Conversation
|
As it is, this will create confusion: "Temperature" is used for "environmental temperature" we should not show "CPU temperature" under the same label. Nevertheless this is interesting information available "for-free", it would be great to work with @liamcottle so the app could represent this under a different label. |
|
@jbrazio If any sensor regardless built-in or external sensor can give a meaningful value, then it would be useful. The default temperature should be available to all repeaters as they all need to be temperature monitored under the sun. |
|
I will add a BME680 to ESP32 and RAK repeaters. It would be interesting. |
|
I have no opinion on whether or not this is a PR that we want, but can I suggest it would be cleaner to do a rebase squash first so that the PR is not 21 commits 🙏 |
|
Yes, besides temperature, I created NRF52Board parent object like ESP32Board. So we do not need to copy & paste the same code 10+ times to 10+ NRF52 boards. The PR alone is just around 20 lines. They should share the same feature and consistent look&feel. |
Think about it.. the sensor is etched on the dye meaning it's thermally coupled to it thus it cannot ever represent an accurate measurement of an external environment.
|
|
@jbrazio I fully understand the two links you gave me. Thanks a lot. However, MeshCore uses CayenneLPP as the framework for telemetry. However, as I know (correct me if I'm wrong), CayenneLPP has pre-defined and fixed telemetry label like Temperature and Humidity... This will be a great limitation if later we come to Meshcore Sensor. So if we can not change / switch CayenneLPP now. This is in my room now. This is from BME680, trusted by many friends. From Heltec v3, 30.9*C from built-in temperature sensor The difference is 1-2 degree. This is close and useful enough. |
|
I was also looking at the code yesterday to add Air Quality Index from BME68X, and running into the same limitations with CayenneLPP. There are just fixed types in there and not much flexibility. It would help if the telemetry channels could be named. Then Channel 1 could be CPU / Radio, Channel 2 could be Environment Sensor, etcetera. Ideally CayenneLPP should be more flexible, but I guess that deviates from the entire point of the framework - to send telemetry over LoRa with minimal footprint. If we need to be able to support more telemetry readings, perhaps a fork is necessary?
|
|
@4np I think we need to leave CayenneLPP in very near future. May be for repeaters, it can use CayenneLPP for basic sensors. Well, repeaters do not need to have many sensors. However, for MeshCore sensors, it will be a different story. |
|
With CatenneLPP you can only have one of any value type in a channel, I ran into this with monitoring battery voltage and solar panel voltage in channel 1 only the last value written is sent. Channel naming could be handled by the client app.
|
I always said it's useful, specially when it's "for free", the hardware is there.. there is no reason not to publish it's values. Nevertheless, we should use a different tag/channel/whatever, the point being: do not show it's value where a user expects to see environmental temperature. It's on the product manufacturer's data sheet for both MCU the intended purpose of that sensor. |
|
@jbrazio True. Channel 2 for external sensors. Best if we can name the channel to something meaningful to users. |
|
I could add a channel abbreviation that would fit in 4 byte of the telemetry.
|










Hi all,
I have added a default temperature for ESP32 and NRF52 repeaters in telemetry.
This is to know the temperature on the repeater box.
I have tested for Heltec v3/V4, RAK4631 and T-echo Lite under room and outdoor roof.
Quite accurate. 25C at 6am and 54C at 2pm.