Welcome, Guest. Please Login or Register
MyECU main site
  Welcome to our forum.
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
New GUI feedback (Read 13296 times)
_Cliff_
Full Member
***
Offline


I Love YaBB 2!

Posts: 126
New GUI feedback
05/26/09 at 13:04:33
 
I'm looking at replacing the current ECUController/Optimiser with a new bit of software that will hopefully work across many platforms.

I have written a quick and dirty program in java and swing to allow some map editting.
Currently it only does injector duration and spark advance.

It allows you to left button drag over the grid to select portions of the map, then right click to perform an operation.

What I'm interested on at this time is what you were able to run it on or not ( PDAs etc), and whether the GUI is usable at all. Is it workable on a PDA?

you should be able to download it from here http://cajinnovations.com/MapEditor0.jar

copy it to a folder and from the command line type

java -jar MapEditor0.jar

I don't want to here about features it should have at this stage.
Back to top
 
 
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: New GUI feedback
Reply #1 - 05/26/09 at 16:46:36
 
Quick try on Ubuntu Linux, it fails when I browse into the directory with maps (it contains about 145 files)

$ chmod +x MapEditor0.jar
$ ./MapEditor0.jar
Button1
Exception in thread "Basic L&F File Loading Thread" java.lang.NullPointerException
     at MapEditor.MainFrame$5.accept(MainFrame.java:534)
     at javax.swing.JFileChooser.accept(JFileChooser.java:1594)
     at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryMo
del.java:250)
     at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryMod
el.java:232)
Back to top
 

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
_Cliff_
Full Member
***
Offline


I Love YaBB 2!

Posts: 126
Re: New GUI feedback
Reply #2 - 05/26/09 at 17:15:57
 
Was that after you selected the file or were you still in the filechooser?
What happens in a simpler directory?
Back to top
 
 
IP Logged
 
Luhbo
Full Member
***
Offline


I Like My15M!

Posts: 186
Germany
Re: New GUI feedback
Reply #3 - 05/26/09 at 20:11:40
 
Under XP SP3 it doesn't crash, but does it work? After downloading I had a .zip file, renamed that to .jar and in a new terminal I entered the given command line. A new window poped up with a map containing cell names. The terminal shows "mouse pressed" , "mouse released" or so. Load map works in so far as the map is obviously read (terminal window) but there's no change to the map in the editor window, still only cell indicators (0,0; 3,5, and so on).

The PC was not connected to the MyEcu.

Hubert
Back to top
« Last Edit: 05/26/09 at 20:16:46 by Luhbo »  
 
IP Logged
 
Luhbo
Full Member
***
Offline


I Like My15M!

Posts: 186
Germany
Re: New GUI feedback
Reply #4 - 05/26/09 at 20:22:03
 
No success at work under XP SP2, it crashes. Java Version 1.4.2_10

-------------------
Exception in thread "main" java.lang.UnsupportedClassVersionError: MapEditor/Mai
nFrame (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
-------------------------------

Hubert
Back to top
 
 
IP Logged
 
Luhbo
Full Member
***
Offline


I Like My15M!

Posts: 186
Germany
Re: New GUI feedback
Reply #5 - 05/26/09 at 20:40:17
 
-------------
Error:
Invalid jad-file (Java Application Descriptor)
--------------

intent Java MIDlet Manager
2003 Tao Group
Runtime MIDP 2.0: v10.1.2.57(Build 20040705)

under PocketPC 2003
Back to top
 
 
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: New GUI feedback
Reply #6 - 05/27/09 at 03:43:28
 
_Cliff_ wrote on 05/26/09 at 17:15:57:
Was that after you selected the file or were you still in the filechooser?
What happens in a simpler directory?

I could browse through folders until I chose this largish directory with my maps in, then it failed. I now noticed it does survive, it just refuses to enter that directory.

I now tried copying one map to a less populated folder and it works fine. Tried selecting rectangles and changing values. Saved file in same folder, ok. Tried saving in that bigger folder, similar exception.

Button2
You chose to open this file: 090517_changed.ecu
Button2
Exception in thread "Basic L&F File Loading Thread" java.lang.NullPointerException
     at MapEditor.MainFrame$6.accept(MainFrame.java:618)
     at javax.swing.JFileChooser.accept(JFileChooser.java:1594)
     at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryMo
del.java:250)
     at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryMod
el.java:232)


Checked the saved file, it reflected the fuel changes but no SpkAdv changes.
Back to top
« Last Edit: 05/27/09 at 04:08:25 by raz »  

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: New GUI feedback
Reply #7 - 05/27/09 at 03:48:04
 
FWIW
The program window size is 752x300 on my Ubuntu. That wouldn't fit the PDA I have somewhere (it's 640x480 I think) but maybe it depends on fonts or something? Also, the button text is wider than the buttons, may be font problem too.

The 'save file' dialog says 'open file' but we're used to that  Smiley
Back to top
 

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: New GUI feedback
Reply #8 - 05/27/09 at 04:06:26
 
It seems I was using this:
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu10)
OpenJDK Client VM (build 14.0-b08, mixed mode, sharing)


Now tried this Sun version instead:
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)


Large directory problems still there.
Button text now fits buttons.
Window size was now 740x300.
SpkAdv still not making it to output file.

I also noticed it saves the file with CR line endings instead of CRLF. If I recall correctly, ECUControl won't care.
Back to top
 

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
_Cliff_
Full Member
***
Offline


I Love YaBB 2!

Posts: 126
Re: New GUI feedback
Reply #9 - 05/27/09 at 05:54:09
 
So much  for Java's write once run every where. Rather disappointing results.
I'm not too worried about bugs at this stage just portability and look and feel.
Back to top
 
 
IP Logged
 
_Cliff_
Full Member
***
Offline


I Love YaBB 2!

Posts: 126
Re: New GUI feedback
Reply #10 - 07/15/09 at 14:50:05
 
Ok lets have another try.
This should allow most map editting.

You can click on the axis labels to move break points ( This version doesn't know about TPS yet and it will not do the map value interpolation )
You can click and drag in the map to select cells and when you pause for a few seconds it will pop up a menu allowing you to adjust the map. Selecting a single cell allows an edit of it.

It was written for JDK5 so you'll need something more recent than java 1.4.

For pocket PC I'm using the freeMysaifu JVM. Its a bit slow though. I looked at doing a MIDlet but that environment is a bit too limiting.

You should be able to download it from here http://cajinnovations.com/ECUController.jar
Back to top
 
 
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: New GUI feedback
Reply #11 - 07/15/09 at 19:18:55
 
Looks promising. I did not get that pop up for multiple cells until I realised you need to pause with mouse button still pressed.

I encountered no problems at all loading and editing. Haven't tried using it for real though.
Back to top
 

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
Luhbo
Full Member
***
Offline


I Like My15M!

Posts: 186
Germany
Re: New GUI feedback
Reply #12 - 07/16/09 at 05:40:48
 
Yes, looks good (after renaming it to .jar). The map window is bit tiny, nevertheless. No option for enlarging it?
Not checked with engine connected (how to connect it? No config option for Coms yet?)

Windows XP SP3
Pocket PC yet to be tested

Hubert
Back to top
« Last Edit: 07/16/09 at 05:44:25 by Luhbo »  
 
IP Logged
 
Frosty
YaBB Newbies
*
Offline


I love MyECU!

Posts: 2
Re: New GUI feedback
Reply #13 - 07/27/09 at 13:52:34
 
Hi Cliff, tried it on the Mac.  It runs up fine but it's in a very small windows that can't be resized so you can't see any of the controls or displays.

Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print