Page 20 of 24

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

Posted: Aug 18, 2014 5:51 am
by NeilP
Experience and knowing the motor...How hot it is getting.



The Wattage is more concern to heating the motor. Do you have temperature sensor installed in the motor connected to the Cycle Analyst?

I do not know what current limits the controller you have can handle .

You should start a new thread...with the name of your controller and motor, with a request for maximum limits. A gear motor will be less able to take the power (generally) than a direct drive motor.

So make a new thread with motor and controller information and ask again on a new thread.

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

Posted: Aug 18, 2014 6:03 am
by ebike11
Yes I have the Mac 8t with temo sensor which is nice
I never rode it for the motor to get super hot

The controller is an Infineon 9fet 4110 30A
Thanks for the tips!!!!

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

Posted: Aug 18, 2014 6:11 am
by NeilP
Not owned this motor..so no idea.

Post new thread..suggested title :

"Cellman Mac 8T with Infineon 9fet 4110 30A limits please"


Also tell:
Wheel size
your weight
bike weight
Battery type and specification
Your rides...hills? flat ? on road ? in mud and sand?

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

Posted: Aug 18, 2014 6:30 am
by ebike11
Ok thx will do

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

Posted: Sep 18, 2014 5:08 am
by Seya
Hi,

I tried following the prompts to download the software. I cannot locate the file ( xpd-x-x-x ) which was supposed to be created after unzipping the xpd files. I unzipped them individually as I could not figure out how else to do it?

Any thoughts??


Also assuming I get this software installed and operating.. How do I select the correct option for 6 fet IRFB 3077?

Thanks a lot!

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

Posted: Sep 18, 2014 6:41 am
by NeilP
That is totally about knowing your operating system and any in-built or 'aftermarket' zip/compression archive utility

Maybe unzip again and try and see where the files are put, or open your unzip program manually from the start menu and then open the archive from there.

Lets get that sorted first before worrying about using it.

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

Posted: Sep 19, 2014 3:24 pm
by Seya
image.jpg
(107.87 KiB) Downloaded 4 times
Thanks Neil,

I unzipped all 8 ( photo ) and they were sent to my downloads.
I found the unzipped version of all 8. There just simply wasn't a folder called xpd-x.x.x.

Did I do it correctly?

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

Posted: Sep 20, 2014 12:50 am
by NeilP
Looks very much like you have not downloaded the installation packages, but something else instead, like old versions.

Go back to beginning of this thread and look there, the links used to me on first page

You need pre requisites downliad first, and that contains a Readme.txt of the order you need to install stuff

I your pic seems to show loads of folders.
Have you opened th to see the contents? They look very much like the XPD x.x.x folders you are looking for to me.

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

Posted: Sep 24, 2014 1:24 pm
by wojtek
anyone tried to run it on Win8 please?

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

Posted: Sep 24, 2014 2:51 pm
by wojtek
wojtek wrote:anyone tried to run it on Win8 please?
YES! it works. The only problem is with USB-TTL but it can be fixed easily here: http://minhdanh2002.blogspot.com/2013/1 ... o-ttl.html

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

Posted: Sep 25, 2014 12:51 am
by NeilP
In case those links are removed in future, I have grabbed the instructions and the driver and added them here.
Using Prolific PL-2303HXA USB to TTL chipset on Windows 8
To avoid using the MAX232 level converter and a USB to serial adapter on my Mac Mini every time I needed to debug the PIC micro-controller via UART, I purchased a few USB to TTL modules from eBay, hoping that the PIC will simply appear as a serial port under Windows ready for use with any terminal program.

The module looks neat with output pins for GND, TX, RX, 3.3.V and 5.0V:



Although Windows 8 automatically installed the driver for the module, the installation was not successful with an error message "A device which does not exist was specified." shown inside Device Manager. The module works fine on Windows XP or Windows 7 and my other USB to RS232 adapter works fine under Windows 8.

Further research reveals that the module is using the PL-2303HXA chipset, which is not supported under Windows 8, as indicated on the manufacturer's driver download page:

Windows 8/8.1 are NOT supported in PL-2303HXA and PL-2303X (End-of-Life) chip versions.

What is so special about Windows 8 that prevents the PL-2303HXA/PL-2303X from working, while other variants in the PL2303 family work just fine? For all I know the only major difference is that Windows 8 requires the use of signed drivers, which is irrelevant since the Prolific driver is signed. In any case, the requirements of signed drivers on Windows 8 can be disabled by using the following BCDEDIT commands:
bcdedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNINGON

With some research I found a suggestion here.
Apparently it is a driver problem that prevents the PL-2303HXA chipset from working on Windows 8, and not a chipset problem.

The solution is to use an older driver file (attached to this post) (not the driver installer provided by Prolific) downloadable from here and choose to install the driver manually.

When prompted, click "Browse my computer for driver software", select the driver's INF file, choose "Let me pick from a list of device drivers on my computer", and select the Prolific driver version 3.3.2 which was created in 2008 (not the latest version):

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

Posted: Sep 25, 2014 5:22 am
by ferret
Hi,
I want to reprogram a 6 FET (sensored) Lyen controller.
Lyen put a sticker on it which says "Use EB312 profile Rshunt=2 mOhm".

Can I use XPD to do it?
I didn't see a default presets for a 6 FET EB312.
Should I use the presets for the 12 FET EB312?

