$tpi command-line interface

$tpi is our custom command-line interface that should help you interact with Turing Pi V2. It is still a work in progress and new features should be available as soon as possible. It is also open source, and the guide on where to find it and how you can contribute to it will be in our advance section.

$tpi is pre-installed on BMC and you can simply invoke it by:

# tpi -h
Usage: tpi [host] <options...>
-p, --power (on off status) Power management
-u, --usb (host device status) USB mode,Must be used with the node command
-n, --node (1 2 3 4) USB selected node
-r, --resetsw reset switch
-U, --uart uart opt get or set
-C, --cmd uart set cmd
-F, --upgrade upgrade fw
-f, --flash todo
-h, --help usage
$ tpi -p on //power on
$ tpi -p off //power off
$ tpi -u host -n 1 //USB uses host mode to connect to Node1
$ tpi --uart=get -n 1 //get node1 uart info
$ tpi --uart=set -n 1 --cmd=ls//set node1 uart cmd
$ tpi --upgrade=/mnt/sdcard/xxxx.swu //upgrade fw
$ tpi -r //reset switch


Was this article helpful?

0 out of 2 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Please sign in to leave a comment.