Welcome to the North American Subaru Impreza Owners Club Tuesday April 2, 2024
Home Forums Images WikiNASIOC Products Store Modifications Upgrade Garage
NASIOC
Go Back   NASIOC > NASIOC Technical > Engine Management & Tuning

Welcome to NASIOC - The world's largest online community for Subaru enthusiasts!
Welcome to the NASIOC.com Subaru forum.

You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, free of charge, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is free, fast and simple, so please join our community today!

If you have any problems with the registration process or your account login, please contact us.







* As an Amazon Associate I earn from qualifying purchases. 
* Registered users of the site do not see these ads. 
Reply
 
Thread Tools Display Modes
Old 04-25-2008, 03:33 PM   #1
hotspoons
Scooby Newbie
 
Member#: 152301
Join Date: Jun 2007
Chapter/Region: MAIC
Location: Baltimore/DC Suburbs
Vehicle:
2007 Impreza STi
Obsidian Black

Default Anyone know Python?

Hello,

I'm in the beginning stages of writing a python library for talking SSM via a Tactrix cable. My goal is to have something cross platform (i.e. works on anything that Python runs on) that will translate ECU parameters into a named socket (on linux/unix/mac) and/or a TCP/IP socket on some arbitrary port; the TCP/IP socket would be capable of two things, depending on the request header:

The first is to serve a web page (i.e. micro webserver) with an AJAX readout of engine parameters, as well as having the ability to select which parameters to read, and have the ability to log this information to a database (SQLite would be easiest and most portable) and play it back. This would allow anyone with a web browser to access your car's engine read-outs from anywhere, so long as the TCP port assigned to the Python library is forwarded to the internet.

The second capability would be to speak a simple protocol allowing a front end to be built for local or remote viewing or logging of data. I started this because I was messing with Cairo/GTK+ python bindings and found it quite easy to make an animated gauge from an SVG file that looked really nice; however, I didn't have a way to get it to talk to my ECU, so here I am.

So...thus far, I've been looking over implementations of SSM in RomRaider, JDash, and ECUExplorer source code. The implementation in RomRaider, from my experience using it, is pretty solid. JDash's implementation is flakier (it works about 1/10 times I try), and I haven't used ECU Explorer, but the source file is several thousand lines of C++ for the SSM protocol for ECU explorer, and isn't as readable as the (still wordy) Java implementations.

Doing something like this in Python would allow for much shorter, easier to read coding, similar portability to Java (i.e. installing Python on Windows, or using the distributed Python on Mac or Linux, is all that would be necessary for this to work), very simple implementation of a web server, and the ability to make front ends in any language on any platform.

Look at the source for PyOBD, and you'll see that talking to a car via Python is orders of magnitude less involved than doing it in C++ or Java. Granted, SSM is a more complicated protocol than OBDII, but this should be quite doable.

Thus far, I have coded about 1/4 of what is necessary to initialize an ECU connection and request data. Once I get it to work, then I would begin coding a web interface and simple protocol, and finish my PyGTK+/Cairo front end for a digital dash. Anyone want to help? I have never done anything with serial communications before, so I could definitely use some help with getting SSM to work; Also, I could use help with writing a front end that work with less required libraries on Mac and Windows (PyGame?). I'm going to set up a LaunchPad page and/or sourceforge page for the project soon...what should I call it? Thanks,

-Rich

References:
* Registered users of the site do not see these ads.
hotspoons is offline   Reply With Quote
Sponsored Links
* Registered users of the site do not see these ads.
Old 04-26-2008, 12:06 PM   #2
chanders
Scooby Newbie
 
Member#: 131319
Join Date: Nov 2006
Chapter/Region: International
Vehicle:
2003 JDM STI
World Rally Blue

Default

have you posted this request on romraider.com/forums ? Those guys know there stuff.
chanders is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone know or know how I can contact Andy Swingler? North Ursalia Vancouver Impreza Club Forum -- VIC 3 10-26-2004 12:13 AM
anyone know know if these rims are any good ( pic inside) bubba03wrx Tire & Wheel 3 04-03-2004 11:09 PM
Did Anyone Know Others Know OT Slang? imprezach Off-Topic 3 10-23-2003 10:07 PM
Anyone know of anyone selling a 99-01 STOCK 2.5RS for under 8K? wrxman555 Mid West Subaru Owners Club Forum -- MWSOC 21 07-27-2001 06:17 PM
Anyone know anyone who... 8Complex Mid West Subaru Owners Club Forum -- MWSOC 19 04-16-2000 02:12 AM

All times are GMT -4. The time now is 06:53 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2024 Axivo Inc.
Copyright ©1999 - 2019, North American Subaru Impreza Owners Club, Inc.

As an Amazon Associate I earn from qualifying purchases.

When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission
Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.