XPD: open-source keywin e-bike lab replacement

Get all your technical information about electric bikes here.
rolf_w   100 W

100 W
Posts: 140
Joined: Aug 04 2009 12:04pm

Re: XPD and windows 8

Post by rolf_w » Feb 02 2013 11:00am

has anybody tried to install the required files from "xpd-windows-prereq" (i.e. python-2.7.1.msi , pygtk-all-in-one-2.22.6.win32-py2.7.msi and pyserial-2.5.win32.exe) and run the latest XPD (v0.3.2) on windows 8 ? I can't get "pyserial-2.5.win32.exe" installed. I receive an error message "pyserial-2.5.win32.exe doesn't work properly" . any suggestions?

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Feb 02 2013 2:52pm

Mate just installed Win 8 and I have asked him to see if he can install it, and pointed him to this thread, he may get back to use with either results or to see how you have got on.
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
methods   10 GW

10 GW
Posts: 4532
Joined: Aug 08 2008 12:08pm
Location: Santa Cruz CA
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by methods » Feb 03 2013 11:41pm

My guess is that it will should run fine (if all the drivers etc are installed). If not I would try compatibility mode.
Increasing battery voltage and controller current limit will result in a non linear experience

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Feb 04 2013 12:01am

Just wondering, is your machine with Win8 64 bit ? You don't mention that at all.

I sort of assumed most new PC's were all 64 bit now? I don't know i have not bought a new Win machine in almost 10 years ( went Mac in 2009)
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

rolf_w   100 W

100 W
Posts: 140
Joined: Aug 04 2009 12:04pm

Re: XPD: open-source keywin e-bike lab replacement

Post by rolf_w » Feb 04 2013 1:30pm

it is a brand new notebook running 64bit win8. Besides XPD , other of my applications require USB<>RS232 cables. Some of those I have use the Prolific PL-2303 XA. I wanted to get the newest driver for win8 from their website only to know that this chip is not 'compatible' anymore...
r

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Feb 04 2013 3:18pm

You tried to install the 32 bit psyserial stuff, on a 64 bit machine. Maybe that is the issue?

I think I saw 64 bit versions on the berlios Xpd page. Maybe worth checking back on the download site to see. Or seeifthere is a 32 bit compatible mode that can be used
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

rolf_w   100 W

100 W
Posts: 140
Joined: Aug 04 2009 12:04pm

Re: XPD: open-source keywin e-bike lab replacement

Post by rolf_w » Feb 04 2013 6:21pm

thx for the hint - I googled for it and came up with:
  • pyserial 2.6 : "Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython" , thus definitely not win64
  • Pyserial installation on 64 bit win7 : some explanation how to install it via installer
  • Install pySerial as follows :
    download "pyserial-2.6.tar.gz" and extract (e.g. with 7-Zip) folder "pyserial-2.6" to c:\Python27\Lib\site-packages\pyserial-2.6 and install it:
    Open a command window (Start -> All Programs -> Accessories -> Command Prompt) and type to change directory: cd c:\Python27\Lib\site-packages-\pyserial-2.6 , then install pySerial by typing: c:\Python27\python.exe setup.py install
I will try this - any suggestions? r

User avatar
methods   10 GW

10 GW
Posts: 4532
Joined: Aug 08 2008 12:08pm
Location: Santa Cruz CA
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by methods » Feb 04 2013 8:07pm

FYI Guys

The default over-current window is one second in this code. That may be alright for a 40A controller... but if you are running any sort of a monster you really need to turn that down to 0. I made the mistake of leaving it at 1 second for a lot of our builds and I suspect it is the cause of the unruly handling of our test bikes and likely the cause of the 2 bench blowups that happened.

If you are reading this and you are running a high current limit - please turn that setting down to 0 to improve reliability
(as suggested by the software author in the pop-up windows)

This software rocks!

-methods
Increasing battery voltage and controller current limit will result in a non linear experience

User avatar
Thud   100 MW

100 MW
Posts: 2686
Joined: Aug 20 2009 6:20am
Location: West Michigan,USA

Re: XPD: open-source keywin e-bike lab replacement

Post by Thud » Mar 04 2013 8:58pm

Dumb question time...
I have a couple batches of new 3-series controllers (6 & 18 fet)
updated all the software & made corrected jumpers.....
the new software works fine with the older 2 series controllers so I know my ttl/usb is working......

But i have yet to succesfully flash the newer boards.....i have checked & re-assembled the jumper adapters on pg 13/14 of this thread with no joy....

my question? is it possible forthe the ttl adapter to not work with the newer boards? I am stuck on the idea that if it works for 1 it should work for the other.....

