# GboxTools **Repository Path**: elygg/Gboxtools ## Basic Information - **Project Name**: GboxTools - **Description**: 【北斗星探-Android 应用程序】GboxTools 是GNSS RTK 设备配置与测量工具,面向外业测绘场景。通过蓝牙 SPP、USB 或物理串口与接收机通信,完成差分源配置、工作模式切换、输出频率定制,并实时显示定位、卫星与轨迹信息。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-31 - **Last Updated**: 2026-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GboxTools English | [简体中文](README.md) GboxTools is a GNSS RTK device configuration and field survey tool developed by Mijia Tech. It communicates with receivers over Bluetooth SPP, USB or a physical serial port, and handles correction-source setup, working-mode switching, output customization, plus real-time position and satellite monitoring. | Item | Value | | --- | --- | | Application ID | `com.gboxTools.config` | | Current Version | **1.8.57** (versionCode 31) | | Download | [GboxTools_V1.8.57_mijia.apk](https://gitee.com/elygg/Gboxtools/releases/download/1.8.57/GboxTools_V1.8.57_mijia.apk) | | Requirements | Android 5.0 (API 21) or above | | Languages | Simplified Chinese / English / Follow system | | Theme | Light / Dark | ## Screenshots **Home (Collect)** — photo records, area and route measurement, position map, plus utility-network / power-distribution entries ![Home](https://gitee.com/elygg/Gboxtools/releases/download/1.8.57/home.jpg) **Position** — live coordinates, height, satellites, fix status, accuracy and correction age, with connection and device configuration at a glance ![Position](https://gitee.com/elygg/Gboxtools/releases/download/1.8.57/locate.jpg) **Map** — Baidu base map with live position; stake-out, marking, distance, layers and follow tools on the right ![Map](https://gitee.com/elygg/Gboxtools/releases/download/1.8.57/map.jpg) **Console** — incoming NMEA sentences with pause, HEX, clear and direct AT command input ![Console](https://gitee.com/elygg/Gboxtools/releases/download/1.8.57/console.jpg) **Connection Settings** — connected device, saved connections (tagged In use), and Bluetooth / USB / serial pairing ![Connection Settings](https://gitee.com/elygg/Gboxtools/releases/download/1.8.57/connection.jpg) **Settings** — keep screen on, theme, language, floating window, track export formats and folder, backup and restore ![Settings](https://gitee.com/elygg/Gboxtools/releases/download/1.8.57/settings.jpg) ## Features ### Field Collection - **Photo records** — capture a photo together with position, coordinates and accuracy - **Area measurement** — collect boundary points to compute area and perimeter - **Route measurement** — collect points along a line to compute total and segment length - **Position map** — Baidu base map with live position; stake-out, marking, distance measurement, layers and auto-follow - **Utility network / Power distribution** — survey templates for professional scenarios ### Device Configuration - **Connection management** — Bluetooth SPP, USB and serial; saved connections reconnect in one tap, optional auto-connect on USB plug-in - **Working mode** — rover / base station - **Correction source** — NTRIP server, port, mount point, credentials and GGA upload interval - **I/O customization** — independent switches and rates for GGA / GST / RMC / VTG / GSV / GSA - **Data backhaul** — receiver data forwarding channel - **Device info** — firmware version, battery level, 4G signal strength ### Data & UI - **Track recording** — keeps recording with the screen off; TXT (NMEA), BIN (RTCM), KML and GPX output to a folder you choose - **Floating window** — show position on top of other apps - **Keep screen on** — prevents auto screen-off during field work - **Dark theme** — every screen adapted for night and high-glare conditions - **Mock location** — provides a mock position to other apps ## Supported Devices - Beidou Xingtan (北斗星探) Gen 1 / 2 / 3 RTK receivers - G20P vehicle-mounted RTK receivers - Other GNSS receivers supporting the `AT+` command set and standard NMEA output (some features limited) ## Download & Install Packages are published under the `版本发布` directory, one folder per version and date: ``` 版本发布/ └── Release 1.8.57 2026.11.24/ └── app-mijia-release1.8.57.apk ``` Older builds have been removed; only the current version is kept. 1. Download the APK for your version 2. Allow "install from unknown sources" 3. Grant Bluetooth, location and storage permissions on first launch 4. For USB connection, allow the USB device access dialog after plugging in the OTG cable > Upgrade in place. Uninstalling first removes local settings, saved connections and the export-folder grant. ## Usage ### 1. Connect a device - **Bluetooth** — Connection Settings → Bluetooth → scan and pick the receiver (SPP) - **USB** — Connection Settings → USB → the NMEA port is detected automatically - **Serial** — Connection Settings → Serial → enter the device node (`ttyMT*` / `ttyS*`) Previously used devices are kept under "Saved connections"; the active one is tagged **In use**, tap it to reconnect. ### 2. Configure the correction source Position page → Correction source → fill in server, port, mount point, credentials and GGA interval. The receiver logs into the CORS service after saving. ### 3. Read the position The Position page shows latitude/longitude, ellipsoidal height, satellites (visible / used), fix status (single / RTK float / RTK fixed), horizontal and vertical accuracy, and correction age. ### 4. Inspect raw data The Console page streams incoming NMEA sentences. Pause, switch to HEX, clear, or send AT commands directly from the input box; "Common commands" offers quick presets. ### 5. Export tracks Settings → Track recording: pick an export folder first, then enable TXT / BIN / KML / GPX. Export cannot be enabled without a folder. ## Protocol ``` AT+DEVINFO=GET # device information AT+GNSS_MODE=GET/SET # working mode (rover / base) AT+ROVER_PARM=GET/SET # NTRIP parameters AT+NEMATIME=GET/SET # NMEA output rate AT+USB_OUT=SET,... # customized USB output AT+APN=GET/SET # 4G APN ``` Data flow: ``` Device → Bluetooth/USB/Serial → EventBus → NMEA parsing → state update → UI └→ track files (TXT/BIN/KML/GPX) ``` ## Tech Stack - **Language**: Java (Java 11) - **Build**: Gradle 7.4 with Android Gradle Plugin 4.2.2 - **SDK**: minSdk 21 / targetSdk 30 / compileSdk 30 - **Libraries**: AndroidX AppCompat, Material Components, EventBus 3.3.1, RxJava 2, android-serialport, WCH UART Library, FlexboxLayout, Baidu Map SDK ## Permissions | Permission | Purpose | | --- | --- | | `BLUETOOTH` / `BLUETOOTH_ADMIN` | Device scanning and SPP connection | | `ACCESS_FINE_LOCATION` / `ACCESS_COARSE_LOCATION` | Positioning and Bluetooth scanning | | `ACCESS_MOCK_LOCATION` | Mock location provider | | `WRITE_EXTERNAL_STORAGE` / `READ_EXTERNAL_STORAGE` | Exporting tracks and records | | `FOREGROUND_SERVICE` / `WAKE_LOCK` | Background track recording with screen off | | `INTERNET` | NTRIP correction data and map tiles | ## Version History **v1.8.57** (current, 2026.11.24) - Connection page: corrected the data source of saved connections, tagged the active one, deleted entries no longer reappear, real device name written back after Bluetooth connect - Fixed toggle logic: select-all no longer fights individual switches; theme change no longer triggers the "choose export folder" prompt - Added GSV / GSA fields to the customized USB output - Fixed USB config readback and loss of error logs when file logging was off - Track recording continues with the screen off; keep-screen-on takes effect - Dark theme applied to all screens, unified menu and dialog styling ## Feedback Please open an issue with the app version, phone model and Android version, receiver model and connection type, plus the steps to reproduce (screenshots welcome). ## License See the license file in this repository.