Push button start and shutdown

http://jbperf.com/io_extender/index.html
http://jbperf.com/io_extender/tinyIOx.html for the TinyIOx

Re: Push button start and shutdown

Postby jbelanger » Tue Nov 17, 2015 10:42 pm

I had forgotten something. I need to let the user choose if the shutdown is done on fuel only, ignition only or both.

Image

I think that most will and should use both fuel and ignition but giving this option should be useful in some cases.

Jean
Image
jbelanger
 
Posts: 3633
Joined: Sat Oct 03, 2009 12:24 pm
Location: Quebec, Canada

Re: Push button start and shutdown

Postby dontz125 » Tue Nov 17, 2015 10:46 pm

Yup. 'Spark only' doesn't help on an EDIS rig, and fuel only doesn't help when you're still running carbs!
dontz125
 
Posts: 199
Joined: Mon Feb 22, 2010 10:27 pm

Re: Push button start and shutdown

Postby dontz125 » Tue Nov 17, 2015 10:48 pm

While I've got you here, and this is seriously OT, but I'm getting a little spoiled with the MS manuals and tool tips - James has put some serious work into the documentation. I don't expect you to come up with anything approaching that overnight, but ... something? ;)
dontz125
 
Posts: 199
Joined: Mon Feb 22, 2010 10:27 pm

Re: Push button start and shutdown

Postby jbelanger » Tue Nov 17, 2015 10:53 pm

Yeah, something is definitely needed at some point... (Is that non-committal enough?)
Image
jbelanger
 
Posts: 3633
Joined: Sat Oct 03, 2009 12:24 pm
Location: Quebec, Canada

Re: Push button start and shutdown

Postby dontz125 » Tue Nov 17, 2015 11:10 pm

What they call "A definite maybe" ... :lol:
dontz125
 
Posts: 199
Joined: Mon Feb 22, 2010 10:27 pm

Re: Push button start and shutdown

Postby superdavemotorsports » Wed Nov 18, 2015 5:38 pm

But then what would Jean do with all the extra time once he completed some form of documentation .. Sarcasm
superdavemotorsports
 
Posts: 124
Joined: Fri Aug 15, 2014 12:20 pm
Location: Washington state

Re: Push button start and shutdown

Postby jbelanger » Wed Nov 18, 2015 6:08 pm

superdavemotorsports wrote:But then what would Jean do with all the extra time once he completed some form of documentation .. Sarcasm

:lol: Good one.
Image
jbelanger
 
Posts: 3633
Joined: Sat Oct 03, 2009 12:24 pm
Location: Quebec, Canada

Re: Push button start and shutdown

Postby dontz125 » Thu Feb 18, 2016 6:17 pm

Any thoughts / progress on the shutdown functions? Just curious and tire kicking at this point; as discussed elsewhere, I have other things occupying my - Hey! Squirrel!
dontz125
 
Posts: 199
Joined: Mon Feb 22, 2010 10:27 pm

Re: Push button start and shutdown

Postby jbelanger » Thu Feb 18, 2016 6:20 pm

Some progress but I need to debug some of it.
Image
jbelanger
 
Posts: 3633
Joined: Sat Oct 03, 2009 12:24 pm
Location: Quebec, Canada

Re: Push button start and shutdown

Postby jsiedlicki » Tue Sep 20, 2016 7:19 pm

Just found this thread and would like to implement the start and stop feature, any progress?
jsiedlicki
 
Posts: 17
Joined: Mon Jun 27, 2016 8:16 pm

Re: Push button start and shutdown

Postby jbelanger » Tue Sep 20, 2016 7:27 pm

Nothing substantial. I need to go back to debugging the code.

Jean
Image
jbelanger
 
Posts: 3633
Joined: Sat Oct 03, 2009 12:24 pm
Location: Quebec, Canada

Re: Push button start and shutdown

Postby jsiedlicki » Wed Mar 22, 2017 7:47 pm

Jean, any progress on the stop feature?
jsiedlicki
 
Posts: 17
Joined: Mon Jun 27, 2016 8:16 pm

Re: Push button start and shutdown

Postby jsiedlicki » Tue Apr 11, 2017 8:05 pm

Does the new "Stop Engine" feature added to MS3 1.5.1 help the stop functionality for the Start/Shutdown feature of TinyIOx?
jsiedlicki
 
Posts: 17
Joined: Mon Jun 27, 2016 8:16 pm

Re: TinyIOx and CAN-EGT

Postby dontz125 » Thu Aug 09, 2018 8:58 pm

jbelanger wrote:I've talked with James and CAN shut down (through fuel cut) will be there in the next release of MS2/Extra and MS3. Now I just need to implement a stop button (or some other input) feature...

Jean


I'm either blind or blond (pick one) but I have never been able to find this function in either codeset. Do you know the CAN command / address group?
dontz125
 
Posts: 199
Joined: Mon Feb 22, 2010 10:27 pm

Re: Push button start and shutdown

Postby jbelanger » Fri Aug 10, 2018 12:03 am

Unfortunately, there hasn't been any progress (or more precisely nothing concrete: one step forward and one step back). And the 1.5.1 functionality just makes it externally visible but there is nothing new about it (as far as I can tell because I don't have access to the code). Also, the latest pre1.5.2beta2 does add it to the CAN receiving variables.

