XPD: open-source keywin e-bike lab replacement

Get all your technical information about electric bikes here.
randysway   1 mW

1 mW
Posts: 13
Joined: Sep 11 2018 11:00am
Location: Chicago
Contact:

Re: Upload failed XPD Version 0.4.1a

Post by randysway » Oct 14 2019 4:12pm

Steve65 wrote:
Jun 24 2019 3:33pm
Has anyone tried the Download and Upload functionality in XPD Version 0.4.1a with a 124110ST-MII-LYEN EDITION controller ?

I've been able to Download the parameters OK but when try to upload the same values (no changes) I get :-

"Upload failed: byte must be in range(0, 256)"
It looks like the default PySerial version in pip breaks XPD at the moment (v 3.4).

Uninstall PySerial v3.4 and install version 2.5

On Linux:
pip2 uninstall --user pyserial
pip2 install --user pyserial==2.5

(Not sure how python packages are handled on windows, don't need that kind of negativity in my life, frankly. :P )

Cheers.

Felan128   1 µW

1 µW
Posts: 1
Joined: Aug 30 2019 10:06am

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

Post by Felan128 » Feb 10 2020 3:00pm

Hi people.
The other day I finished (almost finished) a small device on Arduino that allows you to program the controller in the field.
It is a little damp, but it works.
If anyone is interested, here is the link: https://github.com/Felan412/AVR_arduno_ ... ike_based-

If something is wrong with copyright, let me know I will fix it.

User avatar
pwd   10 kW

10 kW
Posts: 712
Joined: Oct 11 2011 12:01pm
Location: Ontario, Canada

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

Post by pwd » Feb 25 2020 9:55am

Very interesting device ^^, thanks for posting
2WD Commuter/Street Build viewtopic.php?f=6&t=98286:
Rocky Mountain Element
Magic Pie 4 front w/ Infineon 4 Clone + MXUS 45mm 3T rear w/ Infineon 4 Clone
Samsung 40T3 20S6P

Offroad Build viewtopic.php?f=6&t=102195:
2017 Scott Big Jon
Cyclone "3kw" 13T
Molicel P42A 21S3P

Grom Clone viewtopic.php?f=12&t=116813

User avatar
zeccato   100 W

100 W
Posts: 177
Joined: Jan 17 2019 8:16am

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

Post by zeccato » Mar 17 2020 7:45am

Thanks for your contribution, today I installed xpd, that is the 3 programs (as specified) and it worked well with window 10.
I put the defaut on the 2, 100%, and the 3 position switch on the 2.
my 2018 cable usb already had the bridge,
(EB3 12 FET cellman).
I've made some adjustments, nothing else.
The Pas now works better, it stops almost immediately.
Full susp. folding 20 swxh r. (2011),. 02 2020 MacT8. batt. 48v. 25A Life (2012), and 48 7,5A a123 (2018?). Controller programmable EB3 12 FET. Charger Balancer 14s: TP1430C. Gophert CPS-6011 60V 11A. Mercury (rarely). Buzzer. https://www.google.com/url?sa=t&source= ... 6dXxc9-lNW

User avatar
DogDipstick   1 MW

1 MW
Posts: 1686
Joined: Aug 19 2018 12:39pm
Location: Fleetwood Pa

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

Post by DogDipstick » May 01 2020 12:10am

zeccato wrote:
Mar 17 2020 7:45am
Thanks for your contribution, today I installed xpd, that is the 3 programs (as specified) and it worked well with window 10.
I put the defaut on the 2, 100%, and the 3 position switch on the 2.
my 2018 cable usb already had the bridge,
(EB3 12 FET cellman).
I've made some adjustments, nothing else.
The Pas now works better, it stops almost immediately.
Would you mind telling us the ( current ) version used, and source for the installation, to amend your post?

Trying to pawn through 10+years of iteration, multiple supported, and unsupported Prolific info, different pinout USB > TTL software, flashing procedures, boards, revisions, and other infos... can get a little tedious, to say the least. There is alot of questions in this thread and some very well laid out answers, but having up to date confirmation as to the current hardware and soft wares used is imperative.

Thankyou if you could. or anybody that could, reference. I think I got it, but.. for a program that flashes a controller designed on the other side of the earth well covered ten years ago..... and doesn't read, or sometimes even directly respond to the actual set data b/c of different configuration and hardware, but has a very specific flashing procedure with no confirmation of a successful flash save conjecture.. or experience... now it is like walking a heavy bike uphill. So to say :) .
84v of Ironhorse XC.. :) :bolt: by Chevy :bolt: :D You call .. that.. a "glitch:" ? :twisted: (...No Mom. The formula is Kaw > 1(Hr) = Impounded. The math checks out. I'll be fine. ).. :? Broke20Horsies! 17,830w !! :x 1 (pound / second) Hp = 338.24 M^2 Kg^2 / Sec^4 :twisted: ) :| isn't 13" x 27".. Oh nvrmnd :roll: 4+25% = 5 ; 5-20% = 4... 5(1-20%) = 4.. so, to correct the incorrect reading, of 4 ... 4(1+25%) = 5 :confused: Fabricator @BSECo. :( God. Damn. Slugs. :o

User avatar
zeccato   100 W

100 W
Posts: 177
Joined: Jan 17 2019 8:16am

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

Post by zeccato » May 01 2020 9:22am

DogDipstick wrote:
May 01 2020 12:10am
zeccato wrote:
Mar 17 2020 7:45am
Thanks for your contribution, today I installed xpd, that is the 3 programs (as specified) and it worked well with window 10.
I put the defaut on the 2, 100%, and the 3 position switch on the 2.
my 2018 cable usb already had the bridge,
(EB3 12 FET cellman).
I've made some adjustments, nothing else.
The Pas now works better, it stops almost immediately.
Would you mind telling us the ( current ) version used, and source for the installation, to amend your post?

Trying to pawn through 10+years of iteration, multiple supported, and unsupported Prolific info, different pinout USB > TTL software, flashing procedures, boards, revisions, and other infos... can get a little tedious, to say the least. There is alot of questions in this thread and some very well laid out answers, but having up to date confirmation as to the current hardware and soft wares used is imperative.

Thankyou if you could. or anybody that could, reference. I think I got it, but.. for a program that flashes a controller designed on the other side of the earth well covered ten years ago..... and doesn't read, or sometimes even directly respond to the actual set data b/c of different configuration and hardware, but has a very specific flashing procedure with no confirmation of a successful flash save conjecture.. or experience... now it is like walking a heavy bike uphill. So to say :) .
I followed the instructions of this post, I don't remember well and I didn't fully understand what you're looking for.
Full susp. folding 20 swxh r. (2011),. 02 2020 MacT8. batt. 48v. 25A Life (2012), and 48 7,5A a123 (2018?). Controller programmable EB3 12 FET. Charger Balancer 14s: TP1430C. Gophert CPS-6011 60V 11A. Mercury (rarely). Buzzer. https://www.google.com/url?sa=t&source= ... 6dXxc9-lNW

User avatar
DogDipstick   1 MW

1 MW
Posts: 1686
Joined: Aug 19 2018 12:39pm
Location: Fleetwood Pa

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

Post by DogDipstick » May 01 2020 11:38am

zeccato wrote:
May 01 2020 9:22am
DogDipstick wrote:
May 01 2020 12:10am
zeccato wrote:
Mar 17 2020 7:45am
I installed xpd, that is the 3 programs (as specified) and it worked well
Would you mind telling us the ( current ) version used, and source for the installation, to amend your post?

I followed the instructions ? this post ?, I don't remember well and I didn't fully understand what you're looking for.
I am asking what version, and where is the download link, pls.

So many different answer on this thread.

PySerial v3.4

version 2.5?

0.4.1?

0.4.1 alpha?

Xpd 0.3.2? XPD 0.3.3? What?

Is this the correct download link?

https://drive.google.com/drive/folders/ ... hiOU11ZEU


Yes? No?
84v of Ironhorse XC.. :) :bolt: by Chevy :bolt: :D You call .. that.. a "glitch:" ? :twisted: (...No Mom. The formula is Kaw > 1(Hr) = Impounded. The math checks out. I'll be fine. ).. :? Broke20Horsies! 17,830w !! :x 1 (pound / second) Hp = 338.24 M^2 Kg^2 / Sec^4 :twisted: ) :| isn't 13" x 27".. Oh nvrmnd :roll: 4+25% = 5 ; 5-20% = 4... 5(1-20%) = 4.. so, to correct the incorrect reading, of 4 ... 4(1+25%) = 5 :confused: Fabricator @BSECo. :( God. Damn. Slugs. :o

User avatar
zeccato   100 W

100 W
Posts: 177
Joined: Jan 17 2019 8:16am

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

Post by zeccato » May 06 2020 12:33pm

DogDipstick wrote:
May 01 2020 11:38am
zeccato wrote:
May 01 2020 9:22am
DogDipstick wrote:
May 01 2020 12:10am
zeccato wrote:
Mar 17 2020 7:45am
I installed xpd, that is the 3 programs (as specified) and it worked well
Would you mind telling us the ( current ) version used, and source for the installation, to amend your post?

I followed the instructions ? this post ?, I don't remember well and I didn't fully understand what you're looking for.
I am asking what version, and where is the download link, pls.

So many different answer on this thread.

PySerial v3.4

version 2.5?

0.4.1?

0.4.1 alpha?

Xpd 0.3.2? XPD 0.3.3? What?

Is this the correct download link?

https://drive.google.com/drive/folders/ ... hiOU11ZEU


Yes? No?
I don't really remember, because of the stress of today's world.

I have these programs in my computer:
xpd-.0.4.1a
python 2.7.1
pygtk-all-in-one-2.22.6.win32-py2.7
pyserial-2.7 win32_py3k
Full susp. folding 20 swxh r. (2011),. 02 2020 MacT8. batt. 48v. 25A Life (2012), and 48 7,5A a123 (2018?). Controller programmable EB3 12 FET. Charger Balancer 14s: TP1430C. Gophert CPS-6011 60V 11A. Mercury (rarely). Buzzer. https://www.google.com/url?sa=t&source= ... 6dXxc9-lNW

User avatar
HolgiB   1 W

1 W
Posts: 64
Joined: Oct 02 2018 2:58am

List index out of range when downloading profile from controller

Post by HolgiB » Jun 20 2020 1:17pm

Thanks for providing such a great platform independent tools also running under Linux. :thumb:

I grabbed the tar package from https://drive.google.com/drive/folders/ ... ThiOU11ZEU
for XPD 0.4.1a

Connection to my guinea pig, a EB312 sensorless 12 FET controller works fine and I can "download" the settings stored on the controller into a new profile. Unfortunately I get an "Upload failed: list index out of range" when I try to upload the profile again with modified parameters. Is this related to the fact that a new entry in the profiles was generated ?

Let me know if you need more feedback. XPD doesn't log anything to the terminal. I am using Xubuntu 16.04 if this is of interested.

Edit: Closing and re-opening doesn't change a thing. The newly generated profile is shown but uploading to the controller fails.

TIA,
HolgiB

User avatar
HolgiB   1 W

1 W
Posts: 64
Joined: Oct 02 2018 2:58am

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

Post by HolgiB » Jul 28 2020 6:19am

Wow....I didn't expect THAT many responses ! :roll:

I do understand that EB3XX and other Infineon-based controllers are not the latest and greatest thing around and somewhat (out)dated. But those controllers are still available and do a pretty good job to keep Motor "Sissy" such as a MAC running very quiet and without issues. :mrgreen:

OK, here is how it worked out for me:
I exported the values from the controller into a new profile and simply took screenshots from the configured value. Afterwards I used one of the matching pre-configured profile matching the controller (EB 312 sensorless and EB 312 sensored). I only adjusted the values I wish to change and wrote the profile to the controller.

Worked fine for me with the 0.4 version of XPD under Xubuntu 18.04 x64 as well as under Windows 10 Professional x64.

HTH,
H.

User avatar
pwd   10 kW

10 kW
Posts: 712
Joined: Oct 11 2011 12:01pm
Location: Ontario, Canada

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

Post by pwd » Sep 01 2020 2:08pm

Does anyone have a diagram of how to connect an Infineon 4 (KH6XX) style controller to a USB programming cable?

EDIT: Found the answer and posted it here:
viewtopic.php?f=2&t=8610&p=1580680#p1580680
2WD Commuter/Street Build viewtopic.php?f=6&t=98286:
Rocky Mountain Element
Magic Pie 4 front w/ Infineon 4 Clone + MXUS 45mm 3T rear w/ Infineon 4 Clone
Samsung 40T3 20S6P

Offroad Build viewtopic.php?f=6&t=102195:
2017 Scott Big Jon
Cyclone "3kw" 13T
Molicel P42A 21S3P

Grom Clone viewtopic.php?f=12&t=116813

User avatar
bobhurd3d   100 mW

100 mW
Posts: 41
Joined: Jan 17 2019 11:19am
Location: San Antonio, Florida

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

Post by bobhurd3d » May 01 2021 3:15pm

pwd wrote:
Sep 01 2020 2:08pm
Does anyone have a diagram of how to connect an Infineon 4 (KH6XX) style controller to a USB programming cable?

EDIT: Found the answer and posted it here:
viewtopic.php?f=2&t=8610&p=1580680#p1580680
Thank you for posting that link with the circuit diagram.
Greetings from sunny Florida!

Vector Typhoon eBike

triton_mole   1 µW

1 µW
Posts: 3
Joined: Mar 23 2022 7:20am

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

Post by triton_mole » Mar 23 2022 7:28am

Can anyone help me, please?

I upgraded my Debian-Linux from 9 to 11 (bullseye) and now I cant get XPD installed!
It says "python-central", "python-gtk2" and "python-serial" is missing. I can't find these in the repos.

I would really appreciate someone to help me!
Thank you!

User avatar
HolgiB   1 W

1 W
Posts: 64
Joined: Oct 02 2018 2:58am

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

Post by HolgiB » Mar 23 2022 8:08am

Hey there,

seems that packages have been mostly removed. I just fired up a Debian Bullseye container on my Ubuntu box but the result should be similar.

There is a package called python3-serial which should fullfil the needs of xpd (unless it is written in Python 2.X).
https://packages.debian.org/en/bullseye/python3-serial

For python-central this seems to have been removed ages ago:
https://tracker.debian.org/pkg/python-central

The GTK bindings for Python seem also to be gone to me:
https://tracker.debian.org/pkg/python-gtk2

I would try to install an older version of Debian to a USB stick, install all required packages and use XPD from there. It would need a skilled python dev to rework XPD for working with more modern versions of Linux of any flavor.

triton_mole   1 µW

1 µW
Posts: 3
Joined: Mar 23 2022 7:20am

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

Post by triton_mole » Mar 23 2022 12:01pm

Thank you for your help!
Later I will try your solutions.
If this should not work, I think I will try installing XPD on my virtual Windows 7, which I need for configuring my "Forumscontroller".

I wouldn't want to use an USB-Stick for XPD and virtual windows for "Forumscontroller".

But if your workaround works, it would be fine!
We'll see.

Thanks!

User avatar
HolgiB   1 W

1 W
Posts: 64
Joined: Oct 02 2018 2:58am

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

Post by HolgiB » Mar 23 2022 12:43pm

You are welcome ! Although I did not really provide a solution. More like an idea for a workaround. :wink:
May be the USB-TTY-cable will work with "pass through" to the Win7 with "USB passthrough" like provided with VirtualBox. Not shure how well virtualisation plays together with the timings for XPD to the EB controller.

See you over at the Pedelecforum.de :-)

triton_mole   1 µW

1 µW
Posts: 3
Joined: Mar 23 2022 7:20am

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

Post by triton_mole » Mar 23 2022 3:16pm

Well, it does not look too good.....

Python3-serial is installed in my machine, but dpkg does not recognise ist as pyserial.
python-central.... I can't find any binaries nor source code under this link.
python-gtk... Only Sourcecode available. I don't like compiling too much, because most of the times I get errors because of missing software or libraries and can't solve them by myself.


So I will use plan b and install XPD under Win7.

Yes, I am from Pedelecforum, but questions that have to do with linux are often not answered there, so I decided to try it here. :-)

User avatar
HolgiB   1 W

1 W
Posts: 64
Joined: Oct 02 2018 2:58am

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

Post by HolgiB » Mar 24 2022 3:14am

Hm, the links to python-central and python-gtk were simply the package / software tracker of the Debian project itself. They show that both were removed ages ago. Python-central was removed August 2013 and Python-gtk was removed April 2020 from Debian Unstable. I guess the GTK binding are for older version of the GTK toolkit which isn't supported anyway.

I used XPD on my Win 10 notebook with success quite a while ago. For Linux the virtual Windows 7 approach or an older Linux install (if the matching repos are still available) is your best bet though.

For questions on Linux you can always contact me here or over at the pedelecforum under the same nick. I feel that XPD and the coresponding controllers are somewhat of a dying breed. Most controllers now feature a BT module plus corresponding app or a USB-TTY-cable matching a complete product branch (e.g. Phaserunner, CA V3, etc).

AgnesiaBirgith   1 µW

1 µW
Posts: 1
Joined: Mar 28 2022 8:48am

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

Post by AgnesiaBirgith » Apr 05 2022 2:14am

Thanks anpaza for the post.

Heavybikesson   1 µW

1 µW
Posts: 3
Joined: Apr 22 2022 1:42pm

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

Post by Heavybikesson » May 18 2022 12:59pm

Felan128 wrote:
Feb 10 2020 3:00pm
Hi people.
The other day I finished (almost finished) a small device on Arduino that allows you to program the controller in the field.
It is a little damp, but it works.
If anyone is interested, here is the link: https://github.com/Felan412/AVR_arduno_ ... ike_based-

If something is wrong with copyright, let me know I will fix it.
Thankyou felan i just found you here .I adapted it and added the rest of the parameters thanks for the start
Attachments
20220517_144222.jpg
20220517_144222.jpg (4.31 MiB) Viewed 6110 times

Post Reply