DSM CAS 24/1 Wheel Pattern (JimStim 1.5)

Building and using the Stimulator to test your Megasquirt

Moderators: jsmcortina, muythaibxr

DSM CAS 24/1 Wheel Pattern (JimStim 1.5)

Postby jsdevel » Tue Jul 25, 2017 10:39 am

I'm following the directions in the docs for wheel upgrade. I have a 24/1 high res trigger disk that I'd like to simulate with the JimStim. Here is the wheel that I'm using:

Image

I'm familiar with reading C code, so I think all I have to do is replace one of the wheel patterns provided in the text file and pass this file to the .exe.

For this trigger disk, can you confirm that the following code is correct?

Code: Select all
// 24/1 trigger disk (high res disk for DSM CAS)
// 360/24 is 15 degrees, can't use floats so off and on will be different values i.e. 7 and 8
00,7,
01,8, // 1
00,7,
01,8, // 2
00,7,
01,8, // 3
00,7,
01,8, // 4
00,7,
01,8, // 5
00,7,
01,8, // 6
00,7,
01,8, // 7
00,7,
01,8, // 8
00,7,
01,8, // 9
00,7,
01,8, // 10
00,7,
01,8, // 11
00,7,
11,8, // 12
10,7, // cam signal
11,8, // 13
00,7,
01,8, // 14
00,7,
01,8, // 15
00,7,
01,8, // 16
00,7,
01,8, // 17
00,7,
01,8, // 18
00,7,
01,8, // 19
00,7,
01,8, // 20
00,7,
01,8, // 21
00,7,
01,8, // 22
00,7,
01,8, // 23
00,7,
01,8, // 24
0xff    // terminating string


I attempted to replace the stock 4g63 pattern in the text file with my 24/1 pattern above, but it didn't appear to work. Here's the output in my command prompt:

Code: Select all
C:\Users\Joseph Spencer\Desktop>wheel_converter.exe wheels_default.jsw foo.jsr COM3 9600
Signature: JimStim format V2.0.4 *********
wheel address 1: e209
wheel address 2: e29a
wheel address 3: e38b
wheel address 4: e39c
wheel address 5: e3b7
wheel address 6: e43a
wheel address 7: e4b7
wheel address 8: e4ce
wheel address 9: e4f3
wheel address 10: e555
wheel address 11: e584
wheel address 12: e5ab
wheel address 13: e5ae
wheel address 14: e5b6
wheel address 16: e5cc
wheel address 17: e5db
wheel address 18: e60c
wheel address 19: e635
wheel address 20: e63e
wheel address 21: e648
wheel address 22: e650
wheel address 23: e66f
wheel address 24: e681
wheel address 25: e690
wheel address 26: e6ad
wheel address 27: e737
wheel address 28: e7b9
wheel address 29: e83f
wheel address 30: e870
wheel address 32: e892
wheel address 33: e8c5
wheel address 34: e906
wheel address 35: e91a
wheel address 36: e934
wheel address 37: e954
wheel address 38: e96d
wheel address 39: e988
wheel address 40: e9ac
wheel address 41: ec7e
wheel address 42: ef51
wheel address 43: ef8a
wheel address 44: efcd
wheel address 45: f054
buf_pos: f0dc
checksum : 232   received : 232        1
checksum : 149   received : 149        1


After running this and removing the serial jumpers, 456 selection still has a 4g63 pattern. I'm using the FTDI cable, 3456 were on, only jumpers were tx and rx, and I supplied power through the 12v adapter. Does the output of wheel_converter.exe look correct?

(originally posted here)
jsdevel
Experienced MS/Extra'er
 
Posts: 294
Joined: Mon May 23, 2016 3:41 pm
Location: Phoenix, AZ

Re: DSM CAS 24/1 Wheel Pattern (JimStim 1.5)

Postby jsdevel » Wed Jul 26, 2017 9:31 pm

NVM. It worked! Like an complete noob, I had 4g72 selected on the DIP (456 ON). I replaced 4g63 in the wheel patterns file. Once I selected 4g63 on the DIP (23 ON) it worked! Thanks to Jean for making this so easy!
jsdevel
Experienced MS/Extra'er
 
Posts: 294
Joined: Mon May 23, 2016 3:41 pm
Location: Phoenix, AZ

Re: DSM CAS 24/1 Wheel Pattern (JimStim 1.5)

Postby racingmini_mtl » Wed Jul 26, 2017 9:49 pm

Good to know it worked. The output shows that the load was successful because you have the same checksum as what is received and the 1 at the end of the line confirms it (you'd have a 0 if there was a difference). Also important is the buf_pos value which must be less than f200 (hexadecimal value); this is also correct in your case.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 7971
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: DSM CAS 24/1 Wheel Pattern (JimStim 1.5)

Postby jsdevel » Fri Sep 15, 2017 2:02 am

Thanks Jean!
jsdevel
Experienced MS/Extra'er
 
Posts: 294
Joined: Mon May 23, 2016 3:41 pm
Location: Phoenix, AZ


Return to MegaStim

Who is online

Users browsing this forum: No registered users and 2 guests