Hi everyone,
I’ve been working with RealdDash for some time now, and I think it’s a great project. In my Custom XML, I’ve already experimented and set up several things to work, such as reading mileage, outside temperature, battery, displaying various indicators, turn signals, low beams, open doors, etc.
Before continuing further with the development, I got stuck on creating a button and sending a command from RealDash to my ECU in order to control various actuators, turn on relays, locks, AC, lights, etc., like everything that can be done with various terminals, for example, the Bluetooth Serial Console App (for testing). Can Realdash do this at all on the KWP protocol?
Namely, here is my initial code where I created a name for my target ID, but I’m not able to connect the button to work with this command, for example, “30910001”. I tried creating a button with various actions like toggle on/off, setvalue, Send Terminal Command, CanFame, and similar, but unfortunately without success.
Please give your opinion, assistance, and help. Thank you.
<OBD2>
<init> <!-- init section) -->
<command send="atd"/>
<command send="atz"/>
<command send="atat1"/>
<command send="atst62"/>
<command send="atsp5"/>
<command send="ate0"/>
<command send="atl0"/>
<command send="ats0"/>
<command send="ath1"/>
<command send="atdpn"/>
<command send="ATAL"/>
<command send="ATSH8226F1"/>
<command send="10C0"/>
</init>
<rotation> <!-- Loop section) -->
<command send="21DF" skipCount="0">
<values>
<value targetId="173" conversionABC="C-40.0"/> <!-- Outdoor Temperature) -->
<value targetId="310" conversionABC="Y*65536+Z*256+AA"/> <!-- Odometer) -->
<value targetId="12" conversionABC="(A*256+B)/1000"/> <!-- Battery Voltage) -->
</values>
</command>
<command send="21DD" skipCount="0">
<values>
<value targetId="160" conversionABC="(D!=12)(D!=28)(((D>>3)&1)|((D>>1)&1))"/> <!-- Turn Signal Left indicator) -->
<value targetId="161" conversionABC="(D!=12)(D!=28)(((D>>2)&1)|((D>>1)&1))"/> <!-- Turn Signal Right indicator) -->
<value targetId="166" conversionABC="(D!=12)(D!=28)((D>>1)&1)"/> <!-- Hazard Switch indicator) -->
<value targetId="156" conversionABC="(C>>7)&1"/> <!-- Low Beam indicator) -->
<value targetId="162" conversionABC="(D>>4)&1"/><!-- Door Ajar indicator) -->
</values>
</command>
<command send="30910001" name="MYECU: RELAY ON"></command> <!-- This should be a command for sending "30910001" when button on Realdash is pressed) -->
</rotation>
</OBD2>