Change (turn ON/OFF) Data Source/Input

I know this might sound strange, out of standards, but this might be the only way to get what I need, considering that the car I’m working on doesn’t support full CAN, but rather a combination of CAN, Kline, and internal encapsulated communication between some modules.

By the way, with this code example, I managed to establish a stable connection in which the actuator command will not be executed in the rotation loop. It is executed whenever “MYECU: RELAY ON” is selected as Data Source/Input inside of realdash, and stops working when it is selected as NONE.

My question is, is it possible to create a “dirty workaround” by creating a button that will activate the “MYECU: RELAY ON” channel when the button is pressed, which is already imported into RealDash from this XML example, and set it to NONE when the button is released?

In short, all it needs to do is turn on the input/data source when the button is pressed and turn it back to NONE when the button is released.

Is this possible?

Thank you

<OBD2>
  <init>
    <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="ATCAF1"/>
    <command send="ATSH8226F1"/>
    <command send="10C0"/>
  </init>

  <rotation> <!-- Loop section) -->
    <command send="21DF">
      <values>
        <value targetId="173" conversionABC="C-40.0"/> <!-- Outdoor Temperature) -->
      </values>
    </command>

    <command send="30910001" trigger="MYECU: RELAY ON" triggerValue="1"><!-- This is a channel for input/source to be activated on button press -->
      <values>
        <value name="MYECU: RELAY ON"/> <!-- This is a channel for input/source to be activated on button press -->
      </values>
    </command>
  </rotation>
</OBD2>

Related post

Sure, use ‘Hold Value’ type of Action for your button.

Thanks for the replay!

Whatever I change and do generaly into RealDash, it works fine until the moment I select the input “MYECU: RELAY ON” then the command starts to execute continuously, until I put NONE again. I tried various variants, set value, toggle on/of, triggers, hold value,etc.. simply as soon as MYECU: RELAY ON is set whatever you do it always automatically starts to execute. Am I missing something? Is there any tutorial steps that I can follow?

Just noticed that you are using OBD2 connection. RealDash does not have 2-way communication with OBD2. A CAN connection is required for that.