Will I risk "bricking" the controller or any other damage if I program with the wrong presets?

Thanks,
Avner.

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

Posted: Sep 25, 2014 9:27 am
by NeilP
Yes use the EB312 profile. That is correct

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

Posted: Sep 25, 2014 10:03 pm
by DAND214
NeilP wrote:Yes use the EB312 profile. That is correct
Does that apply only to Lyens 6 fet?

Dan

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

Posted: Sep 26, 2014 1:30 am
by NeilP
It applies to any 6 FET controller that has had the 'shunt mod' done.

In reality the profiles are not determined by the number of FET's but by the number and resistance of the shunt(s)

Lyen and Keywin (e-crazy man) modify the 6 FET controllers by fitting an extra shunt, an SMD one, on the rear of the board, in parallel. So you effectively have the same number of shunts as a 'standard' 12 FET comtroller.

The shunts used are generally 4milliohm
6 FET originally had one, therefore total = 4 milliohm
12 FET originally had one, therefore total = 2 milliohm
18 FET originally had one, therefore total = 1.33 milliohm


The profiles are just setup with shunt number in mind.
So you can only tell for sure by opening up and counting shunts

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

Posted: Nov 01, 2014 9:18 pm
by Ch00paKabrA
I am hoping someone can help me out. I just perused this entire thread and I can't find what I need (I think).

I downloaded XPD, installed it and I can open it and I also created a profile that I want to input into my controller.

The controller is a 12 fet IRFB4110 Infineon Controller that I bought from Cellman. After I created and saved the profile, I went to install it on the controller. I hit "apply" and press the button on the cable and hold it for over 10 minutes. It never completes the upload. What am I doing wrong? Does the controller have to be hooked up to a battery?

I am kind of at my wit's end. I finally got the bike to the point where I can take it for a test ride and now this.


EDIT: After a good night of sleep I re-read this thread and found the issue.
NeilP wrote:EB 3xx and EB2xx require different wiring on the programming cable.

The USB side is the same, but you need a jumper wire from pin 1 to pin 5 on the controller end
The info why is on the forum here some where...I know I posted about it in the past.
Programming adapter.JPG
I had modified an EB2xx and was trying upload it using an EB3xx cable. It was a simple case modifing an EB3xx template to get what I needed and it uploaded in a heartbeat.

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

Posted: Nov 02, 2014 12:34 pm
by NeilP
Good to hear it worked...sleep usually does that.

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

Posted: Nov 07, 2014 2:09 pm
by adriftatsea
NeilP wrote: Programming DOES NOT WORK if speed switch is in any other position than speed 2.
What about the case where there is no switch? The documents on the EB3xxx seem to show it defaults to 'speed 2'.

I'm in the unfortunate position of having XPD work ONCE and don't have a speed switch :(.

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

Posted: Nov 07, 2014 2:22 pm
by NeilP
If you don't have a speed switch then it is Speed 2.

it is not what the actual speed is called is the issue.
The 3 speed switch has three wires, connected to three pads on the board
Position one connects left pin to centre
Position two connects nothing
Position three connects centre to right pin.

As long as the pads on the board are not connected to anything ..( no switch) then you are OK

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

Posted: Nov 07, 2014 2:27 pm
by NeilP
Controller needs to be powered off and discharged, no battery connected too.

Also check you have the correct cable, and if necessary the EB2xx to EB3xx adapter that swaps a few wires around on the cable.

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

Posted: Nov 09, 2014 2:55 pm
by adriftatsea
Thanks for the prompt reply and the XPD tool!
NeilP wrote:off and discharged
Is there a suggested way to discharge the capacitors? (ie throw a resistor on a 5v?)

Also check you have the correct cable, and if necessary the EB2xx to EB3xx adapter that swaps a few wires around on the cable.[/quote]

I'll make a new cable and try another USB->Serial cable and report back.

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

Posted: Nov 09, 2014 4:44 pm
by NeilP
To ensure discharged, I just unplug battery while controller is powered on.

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

Posted: Nov 12, 2014 1:25 am
by adriftatsea
NeilP wrote:Controller needs to be powered off and discharged, no battery connected too.
NeilP wrote:To ensure discharged, I just unplug battery while controller is powered on.
Hi again Neil.

So today I tried an assortment of PL2303 and FTDI 'usb->serial adapters' wired with 'SLK2' and 'TX' on the controller side merged per instructions earlier in this thread. No go. :( I tried programming with the controller off on three machines - thinking maybe there was an issue with the USB 5v supply.

As a sanity check, I ran 'sudo screen /dev/ttyUSB0 38400,cs8,-parenb,cstopb' and powered on the controller to see what it spit out upon boot. Some characters showed up.

Then, for the hell of it, I tried to write from XPD again while the controller was still on. It worked! :)

Any ideas as to why?

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

Posted: Nov 12, 2014 2:14 am
by NeilP
No, I am no expert on these , I just know what the advice has always been.

I wonder if the 5volt power from your USB ADAPTER is not making it all the way to the controller to power it up.

May be you a comtroller board variant that can't receive it's power via the USB and requires on board power,
That's all best guess really

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

Posted: Nov 12, 2014 3:47 am
by Cowardlyduck
Not sure if it helps, but of the 2 controllers I have (6Fet and 18Fet EB3) I regularly re-program and have never worried about ensuring they are powered off or discharged before programming. Never encountered any issues, they seem to re-program fine in any state for me.

Cheers