A method, device and equipment for position tracking and remote monitoring
Through the communication between the NB module and the cloud platform server, combined with LBS technology, the problem of location tracking and status remote monitoring of smart home devices in transportation and monitoring scenarios is solved, reducing the cost of the entire machine and simplifying the development process.
Patent Information
- Application Number
- CN202210968583.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-12
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-08-12
AI Technical Summary
Existing smart home devices cannot achieve real-time location updates and remote monitoring during logistics and transportation. They need to independently integrate communication modules that can dynamically update point reporting, which increases development costs and complexity.
Using the communication function between the NB module and the cloud platform server, it enters the location tracking mode or remote monitoring mode by detecting the power-on status of the main control substrate, and uses LBS technology to determine and report location parameters to achieve location tracking and home entry during logistics and transportation. Remote monitoring after installation.
It reduces the cost of the whole machine, expands the application scope, realizes location tracking and status remote monitoring of smart home devices in transportation and monitoring scenarios, and simplifies the development process.
Smart Images

Figure CN115361655B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communications, and in particular to a method, device and equipment for location tracking and remote monitoring. Background Art
[0002] In the related technology, smart home devices realize remote monitoring functions, which are basically connected to the hotspot in the user's home through a WIFI module and used in conjunction with an APP. However, the WIFI module cannot realize real-time location updates and reports during the transportation of the air conditioner. If the smart home device needs this function, it is necessary to independently integrate a communication module that can dynamically update the reporting point, such as a communication module that supports 2G, 3G, and 4G communication systems that support operator network access.
[0003] The core advantages of the above-mentioned communication modules include high data rate, broadband transmission, wireless instant messaging, and high compatibility, but the need for separate integration increases development costs and complexity. Summary of the invention
[0004] The present application provides a method for location tracking and remote monitoring, which is applied to smart home devices equipped with NB modules, to achieve location tracking of smart home devices during logistics transportation and remote monitoring after home installation, thereby expanding the scope of application and reducing the cost of the entire device.
[0005] In a first aspect, the present application provides a method for location tracking and remote monitoring, comprising:
[0006] After detecting that the NB module is powered on, a connection is established with the cloud platform server through the NB module;
[0007] According to the power-on status of the main control substrate, confirm to enter the position tracking mode or remote monitoring mode;
[0008] When entering the location tracking mode, the location parameters are determined based on the communication between the NB module and the location capability base station LBS, and the location parameters are reported to the cloud platform server through the NB module;
[0009] When entering the remote monitoring mode, the smart home device status is obtained and reported to the cloud platform server through the NB module.
[0010] In one or more embodiments, according to the power-on state of the main control substrate, confirming to enter the position tracking mode or the remote monitoring mode includes:
[0011] Read the battery point status value stored in the register of the main control substrate;
[0012] If the battery point status value is not read, it is determined that the main control substrate is in an unpowered state, and it is confirmed to enter the position tracking mode;
[0013] If the battery point status value is read, it is determined that the main control substrate is in a powered-on state, and it is confirmed to enter the remote monitoring mode.
[0014] In one or more embodiments, if the battery point status value is read, it is determined that the main control substrate is in a powered-on state, and it is confirmed that the remote monitoring mode is entered, including:
[0015] If the first battery point status value is read, it is determined that the NB module is in a state of being powered only by the main control substrate, and it is confirmed to enter the remote monitoring mode;
[0016] If the second battery point status value is read, it is determined that the NB module is in a state of dual power supply by the main control substrate and the battery, and it is confirmed to enter the remote monitoring mode.
[0017] In one or more embodiments, determining the location parameters based on the communication between the NB module and the LBS, and reporting the location parameters to the cloud platform server through the NB module includes:
[0018] Based on the communication between the NB module and the LBS, a location parameter is obtained, where the location parameter includes at least one of a carrier frequency number EARFCN, a physical cell identifier PCI, a reference signal received power RSRP, a reference signal received quality RSRQ, a signal strength RSSI, and a signal-to-noise ratio SNR;
[0019] The NB module reports the location parameters to the cloud platform server, and the cloud platform server parses the location parameters and calls the background interface to query the corresponding location information;
[0020] After the location parameters are reported to the cloud platform server through the NB module, it also includes:
[0021] After the location parameters are successfully reported through the NB module, the location reporting timer is restarted and the device enters the dormant state;
[0022] After the timer expires, the NB module is restarted to perform the next position parameter reporting until it is confirmed to switch to remote monitoring mode.
[0023] In one or more embodiments, when entering the remote monitoring mode is confirmed, obtaining the state of the smart home device and reporting the state of the smart home device to the cloud platform server through the NB module includes:
[0024] If it is determined that the remote monitoring mode is currently in the initialization stage when the remote monitoring mode is initially confirmed, the battery point status value and the main control substrate power-on indication stored in the main control substrate are read from the register, and the battery point status value is reported to the cloud platform server through the NB module, so that the cloud platform server determines that the NB module is in dual power supply of the main control substrate and the battery and sends a battery removal indication to the user;
[0025] Start the status reporting timer, and after the status reporting timer reaches the timing time, determine that the current state is in the smart home device status detection stage, obtain the smart home device status and report it to the cloud platform server through the NB module;
[0026] After obtaining the status of the smart home device and reporting it to the cloud platform server through the NB module, it also includes:
[0027] After determining that the smart home device status report is successful, restart the status report timer, and after the status report timer reaches the timing time, perform the next smart home device status report.
[0028] In one or more embodiments, when the smart home device is an air conditioner, the state of the smart home device includes state change data of the air conditioner indoor unit and full state change data of the air conditioner, the state reporting timer includes a first state reporting timer and a second state reporting timer, and after the state reporting timer reaches the timing time, the state of the smart home device is obtained and reported to the cloud platform server through the NB module, including:
[0029] After determining that the first status reporting timer reaches the first timing time, read the state change data of the air conditioner indoor unit stored in the register of the main control substrate, and report it to the cloud platform server through the NB module;
[0030] After determining that the second state reporting timer reaches the second timing time, read the air conditioner full state change data stored in the register of the main control substrate, and report it to the cloud platform server through the NB module;
[0031] Wherein, the first timing time is less than the second timing time, and the air conditioner full state change data includes the indoor unit state change data and the outdoor unit state change data.
[0032] In one or more embodiments, the method further comprises:
[0033] When the main control substrate detects that the main control substrate is connected to the power supply and the battery supplying power to the NB module is not removed, an interrupt signal is sent to the NB module so that the NB module re-determines the power-on status of the main control substrate after restarting.
[0034] In one or more embodiments, the method further comprises:
[0035] A control instruction module receiving, through the NB module, a control instruction module from a user forwarded by the cloud platform server;
[0036] Determining, by the NB module, whether the received control instruction is related to smart home control;
[0037] When it is determined to be related to smart home control, the control instruction is forwarded to the main control substrate; otherwise, the instruction is executed by the NB module.
[0038] In a second aspect, the present application provides a device for location tracking and remote monitoring, comprising:
[0039] The cloud platform server communication module is used to establish a connection with the cloud platform server through the NB module after detecting that the NB module is powered on;
[0040] A mode selection module is used to confirm entering into a position tracking mode or a remote monitoring mode according to the power-on status of the main control substrate;
[0041] The location tracking module is used to confirm that when entering the location tracking mode, the location parameters are determined based on the location capability base station LBS base station positioning technology, and the location parameters are reported to the cloud platform server through the NB module;
[0042] The remote monitoring module is used to confirm that when entering the remote monitoring mode, the status of the smart home device is reported to the cloud platform server through the NB module.
[0043] In a third aspect, the present application provides a device for location tracking and remote monitoring, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above-mentioned location tracking and remote monitoring method. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A schematic diagram of the hardware structure of the main control substrate and NB module provided in the embodiment of the present application;
[0046] Figure 2 A schematic diagram of a transportation scenario provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of the working state of the NB module after detecting battery power supply provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of a monitoring scenario provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of the working state of the NB module after power supply is detected provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of the working status of the NB module after detecting dual power supply from a power source and a battery provided in an embodiment of the present application.
[0051] Figure 7 A flow chart of a method for location tracking and remote monitoring provided by an embodiment of the present application;
[0052] Figure 8 A flow chart of the communication between the NB module and the main control substrate after detecting that the battery is powered, provided in an embodiment of the present application;
[0053] Fig. 9 A flow chart of the communication between the NB module and the cloud platform server after detecting battery power supply provided in an embodiment of the present application;
[0054] Fig.10 A flowchart of initializing the NB module after detecting battery power supply provided in an embodiment of the present application;
[0055] Fig.11 A flowchart of initializing the main control substrate after detecting that only power is supplied is provided in an embodiment of the present application;
[0056] Fig.12 A communication flow chart of the NB module and the main control substrate after detecting that only power is supplied provided in the embodiment of the present application;
[0057] Fig.13 A flow chart of communication between the NB module and the cloud platform server after detecting that only power is supplied by the power supply provided in the embodiment of the present application;
[0058] Fig.14 A flowchart of initializing the NB module after detecting that only power is supplied by the power supply provided in the embodiment of the present application;
[0059] Fig.15 A flowchart of the main control substrate and the NB module after detecting power supply provided in an embodiment of the present application;
[0060] Fig.16 A flowchart of initializing the main control substrate after detecting dual power supply from power supply and battery provided in an embodiment of the present application;
[0061] Fig.17 A communication flow chart of the NB module and the main control substrate after detecting dual power supply from the power supply and the battery according to the embodiment of the present application;
[0062] Fig.18 A communication flow chart of the NB module and the cloud platform server after detecting dual power supply from a power source and a battery according to an embodiment of the present application;
[0063] Fig.19 A flowchart of the working process of the main control substrate and the NB module after detecting the dual power supply of the power supply and the battery provided in the embodiment of the present application;
[0064] Fig. 20 A diagram of a device for location tracking and remote monitoring provided in an embodiment of the present application;
[0065] Fig.21 Device diagram for location tracking and remote monitoring provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The acquisition, storage, use, and processing of data in the embodiments of the present application comply with the relevant provisions of national laws and regulations.
[0067] In the field of smart home devices, to realize the remote monitoring function of the equipment, it is basically to connect to the hotspot in the user's home through the WIFI module and use it with application software. However, the WIFI module cannot realize real-time location update and reporting during the transportation of the air conditioner. If the smart home device needs this function, it is necessary to independently integrate a communication module that can dynamically update the reporting point, such as a communication module that supports 2G, 3G, and 4G communication systems that support operator network access.
[0068] Narrow Band Internet of Things NB-IoT is an emerging technology in the loT field. The core advantages of NB-IoT include narrowband transmission, wide coverage, massive access and low power consumption.
[0069] NB-IoT is built on cellular networks and only requires a very narrow spectrum to work properly, consuming only about 180 Hz of frequency band. It is fully compatible with the Global System for Mobile Communications, Universal Mobile Communications System and 4G networks. In other words, it can be built on existing communication platforms without the need for hardware upgrades.
[0070] In the same frequency band, NB-IoT has a gain of 20dB over the existing network and a coverage area expanded 100 times.
[0071] One NB-IoT sector can support 100,000 connections, low latency sensitivity, ultra-low equipment cost, low equipment power consumption and optimized network architecture.
[0072] The NB-IoT terminal module has the characteristics of low power consumption and a standby time of up to 10 years.
[0073] NB-IoT module is also called NB module. NB module has the advantages of low power consumption, strong coverage, low cost, and massive connections. It is mainly aimed at low-end IoT terminals and has lower cost and wider coverage than the communication modules of 2G, 3G, and 4G communication systems that support operator network access.
[0074] In view of the above problems, the embodiment of the present application integrates the communication component NB module into the wireless data terminal of the smart home device, and realizes the location tracking of the smart home device during the logistics transportation process and the remote monitoring of the status of the smart home device after the home installation through the communication function between the NB module and the cloud platform server. Using one NB module is applicable to both transportation and monitoring scenarios, which expands the scope of application and reduces the cost of the whole machine.
[0075] This application uses a Modbus adapter as the main control substrate. The main control substrate contains a microcontroller unit (MCU), which is the core of the communication and interactive control with the smart home device unit and the NB module. The NB module is soldered on the main control substrate as a component and communicates with the main control substrate through the serial port, using the Modbus RTU protocol. At the same time, the status of the battery compartment and the power input can be managed through the main control substrate.
[0076] The NB module is the core component of the air-conditioning equipment with cloud communication capabilities. Its working status is determined by its own power supply status.
[0077] ① If the NB module is in battery-powered state, it works in location tracking mode;
[0078] ② If the NB module is in the state of being powered by the main control substrate, it works in remote monitoring mode;
[0079] ③ If the NB module is in the dual power supply mode of the main control substrate and the battery, it will work in the working mode, and will notify the user through the cloud platform and application platform to remove the battery in time to enable normal operation.
[0080] The hardware structure of the NB module and Modbus adapter (that is, the main control substrate) is as follows Figure 1 shown.
[0081] When the power supply is plugged in, the main control MCU can detect that the current main control substrate is powered by the power supply, and will read the battery status and save the battery point status value in the corresponding Modbus point. If the main control MCU detects that there is a battery, it means that the NB module was previously in the position tracking mode. At this time, the main control MCU will send an interrupt signal to the NB module to inform it to change the working mode. If the main control MCU detects that there is no battery, it will enter the normal boot process.
[0082] When the battery is installed, only the NB module is powered on, and the corresponding Modbus point storage medium on the register of the main control substrate cannot be accessed.
[0083] The NB module's judgment logic for power supply status is as follows:
[0084] ④After the NB module is powered on, establish a communication channel with the main control, open the serial port, and then read the Modbus battery point status value.
[0085] ⑤ If no feedback is received from the main control MCU within the set timeout period, the NB module is in battery power supply state.
[0086] ⑥ If feedback is received from the main control MCU within the set timeout period, the returned battery point status value is parsed, including two states. The first battery point status value indicates that there is no battery and the NB module is only powered by the main control. The second battery point status value indicates that there is a battery and the NB module is powered by both the main control MCU and the battery.
[0087] When this application is applied to transportation scenarios, such as Figure 2 As shown. During transportation, the NB module is powered by batteries. After the NB module is powered on, it enters the initialization process to establish communication with the cloud platform server and the main control baseboard.
[0088] The NB module uses the Modbus RTU protocol to communicate with the main control substrate through the serial port. When the NB module cannot read the battery point status value stored in the register of the main control substrate through the serial port, it is determined that the main control substrate is in an unpowered state and confirms to enter the position tracking mode.
[0089] The NB module first communicates with the location capability base station (Location Based Services, LBS) of the mobile operator based on NB-IoT technology to obtain at least one of the location parameter carrier frequency point number EARFCN, physical cell identifier PCI, reference signal received power RSRP, reference signal received quality RSRQ, signal strength RSSI, and signal-to-noise ratio SNR, and then uses the IoT standard communication protocol lwm2m. The communication process complies with the standard protocol flow of registration, subscription, reporting, downlink control, etc. to establish communication with the cloud platform server. When the NB module determines that the current mainboard is not powered and is in battery power state, when entering the location tracking mode, it reports the first heartbeat to the cloud platform server. The heartbeat data includes the location parameters and the main control power-off state.
[0090] The cloud platform server parses the location parameters, calls the backend interface opened by the operator to query the corresponding location information, marks it on the map, and realizes the location tracking function by depicting the location information in the periodically reported data.
[0091] During transportation, the working status of the NB module is as follows: Figure 3 As shown, the NB module is powered only by batteries.
[0092] When this application is used in monitoring scenarios, such as Figure 4 As shown. After the smart home device is installed in the home, the battery is removed first and powered independently. After the main board is powered on, it is initialized, the battery status is read and saved in the relevant register points. After the NB module is powered on, it enters the initialization process, establishes communication with the cloud platform server and the main control board, and reports the first heartbeat. The heartbeat data includes the battery point status value.
[0093] When the NB module reads the battery point status value stored in the register of the main control substrate through the serial port, it determines that the main control substrate is in the power-on state and confirms to enter the remote monitoring mode. The NB module reads the specific point value of the main control substrate to obtain the status of the smart home device, reports it to the cloud platform server based on NB-IoT technology and LBS base station or reports it to the cloud platform server through the wireless local area network. The cloud platform server updates the status of the smart home device to the application platform synchronously. At the same time, the cloud platform server sends the control instructions received from the application platform to the NB module. If the control instructions are related to the control of smart home devices, the NB module will transfer them to the main control for execution.
[0094] After installation, the working status of the NB module is as follows: Figure 5 As shown, under normal circumstances, after installation at home, the NB module is only powered by a power supply.
[0095] If the battery is not removed in time after installation, the NB module reads the battery status value and reports it to the cloud platform server during the first heartbeat. At this time, the NB module is in a state of dual power supply and battery, and enters the remote monitoring mode. The working status is as follows: Figure 6 shown.
[0096] The present application embodiment provides a method for location tracking and remote monitoring, which is applied to a smart home device equipped with a NB module, such as Figure 7 As shown, the method includes:
[0097] Step S701: after detecting that the NB module is powered on, establishing a connection with the cloud platform server through the NB module;
[0098] After the NB module communicates with the LBS base station of the mobile operator based on the NB-IoT technology, it initializes the communication protocol stack, establishes a connection with the cloud platform server, registers with the cloud platform server and subscribes to the reporting target.
[0099] Step S702, confirming to enter the position tracking mode or the remote monitoring mode according to the power-on status of the main control substrate;
[0100] After the NB module is powered on, it enters initialization, opens the communication serial port with the main control substrate, and reads the battery point status value stored in the register of the main control substrate.
[0101] If no feedback is received from the main control MCU within the set timeout period, the reading is determined to have failed. The NB module is in battery-powered state and enters the position tracking mode. It is detected that only the battery is powered. The communication process between the NB module and the main control substrate is as follows: Figure 8 shown.
[0102] If the battery point status value fed back by the main control MCU is received within the set timeout period, it is determined that the NB module is in the main control power supply state and enters the remote monitoring mode.
[0103] The battery point status value includes a first battery point status value and a second battery point status value.
[0104] Step S703, when it is confirmed that the location tracking mode has been entered, the location parameters are determined based on the communication between the NB module and the location capability base station LBS, and the location parameters are reported to the cloud platform server through the NB module;
[0105] The NB module communicates with the LBS base station of the mobile operator based on NB-IoT technology and obtains the location parameters and reports them to the cloud platform server. The cloud platform server parses the location parameters, calls the background interface opened by the operator to query the corresponding location information, and marks it on the map. After the NB module successfully reports the location parameters, it restarts the location reporting timer and enters the dormant state.
[0106] After the timer expires, the NB module is restarted to perform the next position parameter reporting until it is confirmed to switch to remote monitoring mode.
[0107] The location parameter includes at least one of a carrier frequency number EARFCN, a physical cell identifier PCI, a reference signal received power RSRP, a reference signal received quality RSRQ, a signal strength RSSI, and a signal-to-noise ratio SNR.
[0108] When it is detected that only battery power is supplied, the communication process between the NB module and the cloud platform server is as follows: Fig. 9 shown.
[0109] After the NB module is powered on, it enters the initialization process, and establishes a connection with the cloud platform server after completing the initialization of the communication protocol stack; after the NB module successfully establishes a connection with the cloud platform server, it registers with the cloud platform server and subscribes to the reporting target; after completing the above process, the NB module performs a heartbeat report, and the heartbeat data includes location parameters and the main control unpowered status; after the NB module completes the heartbeat report, it starts the location reporting timer, turns off the protocol stack and enters sleep; after the location reporting timer expires, the NB module is powered on and the above process is repeated.
[0110] When it is detected that only the battery is used for power supply, the initialization process of the NB module includes the above communication process with the main control substrate and the cloud platform server, such as Fig.10 As shown, after the NB module is powered on, according to the unpowered state of the main control substrate, it is confirmed to enter the position tracking mode and report the position information to the cloud platform server at regular intervals.
[0111] Step S704, when confirming to enter the remote monitoring mode, obtain the status of the smart home device and report the status of the smart home device to the cloud platform server through the NB module.
[0112] When only power is detected, the initialization process of the main control board is as follows Fig.11 As shown, the main control substrate is initialized after powering on, the battery status is read and saved in the relevant register points, and the main control substrate initialization is completed after confirming that the battery has been removed. After the NB module is powered on, it enters the initialization process and establishes communication with the main control substrate and the cloud platform server.
[0113] It is detected that only power is supplied. The communication process between the NB module and the main control board is as follows Fig.12 As shown, after the NB module is powered on, it enters the initialization process, opens the communication serial port with the main control substrate, and reads the battery point status value stored in the register of the main control substrate. If the feedback from the main control MCU is received within the set timeout period, it is determined that the reading is successful, the NB module is in the power supply state, and enters the remote monitoring mode after saving the battery uninstalled state; after entering the remote monitoring mode, the NB module reads and saves the smart home device initialization data from the main control substrate; after saving the smart home device initialization data, the NB module starts the status reporting timer to regularly detect whether the smart home device status has changed. If so, the smart home device status change data is read, otherwise, the regular monitoring continues.
[0114] It is detected that only the power supply is provided. The communication process between the NB module and the cloud platform server is as follows: Fig.13 As shown, after the NB module is powered on, it enters the initialization process, and establishes a connection with the cloud platform server after completing the initialization of the communication protocol stack; after the NB module successfully establishes a connection with the cloud platform server, it registers with the cloud platform server and subscribes to the reporting target; after completing the above process, the NB module reports a heartbeat, and the heartbeat data includes location parameters and the main control power-on status and the battery-not-installed status; after the NB module reports the smart home device initialization data to the cloud platform server, the initialization is completed; after the NB module completes the initialization, it maintains uplink and downlink communication with the cloud platform server, reports the smart home device status changes and receives control instructions.
[0115] When it is detected that only power is supplied, the initialization process of the NB module includes the above communication process with the main control substrate and the cloud platform server, such as Fig.14 As shown, after the NB module reads the battery point value of the main control substrate, it performs the first heartbeat report, the heartbeat data includes the battery point status value, and the NB module enters the remote monitoring mode; after the main control substrate completes initialization, the NB module confirms that it has entered the remote monitoring mode, reads and saves the smart home initialization data, reports the smart home initialization data to the cloud platform server, and the NB module completes initialization; starts the status reporting timer, and after the status reporting timer reaches the timing time, determines that it is currently in the smart home device status detection stage, obtains the smart home device status and reports it to the cloud platform server through the NB module; after determining that the smart home device status report is successful, restarts the status reporting timer, and after the status reporting timer reaches the timing time, executes the next smart home device status report.
[0116] In one or more embodiments, receiving, by the NB module, a control instruction module from a user forwarded by the cloud platform server, includes:
[0117] Determining, by the NB module, whether the received control instruction is related to smart home control;
[0118] When it is determined to be related to smart home control, the control instruction is forwarded to the main control substrate; otherwise, the instruction is executed by the NB module.
[0119] After the power supply is detected, the working process of the main control board and NB module is as follows Fig.15 As shown, the main control substrate completes initialization after power-on, and the NB module reads the initialization data of the main control substrate to determine to enter the remote monitoring mode.
[0120] In one or more embodiments, when the smart home device is an air conditioner, the state of the smart home device includes the state change data of the air conditioner indoor unit and the full state change data module of the air conditioner, the state reporting timer includes a first state reporting timer and a second state reporting timer, and after the state reporting timer reaches the timing time, the state of the smart home device is obtained and reported to the cloud platform server through the NB module;
[0121] Wherein, the first timing time is less than the second timing time, and the air conditioner full state change data includes the indoor unit state change data and the outdoor unit state change data.
[0122] In one or more embodiments, when the main control substrate detects that the main control substrate is connected to a power source and the battery supplying power to the NB module is not removed, an interrupt signal is sent to the NB module so that the NB module can be restarted and the power-on status of the main control substrate can be re-determined.
[0123] When dual power supply from power supply and battery is detected, the initialization process of the main control board is as follows Fig.16 As shown, the main control substrate is initialized after power-on, the battery status is read and saved in the relevant register points, and after confirming that the battery is not removed, an interrupt is sent to the NB module to complete the initialization of the main control substrate.
[0124] When the NB module is in a state of dual power supply by the main control substrate and the battery, the cloud platform server needs to send a battery removal instruction to the user after receiving the first smart home device status report and the second battery point status value. When dual power supply by the power supply and the battery is detected, the communication process between the NB module and the main control substrate is as follows: Fig.17 As shown, the NB module reads and saves the unremoved battery status during initialization, and reads the Moudus battery point status value again when the device status of the smart home device changes after the initialization is completed.
[0125] When dual power supply is detected, the communication process between the NB module and the cloud platform server is as follows: Fig.18 As shown, the NB module reports the battery status to the cloud platform server during initialization. After the initialization is completed, if the battery is still not removed, the battery status is reported again when reporting the smart home device status change data to the cloud platform server.
[0126] After detecting the dual power supply of power supply and battery, the working process of the main control substrate and NB module is as follows: Fig.19 As shown, after the main control substrate is powered on, it sends an interrupt to the NB module to complete the initialization. After the NB module triggers the interrupt callback, it restarts and enters the remote monitoring mode after completing the initialization process.
[0127] Based on the same inventive concept, the present application also provides a device for position tracking and remote monitoring such as Fig. 20 As shown, including:
[0128] The cloud platform server communication module 2001 is used to establish a connection with the cloud platform server through the NB module after detecting that the NB module is powered on;
[0129] The mode selection module 2002 is used to confirm whether to enter the position tracking mode or the remote monitoring mode according to the power-on state of the main control substrate;
[0130] The location tracking module 2003 is used to determine the location parameters based on the location capability base station LBS base station positioning technology when confirming that the location tracking mode has been entered, and report the location parameters to the cloud platform server through the NB module;
[0131] The remote monitoring module 2004 is used to report the status of smart home devices to the cloud platform server through the NB module when confirming to enter the remote monitoring mode.
[0132] In one or more embodiments, the mode selection module 2002 determines to enter the position tracking mode or the remote monitoring mode according to the power-on state of the main control substrate, including:
[0133] Read the battery point status value stored in the register of the main control substrate;
[0134] If the battery point status value is not read, it is determined that the main control substrate is in an unpowered state, and it is confirmed to enter the position tracking mode;
[0135] If the battery point status value is read, it is determined that the main control substrate is in a powered-on state, and it is confirmed to enter the remote monitoring mode.
[0136] In one or more embodiments, if the battery point status value is read, it is determined that the main control substrate is in a powered-on state, and it is confirmed that the remote monitoring mode is entered, including:
[0137] If the first battery point status value is read, it is determined that the NB module is in a state of being powered only by the main control substrate, and it is confirmed to enter the remote monitoring mode;
[0138] If the second battery point status value is read, it is determined that the NB module is in a state of dual power supply by the main control substrate and the battery, and it is confirmed to enter the remote monitoring mode.
[0139] In one or more embodiments, the location tracking module 2003 determines the location parameters based on the communication between the NB module and the LBS, and reports the location parameters to the cloud platform server through the NB module, including:
[0140] Based on the communication between the NB module and the LBS, a location parameter is obtained, where the location parameter includes at least one of a carrier frequency number EARFCN, a physical cell identifier PCI, a reference signal received power RSRP, a reference signal received quality RSRQ, a signal strength RSSI, and a signal-to-noise ratio SNR;
[0141] The NB module reports the location parameters to the cloud platform server, and the cloud platform server parses the location parameters and calls the background interface to query the corresponding location information;
[0142] After the location parameters are reported to the cloud platform server through the NB module, it also includes:
[0143] After the location parameters are successfully reported through the NB module, the location reporting timer is restarted and the device enters the dormant state;
[0144] After the timer expires, the NB module is restarted to perform the next position parameter reporting until it is confirmed to switch to remote monitoring mode.
[0145] In one or more embodiments, when the remote monitoring module 2004 confirms entering the remote monitoring mode, it obtains the status of the smart home device and reports the status of the smart home device to the cloud platform server through the NB module, including:
[0146] If it is determined that the remote monitoring mode is currently in the initialization stage when the remote monitoring mode is initially confirmed, the battery point status value and the main control substrate power-on indication stored in the main control substrate are read from the register, and the battery point status value is reported to the cloud platform server through the NB module, so that the cloud platform server determines that the NB module is in dual power supply of the main control substrate and the battery and sends a battery removal indication to the user;
[0147] Start the status reporting timer, and after the status reporting timer reaches the timing time, determine that the current state is in the smart home device status detection stage, obtain the smart home device status and report it to the cloud platform server through the NB module;
[0148] After obtaining the status of the smart home device and reporting it to the cloud platform server through the NB module, it also includes:
[0149] After determining that the smart home device status report is successful, restart the status report timer, and after the status report timer reaches the timing time, perform the next smart home device status report.
[0150] In one or more embodiments, when the smart home device is an air conditioner, the state of the smart home device includes the state change data of the air conditioner indoor unit and the full state change data module of the air conditioner, the state reporting timer includes a first state reporting timer and a second state reporting timer, and after the state reporting timer reaches the timing time, the state of the smart home device is obtained and reported to the cloud platform server through the NB module;
[0151] Wherein, the first timing time is less than the second timing time, and the air conditioner full state change data includes the indoor unit state change data and the outdoor unit state change data.
[0152] Based on the same inventive concept, the present application also provides a device 2100 for location tracking and remote monitoring, such as Fig.21 As shown, it includes at least one processor 2102; and a memory 2101 that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the above-mentioned location tracking and remote monitoring method.
[0153] The memory 2101 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 2101 may be a volatile memory, such as a random-access memory (RAM); or a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of any one or more of the above volatile memories and non-volatile memories.
[0154] Processor 2102 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. It may also be a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0155] The embodiments of the present disclosure also provide a computer program product. When the computer program product is run on an electronic device, the electronic device executes any one of the above-mentioned location tracking and remote monitoring methods of the embodiments of the present disclosure or any method that may be involved in any one of the location tracking and remote monitoring methods.
[0156] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0157] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0158] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0159] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0160] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0161] The technical solution provided by the present application is introduced in detail above. The principles and implementation methods of the present application are explained by using specific examples in the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0162] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for location tracking and remote monitoring, applied to a smart home device equipped with a NB module, characterized in that: include: After detecting that the NB module is powered on, a connection is established with the cloud platform server through the NB module; According to the power-on status of the main control substrate, confirm that the position tracking mode or the remote monitoring mode has been entered, and when the main control substrate detects that the main control substrate is connected to the power supply and the battery that supplies power to the NB module has not been removed, send an interrupt signal to the NB module so that the NB module can re-judge the power-on status of the main control substrate after restarting; the NB module is deployed on the main control substrate as a component, and the NB module communicates with the microcontroller unit MCU of the main control substrate through a serial port, and the MCU is used to detect the power-on status of the main control substrate; When entering the location tracking mode, the location parameters are determined based on the communication between the NB module and the location capability base station LBS, and the location parameters are reported to the cloud platform server through the NB module; When entering the remote monitoring mode, the smart home device status is obtained and reported to the cloud platform server through the NB module, and the control instructions from the user forwarded by the cloud platform server are received through the NB module, and when the NB module determines that the received control instructions are related to smart home control, the control instructions are forwarded to the main control substrate.
2. The method according to claim 1, characterized in that According to the power-on status of the main control board, confirm to enter the position tracking mode or remote monitoring mode, including: Read the battery point status value stored in the register of the main control substrate; If the battery point status value is not read, it is determined that the main control substrate is in an unpowered state, and it is confirmed to enter the position tracking mode; If the battery point status value is read, it is determined that the main control substrate is in a powered-on state, and it is confirmed to enter the remote monitoring mode.
3. The method according to claim 2, characterized in that If the battery point status value is read, it is determined that the main control board is in the power-on state, and the remote monitoring mode is confirmed, including: If the first battery point status value is read, it is determined that the NB module is in a state of being powered only by the main control substrate, and it is confirmed to enter the remote monitoring mode; If the second battery point status value is read, it is determined that the NB module is in a state of dual power supply by the main control substrate and the battery, and it is confirmed to enter the remote monitoring mode.
4. The method according to claim 1, characterized in that: Determining the location parameters based on the communication between the NB module and the LBS, and reporting the location parameters to the cloud platform server through the NB module, including: Based on the communication between the NB module and the LBS, a location parameter is obtained, where the location parameter includes at least one of a carrier frequency number EARFCN, a physical cell identifier PCI, a reference signal received power RSRP, a reference signal received quality RSRQ, a signal strength RSSI, and a signal-to-noise ratio SNR; The NB module reports the location parameters to the cloud platform server, and the cloud platform server parses the location parameters and calls the background interface to query the corresponding location information; After the location parameters are reported to the cloud platform server through the NB module, it also includes: After the location parameters are successfully reported through the NB module, the location reporting timer is restarted and the device enters the dormant state; After the timer expires, the NB module is restarted to perform the next position parameter reporting until it is confirmed to switch to remote monitoring mode.
5. The method according to claim 1, characterized in that: When entering the remote monitoring mode, the smart home device status is obtained and reported to the cloud platform server through the NB module, including: If it is determined that the remote monitoring mode is currently in the initialization stage when the remote monitoring mode is initially confirmed, the battery point status value and the main control substrate power-on indication stored in the main control substrate are read from the register, and the battery point status value is reported to the cloud platform server through the NB module, so that the cloud platform server determines that the NB module is in dual power supply of the main control substrate and the battery and sends a battery removal indication to the user; Start the status reporting timer, and after the status reporting timer reaches the timing time, determine that the current state is in the smart home device status detection stage, obtain the smart home device status and report it to the cloud platform server through the NB module; After obtaining the status of the smart home device and reporting it to the cloud platform server through the NB module, it also includes: After determining that the smart home device status report is successful, restart the status report timer, and after the status report timer reaches the timing time, perform the next smart home device status report.
6. The method according to claim 5, characterized in that When the smart home device is an air conditioner, the state of the smart home device includes state change data of the air conditioner indoor unit and full state change data of the air conditioner, the state reporting timer includes a first state reporting timer and a second state reporting timer, and after the state reporting timer reaches the timing time, the state of the smart home device is obtained and reported to the cloud platform server through the NB module, including: After determining that the first status reporting timer reaches the first timing time, read the state change data of the air conditioner indoor unit stored in the register of the main control substrate, and report it to the cloud platform server through the NB module; After determining that the second state reporting timer reaches the second timing time, read the air conditioner full state change data stored in the register of the main control substrate, and report it to the cloud platform server through the NB module; Wherein, the first timing time is less than the second timing time, and the air conditioner full state change data includes the indoor unit state change data and the outdoor unit state change data.
7. The method according to claim 1, characterized in that Also includes: When the NB module determines that the received control instruction is not related to smart home control, the NB module executes the instruction.
8. A device for location tracking and remote monitoring, characterized in that: include: The cloud platform server communication module is used to establish a connection with the cloud platform server through the NB module after detecting that the NB module is powered on; A mode selection module is used to confirm entering the position tracking mode or the remote monitoring mode according to the power-on state of the main control substrate, and to send an interrupt signal to the NB module when the main control substrate detects that the main control substrate is connected to the power supply and the battery supplying power to the NB module is not removed, so that the NB module re-judges the power-on state of the main control substrate after restarting; the NB module is deployed on the main control substrate as a component, and the NB module communicates with the microcontroller unit MCU of the main control substrate through a serial port, and the MCU is used to detect the power-on state of the main control substrate; The location tracking module is used to confirm that when entering the location tracking mode, the location parameters are determined based on the location capability base station LBS base station positioning technology, and the location parameters are reported to the cloud platform server through the NB module; The remote monitoring module is used to report the status of smart home devices to the cloud platform server through the NB module when confirming that the remote monitoring mode has been entered, and to receive control instructions from the user forwarded by the cloud platform server through the NB module, and to forward the control instructions to the main control substrate when the NB module determines that the received control instructions are related to smart home control.
9. A device for location tracking and remote monitoring, characterized in that: It comprises at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described in any one of claims 1-7.
