I did some tests. Basically it works.
What I've done:
Added a new module to romraider logger defs:
Code:
<transport id="iso15765" name="CAN bus" desc="CAN bus logging ~MY2007+.">
<module id="ecu" address="0x000007E8" desc="Engine Control Unit" tester="0x000007E0" />
<module id="tcu" address="0x000007E9" desc="Transmission Control Unit" tester="0x000007E1" />
[b]<module id="gauges" address="0x000006D0" desc="Gauge" tester="0x000006D1" />[/b]
</transport>
I connected my adapter (pressure gauge) with my code to the CAN bus.
How it works:
1.Tatrix sends CAN ID 0x06D1
2. My adapter receives 0x06D1 with data.
3. My adapter sends 0x07E0 (emulates a normal tatrix request)
4. The ECU responded 0x07E8 with data.
5. My adapter receives 0x07E8 with data.
6. My adapter sends 0x06D0 with data.
7. Tatrix receives 0x06D0 with data and displays it in the RR logger.
The next step is to add new parameters to the definition with my addresses.
And when my adapter sees that the Tatrix is asking for my address, I can add whatever I want to the answer in the empty spaces in step 5.
True, I have not yet studied how the exchange works during diagnostics
During the test I found a bug, my CAN library sometimes changed the order of CAN packets and RR lost connection.