Page 1 of 1

Hello

Posted: Sat Aug 02, 2014 11:05 pm
by tomiata
New guy here, just kicking the tires for now, but I've been reading a lot on the forums here. My background is embedded software, unix/linux, C development, some experience with micro-controllers, and interest in Miata's. I have two, a 1990 daily driver and a 1996 for a spare. I'm still debating on what to do with the '96 which was beat up in a hail storm. I'm interested in learning more about tuning optimizations for gas mileage and a switchable mode for performance.

I don't have a lot of time to put into this right now, but I've been tinkering some trying the simulator on Ubuntu. I have it started up under wine and can connect TunerStudio to it. I get a java error trying to start the rusefi_console. And I get the same error running under Windows7.
java-err.png
Any ideas on that?

Re: Hello

Posted: Sun Aug 03, 2014 2:10 am
by AndreyB
Welcome to the forum! We can definitely use some help with software development, embedded/C should fit the bill perfectly :) Have you seen http://rusefi.com/wiki/index.php?title=Development:Source_code_intro?

As for your exception, interesting - I have not see this before.

What does your java -version report under unix and Win7?

It also prints the exception stacktrace into console - can you paste it here? And I've just updated the console so that it would write the stack trace to the log file in the out/ directory if it does not show up in the console.

Where did you have the console .jar?

Re: Hello

Posted: Sun Aug 03, 2014 2:46 am
by tomiata
Here is debug data from linux, I'll have to reboot or grab my other laptop to get the output from Windows. I prefer to do development in linux, and I'm working on getting a build going in Ubuntu 12.04.

Code: Select all

java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

Code: Select all

java -jar rusefi_console.jar 
r Writing to out/MAIN_rfi_report_2014-08-02 21_38.csv
Console 20140730
java.lang.NoSuchMethodError: com.rusefi.ui.widgets.UpDownImage.trueRepaint(Ljavax/swing/JComponent;)V
	at com.irnems.LogViewer.refreshCountPanel(Unknown Source)
	at com.irnems.LogViewer.<init>(Unknown Source)
	at com.irnems.Launcher.<init>(Unknown Source)
	at com.rusefi.PortLookupFrame$2.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6505)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


Re: Hello

Posted: Sun Aug 03, 2014 2:57 am
by AndreyB
That's weird, I cannot explain it :(

I've just changed the build parameters so should be no more "Unknown Source" in the stacktrace if you take a fresh build from http://rusefi.com/build_server/

i guess the biggest concern I can make up would be OpenJDK but this just makes no sense. Please try current version on Windows?

Re: Hello

Posted: Sun Aug 03, 2014 3:11 am
by tomiata
Sorry I don't "do" java, but I want to learn. Here is output from win7.

Code: Select all

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)


C:\Users\Tom\Downloads\rusefi_simulator>java -jar rusefi_console.jar
r Writing to out/MAIN_rfi_report_2014-08-02 22_05.csv
Console 20140802
java.lang.NoSuchMethodError: com.rusefi.ui.widgets.UpDownImage.trueRepaint(Ljava
x/swing/JComponent;)V
        at com.irnems.LogViewer.refreshCountPanel(Unknown Source)
        at com.irnems.LogViewer.<init>(Unknown Source)
        at com.irnems.Launcher.<init>(Unknown Source)
        at com.rusefi.PortLookupFrame$2.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$200(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
handleException: java.io.PrintStream@1624a1c




Re: Hello

Posted: Sun Aug 03, 2014 3:27 am
by AndreyB
Please try current version - looks like I've hacked away from this bug. Still, does not make any sense to me and I do java for living.

Re: Hello

Posted: Sun Aug 03, 2014 3:46 am
by tomiata
This latest version worked on Win7 32bit and Ubuntu 12.04 64bit:

rusefi_console.jar 02-Aug-2014 23:22 2.2M

:D

Re: Hello

Posted: Mon Aug 04, 2014 2:45 pm
by tomiata
I've looked through the code base a little, nice work there. I have a build working on Linux, and I ordered an stm discovery board to play.

Is anyone else interested in Linux based development?

Let me see if I understand the hardware requirements. I need a discovery board, a Frankenstein board, power supply and an ecu connector to test in a Miata NA. Any other connections or sensors needed? I don't have any experience with ECU's.

Re: Hello

Posted: Mon Aug 04, 2014 2:59 pm
by AndreyB
tomiata wrote:Let me see if I understand the hardware requirements. I need a discovery board, a Frankenstein board, power supply and an ecu connector to test in a Miata NA. Any other connections or sensors needed? I don't have any experience with ECU's.
That would be one of the options. No extra sensors needed. A board to host the connector is optionable - http://rusefi.com/forum/viewtopic.php?f=4&t=507 - it's a question of comfort.

Theoretically there is also http://rusefi.com/forum/viewtopic.php?f=4&t=569 but testing is still under way. But if wait for a couple of weeks for me to make some progress with Frankenso validation it might be a better option, especially since it's designed with Miata N/A pinout in mind.

Re: Hello

Posted: Mon Aug 04, 2014 11:58 pm
by kb1gtt
It sounds like you would be most interested in Frankenso. For Miata, it has a section where you jumper straight through. This section for other ECU's like Honda allows for re-mapping of the harness pin out if required.

Re: Hello

Posted: Tue Aug 05, 2014 5:25 pm
by tomiata
Thanks, the Frankenso board looks good. I'll watch for news updates on it. Having a display and control buttons are nice, would be great to have a dash mounted remote display.

Tom

Re: Hello

Posted: Tue Aug 05, 2014 8:51 pm
by kb1gtt
See PLX gauges, those can be done via 232 stream. I'd bet we can use some of those unused pins to get a serial stream to a PLX gauge.

We decided to draw a line in the sand for the sake of getting something done. That was one option that didn't make make the cut for this spin. However we did try to leave it open for future expansion.

You could use unused outputs for things like PWM gauges or tach signals.

Re: Hello

Posted: Sun Aug 24, 2014 8:56 pm
by AndreyB
tomiata wrote:I have two, a 1990 daily driver and a 1996 for a spare
Can you please elaborate on this? Are these both 1.6? Are these both manual? Do they both start?

There is some interest from the UK Miata crowd in a PnP solution, can I mail you some hardware to make some tests? :)

Re: Hello

Posted: Mon Aug 25, 2014 12:05 am
by AndreyB

Re: Hello

Posted: Mon Aug 25, 2014 3:17 am
by tomiata
Both are running and both are stock, manual 5sp. 1990 is 1.6L, 1996 is 1.8L. Thanks for adding them to the list! This might spark some interest in the Miata crowd.

Yes I can do some testing on these guys.