Welcome, Guest. Please Login or Register
MyECU main site
  Welcome to our forum.
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Raw serial parsing (Read 1521 times)
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Raw serial parsing
09/10/09 at 16:57:33
 
We are writing a plugin that takes serial data from MyECU and feeds it to Innovate's LogWorks 3. It seems the published info is incorrect about BaroAdjust in the compensation info:

uint16_t BaroAdjust; // The correction factor calculated from air pressure and temperature 1024 is 100% - no change from map


We don't seem to get it right unless we divide by 16 or bit shift by four.

This is raw data and how ECUControl parses it:
=112030213920010030359175917000023470DC5DC
=310FC03DB4317B4EA01EA010004371717B4DB
=00EAD01CA002303A6037401F4014601F8
Map (7.8,4.1) RPM=3242 Inj=5977us BaroAdj=106.0% o2Adj=102.2% o2[3] o2Target=2.39V o2=2.09V OilT=80.0C AirT=11.0C AirP=1020mb Thro=372 Bat=13.92V


The =3 line says DB43. If we swap it to 0x43DB, right shift by 4 and divide by 1024 we get 1.06 which correcsponds with the 106%. Is this the right way to do it?
Back to top
 

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print