XPD: open-source keywin e-bike lab replacement

Get all your technical information about electric bikes here.
User avatar
NeilP
100 GW
100 GW
Posts: 5326
Joined: Nov 27, 2010 3:18 pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

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

Post by NeilP » Nov 12, 2014 6:08 am

Maybe it is all just down to compatibility with different controllers and the cables.
With my cables they only work with power off.

Fails every time with controller powered up.
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
parabellum
1 MW
1 MW
Posts: 1963
Joined: Nov 19, 2010 9:55 am
Location: Dominican Republic, north.

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

Post by parabellum » Nov 12, 2014 10:36 am

It is about EB3. Since I got first batch from Cellman ~2.5 years ago, I do not care to disconnect them from the battery anymore to reprogram, I switch them off though.

User avatar
chucho
1 kW
1 kW
Posts: 407
Joined: Dec 15, 2012 1:58 pm
Location: EU Paradise; Sp

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

Post by chucho » Nov 15, 2014 7:05 am

When i try to install "pyserial-2.5.win32.exe"
This mensage appears:
Image

Any one knows how can i solve it?
Someone who does not doubt is a danger to the rest

9c+24slipo+60A lyen12fets+CAv3+26"hookworms=Fun commute
Cargobike+9c+13s33Ah=Fun transport
Kona entourage+ gng+ 40A lyen12fets+CAv3=Fun crosscountry
Flux+adaptto Max-e+Mxusv2+19" shinko= Monster fun Any Way

User avatar
NeilP
100 GW
100 GW
Posts: 5326
Joined: Nov 27, 2010 3:18 pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

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

Post by NeilP » Nov 15, 2014 7:22 am

I'd say your best bet is google, in conjunction with the error message and your operating system details.

At a guess...32 bit app and a 64 bit OS..would not have expected it to get that far..but never know

A quick search brought tup this.

http://gis.stackexchange.com/questions/ ... -load-th-c

read down, to another link in the answers...maybe something else has added or changed the real
The problem wound up being caused by a third-party application which had (improperly) put its own version of the runtime DLLs in the PATH. The solution in my case is given here:

http://stackoverflow.com/questions/1455 ... 7#14680947
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
NeilP
100 GW
100 GW
Posts: 5326
Joined: Nov 27, 2010 3:18 pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

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

Post by NeilP » Nov 15, 2014 11:16 am

Well I just have had a Windows 8 computer in here. a totally clean install.

and I get the same error..but just continue..and the program seems to run.

not tried it with a controller connected yet though., but it seems to run fine
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
zlagger
100 W
100 W
Posts: 130
Joined: Sep 28, 2012 9:06 pm
Location: Santa Cruz, CA

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

Post by zlagger » Nov 19, 2014 2:41 pm

Ok, so I have two of methods controllers right before he shut down his site that host these files.

Would anyone still have these??
methods wrote:Ok - I used this software and it is great. My intention here was to lay down a post with a rewording of the install... the original post makes it sound a little harder than it is and I am afraid that is scaring off a few folks. All you need is one link... you just have to do is go to the code depository and download two files - the prerequisite files and the XPD (both zip). Inside the prereq there are three executables that you run in the order posted. Then you can just dip into the XPD folder and run it.

But.. when I went to go get links they all appear to be dead (though they were working yesterday). I know this may make the developer cringe but I am going to post up an independent snap-shot on my server just in case things disappear (which has happened way too many times over the years). I also compressed everything into one single zip and labeled the software programs FIRST, SECOND, and THIRD since it confuses the shit out of me to install those version numbers out of order :mrgreen:

So look... this is how easy it is:

1) Download this single zip file: methods super retarded easy XPS install version

EDIT: Dont use that one for my controller, overshoot window is not set correct in defaults - use this

2) Extract it and look at what is inside - should look like this:
XPD_SCREENSHOT.jpg
3) Install the three files in the order shown (you can delete them when you are done)

4) Open the XPD folder and run the program

