XPD: open-source keywin e-bike lab replacement

Get all your technical information about electric bikes here.
User avatar
ohzee   1 MW

1 MW
Posts: 1715
Joined: Jul 20 2011 1:13pm
Location: Columbus Ohio USA

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

Post by ohzee » Sep 24 2012 5:42pm

I am using the adapter sent with my 18 fet.. is the adapter something that attaches to it ?

User avatar
Alan B   100 GW

100 GW
Posts: 7741
Joined: Sep 11 2010 7:43am
Location: San Francisco Bay Area, USA
Contact:

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

Post by Alan B » Sep 24 2012 5:55pm

ohzee wrote:I am using the adapter sent with my 18 fet.. is the adapter something that attaches to it ?
The adapter is a short male-female cable that goes between the programming cable and the controller's programming cable. Not sure if you need that on yours or not. The only controllers I have that need it are new 12FET units.

User avatar
ohzee   1 MW

1 MW
Posts: 1715
Joined: Jul 20 2011 1:13pm
Location: Columbus Ohio USA

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

Post by ohzee » Sep 24 2012 10:09pm

ok Kingfish I think i figured it out.

Use the eb312 setting for your controller and see if that does it.

I took apart my controllers having this issues and 3 of them had eb312 on the board.

I changed that in the software and it worked.

let me know if that does it

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 24 2012 11:36pm

Thank ye for the kind responses lads :)

Let’s see if I can reply to each…

First, these are the 12 FET 4110 MOSFET Extreme Modder Controller LYEN Edition; the one that won’t flash is the newer V2; the older unit flashes just fine. They are modified heavily. Never thought to check to see if it would flash beforehand. The error could rightly be of my own doing, however the mods I apply normally do not affect the MCU.

Methods: Man that would be a dream – except it’s a SMD, and I have a hard enough time with the R12 mod. However – I know I have plenty of those items ready for rework – if only I had more stable hands. :?

Alan B @ 2:18PM: Got the source code; know the line... around Line 926 inside infineon.py

Code: Select all

...
            c = ser.read ()
            if c == 'U':
                return True

            if len (c) > 0:
                raise Exception (_("Invalid reply byte '%(chr)02x'") % { "chr" : ord (c) })
...
So we are getting back ‘ce’ instead of the normal ‘U’… whatever that means. The board is pretty clean. I couldn’t say if there are issues with components though.

Ohzee & Alan B: I have the TTL cable from last year; it works fine for flashing the older controller. I don’t have one for the V2 - if such a creature exists.

Ohzee: I do not see how the setting for EB312 type PCB could work when I cannot select that type from the List of choices. I’ve been using the EB212 faithfully. :wink:

Since I’ve modified the board and the fault could be mine, I’ve ordered a replacement and shall test it upon arrival to see if it flashes before continuing.

Optimistically, KF
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

User avatar
ohzee   1 MW

1 MW
Posts: 1715
Joined: Jul 20 2011 1:13pm
Location: Columbus Ohio USA

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

Post by ohzee » Sep 24 2012 11:40pm

Good luck.. fwiw xpd-0.3.1 has the option for eb312 while the v2 one does not

This is what lynn told me last night

"the USB-TTL programming adapter with the yellow loop/jumper wire is for controllers that have the label marked as "MII". This is the current version of the cables and controllers."
Last edited by ohzee on Sep 24 2012 11:42pm, edited 1 time in total.

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 25 2012 2:14am

>> xpd-0.3.1

Huh? I have the 0.2.1; I am obsolete? :? :)

Good call; I shall upgrade and try again. Do you have a schematic of the MII USB-TTL programming adapter, or know precisely the differences?

The sandman cometh, KF
Z z Z z
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 25 2012 10:58am

The Plot thickens:
Last night I d/l’d the 0.3.1 version and this morning ran through the tests again.
  • I used the 12fet_32s (Infineon 3) as the basis for crafting a reasonable preset for the RH MII controller. The flash did not take, even after waiting the suggested 10 seconds.
  • Next, I tried a saved preset for the FH EB212 controller; this flashed without hesitation, in the blink of the eye, and measured in µs. :)
I must therefore conclude that there’s a problem with the programming adapter cable or the controller. I ask once again, does the MII controller require a unique programming adapter cable? The question is best posed to my kind supplier.

In the queue, KF
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

User avatar
ohzee   1 MW

