MJCMSIM v0.1.1.20 Released

General Megajolt Questions and Answers

Moderators: JeffC, rdoherty, stieg, brentp

Post Reply
4600cc
Posts: 0
Joined: Sun Jul 11, 2004 1:48 am

MJCMSIM v0.1.1.20 Released

Post by 4600cc »

Well after a month of development, 31 days sharp, I present you the Megajolt Lite Jr Communications Simulator. This program simulates a Megajolt Lite Jr communications interface and can be used by developers to test software and by regular folks to show off software. This is a fully functional and well tested program, by no means it is a beta or preview version. This version could be put into Software/Downloads section. Program has online help and describes communication functions in detail. Perhaps it could inspire someone out there to develop for Megajolt. Presently this program will be very handy when it comes to further developing MJTUNER and Brent's software.

This is a special version, it's a first ever release of MJCMSIM. I dedicate it to Natasha van Zanten Solleveld (Ameral), "a south african> ..."




<a href="http://picasso.org/mjlj/?q=filestore2/d ... ">Download the installer</a>. Should this installer fail for those of you with pre-historic Windows, please report it as a bug to 4600cc@superford.org ..



There are 3 possible ways of operating this simulator:

1) Using 2 different serial ports on the same computer, connect simulator to one of the serial ports, connect a tuner to another serial port, connect the two serial ports using a cable.

2) Using 2 different computers, run a simulator on one computer, run a tuner on another computer. Connect serial ports on both computers to each other using a cable.

3) Using a virtual serial ports driver such as <a target=_blank href="http://www.eltima.com/products/vspdxp/">this...</a> create two serial ports connected to each other, connect simulator to one port and connect a tuner to another port. There are very many virtual serial port drivers available, you could find out more on <a target=_blank href="http://www.google.com/search?hl=en&lr=& ... >google</a>.





It has been a long month of hardcore coding on this one. I end up with almost 1 megabyte of source code, and some 15,000+ lines of it, not counting the support libraries I programmed last year. This software is a step toward a better tuner, and probably a logger, or a combination of different utilities for the Megajolt. We'll see....

Magnolia
Posts: 0
Joined: Sun Apr 02, 2006 9:30 pm

Simulator

Post by Magnolia »

What a great contribution! I used method 2) only. From desktop to Laptop with a USB converter on Laptop. Ran applications in both directions starting simulator first and then runtime connection on tuner. Don't know what "Mod Type" is about. Probably too obvious.
Could not connect with Brent's tuning software. Both tuners work with Megajolt itself.
Nice to see to things work even if I do not ever code another application.
Again, thanks.

4600cc
Posts: 0
Joined: Sun Jul 11, 2004 1:48 am

Glad you liked it.

Post by 4600cc »

A MOD TYPE is short for Modulator Type. Modulator is a part of the program that modulates state data. There are two modulators built in, SIMULATOR Linear and TABULATOR Linear. Simulator linear increases and dercreases ADVANCE, MAP and RPM values between set minimum and maximums, while tabulator linear increases and decreases RPM and MAP bins (not values) and ADVANCE value is taken from the table.

The configuration table is location sensitive, clicking cells sets rpm and map bits accordingly. With this in mind you can get some pretty interesting patters.

There is plenty of documentation to go with this, that's why it's version 0.1.. By the way, Brent's java tuner has a bug, it likes to complain about 10,000 rpms. I'm too afraid to go and dig in it, I don't like java much. You can get it communicating by loading a map into simulator that does not mention 10,000 rpms anywhere.

Post Reply