# Connection to Megasquirt

**URL:** <https://forum.realdash.net/t/connection-to-megasquirt/1181>\
**Category:** Megasquirt\
**Created:** [February 7, 2022, 4:28am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181 "2022-02-07T04:28:38Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![Oldguy](https://forum.realdash.net/letter_avatar_proxy/v4/letter/o/3bc359/32.png) [@Oldguy](https://forum.realdash.net/u/Oldguy)\
**Post date:** [February 16, 2022, 6:05pm UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/21 "2022-02-16T18:05:32Z")

</div>

OK, that might be a clue. This is not Megasquirt hardware, it is a custom controller, but it communicates with Tuner Studio and Shadow Dash in the same way that Megasquirt does. When I connect to Tuner Studio it always gives me the message that there are 17 errors and 232 warnings. I have no idea what that is all about and I can’t get rid of it, so I just ignore it and everything works just fine. I checked the connections and Tuner Studio tells me the connection type is RS232 Serial Interface, Com Port is Com5 and Baud rate is 115200. Here are the settings in my custom .ini file:

queryCommand = “Q”  
signature = “MS2Extra comms342h2”  
versionInfo = “S”  
pageActivationDelay = 50  
blockReadTimeout = 200  
endianness = big  
nPages = 3  
pageSize = 1024, 1024, 1024  
pageIdentifier = “\x01\x01”, “\x01\x02”, “\x01\x03”  
burnCommand = “B%2i”, “B%2i”, “B%2i”  
pageReadCommand = “C%2i%2o%2c”, “C%2i%2o%2c”, “C%2i%2o%2c”  
pageValueWrite = “W%2i%2o%2c%v”, “W%2i%2o%2c%v”, “W%2i%2o%2c%v”  
pageChunkWrite = “W%2i%2o%2c%v”, “W%2i%2o%2c%v”, “W%2i%2o%2c%v”  
writeBlocks = on  
interWriteDelay = 10

Does that help?  
Regards,  
Robert

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [February 17, 2022, 7:31am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/22 "2022-02-17T07:31:05Z")

</div>

What ECU is this? Give me your ini file and I will take a look.

---

<div class="post-metadata">

**Author:** ![Oldguy](https://forum.realdash.net/letter_avatar_proxy/v4/letter/o/3bc359/32.png) [@Oldguy](https://forum.realdash.net/u/Oldguy)\
**Post date:** [February 19, 2022, 5:31pm UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/23 "2022-02-19T17:31:49Z")

</div>

I sent you a PM and an e-mail.

---

<div class="post-metadata">

**Author:** ![Oldguy](https://forum.realdash.net/letter_avatar_proxy/v4/letter/o/3bc359/32.png) [@Oldguy](https://forum.realdash.net/u/Oldguy)\
**Post date:** [March 1, 2022, 4:59pm UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/24 "2022-03-01T16:59:00Z")

</div>

What command letter does ReaDash send to get the real time variables?

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [March 3, 2022, 7:42am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/25 "2022-03-03T07:42:37Z")

</div>

RealDash implements Megasquirt serial protocol:

[http://msextra.com/doc/pdf/Megasquirt\_Serial\_Protocol-2014-10-28.pdf](http://msextra.com/doc/pdf/Megasquirt_Serial_Protocol-2014-10-28.pdf)

The data request command is read from the ini file, or ‘a’, 0, 6 as a backup default.

---

<div class="post-metadata">

**Author:** ![Oldguy](https://forum.realdash.net/letter_avatar_proxy/v4/letter/o/3bc359/32.png) [@Oldguy](https://forum.realdash.net/u/Oldguy)\
**Post date:** [March 3, 2022, 9:09pm UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/26 "2022-03-03T21:09:59Z")

</div>

I was using ASCCI “O” as the OCH get command which is the MS1 command. Tuner Studio was OK with that. I changed it to ASCCI “A” in my firmware and the Tuner Studio .ini file. Tuner Studio was OK with the change but RelDash still won’t connect.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [March 4, 2022, 11:39am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/27 "2022-03-04T11:39:43Z")

</div>

No, sorry. As you have custom ECU, we just do not have resources to help you develop it.

---

<div class="post-metadata">

**Author:** ![Oldguy](https://forum.realdash.net/letter_avatar_proxy/v4/letter/o/3bc359/32.png) [@Oldguy](https://forum.realdash.net/u/Oldguy)\
**Post date:** [March 5, 2022, 3:13am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/28 "2022-03-05T03:13:54Z")

</div>

Well, actually, I’m not asking for any help developing my custom ECU, it’s working just fine. I’m just asking you if Real Dash can connect to it, as your web site suggests that it can connect to just about anything. If my ECU is the exception then I won’t spend any more time trying to figure out why.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [March 7, 2022, 7:07am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/29 "2022-03-07T07:07:02Z")

</div>

I did link you the official Megasquirt serial protocol document that RealDash implements. If you follow that there should be no problems connecting to your device. Another option is to use our RealDash CAN protocol to send CAN frames over serial to connect.

---

<div class="post-metadata">

**Author:** ![Oldguy](https://forum.realdash.net/letter_avatar_proxy/v4/letter/o/3bc359/32.png) [@Oldguy](https://forum.realdash.net/u/Oldguy)\
**Post date:** [March 7, 2022, 4:31pm UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/30 "2022-03-07T16:31:29Z")

</div>

I studied the Protocol and the only thing that I think I didn’t comply with was the OCH get command, which I changed, but no difference. CAN is not an option for me because I don’t know how to code it. Is RealDash expecting CAN or the “A” command?

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [March 8, 2022, 6:16am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/31 "2022-03-08T06:16:56Z")

</div>

RealDash implements the newer CRC checked protocol. You need to support at least:

```plaintext
0, 1, Q, X, X, X, X

and

0, 1, A, X, X, X, X

```

---

<div class="post-metadata">

**Author:** ![Oldguy](https://forum.realdash.net/letter_avatar_proxy/v4/letter/o/3bc359/32.png) [@Oldguy](https://forum.realdash.net/u/Oldguy)\
**Post date:** [March 9, 2022, 4:36am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/32 "2022-03-09T04:36:29Z")

</div>

That looks like the command sequence if CAN Commands are enabled. In my case they are not.  
When I open RealDash, with my controller running and the USB/Serial connector recognized by my PC, I get no indication from RealDash that it is trying to connect. Is that normal?

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [March 9, 2022, 7:28am UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/33 "2022-03-09T07:28:33Z")

</div>

> [@](#):
>
> That looks like the command sequence if CAN Commands are enabled.

No they are not. Please read the Megasquirt serial protocol documentation to gain understading of how it works.

First command that RealDash sends is the 0, 1, Q, X, X, X, X to request version information, which must match the info in ini file. Second (0, 1, A) is the data request.

---

<div class="post-metadata">

**Author:** ![Oldguy](https://forum.realdash.net/letter_avatar_proxy/v4/letter/o/3bc359/32.png) [@Oldguy](https://forum.realdash.net/u/Oldguy)\
**Post date:** [March 10, 2022, 10:25pm UTC](https://forum.realdash.net/t/connection-to-megasquirt/1181/34 "2022-03-10T22:25:44Z")

</div>

According to my latest TunerStudioAppDebug file and to the best of my knowledge Tuner Studio sends “Q” to request the version info and “A” to request the real time data. This is what my controller is expecting and it works just fine with Tuner Studio and Shadow Dash. If RealDash is sending anything else I don’t know how to modify my code for that, so it looks like RealDash will not work for me.

[Previous page](https://forum.realdash.net/t/connection-to-megasquirt/1181.md?page=1)
