BastianGschrey / PowerTune

GNU General Public License v3.0
87 stars 35 forks source link

Read all analog inputs from Datalogit Black #48

Open sikrip opened 4 years ago

sikrip commented 4 years ago

How can I read all the analog inputs of the black Datalogit?

Based on this issue https://github.com/BastianGschrey/PowerTune/issues/28 the response of the response of the 0x00 0x02 message is 7 bytes and I confirmed that.

Reading all 8 analog inputs of the black Datalogit would require a response of 11 bytes.

Maybe there is an other read message that is used for this?

sikrip commented 4 years ago

Looks like the black datalogit uses a different command to read the aux data.

After com port monitoring I found the following:

Command to read aux data on black datalogit: 01 03 00 fb

Sample response: 01 12 b8 01 00 00 5b 03 00 00 cd 00 01 00 02 00 02 00 03