flasher CLI for ventilation modules
Last updated 2 years ago by fribes .
ISC · Original npm · Tarball · package.json
$ cnpm install @eove/vent-flasher-cli 
SYNC missed versions from official npm registry.

EO Vent Flasher CLI

Build Status


This program updates EO15x or EO70 device software without human interaction, whatever the device initial state (on or off). Both the CPU and the power unit can bu updated. It offers a command line interface in order to be used by a continuous integration bot.

The following steps are performed:

  • reboot the device in bootstrap mode
  • flash it
  • reboot to start the fresh firmware

Sub commands

  • list: list communication ports
  • enter: enter bootstrap
  • exit: exit bootstrap
  • flashCPU: perform device CPU flashing (includes entering and exiting bootstrap)
  • flashPower: perform device power unit flashing

Default parameters

  • /dev/ttyUSB1 for cpu com
  • /dev/ttyUSB0 for power unit
  • firmware as firmware file (can be a symbolic link)

These parameters can be overridden in command line, see commands help: <command> --help

Com ports

Depending on the OS and the connected devices, your communication ports name will vary. Check for FTDI manufacturer in the output of list sub-command. The first occurence should be the power unit port and the second the cpu port.



  • node (tested version : v6.11.1, v8.9.1)
npm install


  • docker (tested with: Docker version 1.13.1, build 092cba3)
  • docker-compose (tested with: docker-compose version 1.8.0, build unknown)

Aternatively, for native run:

  • wine (tested version : wine-2.0.2, wine-3.0)
  • node (tested version : v6.11.1, v8.9.1)
  • dotnet (see below)
apt-get install -y --no-install-recommends wget cabextract
wget -nc https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks && ./winetricks -q dotnet452 corefonts
npm install


  • wine (tested version : wine-2.0.2, wine-3.0)
  • node (tested version : v6.11.1, v8.9.1)
  • dotnet (see below)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
brew install winetricks
winetricks -q dotnet452 corefonts
npm install


Assuming you have firmware file eo70.H86 in your <HOME> directory, here are the steps to follow dependending on your OS.


node flasher-cli.js flashCPU -f <HOME>\eo70.H86


docker-compose run flasher flashCPU -f <HOME>/eo70.H866


./flasher-cli.js flashCPU -f <HOME>/eo70.H86


manually entering bootstrap

Flashing requires the device to run its bootstrap program, this may not succeed at once. To enter manually into bootstrap mode, run:

docker-compose run flasher enter or, for a native run, ./flasher-cli.js enter

When entering bootstrap, the device emits a single beep. In bootstrap mode, it seems off (ventilation led is off, the power button has no effect).

A successful flashing will exit bootstrap. Otherwise, to exit manually from bootstrap mode, run:

docker-compose run flasher exit or, for a native run, ./flasher-cli.js exit

Docker image update

  1. docker build -t eove/flasher:x.y.z with x.y.z the new version number

  2. docker push

  3. update docker-compose.yml to set new image version number

  4. git commit and git push

Current Tags

  • 1.1.1                                ...           latest (2 years ago)

2 Versions

  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 2
Last Month 0
Dependencies (6)
  • @eove/vent-api-descriptors git+https://ed24e1552cf5d20b1327f12d8034a684eaf7e734:x-oauth-basic@github.com/eove/eo-vent-api-descriptors.git#v1.0.44
  • @eove/vent-com git+https://ed24e1552cf5d20b1327f12d8034a684eaf7e734:x-oauth-basic@github.com/eove/eo-vent-com.git#v0.1.103
  • @eove/vent-configuration git+https://ed24e1552cf5d20b1327f12d8034a684eaf7e734:x-oauth-basic@github.com/eove/eo-vent-configuration.git#v0.1.55
  • @eove/vent-usb-transport git+https://ed24e1552cf5d20b1327f12d8034a684eaf7e734:x-oauth-basic@github.com/eove/eo-vent-usb-transport.git#v0.0.5
  • commander 2.15.0
  • serialport 6.1.1
Dev Dependencies (7)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |