Giter Club home page Giter Club logo

riden-flashtool's Introduction

riden-flashtool

Riden RD6006(P)/RD6012/RD6018 Firmware Flash Tool

This script allows updating firmware on Riden RD60xx power supply units.

NOTE! This script is based on observing the USB traffic between the "official" (Windows) firmware update program and the power supply module. There is no guarantees that this works 100% of the time. However it's been successfully used with several Riden RD6006 modules to update firmware from a Linux computer.

Requirements

Script has been developed/tested under Linux (Raspberry Pi), but should work on other platforms as long as there is Python 3 and "serial" module installed.

  • Python 3
    • serial (pySerial) module

Supported models

Currently script has been validated with following models:

Make Model Info
RIDEN RD6006 Tested with Bootloader V1.09
RIDEN RD6006P Tested with Bootloader V1.12
RIDEN RD6012 Tested with Bootloader V1.09
RIDEN RD6012P Tested with Bootloader V1.14
RIDEN RD6018 Tested with Bootloader V1.10
RIDEN RD6018W Tested with Bootloader V1.12
RIDEN RD6024 Tested with Bootloader v1.38

Updating Firmware

First, obtain firmware file (Note, this tool does not validate data being flashed to device, so make sure correct firmware image is being used!)

Next, connect power supply module to computer (and note the serial port it gets assigned).

NOTE, it is recommended to connect the power supply directly to a computer, as using a USB hub can lead to flashing process to fail.

Update firmware by running: flash-rd.py <serialport> <filename>

For example:

# ./flash-rd.py /dev/ttyUSB0 RD60062_V1.32.bin
Serial port: /dev/ttyUSB3 (115200bps)
Firmware size: 109888 bytes
Check if device is in bootloader mode...No
Found device (using Modbus): RD6006 (60062) v1.26
Rebooting to bootloader mode...
Device information (from bootloader):
    Model: RD6006 (60062)
 Firmware: v1.26
      S/N: 000xxxxx
Updating firmware........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................b'OK'
Firmware update complete.

If you have trouble starting the update and you see following:

Check if device is in bootloader mode...No
No response from device.

Check device settings and make sure "Interface" is set to "USB". Alternatively, set device manually to bootloader mode first.

Command Line Arguments

usage: flash-rd.py [-h] [--speed SPEED] port [firmware]

Riden RD60xx Firmware Flash Tool

positional arguments:
  port           Serial port
  firmware       Firmware file. If not specified, only reboot to bootloader
                 mode and print version of Riden device

optional arguments:
  -h, --help     show this help message and exit
  --speed SPEED  Serial port speed

Recovering from a failed firmware update

Failed firmware upgrade can lead unit not booting up (or flash memory getting corrupted by some other way).

In case unit doesn't boot normally, it is usually still possible to recover unit by re-flashing the firmware.

Recovering firmware:

  1. Boot unit to bootloader mode manually: Press and hold "ENTER" button when powering on the unit.
  2. Run the firmware update again.

riden-flashtool's People

Contributors

tjko avatar mdjurfeldt avatar jorghendriks avatar

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.