Prepare Raspberry Pi
Refer to the link below.
How to prepare Raspberry Pi to install the MESH Hub
When installing MESH Hub to Raspberry Pi, prepare a monitor, keyboard, mouse, etc. as necessary.
Create your account
A MESH account is required to use the MESH hub app for Raspberry Pi.
If you do not have a MESH account, please register a new account at Sign up MESH account.
If you already have a MESH account for the MESH SDK or recipe contest, you can continue to use that account.
Download the MESH Hub app
There are the following methods to download the MESH hub software package and place it on the Raspberry Pi.
- Download directly with the browser on Raspberry Pi
- Execute a command on a Raspberry Pi
- Downloading with PC browser and copy it to Raspberry Pi
1. Download directly with the browser on Raspberry Pi
- Sign in to the link below using your MESH account.
Agree to the End User License Agreement, and check "Agree".
https://hub.meshprj.com/users/sign_in?locale=en - The "Download package" button will be enabled, so click the button and download "mesh_x.x.x_armhf.deb" to any location on your Raspberry Pi.
(where xxx varies depending on the version of the package)
2. Execute a command on a Raspberry Pi
- Sign in to the link below using your MESH account.
Agree to the End User License Agreement, and check "Agree".
https://hub.meshprj.com/users/sign_in?locale=en - The download command will be displayed.
Execute the command in the terminal on the Raspberry Pi.
3. Download with PC browser and copy it to Raspberry Pi
If your Raspberry Pi does not have a browser, please use this method.
- Sign in to the link below using your MESH account.
Agree to the End User License Agreement, and check "Agree".
https://hub.meshprj.com/users/sign_in?locale=en - The "Download package" button will be enabled, so click the button and download "mesh_x.x.x_armhf.deb" to any location on your PC.
(where xxx varies depending on the version of the package) - Move the downloaded package in a desired location on the Raspberry Pi using a USB memory or scp command.
Install MESH Hub
After moving the software package on the Raspberry Pi, make sure the Internet connection of Raspberry Pi, then execute the following command in the terminal on the Raspberry Pi to install the package.
1. Install dependent packages
Execute the following command to install the dependent packages.
sudo apt-get update
sudo apt-get install bluez dnsutils sqlite3 libcrypto++-dev libcrypto++-utils libcurl4-openssl-dev
2. Install MESH Hub app
sudo dpkg -i mesh_x.x.x_armhf.deb
Change “x.x.x” to the version of the MESH Hub package you are downloading.
It takes approximately ten minutes to install the MESH Hub package.
Note: To check the installation progress in detail, execute the command by adding the *”-D11” option as shown below.
sudo dpkg -i -D11 mesh_x.x.x_armhf.deb
3. Start MESH Hub app
After the installation is completed, execute the following command in the terminal on Raspberry Pi to start the MESH Hub application.
mesh start
The installation is complete. After installation, even if the Raspberry Pi is powered off and restarted, the MESH Hub app will start automatically, so it can be used as a MESH Hub.
Note: Closing the MESH hub application
To terminate the MESH Hub app, execute the following command in the terminal on the Raspberry Pi.
mesh stop
The MESH Hub application also provides other commands that can be executed from the terminal.
See the links below for details.
The list of CLI (Command Line Interface) of MESH
[MESH hub setup steps]
- How to install MESH Hub app on a Raspberry Pi
- MESH Hub initial setup
- How to stop MESH Hub
- How to uninstall MESH Hub