Git Product home page Git Product logo

dfuse-tool's People

Contributors

plietar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dfuse-tool's Issues

struct.error: argument for 's' must be a bytes object

I want to build a dfu file from 2 binaries, i tried the build option: python dfu-convert -b [address:path1, address:path2] -D vid:pid outfile.dfu.
But when i tried that i got this error:
Traceback (most recent call last): File "dfu-convert", line 143, in <module> build ( outfile, [target], device ) File "dfu-convert", line 75, in build tdata=struct.pack ( '<6s2Is2I', 'Target', 0, 1, 'ST...', len ( tdata ), len ( target ) ) + tdata struct.error: argument for 's' must be a bytes object
Am i using the build option in a wrong way??

Please Clarify Licence

Hello,
I am a user of the ODrive Motor Controller, which is open source. I was wondering if you could clarify the licence of the dfuse-tool; is it also open source?
Thank you,
Alex

dfu-convert.py origin

Hi,
I have a question about your dfu-convert.py, for the sake of attribution. Your dfu-convert.py has support for intel hex files, which was not in Antonio's original version (which we, with Antonio's blessing, host in our dfu-util.sf.net project). Did you add this yourself?

I am considering merging this functionality back into ours, and I would prefer to attribute the change to its original author.

Thanks in advance!
Tormod

The device does not support the specified langid

Traceback (most recent call last):
  File "./dfuse-tool.py", line 147, in <module>
    flash(args)
  File "./dfuse-tool.py", line 63, in flash
    dfu = find_device(args)
  File "./dfuse-tool.py", line 14, in find_device
    for _,alt in dfu.alternates():
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 28, in alternates
    return [(self.get_string(intf.iInterface), intf) for intf in self.cfg]
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 28, in <listcomp>
    return [(self.get_string(intf.iInterface), intf) for intf in self.cfg]
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 73, in get_string
    return usb.util.get_string(self.dev, 256, index)
  File "/usr/lib/python3.5/site-packages/usb/util.py", line 318, in get_string
    raise ValueError("The device does not support the specified langid")
ValueError: The device does not support the specified langid

This is because usb.util.get_string() fails. And this appears to be failing because the args are wrong.

This occurs on Fedora 24 with:
python3-pyusb-1.0.0-1.fc24.noarch

How I can convert or decompile .dfu to .hex?

Hello.
Please tell me how I can decompile the file .dfu to file .hex?
I have system unit Dell Vostro 3267 which has a network module DW1707. Module DW1707 integrated Wi fi and bluetooth QCA9565.
I installed hackintosh on this computer, but in this bluetooth module the firmware is loaded only by drivers, when Windows starts. In order for the firmware in the bluetooth module to load when you start macOS, you need to take the firmware in the format .hex.
I downloaded the official drivers for my bluetooth module, but there are firmware files only in the format .dfu.
Here is the link to the drivers:
https://yadi.sk/d/cYGax0NEdoCF3w
https://www.dell.com/support/home/us/en/19/drivers/driversdetails?driverid=g66t8&oscode=wt64a&productcode=vostro-3267-desktop&lwp=rt
Please help me convert or decompile .dfu to .hex.
Thanks.

DfuDevice.get_status() does not handle STALL

Flashing block 6
Traceback (most recent call last):
  File "./dfuse-tool.py", line 147, in <module>
    flash(args)
  File "./dfuse-tool.py", line 103, in flash
    status = dfu.wait_while_state(dfuse.DfuState.DFU_DOWNLOAD_BUSY)
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 84, in wait_while_state
    status = self.get_status()
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 51, in get_status
    status = self.control_msg(DFU_REQUEST_RECEIVE, DFU_GETSTATUS, 0, 6)
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 39, in control_msg
    return self.dev.ctrl_transfer(requestType, request, value, self.intf.bInterfaceNumber, buffer)
  File "/usr/lib/python3.5/site-packages/usb/core.py", line 1043, in ctrl_transfer
    self.__get_timeout(timeout))
  File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 883, in ctrl_transfer
    timeout))
  File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 595, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 32] Pipe error

This is apparently because the EPIPE is not being handled properly at a lower level and converted into a stall status.

Open source license

I'm interested in using this code in a project but wanted to make sure the open source licenses would be compatible. Any chance of getting an explicit license added to the source?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.