anpaza
10 W
- Joined
- Dec 7, 2010
- Messages
- 69
Hello guys (and girls, any here? )!
Last week I had some fun with a couple of Infineon controllers recently purchased from Ed Lyen, and while playing with it I managed to intercept the serial protocol between the software and the controller. The protocol is quite simple, and since I was fed up by launching windows in a virtual machine every time I want to re-program the controller, I sat and wrote a open-source alternative to the Parameter Designer software. Since it allows for a bit larger control over the controller parameters I named it eXtended Parameter Designer, or XPD for short.
The program is written in Python and will run on Linux and Windows; it could run on Mac but the serial-port library I use (PySerial) does not support MacOS. If somebody cares to fix the library, XPD should run there as well.
The protocol itself is documented here (for Infineon version 2) and here (Infineon version 3). Now if somebody doesn't like my program, he can always write his own
The XPD itself is hosted at SourceForge (previously hosted on now-dead BerliOS.de, then on now-dead Google Code). People using Linux should be able to use it without too much hassle; for Windows users I'll explain a bit in details how to install & run it:
a) Download everything from the support directory (the files may be deleted after they are used):
* python-2.7.1.msi - This is Python interpreter, install it first.
* pygtk-all-in-one-2.22.6.win32-py2.7.msi - This is the GTK+ llibrary (the graphical user interface library) and the Python bindings for it, install this after Python.
* pyserial-2.5.win32.exe - Run this to install the PySerial library
b) Now download the latest version of XPD (the Windows executable ends with "-windows.zip"), and unzip it to C:\Program Files\ (or any other place at your choice).
d) Open the xpd-x.x.x folder (created when you extract the archive), you will see two icons: the XPD program and the XPD icon. Run the program (not the icon ) with a double-click. If all goes well, it should start and you will see a window like the left one:
e) If you intend to use it often, create a shortcut for it (Ctrl+Shift and drag the program to desktop), then you may change program's icon to the one provided in xpd' directory.
If you still have troubles with installation, look at this video tutorial:
http://www.youtube.com/watch?v=Lgb_KMBwFxM
---
I hope program usage scenarios should be obvious to anybody who can deal with the original "e-bike lab".
Also note that every parameter has a pop-up explanation that appears if you keep mouse cursor over a parameter longer than a few seconds. I wrote those explanations off the top of my head, after reading the endless-forums and some other sources; as you may imagine the contents of my head right now remembers a saucepan of vegetable soup rather than a glass of clear water. If you see any incorrect statements (and even language errors - my native language is Russian) - please report, either via the bugtracker on the XPD site, or by email, or here. If you find any bugs - please report. If you add any new features (for example, translate it to a new language) - please submit patches
Last week I had some fun with a couple of Infineon controllers recently purchased from Ed Lyen, and while playing with it I managed to intercept the serial protocol between the software and the controller. The protocol is quite simple, and since I was fed up by launching windows in a virtual machine every time I want to re-program the controller, I sat and wrote a open-source alternative to the Parameter Designer software. Since it allows for a bit larger control over the controller parameters I named it eXtended Parameter Designer, or XPD for short.
The program is written in Python and will run on Linux and Windows; it could run on Mac but the serial-port library I use (PySerial) does not support MacOS. If somebody cares to fix the library, XPD should run there as well.
The protocol itself is documented here (for Infineon version 2) and here (Infineon version 3). Now if somebody doesn't like my program, he can always write his own
The XPD itself is hosted at SourceForge (previously hosted on now-dead BerliOS.de, then on now-dead Google Code). People using Linux should be able to use it without too much hassle; for Windows users I'll explain a bit in details how to install & run it:
a) Download everything from the support directory (the files may be deleted after they are used):
* python-2.7.1.msi - This is Python interpreter, install it first.
* pygtk-all-in-one-2.22.6.win32-py2.7.msi - This is the GTK+ llibrary (the graphical user interface library) and the Python bindings for it, install this after Python.
* pyserial-2.5.win32.exe - Run this to install the PySerial library
b) Now download the latest version of XPD (the Windows executable ends with "-windows.zip"), and unzip it to C:\Program Files\ (or any other place at your choice).
d) Open the xpd-x.x.x folder (created when you extract the archive), you will see two icons: the XPD program and the XPD icon. Run the program (not the icon ) with a double-click. If all goes well, it should start and you will see a window like the left one:
e) If you intend to use it often, create a shortcut for it (Ctrl+Shift and drag the program to desktop), then you may change program's icon to the one provided in xpd' directory.
If you still have troubles with installation, look at this video tutorial:
http://www.youtube.com/watch?v=Lgb_KMBwFxM
---
I hope program usage scenarios should be obvious to anybody who can deal with the original "e-bike lab".
Also note that every parameter has a pop-up explanation that appears if you keep mouse cursor over a parameter longer than a few seconds. I wrote those explanations off the top of my head, after reading the endless-forums and some other sources; as you may imagine the contents of my head right now remembers a saucepan of vegetable soup rather than a glass of clear water. If you see any incorrect statements (and even language errors - my native language is Russian) - please report, either via the bugtracker on the XPD site, or by email, or here. If you find any bugs - please report. If you add any new features (for example, translate it to a new language) - please submit patches