Changing Device CAN ID

For discussing Phil Tobin's TunerStudio MS is the MegaSquirt edition of TunerStudio, a next generation tuning application. It provides the ability to configure and tune all GPIO/MShift(tm) controllers and is 100% compatible with MegaTune ini files and msq's.
Post Reply
mill3833
Posts: 72
Joined: Mon Jan 27, 2014 3:33 pm

Changing Device CAN ID

Post by mill3833 »

I am having troubles adding a 2nd device (CAN-EGT) to my MS3 system.
I have MS3Pro as device 0, MSShift as device 1 and want to add CAN-EGT as device 2. When I define CAN-EGT as device ID 2 via Project Properties\CAN Devices adding it to the list and assigning it as CAN ID 2 and restart TS, it is not recognized. I get the error message "Device 2 not found, going off line so others can work". Device 1 is working as pass thru.

My basic instinct is there should be dip switches on the board that allows one to select the CAN ID. So there are no dip switches, so obviously this is being done via some NVM memory. But how do I teach the controller that it's ID is 2? Seems like I would need to connect via the direct USB cable to the CAN-EGT controller, and somehow "burn" the value ID 2 into it. Is that possible?

I can successfully talk to the controller via the USB port (not pass-thru), when TS is looking for ID 1.

The CAN-EGT documentation says: "The CAN Device ID defaults to 1; you only need to change this if you already have another device with this ID on your network". I am questioning how this to be done.

Thanks,
Dave
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: Changing Device CAN ID

Post by Bernard Fife »

Dave,

For MShift, CANbus ID is a user setting much like any other. It is under 'Tools -> CAN Configuration'. You can read about it here: http://www.msgpio.com/manuals/mshift/V41tune.html#oa

However, to prevent people accidentally screwing up their comms, it might be un-editable in the ini until you make a small change. Use a text editor and find a line like:

Code: Select all

      field = "!MS-II CAN ID",             		ms2canID,       { 0 }           ; change to { 1 } to make editable

and change it to:

Code: Select all

      field = "!MS-II CAN ID",             		ms2canID,       { 1 }           ; change to { 1 } to make editable
There is more at: http://www.msgpio.com/manuals/mshift/V4 ... ml#canedit

If you want to change the other device's CANbus ID, you need to ask on its support forums, I don't know anything about it.

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
mill3833
Posts: 72
Joined: Mon Jan 27, 2014 3:33 pm

Re: Changing Device CAN ID

Post by mill3833 »

Lance wrote:Dave,

For MShift, CANbus ID is a user setting much like any other. It is under 'Tools -> CAN Configuration'. You can read about it here: http://www.msgpio.com/manuals/mshift/V41tune.html#oa

However, to prevent people accidentally screwing up their comms, it might be un-editable in the ini until you make a small change. Use a text editor and find a line like:

Code: Select all

      field = "!MS-II CAN ID",             		ms2canID,       { 0 }           ; change to { 1 } to make editable

and change it to:

Code: Select all

      field = "!MS-II CAN ID",             		ms2canID,       { 1 }           ; change to { 1 } to make editable
There is more at: http://www.msgpio.com/manuals/mshift/V4 ... ml#canedit

If you want to change the other device's CANbus ID, you need to ask on its support forums, I don't know anything about it.

Lance.
Thanks Lance. I'll give this a try tonight. Maybe CAN-EGT has something similar in their ini file.

Dave
Post Reply