1 MW
Posts: 1715
Joined: Jul 20 2011 1:13pm
Location: Columbus Ohio USA

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

Post by ohzee » Sep 25 2012 11:10am

PM from Lyen

"The USB-TTL programming adapter with the yellow loop/jumper wire is for controllers that have the label marked as "MII". This is the current version of the cables and controllers."

This loop/jumper connects the outside pins.

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 25 2012 11:49am

ohzee wrote:PM from Lyen

"The USB-TTL programming adapter with the yellow loop/jumper wire is for controllers that have the label marked as "MII". This is the current version of the cables and controllers."

This loop/jumper connects the outside pins.
Thanks Ohzee; my apologies for your re-post. :)

Odd. Only one adapter is offered on the website. Has it changed? Will it work with the older boards? So many questions, so little coffee. Waiting for the definitive reply.

<sigh> KF :|
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

User avatar
Alan B   100 GW

100 GW
Posts: 7741
Joined: Sep 11 2010 7:43am
Location: San Francisco Bay Area, USA
Contact:

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

Post by Alan B » Sep 25 2012 11:52am

The last 12 FET controllers I got from Lyen came with a short adapter cable that goes between the controller and the programming cable. Are you certain one did not come with your latest controller?

Sounds like you have a cable problem.

User avatar
ohzee   1 MW

1 MW
Posts: 1715
Joined: Jul 20 2011 1:13pm
Location: Columbus Ohio USA

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

Post by ohzee » Sep 25 2012 12:31pm

yea that reply from Lyen was 2 days ago and he never mentioned any kind of adapter and I do not recall seeing one
when I got my last 2 controllers from him.. very strange indeed. Seems like conflicting info from the same source Lyen.

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 25 2012 12:45pm

From the product docs & images, the adapter cable appears to be the same. I just tested flashing with the OEM-provided application and again no joy was had. The replacement controller is in the queue (couple of days perhaps); let's wait and see... and pick this up again when they arrive. :)

Best, KF
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

User avatar
Alan B   100 GW

100 GW
Posts: 7741
Joined: Sep 11 2010 7:43am
Location: San Francisco Bay Area, USA
Contact:

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

Post by Alan B » Sep 25 2012 5:07pm

I think people are getting confused about terminology.

What I have:

1) Lyen USB to TTL serial programming cable, suitable for old style controllers

2) Lyen serial adapter cable, add this to #1 to program new style controllers. This has a connector to fit the new controller and a connector to fit #1. One is male, the other female, both the same type connector. The wiring between them is not 1:1.

Lyen also may have a new serial programming cable that is directly set up for new controllers, but I'm not sure about that as I have not seen one.

In any case you can't use the same USB programming cable for old and new controllers, as I understand it. So if you have new and old controllers and the programmer works on one and not the other that's not surprising.

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 25 2012 7:21pm

Yer right; it's confusing. :?

I have #1, and Lyen is sending me #2 with the Controller; I'll take pics of both when #2 arrives. Then we can play pin the tail on the Dongle, er... Controller.

~KF
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 26 2012 9:13pm

Greetings Flashers!

I received the controllers from Lyen today and it included the adapter to the Adapter as imaged below:

Image

The top one is the original (#1) Programming Adapter cable: The top-left connector is 4-pin and plugs into the USB-TTL serial board (not shown). Just below it is the 5-pin connector that typically mates with the associated cable exiting the controller. To the right is the momentary push-button that closes the circuit and facilitates programming (natch).

The short cable below #1 is the MII extension required for the “Infineon 3” class boards. The right side literally plugs directly into the upper cable – between the Adapter #1 and the controller. It is about 5 inches long.

Using the Lyen_MK2_V2.01_2012.exe application, I was able to flash the brand new controllers without issue. Then I rolled the ebike over and proceeded to flash the new modified & mounted controller in the blink of an eye.

Conclusion: I needed that extension cable. :wink:

It’s late but I’ll test the XPD app in the AM; I do not anticipate any issues.

Many kind thanks to the vigilant contributors <bowing low in your general direction>
Yippie-yi-yo-ki-yay, KF 8)
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

User avatar
ohzee   1 MW

1 MW
Posts: 1715
Joined: Jul 20 2011 1:13pm
Location: Columbus Ohio USA

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

Post by ohzee » Sep 26 2012 9:15pm

Nice bud glad it works.

Make's me wonder if you could just take an original cable and add a jumper for the 2 outside pins. Maybe with a switch depending on what rev.

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 27 2012 12:15pm

