DPIclimate / DPIclimate/enviro-node

Enabling the SDI-12 power line while the modem is on seems to make the modem lose state

Open
#28 2 comments 0 reactions 0 assignees View on GitHub
bug electronics
Dominant language
C++
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The current firmware that seems to work fine on the older boards switches the modem on, connects to the network, gets the time, and then brings up the packet switched layer.

Next it enables the SDI-12 power, scans the SDI-12 bus, and reads any sensors found and disables the SDI-12 power.

Finally it uses the modem's MQTT stack to send the message.

The modem seems to lose some state on the new boards with this sequence. The network connection LED goes out temporarily when the SDI-12 power is enabled, and then the MQTT login command fails after the sensors are read.

As a test the firmware was changed to enable the SDI-12 power line at boot and then leave it on the entire time, and no sensors were scanned or read. The modem could then do the MQTT uplinks.

The next test will be to scan and read the sensors and see if it still works.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.