XPD: open-source keywin e-bike lab replacement

ohzee said:
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.
 
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
 
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:
...
            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
 
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."
 
>> 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
 
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
 
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.
 
ohzee said:
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 :|
 
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.
 
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
 
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.
 
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
 
Greetings Flashers!

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

Lyen.ProgrammingAdapters.jpg


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)
 
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.
 
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
 
ohzee said:
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.
 
Kingfish, you would have less questions if you would just read a page before you posted:

http://endless-sphere.com/forums/viewtopic.php?f=2&t=27927&start=270#p620632
This, and a few next posts gives exactly the same recipe as you found in the end.
 
anpaza said:
Kingfish, you would have less questions if you would just read a page before you posted:

http://endless-sphere.com/forums/viewtopic.php?f=2&t=27927&start=270#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
 
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
 
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
 
electraflyit said:
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
 
alsmith said:
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:
 
Back
Top