Skip to content

Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS

License

Notifications You must be signed in to change notification settings

lupyuen/mynewt-newtmgr

 
 

Repository files navigation

Updates for PineTime Companion App

See newtmgr.dart for newtmgr converted from Go to Dart.

Newtmgr

Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS. It uses a connection profile to establish a connection with a device and sends command requests to the device. The newtmgr tool documentation can be found under /docs which are published at http://mynewt.apache.org/latest/os/modules/devmgmt/newtmgr.html

Building and Running

Build and run the newtmgr tool as follows:

sudo apt install graphviz

# Download Newt Manager on Raspberry Pi or Pinebook Pro
cd ~/go
mkdir -p src/mynewt.apache.org
cd src/mynewt.apache.org/
git clone https://github.com/lupyuen/mynewt-newtmgr
mv mynewt-newtmgr newtmgr

# Build Newt Manager on Raspberry Pi or Pinebook Pro
cd ~/go/src/mynewt.apache.org/newtmgr/newtmgr
export GO111MODULE=on
go build

# Run Newt Manager on Raspberry Pi or Pinebook Pro
cd ~/go/src/mynewt.apache.org/newtmgr/newtmgr

sudo ./newtmgr conn add pinetime type=ble connstring="peer_name=pinetime" 2> /dev/null

sudo ./newtmgr image list -c pinetime 2> trace.out

go tool trace trace.out

About

Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.9%
  • Dart 3.5%
  • Other 0.6%