News:

To visit MidNite Solar click this link www.midnitesolar.com

Main Menu

rs232 modbus to Classic

Started by dgd, February 05, 2015, 03:48:23 AM

Previous topic - Next topic

kibi

Just one small observation that I have made.
According to your code, PCB temp is being read at register(18) and FET temp is being read at register(19).


     pcb_temp = readRegs[18];
     pcb_temp /=10;
     fet_temp = readRegs[19];
     fet_temp /=10;


These are the wrong way around according to the Classic register map. FETtemp is at 4133 and PCBtemp is at 4134

I have amended my sketch to look like this:


     fet_temp = readRegs[18];
     fet_temp /=10;
     pcb_temp = readRegs[19];
     pcb_temp /=10;


Like I said, it's a minor detail, but it's nice to have things as perfect as possible :)

Thank you very much for your efforts.
I am working towards adapting your project to use the data gathered from the Classic to construct a Victron VE.Direct data frame and have the Classic pose as one of Victron's charge controllers to my BBB which running Venus. The BBB is then posting data to Victron's VRM site.