Dude... Easy right?
You might have some USB driver issues but I don't at the moment so good luck finding those on your own.

NOTE: Programming is not 100% clear cut - you have to know what you are programming, what R12 is set to, etc. Assume nothing... so if you are having trouble my best advice is to set LVC all the way down to 10V. If you are using a LYEN tune on a stock controller I suspect he is already compensating for the R12 mod... so if you set LVC where you want it you may end up getting it like 30V higher than you expect. That is something I ran into.

In the end I think I ended up starting with an 18 fet tune and converting it over to a 24 fet and that worked. Have not played with it enough to determine what was hanging me up... but when you are sitting on a 13KW trike one tends to get a little impatient :mrgreen: :mrgreen:

Anyhow much respect and a thousand thanks to anpaza for supplying this amazing software... just the simple touch of describing what functions do when you hover over them makes things so much better... if there is anything I can do in thanks let me know.

And FYI folks... that link I have is just a snapshot in time. If you follow his links you will get his latest source version which is usually a good idea. :wink:

-methods

User avatar
NeilP
100 GW
100 GW
Posts: 5326
Joined: Nov 27, 2010 3:18 pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

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

Post by NeilP » Feb 11, 2015 10:14 am

anpaza wrote: Try to find the most suitable profile by try and erro.
they differ only in the formulas for transforming Amperes to the units internally used by the controller (and, unfortunately, there is no way to deduce formulas from shunt milliohms because controllers may slightly differ in schematics of e.g. shunt voltage amplifier).
Could you perhaps produce a version of XPD where rather than us selecting a different profile to change how the voltage drop across the shunt is converted to amps, we merely enter a figure directly?
Yes we would still have to work with trial and error when outside the know values, but I guess internally in the XPD code there is only one figure that you personally have changed when creating the profiles for the 6 12 18 24 FE T controllers?
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
NeilP
100 GW
100 GW
Posts: 5326
Joined: Nov 27, 2010 3:18 pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

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

Post by NeilP » Feb 24, 2015 2:52 am

Weird, just received an e-mail that this thread had received a reply.
I come here, but no, no new post , mine was the last. Weird
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

John in CR
100 GW
100 GW
Posts: 13764
Joined: May 20, 2008 12:58 am
Location: Paradise

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

Post by John in CR » Feb 24, 2015 6:46 am

NeilP wrote:
anpaza wrote: Try to find the most suitable profile by try and erro.
they differ only in the formulas for transforming Amperes to the units internally used by the controller (and, unfortunately, there is no way to deduce formulas from shunt milliohms because controllers may slightly differ in schematics of e.g. shunt voltage amplifier).
Could you perhaps produce a version of XPD where rather than us selecting a different profile to change how the voltage drop across the shunt is converted to amps, we merely enter a figure directly?
Yes we would still have to work with trial and error when outside the know values, but I guess internally in the XPD code there is only one figure that you personally have changed when creating the profiles for the 6 12 18 24 FE T controllers?
This also affects regen current. ie You get different amounts of regen current with different fet number profiles, so if the meager few settings for regen force are insufficient, try a different profile, since until forward current limits we can't set the regen current to whatever we want.

User avatar
anpaza
10 W
10 W
Posts: 69
Joined: Dec 07, 2010 5:24 pm

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

Post by anpaza » Apr 18, 2015 5:22 am

I have migrated the project from Google Code which is going to be closed in August to SourceForge:
https://sourceforge.net/projects/xpd-ebike/

I've fixed the first post as well, and also I've added a link to a video I made to show someone how to install XPD on Windows.
The drivers issue is not covered in the video though, that depends on the USB-UART cable you have.

User avatar
parabellum
1 MW
1 MW
Posts: 1963
Joined: Nov 19, 2010 9:55 am
Location: Dominican Republic, north.

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

Post by parabellum » Apr 19, 2015 11:37 am

Thanks. Good to see you here again. You are very efficient poster. :D

