P1 Smart meter USB does not save 115200 baud rate correct
Posted: Wednesday 02 November 2016 0:46
(Raspberry PI 3 - version v3.5849 (beta) also same with the stable version
In the "setup" screen for the "P1 Smart Meter" you can select the baud rate (9600 or 115200). I see 3 problems:
1. In the web interface the setting for 115200 is not saved. When returning to this page the setting falls back to 9600
2. When setting the baud rate (either 9600 or 115200), the log shows the message "Error: Webserver: File '/setp1usbtype.webem': No such file or directory (2)"
3. The USB port does not seem to be set at all. My meter sends data at 115200 and all device values stay at 0
I can force the USB port to the right baud rate as follows:
- from a separate terminal window I first installed minicom:
- then I can hook into the same USB port where the P1 cable is attached (USB0) with:
- now I see in my terminal window the smart meter data coming in --> at the same time Domoticz sees the same data and the smart meter data is also visible in the device graph
- when I terminate minicom, the data towards Domoticz also stops
I think this must be a bug in some of the core USB functions in Domoticz. Any other suggestions?
Bart
In the "setup" screen for the "P1 Smart Meter" you can select the baud rate (9600 or 115200). I see 3 problems:
1. In the web interface the setting for 115200 is not saved. When returning to this page the setting falls back to 9600
2. When setting the baud rate (either 9600 or 115200), the log shows the message "Error: Webserver: File '/setp1usbtype.webem': No such file or directory (2)"
3. The USB port does not seem to be set at all. My meter sends data at 115200 and all device values stay at 0
I can force the USB port to the right baud rate as follows:
- from a separate terminal window I first installed minicom:
Code: Select all
sudo apt-get minicom
Code: Select all
minicom -b 115200 -o -D /dev/ttyUSB0
- when I terminate minicom, the data towards Domoticz also stops
I think this must be a bug in some of the core USB functions in Domoticz. Any other suggestions?
Bart