Need testers for USBcode
- mwm
- Offline
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Before I could do that, I needed an easy way to setup the driver in Windows. This proved to be very challenging because:
(a) my code uses libusb and Walkera's uses a custom USB driver, and you can't have both installed at the same time. I needed a way to switch between them so users could go back to the Walkera driver if needed
(b) Windows 8 requires signed drivers. Creating one is a pain and costs ~$200
(c) solutions that work on Windows 8 don't work on WinXP
(d) I needed something easy to use
In the end, the solution isn't very elegant, but it works pretty well. I wrote an ayutohotkey script which can uninstall existing drivers and install either the STMicro/Walkera driver or a libusb driver using zadig. It makes it easy to switch between drivers with the press of a button. Zadig comes precompiled as a gui only app (there is a text mode but it sin't released as a binary and I wasn't able to get the toolchain fuctional to build it), so I use autohotkey to automate the navigation through the gui. I also added code to properly uninstall the drivers which wasn't as easy as I'd have hoped.
Anyhow, here is the zip:
www.deviationtx.com/downloads-new/catego...usbdrv-installer-1-0
It should work on Windows-XP through Windows8.1 and should only require unzipping and running the exe. You will need Administrator access of course to install the drivers.
Note that the actual DfuSe utitility (and the Deviation-Uploader) are not included. These can both be installed at the same time though, so there is no need to remove/reinstall them to switch between the 2.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
You will need Java installed before proceeding.
I'll make a step-by-step set of instructions sooner or later, but it is pretty straight forward to use
Assuming you are on Windows, you need to 1st download:
www.deviationtx.com/downloads-new/catego...usbdrv-installer-1-0
Unzip, and run it.
Select 'Install Deviation USB driver', and Press 'Install'
Now download the latest version of the 'DeviationUpload' tool from here (currently 0.7.0):
www.deviationtx.com/downloads-new/category/161-dfu-usb-tool
Run the java program, and a GUI should appear.
plug in your Tx, and turn it on in programming mode, and it should be detected by the Uploader app.
Now press '...' by 'Filename' and selectthe zip file with your firmware (you do not need to unzip the firmware 1st!)
If this is the 1st time installing Deviation, you should select 'Format Root'
Press 'Install/Upgrade' and after some time the install should complete and you should be ready to go.
If you want to go back to using the Walkera installer, run the USBDrv install script again, and select 'Install Walkera USB driver'
Please Log in or Create an account to join the conversation.
- Durete
- Offline
- Posts: 610
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- stevecox
- Offline
- Keep swinging
Adelaide
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
To be clear, you downloaded both the 1.0zip and the .32.zip unziupped both int ot he same directory, and ran the DFU Installer.32.exe?
Can you try to run the 'zadig_2_1_2.exe' script?
Then select Device->Create New Device
Name: STM DFU (WinUSB)
USB ID: 0483 DF11 (leave 3rd box empty)
Press 'Install Driver'
I want to make sure Zadig works properly on windows10. I'm going to try installing Windows10 32bit into a VM so I can try it myself, but that'll likely take a couple days.
Please Log in or Create an account to join the conversation.
- Durete
- Offline
- Posts: 610
PhracturedBlue wrote: Try this one instead. It is just the 32bit exe, you need to copy the exe to the directory from the 1.0 zip file
Thanks PB. Now is working, but the driver installation is a little bit tricky. Sometimes works, sometimes don't.
After install Deviation USB driver, can't return to the old DFU driver with your utility. I need to replace Deviation driver reinstalling the Walkera DFU utility.
The java uploader works good. Only some minor graphic problems, probably related to my screen resolution, but not too bad.
For reference, tested with Devo 7e.
Please Log in or Create an account to join the conversation.
- stevecox
- Offline
- Keep swinging
Adelaide
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
java -jar DeviationUpload-0.7.0.jar -l and see what it does. You can also try running without the -l (which should give you the GUI). You may get back-trace messages to the screen.
I finished downloading the Windows 10 Preview ISO. I will install it in a VM when I get a chance.
Please Log in or Create an account to join the conversation.
- stevecox
- Offline
- Keep swinging
Adelaide
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Did you try without '-l' to see if there are any errors?
It kind of looks like 2 different transmitters are being detected (the DEVO_UNKNOWN and the DEVO10), and the 1st one is being selected (which will probably break everything.
You could also try USBView (search google) to see what USB devices are plugged in
Please Log in or Create an account to join the conversation.
- stevecox
- Offline
- Keep swinging
<snip>
E:\Downloads\DFUInstaller.32(1)\DFU USBDrv Installer-1.0>java -jar DeviationUpload-0.7.0.jar -l
Found: Runtime [003f0:171d] cfg=0, intf=0, alt=0, name='1008:5917:Unknown'
Error: Unable to open device
Device Interface Start End Size Count
DEVO_UNKNOWN
</snip>
It looks like that is the bluetooth, this is on a HP laptop btw - attached
Adelaide
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
I'll fix it to ignore everything but DFU devices
Please Log in or Create an account to join the conversation.
- repli
- Offline
- Posts: 6
Please Log in or Create an account to join the conversation.
- Condor
- Offline
- Posts: 17
How do I install driver with zadig_xp_2.1.2. Because DeviationUpload-0.7.0 does not detect my Devo 10 .
I need to get this working as I need to upgrade.
Thanks for all your hard work on this project.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
My next task will be to fix up the uploader itself
Please Log in or Create an account to join the conversation.
- stevecox
- Offline
- Keep swinging
Adelaide
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Need testers for USBcode