XPD flashed fine this AM on modified & mounted MII controller 8)

I think we're done here; Resolved - Fixed.

Looking forward to driving again!
Thanks again, KF
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

User avatar
Alan B   100 GW

100 GW
Posts: 7741
Joined: Sep 11 2010 7:43am
Location: San Francisco Bay Area, USA
Contact:

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

Post by Alan B » Sep 27 2012 3:19pm

ohzee wrote:Nice bud glad it works.

Make's me wonder if you could just take an original cable and add a jumper for the 2 outside pins. Maybe with a switch depending on what rev.
Just to be complete, there is a little more to the adapter than the jumper, it could be handled with a switch, the jumper is a good way to handle it however and more durable than a switch hanging in the cable.

User avatar
anpaza   10 W

10 W
Posts: 69
Joined: Dec 07 2010 5:24pm

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

Post by anpaza » Sep 27 2012 5:00pm

Kingfish, you would have less questions if you would just read a page before you posted:

http://endless-sphere.com/forums/viewto ... 70#p620632
This, and a few next posts gives exactly the same recipe as you found in the end.

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Sep 27 2012 5:25pm

anpaza wrote:Kingfish, you would have less questions if you would just read a page before you posted:

http://endless-sphere.com/forums/viewto ... 70#p620632
This, and a few next posts gives exactly the same recipe as you found in the end.
You presume too much. I didn't know I had a MII EB312 Controller; it was a recent replacement and there was no extra programming adapter cable included with it, hence the need to go through the discovery process. Shoot me at dawn for being thorough... that or RDWHAHB :)

Hmmm, now that I am thinking about it... KF :D
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

electraflyit   10 W

10 W
Posts: 78
Joined: Jul 08 2008 12:19am
Location: Toowoomba, Queensland

Re: Keywin E-bike Lab Parameter Designer Software Manual-ver

Post by electraflyit » Oct 18 2012 7:37am

What is the 'Speed 4' entry all about in XPD.
I had the speed 1,2&3 on the 206 board sorted out, but now their is a speed 4 on the 306 board software??
What is it and how is it used?
thanks in advance Eddie

electraflyit   10 W

10 W
Posts: 78
Joined: Jul 08 2008 12:19am
Location: Toowoomba, Queensland

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

Post by electraflyit » Oct 18 2012 11:31pm

Hi,
I have EB2## and EB3## controllers.
Does anyone know what 'speed 4' does in the EB3## software, or how it interacts with speed 1,2,3 & SL?
I have all the speeds( 3 + SL)working in the EB2## software but am having problems working out the EB3## settings
thanks Eddie

Kingfish   10 GW

10 GW
Posts: 4064
Joined: Feb 03 2010 11:23am
Location: Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Milky Way. Age: > yesterday < tomorrow
Contact:

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

Post by Kingfish » Oct 19 2012 11:42am

electraflyit wrote:Hi,
I have EB2## and EB3## controllers.
Does anyone know what 'speed 4' does in the EB3## software, or how it interacts with speed 1,2,3 & SL?
I have all the speeds( 3 + SL)working in the EB2## software but am having problems working out the EB3## settings
thanks Eddie
Double post more or less.

It appears to me that if your board had provision for another speed (maybe X4?) - then you could make use of it. Otherwise I'd say not; mine is set to default because it is unobtainable, having no pad.

~KF
* My 2WD Garden Wall
* Kinaye MotorSports
* Primary ride: 2WD Disc 9C 2806-equiv / Dual Lyen 12FET / 20S7P LiPo.
* Epics: Going to California: 2011 8)
* 50-mph, 101, 10k-Club. 12,527 miles-to-date, 7037 as 2WD.

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed.
The hands acquire shakes, the shakes become a warning.
It is by caffeine alone I set my mind in motion.

User avatar
alsmith   100 kW

100 kW
Posts: 1182
Joined: Dec 03 2010 7:25pm
Location: Northumberland, UK

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

Post by alsmith » Oct 19 2012 12:16pm

Probably silly, but my Lyen has a reverse speed that can be set as well as the 3 forward. ????

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! » Oct 19 2012 12:25pm

alsmith wrote:Probably silly, but my Lyen has a reverse speed that can be set as well as the 3 forward. ????
This would be handy for a trike or a golf buggy :D , not so good on a bike :mrgreen:

Post Reply