Smart Tracker

⭐ Architecture

images

⭐ Device

images

⭐ Functionalities

  • Device addition and review module. The first person to add the device becomes the administrator. Other users need to be approved by the administrator before they can see the device information.
  • Device positioning service reports data including (latitude and longitude, positioning mode, and reporting timestamp) using gcj02 coordinates globally. The device uses three positioning modes (LBS, GPS, WIFI). This positioning module directly connects to a ready-made product purchased from Taobao and used with a Raspberry Pi. If the address resolution is based on wifi positioning, the Baidu hardware module is used for processing. For LBS and GPS positioning, Baidu reverse address resolution is used. When developing this module, we set three positioning modes (standby, normal, and emergency), and users can adjust the data reporting interval according to their needs. The device information reported will be transmitted via MQTT protocol and received by the server, then the message will be put into RabbitMQ for consumption and finally displayed to the user.
  • Electronic fence function, which is also the core function. During the initial development phase, we used the fence algorithm provided by Baidu Maps, but we found that the calculation was very limited. In the end, we developed our own algorithm. The main function is to set a designated electronic fence for children or elderly people wearing the device. When they leave the electronic fence, the mobile phone will sound an alarm. Two types of fences were used in development: circular fence, with the origin as the center and the radius as the distance, and polygon fence, using point connection method to determine whether the device’s latitude and longitude is within the fence. If the device leaves the electronic fence, a WeChat subscription template will be pushed. This module uses the one-time subscription template of WeChat. There is also an on-site message reminder in the mini program.
  • Historical trajectory, according to the device’s daily trajectory, using Tencent’s built-in components for trajectory rendering, similar to Amap’s daily trajectory.
  • Handholding mode. This module uses a near Bluetooth module to connect Bluetooth. If the Bluetooth is disconnected, an alarm will be triggered on the mobile phone.

images

images