MS-II CANbus protocol?
Read the manual to see if your question is answered there before posting. Many users will not reply if the answer is already available in the manual.
If your question is about troubleshooting, configuration, or tuning, you MUST include your processor type (MS-I or MS-II) and code version in your post. If your question is about PCB assembly or modifications, you must also include the main board version number (1.01, 2.2 or 3.0).
If you have questions about MS1/Extra or MS2/Extra code configuration or tuning, please post them at www.msextra.com Such questions posted here will be moved to: a temporary MSextra sub-forum, where they will be removed after 7 days
The full forum rules are here: Forum Rules, be sure to read them all regularly.
MS-II CANbus protocol?
I've been looking at controlling a Holset VGT turbo with the MS-II. It talks J1939, which doesn't seem very hard to implement, provided there aren't hardware differences, but it doesn't seem like it. However, it seems worthwhile to understand the current code and what the plans are with it. Are there reasons why J1939 should not be implemented?
Re: MS-II CANbus protocol?
If you want to communicate with MS II then you have to give it a message in the format specified in the code and you will only get back a message in the same format - unless you want to change the code. You are free to change the code however you want, and to develop whatever applications you want for it - in fact we encourage this. What you are not free to do is build your own hardware, put the code in that, and sell it. But if it's for your own use, have at it.
There are many examples in both the MS2 code and GPIO code. The sequencer code talks to a second processor thru CAN and there are even more examples there, although this hasn't been publically released yet. Once the registers are set up all you have to do is set the required variables in the ring buffer and call send_can(). If you use the existing interrupt subroutines in the code, you will automaticall receive data that will automatically be put wherever you want in a table or structure that you can set up on your end.
Re: MS-II CANbus protocol?
I'll need documents on the Delphi Smart Remote Actuators (http://delphi.com/manufacturers/auto/po ... /smartrem/) before it makes sense to start. Should anyone be in possession of these, please let me know.
Re: MS-II CANbus protocol?
Sorry I'm a bit slow, but I want to verify what I understand your answer to be... There currently are some SPN/PGN messages hardcoded into the code for the specific functions that you currently use. You don't have a general purpose table full of unused messages because you wanted to keep the processor at optimal speed.
Is this correct?
Also, do you have any documentation regarding the current J1939 messages and expected results or simple look through the code as suggested?
We are thinking about building our own CAN-based I/O board and are just researching what we are up against!
Thanks in advance!
Re: MS-II CANbus protocol?
I never read J1939, we developed the protocol based on our own experience. It is work to go through the code, but it is very doable.