06-07-2022, 03:34 PM
Hello,
I think there are so many i2c capable devices, that it would make sense to allow some custom settings, so you wouldn't have to add specific support manually. If the custom sensor setup is too complicated to be configured via a web form, you could allow to import the config file and provide some template for it. And if you are using some public version control system, like github, you could create a device library there - the community would gladly give you their config files, like they do for other projects.
I joined this thread, because we are using several LK3.8 with 1.49.d as environmental sensors and powermeters in our server rooms, and we would like to read data from our MPPT solar inverters via i2c bus.
It uses i2c address 8 as a slave, data packet has following structure:
struct {
int uin; //input voltage 0.01V
int iin; //input current 0.01A
int uout; //output voltage 0.01V
int ibat; //battery current 0.01A
char temp; //battery temperature 1C
char almf; //alarm flag
char crc8; //checksum (smbus poly=0x07)
};
//almf - bits explanation
#define ALMLV 0x01 //alarm low voltage
#define ALMLVD 0x02 //alarm LVD
#define ALMDCS 0x04 //alarm dc/dc stop
#define ALMCHF 0x08 //charge full
#define ALM12V 0x10 //set 12V else 24V
Any chance to make that possible?
Anyways, thanks for a very interesting piece of HW.
Regards,
Lobo
I think there are so many i2c capable devices, that it would make sense to allow some custom settings, so you wouldn't have to add specific support manually. If the custom sensor setup is too complicated to be configured via a web form, you could allow to import the config file and provide some template for it. And if you are using some public version control system, like github, you could create a device library there - the community would gladly give you their config files, like they do for other projects.
I joined this thread, because we are using several LK3.8 with 1.49.d as environmental sensors and powermeters in our server rooms, and we would like to read data from our MPPT solar inverters via i2c bus.
It uses i2c address 8 as a slave, data packet has following structure:
struct {
int uin; //input voltage 0.01V
int iin; //input current 0.01A
int uout; //output voltage 0.01V
int ibat; //battery current 0.01A
char temp; //battery temperature 1C
char almf; //alarm flag
char crc8; //checksum (smbus poly=0x07)
};
//almf - bits explanation
#define ALMLV 0x01 //alarm low voltage
#define ALMLVD 0x02 //alarm LVD
#define ALMDCS 0x04 //alarm dc/dc stop
#define ALMCHF 0x08 //charge full
#define ALM12V 0x10 //set 12V else 24V
Any chance to make that possible?
Anyways, thanks for a very interesting piece of HW.
Regards,
Lobo