GithubHelp home page GithubHelp logo

zzarne / python-evic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ban3/python-evic

0.0 0.0 0.0 118 KB

A USB programmer for devices based on the Joyetech Evic VTC Mini.

License: GNU General Public License v3.0

Makefile 2.43% Python 95.83% C 1.73%

python-evic's Introduction

Evic

https://travis-ci.org/Ban3/python-evic.svg?branch=master

Evic is a USB programmer for devices based on the Joyetech Evic VTC Mini.

Supported devices

  • eVic VTwo*
  • Evic VTC Mini
  • Cuboid Mini
  • Cuboid
  • eVic VTC Dual*
  • eGrip II*
  • eVic AIO*
  • eVic VTwo mini*
  • eVic Basic*
  • iStick TC100W*
  • ASTER*
  • iStick Pico
  • iStick Pico Mega*
  • iPower*
  • Presa TC75W*
  • Vaporflask Classic*
  • Vaporflask Lite*
  • Vaporflask Stout*
  • Reuleaux RX200*
  • CENTURION*
  • Reuleaux RX2/3*
  • Reuleaux RX200S*

*Untested

Tested firmware versions

  • Evic VTC Mini <=3.03
  • Presa TC75W 1.02*
  • iStick Pico 1.01
  • Binaries built with evic-sdk

*Flashing Presa firmware to a VTC Mini requires changing the hardware version on some devices. Backup your data flash before flashing!

Installation

Install from source:

Using evic-usb requires cython-hidapi. You can install it using pip:

$ pip install hidapi

Building cython-hidapi requires libusb headers and cython. On Arch Linux they can be obtained from the repositories by installing packages libusb and cython. Debian based distributions will have packages libusb-1.0-0-dev and cython.

On Windows you will also need the correct compiler for your Python version. See this page for more information on setting up the compiler.


Building python-evic:

$ git clone git://github.com/Ban3/python-evic.git
$ cd python-evic
$ python setup.py install

Allowing non-root access to the device

The file udev/99-nuvoton-hid.rules contains an example set of rules for setting the device permissions to 0666. Copy the file to the directory /etc/udev/rules.d/ to use it.

Usage

See --help for more information on a given command.

evic-convert

evic-convert is a tool to encrypt/decrypt firmware images:

$ evic-convert in.bin -o out.bin

evic-usb

evic-usb is a tool for interfacing with the device through USB.

Dump device data flash to a file:

$ evic-usb dump-dataflash -o out.bin

Upload an encrypted firmware image to the device:

$ evic-usb upload firmware.bin

Upload an unencrypted firmware image to the device:

$ evic-usb upload -u firmware.bin

Upload a firmware image using data flash from a file:

$ evic-usb upload -d data.bin firmware.bin

Use --no-verify to disable verification for APROM or data flash. To disable both:

$ evic-usb upload --no-verify aprom --no-verify dataflash firmware.bin

python-evic's People

Contributors

ban3 avatar emilgardis avatar ghoost82 avatar magicrazy avatar nestorfish avatar reservedfield 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.