I'm not sure if the MS2/Extra code is actually functional but for the MS3, you can have a look at the latest beta ini file and search for shutdown. That will give you the command which works on serial and CAN. Note that the offset is not the same for MS2 and MS3.

Jean
Image
jbelanger
 
Posts: 3633
Joined: Sat Oct 03, 2009 12:24 pm
Location: Quebec, Canada

Re: Push button start and shutdown

Postby dontz125 » Fri Aug 10, 2018 1:10 am

Thanks for the info. So, if the MS3 has it set that 11-bit CAN Message ID 666 will shut it down, sending 11-bit CAN Message 666 will shut down the engine, AND leave it off until it's either power-cycled or it recieves the reset command - correct?

The MS2 ini has nothing resembling "shutdown". The MS3 has LOTS of things labelled shutdown, but are almost all descriptors for other functions. There IS a 'w' command, "w\$tsCanId\x07\x02\xab\x00\x02\x85\x03". Translated into human, this reads as: "Write CANID table 7 offset 2 size 171 data 0 2 133 3". This strikes me as odd; I have no issue with the table 7 offset 2, but it specifies 171 bytes of data, but only provides 4. What am I missing? Also, if table 7 is the output channels, what is achieved by overwriting the Inj1 & 2 PW reported values?
dontz125
 
Posts: 199
Joined: Mon Feb 22, 2010 10:27 pm

Re: Push button start and shutdown

Postby jbelanger » Fri Aug 10, 2018 1:45 am

The MS2 has SHUTDOWN and shutdown in the code not in the ini. MS3 has the same in the code and what you saw in the ini.

And you're decoding the command wrong: it's offset 683 (0x02ab), size 2 (0x0002) and data 0x8503. You should start with ms3.h and ms2extra.h. By the way, 0x8503 is equal to (0x8501 & 0x8502) which stands for cutting fuel and spark but 0xc431 (engine reset) is not in the published code so must have been added in 1.5.x

Your CAN message not only has to have the correct ID but it has to have the correct data (on 2 unsigned bytes). So you need to send 0x8503 to shutdown the engine and 0xc431 to reset it. If you send anything else, you actually disable the shutdown command which might be awkward if that is your only means of shutting down the engine.

Jean
Image
jbelanger
 
Posts: 3633
Joined: Sat Oct 03, 2009 12:24 pm
Location: Quebec, Canada

Re: Push button start and shutdown

Postby dontz125 » Fri Aug 10, 2018 2:09 am

Checked the serial protocol again, and - oh, look. Offset and size are both 2-byte fields. *sigh* Thank you ... :roll:

Rummaging through m2extra.h, I came across the following:

Code: Select all
typedef struct {
    /* Adj variables. Table = 7, offset = 0, 2, 4, 6. type = S16 */
    int FuelAdj, SpkAdj, IdleAdj, SprAdj; // allow other devices to change our behaviour - AVOID MOVING
    unsigned int testmodelock; // must always be written as 12345 for valid command
    unsigned char testmodemode; // write a 0 to disable, 1 to enable, then 2 etc. for run modes
    unsigned int shutdowncode; /* offset 11 */
} datax;
#define SHUTDOWN_CODE_ACTIVE 0x8501
#define SHUTDOWN_CODESPK_ACTIVE 0x8502
#define SHUTDOWN_CODE_INACTIVE 0x0000


So ... Sending $8501 then $8502 to iD 00 table 7 offset 11 will chop an MS2, then sending $0000 to the same address to reset it? The 0x8503 was from the MS3; there is no 8503 that I can see in the MS2 code.

We've discussed the hows and wherefores of CAN broadcasting with the IOx; is it possible to send a single message on triggered basis? Pin 13 goes low = send the kill command; pin 13 goes high again = send the reset?
dontz125
 
Posts: 199
Joined: Mon Feb 22, 2010 10:27 pm

Re: Push button start and shutdown

Postby jbelanger » Fri Aug 10, 2018 2:29 am

As I mentioned in my previous message 0x8503 is (0x8501 & 0x8502) so you can simply send 0x8503 instead of 0x8501 followed by 0x8502. It's not clear from the h file that you can do that but that's what is intended (if I remember correctly). And as I said, I'm not sure the shutdown is actually implemented in the MS2/Extra code but I'm sure it is in the available MS3 code.

And the CAN broadcasting on the IOx can only send something from the output channels. And I don't think there is a way to set an output channel to either 0x8503 or 0x0000 from an input pin even if you use a mix of generic on/off outputs and PWM outputs but it might be interesting to try. One thing is certain, you won't be able to send a single CAN message on a triggered basis but I don't think there would be an issue on the MS side if it received the shutdown and reset message on a continuous basis.

Having said that, it should really be done in a dedicated feature which is what I still want to do.

Jean
Image
jbelanger
 
Posts: 3633
Joined: Sat Oct 03, 2009 12:24 pm
Location: Quebec, Canada

Re: Push button start and shutdown

Postby dontz125 » Fri Aug 10, 2018 2:34 am

I don't think there would be an issue on the MS side if it received the shutdown and reset message on a continuous basis.

If it *always* received the 'cut' and 'reset' messages in the same order every CAN cycle, it might not cause problems. If the reset preceded the cut, either contiuously or intermittently, the engine would run quite roughly - if at all!
dontz125
 
Posts: 199
Joined: Mon Feb 22, 2010 10:27 pm

PreviousNext

Return to I/O Extender

Who is online

Users browsing this forum: Bing [Bot] and 3 guests