User avatar
Alan B
100 GW
100 GW
Posts: 7026
Joined: Sep 11, 2010 7:43 am
Location: San Francisco Bay Area, USA
Contact:

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

Post by Alan B » Apr 26, 2015 7:46 am

A couple of comments. One is that when there is an email indicating a new post but none is present that often means a spam post was deleted before you got to read it, thanks to the folks who do all the hard work to clean up the Sphere.

Also thanks for the work on XPD, it is great to have an alternative software and written in my favorite language. :)

The other comment is that SourceForge has gone to the dark side with new ownership and the world is moving to GitHub and BitBucket or Google Sites is also good for small projects. Watch the SourceForge downloads for nasty extra unasked for and unwanted software, I've had to clean a few computers after downloading from there and found browser takeovers and other undesirable things that came along for the ride. They are no longer the wholesome good guys they once were. Just say no to SourceForge!

User avatar
NeilP
100 GW
100 GW
Posts: 5326
Joined: Nov 27, 2010 3:18 pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

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

Post by NeilP » Apr 26, 2015 10:00 am

Alan B wrote:Watch the SourceForge downloads for nasty extra unasked for and unwanted software, I've had to clean a few computers after downloading from there and found browser takeovers and other undesirable things that came along for the ride. They are no longer the wholesome good guys they once were. Just say no to SourceForge!
OOOhh thanks for the warning
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

User avatar
alsmith
100 kW
100 kW
Posts: 1179
Joined: Dec 03, 2010 7:25 pm
Location: Northumberland, UK

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

Post by alsmith » Apr 26, 2015 11:52 am

Alan B wrote: ...
The other comment is that SourceForge has gone to the dark side with new ownership and the world is moving to GitHub and BitBucket or Google Sites is also good for small projects. Watch the SourceForge downloads for nasty extra unasked for and unwanted software, I've had to clean a few computers after downloading from there and found browser takeovers and other undesirable things that came along for the ride. They are no longer the wholesome good guys they once were. Just say no to SourceForge!
Agreed. There are several of those sites to that sneakily install unwanted stuff such as their own toolbars along with other 'recommended' bits of malware/crapware. Download.com was a site I always used but now avoid as much as possible.
To get rid of the crap Ad-Aware (but make sure you go to their site for the download, their are malware programs using the same name), HitmanPro, Malwarebytes Anti-Malware are good, Emsisoft Anti-Malware (and Emsisoft Emergency Kit) are among the best but only offer a months trial- but worth installing for your free month.

User avatar
Alan B
100 GW
100 GW
Posts: 7026
Joined: Sep 11, 2010 7:43 am
Location: San Francisco Bay Area, USA
Contact:

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

Post by Alan B » Apr 26, 2015 3:13 pm

Since XPD is a python file rather than an exe it is less likely they can piggyback anything to it, so this applies more to executables.

User avatar
alsmith
100 kW
100 kW
Posts: 1179
Joined: Dec 03, 2010 7:25 pm
Location: Northumberland, UK

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

Post by alsmith » Apr 27, 2015 9:55 am

Alan B wrote:Since XPD is a python file rather than an exe it is less likely they can piggyback anything to it, so this applies more to executables.
No-one is saying it is the writers of Python that does this- it is the download sites adding their extra programs causing issues mentioned here- although there is also malware that include these unwanted items written into the install routines.

User avatar
louis raaijmakers
100 W
100 W
Posts: 175
Joined: Oct 09, 2013 3:22 pm

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

Post by louis raaijmakers » Jul 03, 2015 5:35 am

hi guys,
i just got my controller back from lyen and it is getting limited by the controller when i push the tree speed it accelerates and within 1 second it back off to± 20kmh when if first got 73kmh on my 72v battery..
the battery is fine for sure but the controller is acting stange.

and now when i try to program it it says this: upload failed: invalid reply byte ´fe´
can someone explane what this means?.
also with the lyen program it says: succeed but it isn´t.

any sugestions?
greetings louis

