I’ve uploaded the github firmware to Emonth v2, changing only Serial.begin(9600);
After changing node id and group id, and saving to eeprom, the output from serial port is:
> Executing task: platformio device monitor < > --- Miniterm on /dev/cu.usbserial-FTGCYDST 9600,8,N,1 --- > --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- > OpenEnergyMonitor.org > emonTH FW: V323 > Loaded EEPROM RF confiOpenEnergyMonitor.org > emonTH FW: V323 > Loaded EEPROM RF config > > Int RFM... > RFM Started > Node: 20 Freq: 433Mhz Network: 200 > Int SI7021.. > SI7021 Started, ID: 21 > SI7021 t: 24.35 > SI7021 h: 58.02 > No DS18B20 > '+++' then [Enter] for RF config mode > waiting 5s... > temp:␂␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀�jd�temp:␂␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀��jR�temp:␂␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀��jR�temp:␂␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀�j��temp:␂␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀�j��temp:␂␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀�j��temp:␂␀␀␀␀␀
As you see, the temperature and humidity is read ok, but only on the setup() funcion. After that, the sensor is not found anymore. I suspect because of the power saving routines do not bring it up again.
I’ve tried uploading with the Arduino IDE (which is what I’m used to) and then thought that some libraries would not be updated, so I’ve tried PlatformIO IDE with vscode.
The project builds and uploads correctly, but the emonTH v2 still fails the same way.
I’m confused, because the other emonTH v2s I have, which I’ve not touched, are reporting temp and humidity correctly.
Maybe the code on GitHub is not the same that is preloaded on emonTH?
Has anyone uploaded the code and had no issues?
The reason to change the code is that I’m planning to put a CO2 sensor on the emonTH, so I really need to solve that problem.