Skip to content

lacie-life/junbot_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

junbot_app

Installation

  1. QMQTT
git clone git://code.qt.io/qt/qtmqtt.git
git checkout <version of Qt> # version of Qt: v5.15.2
sudo apt-get install qtbase5-private-dev
qmake => make => make install
  1. Tools usage
  • Install mosquitto and mosquitto-client by following this link
  • Using mosquitto for sub topic in publishing.py (option)
  • Config user/pass (option)
  • Install paho-mqtt for run publishing.py
pip install paho-mqtt
  • Default mqtt broker will be localhost:1883
  1. Run

  2. Android Export

4.1. System requirements

  • Qt 5.15.2 (Install with Android SDK, NDK, JDK)
  • Ubuntu 20.04
  • Android Phone (Android 7.0 or higher)

4.2. Config Android SDK, NDK, JDK

  • Install openjdk-11-jdk
sudo apt-get install openjdk-11-jdk openjdk-11-jre
sudo apt-get install openjdk-11-jdk-headless openjdk-11-jre-headless
  • Open Qt Creator => Tools => Options => Devices => Android => JDK, NDK, SDK
  • Config JDK location: /usr/lib/jvm/java-11-openjdk-amd64
  • Config Android SDK localtion: /home/<user>/Android/Sdk
  • Update Android SDK by SDK Manager
  • If you have error with command_line tools, download following the link they given and extract to /home/<user>/Android/Sdk. Then, update Android SDK again. cmd

4.3. Config build kit

kit

kit

4.4. Build and run

  • Build qtmqtt for Android Kit (Build both arm64-v8a and armeabi-v7a)
  • Install qtmqtt to Android Kit: Go to build folder of qtmqtt and run

make install

  • Build junbot_app for Android Kit
  • Run junbot_app on Android Phone

TODO:

  • Clean code and build
  • Add feature table and permission
  • Login Screen and Login feature, get data, compress to Json format and send to junbot_gui => check login status and return
  • Connect via MQTT Broker and visual Robot Status in Home Screen
  • Send control message to Robot by Json format (Update this feature in junbot_gui)
  • Get DeliveryTarget from junbot_gui via MQTT Broker and visual in Control Screen
  • Send DeliveryTarget to Robot by Json format (Update this feature in junbot_gui)
  • Notify robot status
  • Test and fix bug