User avatar
kiwiev
100 kW
100 kW
Posts: 1008
Joined: Mar 22, 2015 4:19 am
Location: Jindabyne NSW Australia
Contact:

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

Post by kiwiev » Jul 11, 2015 6:15 pm

Is that speed on the ground or wheel off?

cheers Kiwi

User avatar
alsmith
100 kW
100 kW
Posts: 1179
Joined: Dec 03, 2010 7:25 pm
Location: Northumberland, UK

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

Post by alsmith » Jul 12, 2015 6:15 am

My first looks would be the simple stuff:
1 Is the controller set on the right mode - there are 2 possibilities for the speed mode. One is converse, I can't remember the other name used. One is a 3 speed mode needing a 3 way switch , the other is 2 speeds but needs a temporary make switch.
2 The switch. Those 3 speed switches aren't the highest quality so make sure that the switch is staying connected when switched- I had a problem with this a few years ago and had to mess around with contract spray to get it working. You can check if it's this in one of two ways
- by disconnecting the speed switch and check it's working properly by checking continuity in the different switch positions multi-meter, battery and light bulb etc.
- by disconnecting the switches connector and shorting the relevant wires on the controller side of that connection block ( bypassing the switch ) and test riding.

wytas696
100 mW
100 mW
Posts: 39
Joined: Jul 27, 2013 10:59 am
Location: Ireland ,Dublin

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

Post by wytas696 » Jul 12, 2015 9:27 pm

sub

wytas696
100 mW
100 mW
Posts: 39
Joined: Jul 27, 2013 10:59 am
Location: Ireland ,Dublin

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

Post by wytas696 » Jul 14, 2015 3:39 pm

Hello im new to programming and have question .
Will it work with Lyen EB318? As there is no profile for Lyen EB318 . Should i use EB318 Cellman ? Or just EB318 ? Hope it make seance :roll:
Thanks

User avatar
gwhy!
1 MW
1 MW
Posts: 1780
Joined: Jun 08, 2011 3:47 pm
Location: Bristol, Uk

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

Post by gwhy! » Jul 15, 2015 3:19 am

wytas696 wrote:Hello im new to programming and have question .
Will it work with Lyen EB318? As there is no profile for Lyen EB318 . Should i use EB318 Cellman ? Or just EB318 ? Hope it make seance :roll:
Thanks

Just use the standard eb318 and set it to a low battery current ( 20A) phase current (50A) initially and then measure the peak current , also make sure the overcurrent detection delay is set to 0.0s

if the peak current ties in with what has been set then you know the profile is the correct one.

wytas696
100 mW
100 mW
Posts: 39
Joined: Jul 27, 2013 10:59 am
Location: Ireland ,Dublin

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

Post by wytas696 » Jul 16, 2015 8:37 am

Ok will try that . Thanks A Lot for advise :wink:

shortcircuit911
100 W
100 W
Posts: 205
Joined: Feb 19, 2010 1:24 pm
Location: Antioch, CA

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

Post by shortcircuit911 » Oct 18, 2015 1:42 am

Hi, I was able to install all the files and launch xpd. I opened up the 12fet profile and made a few changes. After making the changes I hit "save" and got an error message saying "Failed to save profile permission denied"? Anyone ever get this message? Any help would be much appreciated.
Attachments
image1 (2).jpg
image1 (2).jpg (149.31 KiB) Viewed 1364 times

User avatar
NeilP
100 GW
100 GW
Posts: 5326
Joined: Nov 27, 2010 3:18 pm
Location: 49.17303, -2.05354 Jersey, Europe
Contact:

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

Post by NeilP » Oct 18, 2015 1:58 am

You are trying to edit a Default Preset, and save that..cant do that

You have to a new one,which saves in My Docs/XPD by default.

So Hit Copy Button of th eone you want
rename it
Then Save.

This will then create an XPD folder within My Docs for your own Profiles.
:) Only Irish coffee provides in a glass all four essential food groups: alcohol, caffeine, sugar, and fat :)

Post Reply