Difference between revisions of "Projects:Badge/mpfshell"

From SHA2017 Wiki
Jump to: navigation, search
(Created page with "{{Badgemenu}} [https://github.com/wendlers/mpfshell install mpfshell] just run: <nowiki>git clone https://github.com/wendlers/mpfshell.git cd mpfshell sudo pip install pyseri...")
 
Line 25: Line 25:
 
   --loglevel LOGLEVEL  loglevel (CRITICAL, ERROR, WARNING, INFO, DEBUG)
 
   --loglevel LOGLEVEL  loglevel (CRITICAL, ERROR, WARNING, INFO, DEBUG)
 
   --reset              hard reset device via DTR (serial connection only)</nowiki>
 
   --reset              hard reset device via DTR (serial connection only)</nowiki>
 +
 +
More on [https://github.com/wendlers/mpfshell#shell-usage mpfshell usage]
 +
 +
<nowiki>mpfs> open ttyUSB0</nowiki>
  
 
Alternatives: [[Projects:Badge/ampy|ampy]]
 
Alternatives: [[Projects:Badge/ampy|ampy]]

Revision as of 10:44, 26 June 2017

Badge Badge project - Documentation - Github - Sponsorship - Organisation

install mpfshell just run:

git clone https://github.com/wendlers/mpfshell.git
cd mpfshell
sudo pip install pyserial
sudo pip install colorama
sudo pip install websocket_client
sudo python setup.py install

Usage:

usage: mpfshell [-h] [-c [COMMAND [COMMAND ...]]] [-s SCRIPT] [-n] [--nocolor]
                [--nocache] [--logfile LOGFILE] [--loglevel LOGLEVEL]
                [--reset]

optional arguments:
  -h, --help            show this help message and exit
  -c [COMMAND [COMMAND ...]], --command [COMMAND [COMMAND ...]]
                        execute given commands (separated by ;)
  -s SCRIPT, --script SCRIPT
                        execute commands from file
  -n, --noninteractive  non interactive mode (don't enter shell)
  --nocolor             disable color
  --nocache             disable cache
  --logfile LOGFILE     write log to file
  --loglevel LOGLEVEL   loglevel (CRITICAL, ERROR, WARNING, INFO, DEBUG)
  --reset               hard reset device via DTR (serial connection only)

More on mpfshell usage

mpfs> open ttyUSB0

Alternatives: ampy