here is the EB306-A-5 connector points (freash board
Image

& the 18fet board:
Image
notice the pins are labeled diferently between the 2 models...is there some wackyness between the boards.....these came from Kewyn.

any insight is greatly apreciated.
get some......

All information & advice provided by Thud are "Open Source" & free for personal use & distribution under the following agreement linked below.
http://creativecommons.org/licenses/by-nc-nd/3.0/

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Mar 05 2013 1:16am

Software different for EB3xx boards.
Have you got latest XPD or Keywin software?.
I had this issue with a new Lyen board, I ended up ordering a new cable from him. Bit came with a 3 inch extension with jumper attached from pin ? to pin ? Sorry not got cable with me to check. This is maybe what you refer to with your reference to page 13/14 of the thread? Will need to get back to you with pics later.

But anyway, even new cable did not initially work till I updated the driver. Have you tried other software yet?
Last edited by NeilP on Mar 06 2013 2:48pm, edited 1 time in total.
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
joss76   1 µW

1 µW
Posts: 4
Joined: May 06 2011 6:22am
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by joss76 » Mar 06 2013 6:47am

any test with android phone ?

I use now a USB host cable , I have found a pilot for the COM/USB converter and it now possible to read python file with android

so i'ts possible to program my controler ?

other , I test yesterday to use XPD whith EB806 board but it's don't work ? it's though a XC846 infineon chip ...

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Mar 06 2013 2:51pm

Thud wrote:
my question? is it possible forthe the ttl adapter to not work with the newer boards? I am stuck on the idea that if it works for 1 it should work for the other.....

Yes, tested this evening, I have two different cables, both from Lyen. One works on a new 6 FET from Keywin, the other does not. Sorry but I did nto get time to open the case up and see what board number exactly..but they only arrived from Keywin yesterday. I have a wheel to lace and a battery pack to assemble, plus a shed of other small jobs, so it totally slipped my mind to open one up today
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
methods   10 GW

10 GW
Posts: 4532
Joined: Aug 08 2008 12:08pm
Location: Santa Cruz CA
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by methods » Mar 06 2013 2:57pm

I just wanted to pop back in and repeat how happy I am with this software. It is very powerful and I love the features. Thanks!

-methods
Increasing battery voltage and controller current limit will result in a non linear experience

User avatar
Thud   100 MW

100 MW
Posts: 2686
Joined: Aug 20 2009 6:20am
Location: West Michigan,USA

Re: XPD: open-source keywin e-bike lab replacement

Post by Thud » Mar 06 2013 5:00pm

I am in agreement methods, this software rocks......now if I can get it rocking with the version 3 boards :evil:

Neil,
thanks, I had a lyen's cable, but could never get the driver for that working on my old toshiba laptop.....I butchered it & put on a ttl adapter i had a disk for that has always worked perfectly with the original kewin bike labs parameter designer & lyen's version of the same thing.....& my much preferred XPD.

Still works fine for my older controllers with the newest version of XPD.

I am confident I have the wiring correct.....but have yet to flash a v3 board. If there is more stuff I need I'll have to get shopping. Thanks for the help.
get some......

All information & advice provided by Thud are "Open Source" & free for personal use & distribution under the following agreement linked below.
http://creativecommons.org/licenses/by-nc-nd/3.0/

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Mar 07 2013 3:07am

Thud wrote: Neil,
thanks, I had a lyen's cable, but could never get the driver for that working on my old toshiba laptop.....I butchered it & put on a ttl adapter i had a disk for that has always worked perfectly with the original kewin bike labs parameter designer & lyen's version of the same thing.....& my much preferred XPD.

Still works fine for my older controllers with the newest version of XPD.

I am confident I have the wiring correct.....but have yet to flash a v3 board. If there is more stuff I need I'll have to get shopping. Thanks for the help.

It could mean you will have to get shopping . I have two Lyen cables, both different. The newer one needs a newer driver from Lyen, speak to him about getting a new one.

I'll try and get images of the exact wiring that I know works on my EB306 boards today. Won't be able to post to here from the iPhone, but keep an eye on the Facebook ES page photos. This should at least confirm that the wiring you have IS as it should be.

i do have pictures here..but can't remember exactly which controller and what cable..so will take pics of the known working wiring later.
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Mar 07 2013 5:56am

OK,so still not done my own jobs yet..but here are pics of wiring of working programming wiring for the EB306 Keywin board with Lyen cable.

One thing I did note that I thought was strange..the press switch in the programmin glead. I always assumed it BROKE the ground line to make the controller accept the upload. It actually Makes the ground connection momentarily. the switch is normally open, pressing it makes the ground connection

You can see the link that connects SLK2 to Tx

Photos are in order, from controller to the USB adapter.
Attachments
EB306 Keywin 001 (Medium).jpg
EB306 Keywin 001 (Medium).jpg (102.41 KiB) Viewed 3123 times
EB306 Keywin 002 (Medium).jpg
EB306 Keywin 002 (Medium).jpg (77 KiB) Viewed 3123 times
EB306 Keywin 003 (Medium).jpg
EB306 Keywin 003 (Medium).jpg (67.07 KiB) Viewed 3123 times
EB306 Keywin 004 (Medium).jpg
EB306 Keywin 004 (Medium).jpg (84.55 KiB) Viewed 3123 times
EB306 Keywin 005 (Medium).jpg
EB306 Keywin 005 (Medium).jpg (87.74 KiB) Viewed 3123 times
EB306 Keywin 006 (Medium).jpg
EB306 Keywin 006 (Medium).jpg (72.11 KiB) Viewed 3123 times
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
gwhy!   1 MW

1 MW
Posts: 1651
Joined: Jun 08 2011 3:47pm
Location: Bristol, Uk

Re: XPD: open-source keywin e-bike lab replacement

Post by gwhy! » Mar 07 2013 6:51am

I will also post this up this is my v3 adaptor. The capacitor fixed quite a lot of issues for me when using the lead on different pc's .
V3 programming wiring.jpg
V3 programming wiring.jpg (15.91 KiB) Viewed 3092 times

User avatar
Thud   100 MW

100 MW
Posts: 2686
Joined: Aug 20 2009 6:20am
Location: West Michigan,USA

Re: XPD: open-source keywin e-bike lab replacement

Post by Thud » Mar 07 2013 12:05pm

thanks guys,
Ill be trying again tonight with a fresh attitude :P
am i also seeing correctly you have the ttl's tx wire going to the rx port on the controller?
& vicea versa?

(seems to me the old units met straight up as tx to tx & rx to rx but its been awhile)
get some......

All information & advice provided by Thud are "Open Source" & free for personal use & distribution under the following agreement linked below.
http://creativecommons.org/licenses/by-nc-nd/3.0/

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Mar 07 2013 12:48pm

gwhy! wrote:I will also post this up this is my v3 adaptor. The capacitor fixed quite a lot of issues for me when using the lead on different pc's .
Interesting, that your adapter breaks the power line. The Ed Lyen adapter CONNECTS the ground line momentarily, the ground is wired to the N.O contacts of the press switch



Thud wrote:thanks guys,

am i also seeing correctly you have the ttl's tx wire going to the rx port on the controller?
& vicea versa?

(
Correct, the transmitting end needs to be connected to the receiver at the other end.
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
gwhy!   1 MW

1 MW
Posts: 1651
Joined: Jun 08 2011 3:47pm
Location: Bristol, Uk

Re: XPD: open-source keywin e-bike lab replacement

Post by gwhy! » Mar 07 2013 12:53pm

Im pretty sure this is how it is tx>rx and rx>tx I drew my diagram from memory and using NeilP photos , but I am 99.9% sure as anything else would have seemed odd to me at the time when I put it together. try it and see if you still have no joy then swap the tx/rx over , and let me know and I will change the diagram.

the switch in the + is a normally closed switch , it not always needed to be pressed/released to make the transmision sometimes it will just upload, think it something to do with the cap.

edit: I should say that my adaptor this was not from lyen

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Mar 07 2013 1:12pm

100% Tx-Rx and NOT Tx-Tx..that is wrong..definetly Tx-Rx
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
Thud   100 MW

100 MW
Posts: 2686
Joined: Aug 20 2009 6:20am
Location: West Michigan,USA

Re: XPD: open-source keywin e-bike lab replacement

Post by Thud » Mar 09 2013 11:34am

we are back in buisness!
thanks for the help...I ended up making a new cable from scratch & using an different yet identicle ttl adapter (much shorter wires though) i get a power surge warning from my laptop's usb port (only flashing the 18fet units) but the software looks right & says successful.
get some......

All information & advice provided by Thud are "Open Source" & free for personal use & distribution under the following agreement linked below.
http://creativecommons.org/licenses/by-nc-nd/3.0/

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Mar 09 2013 12:28pm

Out of interest did you use a momentary switch in line with one of the wires, if so which one, ground or 5v and did you connect it NC or NO ?
Last edited by NeilP on Apr 21 2013 1:26pm, edited 1 time in total.
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
Thud   100 MW

100 MW
Posts: 2686
Joined: Aug 20 2009 6:20am
Location: West Michigan,USA

Re: XPD: open-source keywin e-bike lab replacement

Post by Thud » Mar 09 2013 1:22pm

I just left the 5+ wire out of the harness ....started the send & plugged it in last..(too rushed to look for a button switch)
Instant transfer.
Just finished bench testing jesters new controller...works a charm.
get some......

All information & advice provided by Thud are "Open Source" & free for personal use & distribution under the following agreement linked below.
http://creativecommons.org/licenses/by-nc-nd/3.0/

User avatar
NeilP   10 GW

10 GW
Posts: 4968
Joined: Nov 27 2010 3:18pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

Re: XPD: open-source keywin e-bike lab replacement

Post by NeilP » Mar 10 2013 1:45am

Glad that it worked.
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

Post Reply