OpenSprinkler Forums OpenSprinkler Unified Firmware Upload Faild – could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc

This topic contains 2 replies, has 2 voices, and was last updated by  Ray 3 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33817

    sfyffe
    Participant

    I ran into trouble updating the firmware on my OpenSprinkler v2.1u and I hope these details will help someone else out. I am using Windows 8.1 64 bit.

    The error I was getting in the log file of the firmware updating utility was the following:

    ====== Sat Oct 11 16:45:41 2014 ======
    avrdude: error: could not find USB device “USBasp” with vid=0x16c0 pid=0x5dc
    ====== Sat Oct 11 16:45:41 2014 ======
    Error uploading firmware.

    The error to me tended to be a bit misleading in the fact that I was hard core troubleshooting the USB driver from within device manager. This included uninstalling, reinstalling, rebooting, unplug this, unplug that… Felt a bit like troubleshooting with Comcast support.. Anyway, I finally wound up using this driver:

    I believe it is also necessary to configure a proper .inf file AND rename the “libusb0_x86.dll” file to “libusb1.sys” prior to installing this usb driver.

    STEPS in the following order:
    NOTE: I did not have to disable driver signing using this driver as it is partially signed.

    1. Download usb drivers from sourceforge using link above.
    2. Extract to a temporary folder.
    3. Rename .dll file located in libusb-win32-bin-1.2.6.0\x86
    4. Connect OpenSprinkler controller while holding down button b2 using USB cable. Make sure display is blank!
    5. Review Device Manager to make sure that the USBasp device is recognized.
    6. Using the inf wizard located in libusb-win32-bin-1.2.6.0\bin create an inf file for the installation to use. Once the wizard starts select the “USBasp” from the device selection. Take the defaults on the next screen for vendor and product ID’s. Save the file in the same folder where you extracted the driver into.
    7. Change back to your temporary folder, libusb-win32-bin-1.2.6.0, and double click on installer. (Choose your correct architecture).
    8. The installation will complete as you click through the steps.

    NEXT:

    You have to make sure of the version of AVRDude is updated and that it can be found on your machine. The one packaged with the updated will be ignored should you have AVRDude installed prior by some other application.

    1. Open a CMD prompt and type avrdude -v You will have the following displayed:

    C:\>avrdude -v

    avrdude: Version 6.1, compiled on Mar 13 2014 at 00:09:49
    Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
    Copyright (c) 2007-2014 Joerg Wunsch

    System wide configuration file is “C:\WinAVR-20100110\bin\avrdude.conf”

    avrdude: no programmer has been specified on the command line or the config file

    Specify a programmer using the -c option and try again

    2. Should Windows comes back with command not found be sure that AVRDude’s bin folder is in your path.
    3. You have to now add the programmer to AVRDude’s .conf file.
    4. While holding down button b2 plug in OpenSprinkler using your USB cable. The display must be blank
    5. From a CMD prompt type avrdude -c USBasp -p m644p and you should get the following back:

    avrdude -c USBasp -p m644p

    avrdude: warning: cannot set sck period. please check for usbasp firmware update
    .
    avrdude: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% 0.02s

    avrdude: Device signature = 0x1e9609
    avrdude: Expected signature for ATmega644P is 1E 96 0A
    Double check chip, or use -F to override this check.
    avrdude: error: usbasp_transmit:

    avrdude done. Thank you.

    At this point you have AVRDude setup to communicate to OpenSprinkler using the USB cable connection and you can proceed to updating the firmware.

    NEXT:

    1. Start the OpenSprinkler firware update utility.
    2. While holding down button b2 plug in OpenSprinkler to the USB cable. The display must be blank afterwords.
    2. Click on download firmware to get the latest.
    4. Click on “Detect Device” to ensure that OpenSprinkler is recognized by the firmware upgrade utility through the USB driver.

    NOTE: For some reason after clicking detect my OpenSprinkler device would come out of update mode and reboot.

    5. Yes Again, While holding down button b2 plug in OpenSprinkler to the USB cable. The display must be blank afterwords.
    6. Click on Upload Firmware.

    Your OpenSprinker should now upgrade.

    Hope this helps.

    Best Regards,

    Stephen

    #33818

    sfyffe
    Participant

    Doesn’t look like my link for the USB driver made it in:

    http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/

    #33834

    Ray
    Keymaster

    The firmware update instructions now include a video tutorial:
    https://opensprinkler.freshdesk.com/solution/categories/5000022938/folders/5000083380/articles/5000123042-how-to-upgrade-opensprinkler
    In particular the second half of the video is about how to install USBasp driver on Windows 8.1.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Upload Faild – could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc