WO2020187082A1 - Method for reporting position information by device, and related apparatus - Google Patents

Method for reporting position information by device, and related apparatus Download PDF

Info

Publication number
WO2020187082A1
WO2020187082A1 PCT/CN2020/078494 CN2020078494W WO2020187082A1 WO 2020187082 A1 WO2020187082 A1 WO 2020187082A1 CN 2020078494 W CN2020078494 W CN 2020078494W WO 2020187082 A1 WO2020187082 A1 WO 2020187082A1
Authority
WO
WIPO (PCT)
Prior art keywords
scene
location information
reporting period
cloud server
reporting
Prior art date
Application number
PCT/CN2020/078494
Other languages
French (fr)
Chinese (zh)
Inventor
张普朝
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020187082A1 publication Critical patent/WO2020187082A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Definitions

  • the type of the object tracked by the first device is set by default by the first device.
  • the first device may pre-store a fixed reporting period, and the object type corresponding to the fixed reporting period may be regarded as the tracking object type set by the first device by default.
  • the first device can use a shorter reporting period to report location information. That is, if the movement speed of the tracked object in the first scene is greater than the movement speed in the second scene, the first reporting period is less than the second reporting period.
  • the reporting period of the object in different scenarios can be set by the user according to requirements.
  • the first device may also adjust the reporting period according to the instruction.
  • the process of the first device adjusting the reporting period according to the instruction may include the following steps: the second device sends a first instruction to the cloud server according to the input user operation, and the first instruction is used to request the cloud server to notify the first device to report location information as soon as possible ;
  • the cloud server sends a second instruction to the first device based on the first instruction, and the second instruction is used to instruct the first device to report location information as soon as possible;
  • the first device receives the second instruction sent by the cloud server to shorten the reporting cycle, Report location information at a faster frequency. This way the user actively intervenes in the reporting cycle of the first device, in some emergency scenarios, the user can quickly learn the current location of the tracked object.
  • the first device before the first device obtains the scene data, it may use the initial reporting period to report the location information to the cloud server. After acquiring the scene data, the first device may report the location information to the cloud server according to the reporting period corresponding to the determined scene.
  • the initial reporting period may be a reporting period corresponding to the type of the currently tracked object.
  • the first device reports location information to the cloud server through a cellular network.
  • the cellular network is a narrowband internet of things (NB-IoT)
  • the first device activates the non-power saving mode when reporting the location information, and activates power saving when the location information is not reported Mode (power saving mode, PSM).
  • PSM power saving mode
  • the device is used to track an object, and the distance between the device and the object is less than a first value; the scene data reflects the geographic location or environment where the object is located;
  • the first reporting period is used to report the location information to the cloud server; the location information is the real-time location information of the device.
  • the reporting period refers to the time interval between the device reporting location information every 2 times.
  • the way in which the user sets the device tracking object type can enable the device to track different objects according to the user's needs, with a wider application range, more practicality, more in line with the user's usage habits, and better user experience.
  • the reporting period of the object in different scenarios can be set by the user according to requirements.
  • the device can independently adjust the reporting period according to the current scene, so that the device can adapt to the current scene and report location information according to actual needs.
  • FIG. 3 is a schematic flowchart of a method for establishing a subordination relationship between a first device and a user according to an embodiment of the present application
  • FIG. 7 is a schematic diagram of the functions provided by each device in the communication system of an embodiment of the present application.
  • the embodiment of the present application provides a method for a device to report location information.
  • the device can independently adjust the reporting period according to the current scenario, so that the device can adapt to the current scenario and report location information according to actual needs.
  • the reporting period refers to the time interval between the device reporting location information every 2 times.
  • the first device 100 is a terminal having a positioning function and a communication function based on a cellular network.
  • the first device 100 has a positioning function means that the first device 100 can obtain current location information according to one or more of the following methods, including: global navigation satellite system (GNSS) positioning, Wi-Fi Positioning, base station positioning, and positioning using data measured by configured sensors (such as acceleration sensors, air pressure sensors, etc.).
  • GNSS global navigation satellite system
  • Wi-Fi Positioning Wi-Fi Positioning
  • base station positioning positioning using data measured by configured sensors (such as acceleration sensors, air pressure sensors, etc.).
  • the first device 100 having a communication function based on a cellular network means that the first device 100 can be connected to the core network through the cellular network to communicate with other devices.
  • the first device 100 may be connected to the cloud server 300 based on a cellular network, so as to communicate with the cloud server 300.
  • the first device 100 can be used to track various objects, such as people (such as children, elderly), pets, important items (such as luggage, medical equipment), and objects in industries such as agriculture, animal husbandry, logistics, and cold chain, etc. .
  • the distance between the first device 100 and the object is less than the threshold.
  • the threshold can be preset, such as 10 centimeters (cm), 5 cm, and so on. That is, in this embodiment of the present application, the location information of the first device 100 can be regarded as the location information of the object tracked by the first device 100.
  • the first device 100 may be placed in an accessory, which is convenient for the user to use. It is not limited to the first device 100 placed in the bracelet as shown in FIG.
  • the second device 200 may be installed with an application (APP) for managing the first device 100, or the second device 200 may access a world wide web (web) page for managing the first device 100.
  • the second device 200 can control the first device that has an affiliation with the associated user of the second device 200 through the application or web page.
  • the associated user of the second device 200 refers to a user corresponding to a user account logged in to the second device 200 for managing the application or web page of the first device.
  • the user account logged in to the application or web page of the second device 200 may be referred to as the associated user account of the second device 200.
  • the structure of the first device 100 provided by the embodiment of the present application is described below.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first device 100.
  • the first device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the first device 100 may also be configured with a display screen.
  • the display screen may be used to display a two-dimensional code indicating the identification of the first device 100.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the memory 120 may be used to store one or more algorithms for identifying the scene where the first device 100 is located.
  • the processor 110 may call the algorithm to analyze the scene data obtained by the sensors (such as the air pressure sensor 170B and the acceleration sensor 170C) and/or the wireless communication module 160, and identify the scene where the first device 100 is located. After the processor 110 recognizes the scene where the first device 100 is located, it may adjust the period of the first device 100 reporting location information according to the scene where the first device 100 is located.
  • the charging management module 130 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 130 may receive the charging input of the wired charger through the USB interface.
  • the charging management module 130 may receive the wireless charging input through the wireless charging coil of the first device 100. While the charging management module 130 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 130 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 130, and supplies power to the processor 110, the memory 120, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 130 may also be provided in the same device.
  • the wireless communication function of the first device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the first device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the air pressure sensor 170B is used to measure air pressure.
  • the first device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 170B to assist positioning and navigation.
  • the acceleration sensor 170C can detect the magnitude of the acceleration of the first device 100 in various directions (generally three axes). When the first device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers and so on.
  • the distance sensor 170D is used to measure distance.
  • the first device 100 can measure the distance by infrared or laser.
  • an embodiment of the present application provides a method for a device to report location information.
  • the first device can independently adjust the reporting period according to the current scene, so that the first device can adapt to the current scene and report location information according to actual needs, which can not only meet the needs of tracking objects, but also Can save power consumption.
  • the location information of the first device may include one or more of the following: latitude and longitude coordinates, altitude, or geographic location name.
  • the first device can obtain location information through any of the following methods or a combination of the following methods:
  • the first device obtains the longitude and latitude coordinates or the geographic location name through a global navigation satellite system, such as GPS, GLONASS, BDS, QZSS, or SBAS.
  • a global navigation satellite system such as GPS, GLONASS, BDS, QZSS, or SBAS.
  • some sensors of the first device 100 can work continuously for a long time to collect data, so as to obtain the location information of the tracked object.
  • the wireless communication module 160 of the first device 100 can continuously provide wireless communication solutions such as global navigation satellite systems (such as GPS), Wi-Fi, Bluetooth, infrared, etc. to obtain the location information of the first device 100.
  • the above wireless communication solution may also be provided periodically (for example, in a fixed period) or as needed (for example, when or before the location information needs to be reported) to obtain the location information of the first device 100.
  • the view user information control 101 can be used to receive an input user operation (for example, a click operation).
  • the second device 100 can display user information on the user interface 10 (for example, the user who has logged in to manage the application of the first device) User account avatar, name, etc.), controls for logging out or switching login accounts, etc.
  • the add control 103 may be used to receive an input user operation (for example, a click operation), and in response to the user operation, the second device 200 may display a small window including one or more controls on the user interface 10.
  • the second device 200 may respond to a user operation (for example, a click operation) detected on the control in the small window, and provide scan QR code, view help feedback information, add friends or some other functions.
  • the identifier of the first device 100 may be a service set identifier (SSID) of a service set constructed by the first device 100, and may be used to indicate the first device 100.
  • the second device 200 obtains the identity of the first device 100, that is, the second device 200 finds that the first device 100 exists nearby.
  • SSID service set identifier
  • the second device 200 may execute any of the following methods to obtain the identity of the first device 100:
  • the second device 200 scans a message sent by the nearby first device 100, and the message carries the identity of the first device 100.
  • the first device 100 may send a message after being connected to a power source or after receiving a user operation (for example, the power button of a smart speaker receives a user's long press operation).
  • the first device 100 may continuously send the message.
  • the message sent by the first device 100 carries the identity of the first device 100.
  • the message may be a broadcast packet sent by the first device 100 using Bluetooth technology.
  • the second device 200 may perform a scanning operation on the Bluetooth channel in response to the user operation.
  • the time period during which the second device 200 performs the scanning operation may be a preset time period, and the second device 200 may stop scanning after the preset time period.
  • the second device 200 can scan the broadcast packet sent by the first device 100.
  • the second device 200 obtains the identification of the nearby first device 100 through the above-mentioned method (1) in response to the user operation received on the add device control 105 User interface displayed 20.
  • the user interface 20 may include: return to the upper level control 201, prompt information 202, and available device list 203.
  • the return to upper level control 201 can be used to receive an input user operation (for example, a click operation), and the second device 200 can display the user interface 10 shown in 4a again in response to the user operation.
  • the prompt information 202 is used to prompt the user that the second device 200 is currently scanning a message sent by a nearby first device.
  • the available device list 203 is used to display the information of the nearby first device discovered by the second device 200, the information is carried in the message sent by the first device, and the information may be the name of the first device.
  • the second device 200 has discovered two first devices whose names are "AAAAA” and "BBBBB" respectively.
  • the name of each device in the available device list 203 can be used to receive user operations.
  • the user can click "BBBBB" in the available device list 203, and in response to the click operation, the second device 200 can display the user interface 30 shown in 4c.
  • the user interface 30 may include a return control 301, a prompt message 302, a temporarily unbound control 303, and an immediate binding control 304.
  • the return to the upper level control 301 can be used to receive an input user operation (such as a click operation), and the second device 200 can display the user interface 20 shown in 4b again in response to the user operation.
  • the prompt message 302 is used to prompt the user whether to bind the discovered first device.
  • the temporarily unbound control 303 can be used to receive an input user operation (for example, a click operation), and the second device 200 can display the user interface 20 shown in 4b again in response to the user operation.
  • the immediate binding control 304 can be used to receive an input user operation (such as a click operation).
  • the second device 200 can trigger a process for the associated user of the second device 200 to establish a subordination relationship with the first device "BBBBB" .
  • BBBBB subordination relationship
  • the second device 200 scans the two-dimensional code provided by the nearby first device 100, and the two-dimensional code is used to indicate the identity of the first device 100.
  • the second device 200 after receiving a user operation on the add device control 105 in the user interface 10, the second device 200 can turn on the camera and scan the QR code provided by the first device 100 through the camera. According to the QR code The identification of the first device 100 is obtained.
  • the embodiment of the present application can also obtain the identity of the first device 100 in other ways.
  • the second device 200 can also receive the identity of the first device 100 input by the user. .
  • Step 4 The cloud server 300 allocates a device identifier to the first device 100, and sends the device identifier of the first device 100 to the second device 200.
  • Step 5 The second device 200 sends the device identification to the first device 100.
  • Step 6 The first device 100 sends a binding request to the cloud server 300.
  • the binding request carries the device identifier assigned by the cloud server 300 to the first device 100, and is used to request the cloud server 300 to be the associated user of the second device 200 and the The first device 100 establishes a subordinate relationship.
  • the cloud server 300 binds the associated user account of the second device 200 with the device identifier of the first device 100, the user corresponding to the user account (ie, the associated user of the second device 200) and the first device 100 successfully establish an affiliation.
  • the associated user of the second device 200 can view the location reported by the first device 100 on the second device 200 by managing the application or web page of the second device information.
  • Step 8 The cloud server 300 sends a notification message to the second device 200, where the notification message is used to notify the second device 200 that the associated user and the first device 100 are successfully bound.
  • the second device 200 may prompt the user to successfully establish an affiliation with the first device 100.
  • the prompt method may include, but is not limited to: displaying prompt information on the display screen, voice broadcast prompt information, or vibration.
  • step 3 to step 6 can also be replaced with the following step 3a to step 6a:
  • Step 3a The first device 100 requests the cloud server 300 to allocate a device ID (device ID) to the first device 100.
  • the first device 100 may request the cloud server 300 to allocate a device ID to the first device 100 through a cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.).
  • a cellular network for example, 2G/3G/4G/5G, NB-IoT, etc.
  • Step 4a The cloud server 300 allocates a device ID to the first device 100, and sends the device ID of the first device 100 to the first device 100.
  • Step 5a The first device 100 sends the device identifier to the second device 200.
  • Step 6a The second device 200 sends a binding request to the cloud server 300.
  • the binding request carries the device identifier assigned by the cloud server 300 to the first device 100 and the associated user account of the second device 200.
  • the binding request is used to request
  • the cloud server 300 establishes an affiliation relationship for the associated user of the second device 200 and the first device 100.
  • the second device 200 may display related information 108 of the first device 100 on the user interface 10.
  • the related information 108 of the first device 100 may include: the picture and/or nickname of the object tracked by the first device 100, the name of the first device 100 (for example, "BBBBB"), and the remaining power of the first device 100 (for example, 38%) ), the status of the location information reported by the first device 100 (for example, whether the device reports location information, the latest location information reported by the device, etc.), etc.
  • the picture and/or nickname of the object tracked by the first device 100 may be added or set by the user when establishing an affiliation with the first device 100.
  • the remaining power of the first device 100 and the reported position information may be sent by the first device 100 to the second device 200 through the cloud server 300.
  • the manner in which the first device 100 obtains the location information can refer to the previous related description
  • the manner in which the first device 100 reports the location information can refer to the related description in the subsequent embodiments.
  • the reporting period of the first device 100 determines the accuracy and fineness of the user's control of the position of the first device 100/tracking object and the activity track. The shorter the reporting period, the more frequently the first device 100 can report the location information, so that the user can learn the location and activity track of the first device 100/tracking object more accurately. However, the shorter the reporting period, it also means that the first device 100 needs to communicate with the cloud server 300 more frequently, which will increase power consumption.
  • the type of objects tracked by the first device 100 corresponds to its own reporting cycle.
  • family members such as children, the elderly, etc.
  • the user wants to know the location of the family member more frequently, such as the updated location of the family member every 5 minutes, so as to ensure the safety of the family member, so the first device tracks the family
  • the period for reporting location information when a member is a member can be 5 minutes.
  • the importance of pets is lower than that of family members.
  • users hope to know the pet's location at a normal frequency, such as the updated pet's location every hour, so the first device tracks The period for reporting location information when pets can be 1 hour.
  • Table 1 The reporting period corresponding to different object types
  • the type of the object tracked by the first device 100 can be determined in any of the following ways:
  • the type of the object tracked by the first device 100 may be set by the first device 100 by default.
  • the first device 100 may pre-store a fixed reporting period, and the object type corresponding to the fixed reporting period may be regarded as the tracking object type set by the first device 100 by default. For example, when the report period pre-stored by the first device is 5 minutes, the first device can be used to track family members; when the report period pre-stored by the first device is 1 hour, the first device can be used to track pets.
  • the type of the object tracked by the first device 100 may be set by the user.
  • the user can select one of the object types from the menu containing multiple tracking object types provided by the second device 200 as the type of the object tracked by the first device 100, that is, the first device 100 binds the tracking object type. .
  • the second device 200 may display the user interface 40 shown in 5a in response to the user operation input on the immediate binding control 304 in the user interface 30.
  • the user interface 40 may include: return to the upper level control 401, prompt information 402, tracking object type menu 403, and next control 404.
  • the return to upper level control 401 can be used to receive an input user operation (such as a click operation), and the second device 200 can display the user interface 30 shown in 4c of FIG. 4 again in response to the user operation.
  • the prompt information 402 is used to prompt the user to set the type of the object tracked by the first device 100.
  • the tracking object type menu 403 may include the names and/or icons of multiple object types, such as luggage 403A, pets 403B, bicycles 403C, and valuables 403D shown in 5a. It is not limited to the tracking object type menu 403 shown in 5a. In a specific implementation, the tracking object type menu 403 may include more or less object types, which is not limited in the embodiment of the present application.
  • the following describes a method for the first device 100 to report location information provided by an embodiment of the present application.
  • the method for the first device 100 to report location information may include the following two:
  • the first device 100 may determine the reporting period corresponding to the type of the self-tracking object by any of the following methods:
  • the first device 100 may pre-store the reporting period corresponding to each tracking object type.
  • the first device 100 may find the reporting period corresponding to the type of the tracking object after learning the type of the tracking object.
  • FIG. 6 shows a schematic flowchart of a method for the first device 100 to adaptively determine a reporting period and report location information according to a scene in an embodiment of the present application.
  • the method may include the following steps:
  • Step S101 The first device 100 obtains scene data.
  • Table 2 shows possible scenarios corresponding to several object types.
  • the scene corresponding to each object type can be preset according to empirical data, or can be set independently by the user.
  • the second device 200 may provide a user interface for setting or adding a scene corresponding to the object type, and the user can set or add a scene corresponding to the object type through the user interface.
  • the user can set 3 scenes corresponding to pets: a home scene, a dog walking scene, and a travel scene.
  • Step S102 The first device 100 determines the scene where the tracked object is currently located according to the scene data.
  • the first device 100 may determine the scene where the tracked object is currently located in the scene corresponding to the type of the tracked object according to the acquired scene data.
  • the scenes that the pet may be in include: a home scene, a dog walking scene, and a travel scene.
  • the first device 100 can determine that the pet is currently in the home scene; if the movement speed is> 4km/h, the first device 100 can determine that the pet is currently Dog walking scene; if the location information indicates that the distance between the pet and the home exceeds a preset value (for example, 100 km), the first device 100 may determine that it is currently in a traveling scene.
  • a preset value for example, 100 km
  • the possible scenes of the bicycle include: a home scene and a riding scene.
  • the first device 100 can determine that it is currently in the home scene; if the movement speed is >10km/h, the first device 100 can determine that it is currently Riding scene.
  • the scenes that the child may be in include: a home scene, a school scene, and an outside school scene.
  • the first device 100 can determine that the child is currently at home; if the location information indicates that the child is at school, the first device 100 can determine that the child is currently In a school scene; if the location information indicates that the child is neither at home nor at school, the first device 100 may determine that the child is currently in an out-of-school scene.
  • the first device 100 may store one or more algorithms for recognizing scenes.
  • the algorithm may be an artificial intelligence (AI) algorithm.
  • the first device 100 may use the acquired scene data as the input of the algorithm, and the output of the algorithm is the scene where the currently tracked object is located. In other words, the first device 100 can recognize the scene where the tracked object is currently located through the algorithm.
  • AI artificial intelligence
  • the first device 100 may store an algorithm corresponding to the type of the tracking object.
  • the first device 100 may store multiple types of tracking objects corresponding to different types of tracking objects. Algorithms, for example, algorithms corresponding to pets, algorithms corresponding to luggage, and algorithms corresponding to bicycles can be stored.
  • one or more algorithms for scene recognition stored in the first device 100 can be obtained in the following ways: 1.
  • the algorithm can be obtained through preliminary training based on the experience data obtained by the R&D personnel, and is preset in the first device at the factory. Equipment 100.
  • the cloud server 300 trains the algorithm according to the empirical data obtained by the research and development personnel, and stores the algorithm, and the first device 100 obtains the algorithm from the cloud server 300.
  • the empirical data used when training the algorithm specifically includes: scene data collected by the researcher during the experiment, and scenes during the experiment. Specifically, the scene data collected by the experiment can be used as the input, and the scene during the experiment can be used as the output, so as to train the corresponding algorithm.
  • the first device 100 may also update one or more stored algorithms for scene recognition. Specifically, as more and more first devices are put into use, more and more abundant data will be generated.
  • the cloud server 300 may obtain these data and use the data to update the one or more algorithms for recognizing scenes.
  • the update process may include the following steps:
  • Step 1 When more and more first devices track objects belonging to the specific object type, they can report the acquired scene data and the determined scene to the cloud server 300.
  • the manner in which these first devices obtain scene data can refer to the related description in step S101.
  • the manners for the first device to determine the scene in which it is located may include: (1) Using a currently stored algorithm to obtain a calculation result using the acquired scene data as input, and use the calculation result as the scene in which it is located. (2)
  • the first device determines the current scene according to other methods than algorithms. For example, the scene can be determined according to the keywords of the geographic location (for example, the keyword of the geographic location of the suitcase includes an airport, and the scene of the suitcase can be determined to be an "airport scene").
  • Step 2 The cloud server 300 may use the scene data and scenes reported by the first devices to update the algorithm corresponding to the specific object type. Specifically, the cloud server 300 may use the scene data reported by the first device as input, and use the corresponding scene as input to update the algorithm corresponding to the specific object type.
  • Step 3 The cloud server 300 may send the update data of the algorithm of the specific object type to the first device 100.
  • Step 4 The first device 100 may update the stored algorithm corresponding to the specific object type according to the received update data.
  • the updated algorithm can be used to more accurately identify the scene where the object of the specific object type is located.
  • a machine learning algorithm can be used to update or train for scene recognition.
  • the machine learning algorithm can be a deep learning algorithm, which can include one or more of the following: nearest neighbor (k-Nearest Neighbor, KNN) classification algorithm, convolutional neural network (convolutional neural network, CNN), recurrent neural network ( recurrent neural network, RNN) or statistical algorithms, etc. It is understandable that in the embodiment of the present application, the machine learning algorithm used can be adjusted according to the update result or the training result.
  • the following describes in detail what is the reporting period corresponding to the scenario.
  • the user uses the first device 100 to track an object, and the object is in a different scene, the user needs to know the location of the tracked object and the activity trajectory, that is, the first device 100 reports location information.
  • the period is different.
  • the following exemplarily provides two strategies for the first device 100 to report location information under different user requirements:
  • the safe scene and the non-safe scene can be preset. For example, when a user uses the first device 100 to track a pet, when the pet is in a “home scene”, the user does not need the first device 100 to report location information particularly frequently due to the high degree of security at home. For another example, when a pet is in a “traveling scene”, the degree of safety is reduced, and the user needs the first device 100 to report location information more frequently to obtain the pet's location and movement track, so as to prevent the pet from losing.
  • Scenes Reporting period Home scene 1 hour Flying scene No need to report location information, and the reporting cycle tends to be infinite Airport scene 5 minutes Taxi scene 10 minutes Hotel scene 0.5 hour
  • Table 3 The reporting cycle of objects of type "luggage" in different scenarios
  • reporting box shown in Table 3.
  • Other types of objects also have different reporting periods in their corresponding scenarios.
  • the reporting period can be 60 minutes; when the pet dog is in a dog walking scene, the reporting period can be 5 minutes ; When the pet dog is in other scenes, the reporting period can be 30 minutes.
  • the reporting period when the first device 100 tracks objects of the “child” type, when the child is in a school/school scene, the reporting period may be 1 minute; when the child is in a home scene or school scene, the reporting period may be 60 minutes; When children are in a play scene, the reporting period can be 30 minutes.
  • the first device 100 can learn the reporting period of the currently tracked object in different scenarios.
  • the method for the first device 100 to learn the reporting period of the currently tracked object in different scenarios may include any of the following:
  • the reporting period of the object in different scenarios can be preset based on empirical data. For example, R&D personnel can determine that the object is suitable for the reporting period of different scenarios through investigations, etc., and preset it in The first device 100.
  • the first device 100 may pre-store the reporting period of the object of this type in different scenarios. For example, when the first device 100 sets the tracking object type as "luggage” by default at the factory, the first device 100 may pre-store the reporting periods of objects of the type "luggage” in different scenarios.
  • the first device 100 may pre-store multiple objects of different types in The reporting period in different scenarios. For example, the first device 100 may pre-store the reporting periods of multiple types of objects such as "luggage”, “pets”, and “family members” in different scenarios, and the user sets the types of objects tracked by the first device 100 After that, the first device 100 may find the reporting periods corresponding to the objects tracked by the first device 100 in different scenarios from the reporting periods corresponding to multiple types of objects stored in advance.
  • the reporting period of the object in different scenarios can be set by the user according to requirements.
  • the second device 200 may provide a user interface on the display screen for setting the reporting period of the object in different scenarios.
  • the user can set the reporting period of the object in different scenarios on the user interface.
  • the second device 200 may send the report period of the object in different scenarios set by the user to the cloud server 300, and the cloud server 300 may send the report period of the object in different scenarios to the first device 100.
  • Step S104 The first device 100 uses the reporting period corresponding to the scene where the tracked object is currently located to report location information to the cloud server 300, where the location information is real-time location information obtained by the first device 100.
  • the first device 100 may use the reporting period corresponding to the current scene determined in step S103 to report the location information.
  • the reporting period refers to the interval at which the first device 100 reports location information every 2 times. For example, when the first device 100 determines that the tracked suitcase is currently in the "airport scene", it may report the location information once every 5 minutes.
  • the manner in which the first device 100 obtains the location information can refer to the previous related description, and it will not be repeated here.
  • the first device 100 may use a wireless communication solution provided by a mobile communication module to report location information to the cloud server 300. That is, the first device 100 may report location information to the cloud server 300 through a cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.). Specifically, when the first device 100 needs to report location information, the first device 100 may use the cellular network to report the location information obtained by the first device 100 in real time to the cloud server 300.
  • the real-time location information acquired by the first device 100 may refer to the location information acquired last time, or it may refer to the location information acquired by the electronic device 100 before (for example, 1 second before) or when the location information needs to be reported.
  • This application There is no restriction on this. It is understandable that the time when location information needs to be reported in the embodiment of the present application refers to when the reporting period of the first device 100 arrives.
  • the first device 100 may also be combined with the power saving mode (PSM) under NB-IoT. ) To report location information.
  • PSM power saving mode
  • a device based on NB-IoT can be in PSM when working. Under PSM, the first device 100 disables the function of sending and receiving wireless signals, does not monitor the paging on the core network side, cannot receive downlink data, and consumes very low power. .
  • the first device 100 can start PSM when it does not need to report location information; when it needs to report location information, if the first device 100 is in PSM, then start non-PSM, that is, actively wake up the first device 100 and pass NB-
  • the IoT reports the position information newly acquired by the first device 100 to the cloud server 300.
  • the non-PSM of the first device 100 may include a connected (connected) state and an idle (idle) state.
  • the first device 100 needs to report location information. That is, the first device 100 may activate the non-power saving mode when reporting location information, and activate the power saving mode when not reporting location information.
  • Combining the PSM of the first device 100 under NB-IoT to report location information can avoid wasting data traffic and power at the communication level, and can make full use of the PSM of the device under NB-IoT to achieve power saving effects.
  • the first device can independently adjust the reporting period according to the current scene, adapt to the current scene and report location information according to actual needs, which can meet the needs of tracking objects and save power consumption.
  • the scene in which the tracked object is determined by the first device 100 according to the scene data in step S102 may be referred to as the first scene, and the scene determined in step S103 corresponding to the current scene is reported The period is called the first reporting period.
  • the first reporting period is less than the second reporting period.
  • the first reporting period is greater than the second reporting period. In this way, the user's needs for grasping the location and activity trajectory of the tracked object can be met.
  • the first device 100 may also consider the first device 100 when reporting location information according to the corresponding reporting period.
  • the movement of a device 100 For example, when the reporting period of the first device 100 arrives, if the first device 100 does not move within the preset time, it may not report the location information. That is, when the first device 100 does not move for a long time, even when the reporting period comes, it may not report the location information, which can save power consumption.
  • the first device 100 may detect whether it moves within a preset time through sensors such as the acceleration sensor 170C, the gyro sensor 170A, and the vibration sensor 170F.
  • the first device 100 may also adjust the reporting period in combination with other situations, as detailed below Describe 2 possible adjustment methods:
  • the first device 100 when the first device 100 encounters a violent impact, it may be in a dangerous situation.
  • the first device 100 can shorten the reporting period, for example, adjust the reporting period to 5 seconds, so that the user can obtain the location of the tracked object as soon as possible .
  • the wireless communication module of the first device 100 provides an NB-IoT wireless communication solution
  • the first device 100 if the first device 100 is in the PSM when it encounters a severe impact, it can immediately start the non-PSM, that is, wake up the first device 100 , And report the latest location information acquired by the first device 100 to the cloud server 300 through NB-IoT.
  • the manner in which the first device 100 actively starts the non-PSM may include: the first device 100 actively sends uplink data to the core network side.
  • the first device 100 may detect whether a severe impact is encountered through one or more of the acceleration sensor 170C and the vibration sensor 170F.
  • the first device 100 adjusts the reporting cycle according to the instruction.
  • the method shown in FIG. 6 may further include: the first device 100 adjusts the reporting period according to the instruction.
  • the process of the first device 100 adjusting the reporting period according to the instruction may include the following steps:
  • Step 1 The second device 200 sends a first instruction to the cloud server 300 according to the input user operation.
  • the second device 200 Displayed user interface 50.
  • the user interface 50 may be displayed by the second device 200 in response to an input user operation.
  • the user operation may be a picture of an object tracked by the first device 100 in the related information 108 shown in 5c of FIG.
  • User actions (such as click actions) received by the name.
  • the user interface 50 is used to display the details of the tracking object of the first device 100. As shown in 5d, the user interface 50 may include: return to the upper level control 501, related information 502 of the first device 100, position information 503 reported by the first device 100, view history track control 504, and emergency search control 505. among them:
  • Back to the upper level control 501 can be used to receive an input user operation (for example, a click operation), and the second device 200 can display the user interface 10 shown in 5c again in response to the user operation.
  • an input user operation for example, a click operation
  • the related information 502 of the first device 100 is the same as the related information 108 of the first device 100 shown in the user interface 10, and the related description may be referred to.
  • the location information 503 reported by the first device 100 may include the location information reported by the first device and the time when the location information was reported.
  • the location information may be the last reported by the first device 100.
  • For the method for the first device 100 to report the location information reference may be made to the description of the foregoing related embodiments (for example, the method embodiment shown in FIG. 6).
  • the viewing history track control 504 can be used to receive an input user operation (for example, a click operation), and the second device 200 can display the history track of the first device 100 in response to the user operation.
  • an input user operation for example, a click operation
  • the emergency search control 505 can be used to receive an input user operation (for example, a click operation), and the second device 200 can send a first instruction to the cloud server 300 in response to the user operation.
  • the first instruction is used to request the cloud server 300 to notify the first device 100 to report location information as soon as possible.
  • the first device 100 may be connected to the core network, but has not yet established a connection with the cloud server 300. When the first device 100 and the cloud server 300 are not connected, the cloud server 300 and the first device 100 cannot communicate.
  • Step 3 When the first device 100 is connected to the cloud server 300, the cloud server 300 may send the first device 100 through the cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.) based on the first instruction.
  • the second instruction is used to instruct the first device 100 to report location information as soon as possible.
  • the cloud server 300 instructs the first device 100 to establish a connection with the cloud server 300 through the core network.
  • the first device 100 receives the instruction from the core network, it can use the restricted application protocol (CoAP) based on the user datagram protocol (UDP), that is, use CoAP over UDP to actively establish with the cloud server 300 connection.
  • the cloud server 300 may send a second instruction to the first device 100 through a cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.) based on the first instruction.
  • the second instruction is used to instruct the first device 100 to report location information as soon as possible.
  • Step 4 When the first device 100 receives the second instruction sent by the cloud server 300, the reporting period is shortened, and the location information is reported at a faster frequency. For example, the first device 100 may adjust the reporting period to 5 seconds, so that the user can obtain the location of the tracked object as soon as possible.
  • the first device 100 communicates with the cloud server 300 through NB-IoT, and the first device 100 may be in PSM or non-PSM.
  • the cloud server 300 sends the second instruction to the first device 100
  • the first device can immediately receive the second instruction and adjust the reporting cycle according to the second instruction.
  • the cloud server 300 sends the second instruction to the first device 100
  • the first device 100 needs to exit the PSM before it can receive the second instruction and adjust the reporting cycle according to the second instruction .
  • the first device 100 can exit the PSM in the following two situations: the first device 100 actively sends uplink data to the core network side, or the tracking area update (tracking area update, TAU) period of the first device 100 ends.
  • the second instruction is time-sensitive. That is, after the first device 100 receives the second instruction and adjusts the reporting period according to the second instruction, it may report the location information according to the adjusted reporting period only within a preset time. After the preset time, the first device 100 may adjust the reporting period according to the method for adjusting the reporting period described in the previous embodiment (for example, the method shown in FIG. 6). That is, the first device 100 uses the shortened reporting period to report the location information to the cloud server 300 within the preset time of receiving the second instruction; after receiving the second instruction for the preset time, it uses and is The location information is reported to the cloud server 300 in the reporting period corresponding to the scene where the tracking object is currently located.
  • the preset time can be preset. In the embodiment of the present application, the preset time may be referred to as the first duration.
  • the user can quickly learn the current location of the tracked object.
  • the cloud server 300 can learn the current location information of the first device 100.
  • the cloud server 300 may determine whether to synchronously send the received location information of the first device 100 to the second device 200 according to any one of the following strategies: 1.
  • the cloud server 300 receives the location information sent by the first device 100, that is, The location information is sent to the second device 200.
  • the cloud server 300 receives the location information sent by the first device 100, determines whether the location information is within a preset area, and if so, sends the location information to the second device 200.
  • the preset area can be set independently by the user. It is understandable that the second strategy is similar to geofencing.
  • the second device 200 can receive the updated location information.
  • the second device 200 may prompt the user that the current location of the object tracked by the first device 100 is updated.
  • the way for the second device 200 to prompt the user may include one or more of the following:
  • the second device 200 can display the location information through the user interface provided by the application for managing the first device, so as to control the location of the tracked object.
  • the user can view the related information 108 of the first device 100 on the user interface 10 shown in 5c provided by the second device, and In the position information 503 shown in 5d, the last position information reported by the first device 100 is checked, so as to grasp the position of the tracked object.
  • the second device 200 can call the notification manager of the second device 200 to display a prompt window on the top of the display screen of the second device 200, the prompt window including the second device 200 Location information received.
  • the prompt window displayed on the top of the display screen of the second device 200 can automatically disappear after a short stay without user interaction.
  • the second device 200 can also prompt the user by emitting a prompt sound, vibrating, and flashing the indicator light, which is not limited in this embodiment of the application.
  • the sensor and wireless communication module of the first device 100 can be used to acquire the scene data of the first device 100, and the acquisition method can refer to the relevant description above.
  • the first device 100 may store a scene recognition algorithm, and the first device may use the acquired scene data as an input of the scene recognition algorithm to identify the scene in which the first device 100 is located.
  • the processor of the first device 100 may be configured to adaptively adjust the reporting period according to the scene in which the first device 100 is located.
  • the processor may also adjust the mode (PSM or non-PSM) of the first device 100, and the adjustment method may refer to the relevant description above.
  • the sensor and wireless communication module of the first device 100 can also be used to obtain the location information of the first device 100, and the obtaining method can refer to the relevant description above.
  • the mobile communication module of the first device 100 is further configured to send the acquired location information to the cloud server 300 according to the reporting cycle.
  • the first device 100 can also be placed in an accessory for use, and the type of accessory can refer to the previous description.
  • the cloud server 300 may provide electronic fence cloud services, algorithm training and updating, location cloud services, and the like.
  • the algorithm training and update can refer to the previous description.
  • the location cloud service means that the cloud server 300 can receive the location information reported by the first device 100 and provide the second device 100 with a service of querying the location or historical track.
  • the electronic fence cloud service means that after the cloud server 300 receives the location information sent by the first device 100, it can determine whether the location information is within a preset area, and if so, it sends the location information to the second device 200. It is understandable that the various services provided by the cloud server 300 shown in FIG. 7 are not necessarily provided by one cloud server, but may also be provided by multiple cloud servers.
  • the second device 200 can provide functions such as device scene binding, historical trajectory viewing, emergency search, etc. For details, please refer to the relevant description above, which will not be repeated here.
  • the first device 100 can be used to track different types of objects and has wide applicability by implementing the method for reporting location information by a device provided in an embodiment of the present application.
  • the first device 100 can adjust the reporting cycle according to the current scene, and report location information according to actual needs. This can not only meet the needs of tracking objects, but also be suitable for current application scenarios to perform low-power work and improve Standby time.

Abstract

Disclosed are a method for reporting position information by a device and a related apparatus. In the method, when the device tracks an object, a scene where the object is currently located may be determined, and a reporting period corresponding to the scene is used for reporting real-time position information. By implementing the present application, the device can autonomously adjust the reporting period according to the current scene, thereby adapting to the current scene and reporting the position information according to actual needs.

Description

设备上报位置信息的方法及相关装置Method and related device for reporting location information of equipment
本申请要求在2019年3月15日提交中国国家知识产权局、申请号为201910197407.0、发明名称为“设备上报位置信息的方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 201910197407.0, and the invention title is "Method for reporting location information of equipment and related devices" on March 15, 2019. The entire content is incorporated by reference. In this application.
技术领域Technical field
本申请涉及终端及通信技术领域,特别涉及设备上报位置信息的方法及相关装置。This application relates to the field of terminals and communication technologies, and in particular to methods and related devices for equipment to report location information.
背景技术Background technique
随着终端技术的发展,越来越多的终端具备定位功能以及基于蜂窝网络的通信功能。这类终端(例如追踪器(tracker))可以通过传感器(例如加速度传感器、气压传感器等)测量数据、卫星导航系统定位、Wi-Fi定位、基站定位等方式获取当前所在的位置,并通过蜂窝网络将该位置信息上报到云端服务器。With the development of terminal technology, more and more terminals have positioning functions and communication functions based on cellular networks. This type of terminal (such as tracker) can obtain the current location through the measurement data of sensors (such as acceleration sensor, air pressure sensor, etc.), satellite navigation system positioning, Wi-Fi positioning, base station positioning, etc., and through the cellular network Report the location information to the cloud server.
这类具有定位功能以及基于蜂窝网络的通信功能的终端可广泛应用于追踪各类对象,例如追踪人物(例如儿童、老人)、宠物、重要物品(例如行李箱、医疗设备),以及农业、畜牧业、物流业、冷链等行业的对象等。用户可以通过终端上传的位置信息查看被追踪对象的当前位置以及活动轨迹。This type of terminal with positioning function and cellular network-based communication function can be widely used to track various objects, such as tracking people (such as children, the elderly), pets, important items (such as luggage, medical equipment), as well as agriculture and animal husbandry. Industry, logistics, cold chain and other industries. The user can view the current location and activity track of the tracked object through the location information uploaded by the terminal.
目前,终端上报位置的周期都是固定的。终端在追踪对象时,该对象所处的场景可能会发生变化(例如该对象可能从家中到飞机上,再到酒店里等)。而终端上报位置的周期是固定的。例如,上报周期为1小时的终端在追踪行李箱时,当行李箱处于家中时,终端每1小时上报1次位置信息是合理的,但是当行李箱处于机场时,终端每1小时上报1次位置信息不能满足用户的需求。也就是说,目前终端上报位置时的场景适应性较差。Currently, the period for the terminal to report the position is fixed. When the terminal is tracking an object, the scene in which the object is located may change (for example, the object may go from home to airplane, to hotel, etc.). The period for the terminal to report the position is fixed. For example, when a terminal with a reporting period of 1 hour is tracking luggage, when the luggage is at home, it is reasonable for the terminal to report location information every 1 hour, but when the luggage is at the airport, the terminal reports every 1 hour Location information cannot meet the needs of users. In other words, the current scenario adaptability when the terminal reports the location is poor.
发明内容Summary of the invention
本申请提供了设备上报位置信息的方法及相关装置,设备可以根据当前所处的场景自主调整上报周期,使得设备可以适应于当前场景并按照实际需求上报位置信息。This application provides a method and related device for a device to report location information. The device can independently adjust the reporting period according to the current scenario, so that the device can adapt to the current scenario and report location information according to actual needs.
第一方面,本申请提供了一种设备上报位置信息的方法,该方法可包括:第一设备获取场景数据;该第一设备用于追踪对象,该第一设备和该对象之间的距离小于第一值;该场景数据反映了该对象所处的地理位置或者环境;该第一设备根据该场景数据确定该对象当前处在第一场景;该第一设备确定与该第一场景相对应的第一上报周期;该第一设备使用该第一上报周期上报位置信息给云服务器;该位置信息为该第一设备实时的位置信息。In the first aspect, the present application provides a method for reporting location information by a device. The method may include: a first device acquires scene data; the first device is used to track an object, and the distance between the first device and the object is less than The first value; the scene data reflects the geographic location or environment where the object is located; the first device determines that the object is currently in the first scene according to the scene data; the first device determines that the object corresponds to the first scene The first reporting period; the first device uses the first reporting period to report location information to the cloud server; the location information is real-time location information of the first device.
这里,上报周期是指第一设备每2次上报位置信息之间的时间间隔。Here, the reporting period refers to the time interval between the first device reporting location information every 2 times.
这里,第一设备追踪对象时和该对象之间的距离小于第一值,即可以将第一设备获取到的位置信息看作是该对象的位置信息。Here, the distance between the first device and the object when tracking the object is less than the first value, that is, the position information obtained by the first device can be regarded as the position information of the object.
实施第一方面所描述的技术方案,设备可以根据当前所处的场景自主调整上报周期,使得设备可以适应于当前场景并按照实际需求上报位置信息。By implementing the technical solution described in the first aspect, the device can independently adjust the reporting period according to the current scene, so that the device can adapt to the current scene and report location information according to actual needs.
结合第一方面,在一种可能的实现方式中,第一设备追踪的对象的类型可通过以下任意一种方式设置:With reference to the first aspect, in a possible implementation manner, the type of the object tracked by the first device can be set in any of the following ways:
1.该第一设备追踪的该对象的类型是由用户设置的。用户可以从第二设备提供的包含多种追踪对象类型的菜单中,选择其中的一个对象类型作为第一设备追踪的对象的类型,即为第一设备绑定追踪对象类型。1. The type of the object tracked by the first device is set by the user. The user can select one of the object types from the menu containing multiple tracking object types provided by the second device as the type of the object tracked by the first device, that is, the first device binding tracking object type.
可理解的,由用户设置第一设备追踪对象的类型的方式,可以使得第一设备根据用户需要追踪不同的对象,适用范围更广,更具有实用性,更加符合用户的使用习惯,用户体验更佳。It is understandable that the way the user sets the type of the first device to track the object can enable the first device to track different objects according to the user’s needs, with a wider application range, more practicality, more in line with the user’s habits, and a better user experience. good.
2.该第一设备追踪的该对象的类型是由该第一设备默认设置的。第一设备可以预先存储固定的上报周期,和该固定的上报周期相对应的对象类型可以看作第一设备默认设置的追踪对象类型。2. The type of the object tracked by the first device is set by default by the first device. The first device may pre-store a fixed reporting period, and the object type corresponding to the fixed reporting period may be regarded as the tracking object type set by the first device by default.
结合第一方面,在一种可能的实现方式中,该方法还包括:第一设备根据变化后的该场景数据确定该对象处在第二场景;该第一设备确定与该第二场景相对应的第二上报周期;该第一设备使用该第二上报周期上报位置信息给该云服务器。也就是说,第一设备在追踪同一对象时,该对象处在不同场景时,第一设备使用适应于该场景的上报周期上报位置信息。With reference to the first aspect, in a possible implementation manner, the method further includes: the first device determines that the object is in the second scene according to the changed scene data; the first device determines that it corresponds to the second scene The second reporting period; the first device uses the second reporting period to report location information to the cloud server. That is, when the first device is tracking the same object and the object is in a different scene, the first device uses a reporting period suitable for the scene to report the location information.
结合第一方面,不同的场景对应有不同的上报周期,以满足用户对于掌握被追踪对象的位置以及活动轨迹的需求。下面示例性地给出两种第一设备上报位置信息的策略:In combination with the first aspect, different scenarios correspond to different reporting periods to meet the user's needs for grasping the location and activity trajectory of the tracked object. The following exemplarily gives two strategies for reporting location information by the first device:
1.当被追踪对象的运动速度越大时,用户需要越频繁地获知该对象的位置及活动轨迹,即第一设备可以使用较短的上报周期上报位置信息。也就是说,若被追踪的该对象在该第一场景中的运动速度大于在该第二场景中的运动速度,则该第一上报周期小于该第二上报周期。1. When the moving speed of the tracked object is greater, the user needs to learn the location and movement trajectory of the object more frequently, that is, the first device can use a shorter reporting period to report location information. That is, if the movement speed of the tracked object in the first scene is greater than the movement speed in the second scene, the first reporting period is less than the second reporting period.
2.当被追踪对象处于安全场景时,用户不需要过于频繁地获知该对象的位置及活动轨迹,当被追踪对象处于非安全场景时,用户需要频繁地获知该对象的位置及活动轨迹。也就是说,若该第一场景为安全场景,该第二场景为非安全场景,则该第一上报周期大于该第二上报周期。这里,安全场景和非安全场景可以由用户预先设置,例如可以将家和学校设置为安全场景,将其余地方设置为非安全场景。2. When the tracked object is in a safe scene, the user does not need to learn the location and movement trajectory of the object too frequently. When the tracked object is in an unsafe scene, the user needs to learn the location and movement trajectory of the object frequently. That is, if the first scene is a safe scene and the second scene is a non-safe scene, the first report period is greater than the second report period. Here, the safe scene and the non-safe scene can be preset by the user. For example, home and school can be set as a safe scene, and the rest can be set as a non-safe scene.
结合第一方面,第一设备确定当前被追踪对象处在的场景后,可以获知和该场景相对应的上报周期。在一些实施例中,第一设备可通过以下任意一种方式来获知和当前被追踪对象处在的场景相对应的上报周期:With reference to the first aspect, after the first device determines the scene in which the tracked object is currently located, it can learn the reporting period corresponding to the scene. In some embodiments, the first device can learn the reporting period corresponding to the scene in which the tracked object is currently located in any of the following ways:
1.该对象在不同场景下的上报周期可以根据经验数据预先设置,例如可以由研发人员通过调研等方式确定该对象合适于不同场景的上报周期,并将其预置在第一设备中。1. The reporting period of the object in different scenarios can be preset according to empirical data. For example, the R&D personnel can determine the reporting period of the object suitable for different scenarios through investigations, etc., and preset it in the first device.
2.该对象在不同场景下的上报周期可以由用户根据需求进行设置。2. The reporting period of the object in different scenarios can be set by the user according to requirements.
结合第一方面,在一种可能的实施方式中,第一设备还可以根据指令调整上报周期。该第一设备根据指令调整上报周期的过程可包括如下步骤:第二设备根据输入的用户操作,向云服务器发送第一指令,该第一指令用于请求云服务器通知第一设备尽快上报位置信息;云服务器基于该第一指令,向第一设备发送第二指令,该第二指令用于指示第一设备尽快上报位置信息;第一设备接收到云服务器发送的第二指令,缩短上报周期,以更快的频率上报位置信息。这种用户主动干预第一设备的上报周期的方式,在一些紧急场景下,用户可以迅速获知被追踪对象的当前位置。With reference to the first aspect, in a possible implementation manner, the first device may also adjust the reporting period according to the instruction. The process of the first device adjusting the reporting period according to the instruction may include the following steps: the second device sends a first instruction to the cloud server according to the input user operation, and the first instruction is used to request the cloud server to notify the first device to report location information as soon as possible ; The cloud server sends a second instruction to the first device based on the first instruction, and the second instruction is used to instruct the first device to report location information as soon as possible; the first device receives the second instruction sent by the cloud server to shorten the reporting cycle, Report location information at a faster frequency. This way the user actively intervenes in the reporting cycle of the first device, in some emergency scenarios, the user can quickly learn the current location of the tracked object.
在一些实施例中,该第二指令具有时效性。在第一设备接收到该第二指令的第一时长之内,第一设备使用缩短后的上报周期上报位置信息给云服务器;在第一设备接收到该第二指 令的第一时长之后,该第一设备使用和该对象当前处在的场景相对应的上报周期上报位置信息给云服务器。In some embodiments, the second instruction is time-sensitive. Within the first period of time when the first device receives the second instruction, the first device uses the shortened reporting period to report location information to the cloud server; after the first device receives the first period of time for the second instruction, the first device The first device uses the reporting period corresponding to the scene in which the object is currently located to report the location information to the cloud server.
结合第一方面,在一种可能的实施方式中,第一设备根据和当前场景对应的上报周期上报位置信息时,还可以考虑第一设备的运动情况。在一个具体的实施方式中,若第一设备在第二时长内没有运动,则停止上报位置信息给云服务器。也就是说,当第一设备长时间不动时,即使上报周期到来时,也可以不上报位置信息,可以节省功耗。这里,第一设备可以通过加速度传感器、陀螺仪传感器、振动传感器等传感器检测在该第二时长内是否有运动。With reference to the first aspect, in a possible implementation manner, when the first device reports the location information according to the reporting period corresponding to the current scene, the movement of the first device may also be considered. In a specific implementation, if the first device does not move within the second time period, it stops reporting location information to the cloud server. That is, when the first device is not moving for a long time, even when the reporting period comes, it may not report the location information, which can save power consumption. Here, the first device may detect whether there is movement within the second time period through sensors such as an acceleration sensor, a gyroscope sensor, and a vibration sensor.
结合第一方面,在一种可能的实施方式中,第一设备处于极端情形时,可以调整上报周期。在一个具体的实施方式中,第一设备在遭受到猛烈撞击时,缩短上报周期,并使用缩短后的上报周期上报位置信息给该云服务器。第一设备遭遇到猛烈撞击时,可能处于危险情形,此时缩短上报周期可以使得用户获知被追踪对象最新的位置信息。这里,第一设备可以通过加速度传感器、振动传感器中的一个或多个检测是否遭遇到猛烈撞击。With reference to the first aspect, in a possible implementation manner, when the first device is in an extreme situation, the reporting period may be adjusted. In a specific implementation manner, when the first device is subjected to a violent impact, the reporting period is shortened, and the shortened reporting period is used to report location information to the cloud server. When the first device encounters a violent impact, it may be in a dangerous situation. At this time, shortening the reporting period can enable the user to know the latest location information of the tracked object. Here, the first device may detect whether it encounters a violent impact through one or more of an acceleration sensor and a vibration sensor.
结合第一方面,在一种可能的实施方式中,第一设备获取到场景数据之前,可以使用初始上报周期上报位置信息给云服务器。在获取到场景数据之后,第一设备可以根据和确定的场景相对应的上报周期上报位置信息给云服务器。这里,初始上报周期可以是和当前被追踪对象的类型对应的上报周期。With reference to the first aspect, in a possible implementation manner, before the first device obtains the scene data, it may use the initial reporting period to report the location information to the cloud server. After acquiring the scene data, the first device may report the location information to the cloud server according to the reporting period corresponding to the determined scene. Here, the initial reporting period may be a reporting period corresponding to the type of the currently tracked object.
结合第一方面,在一种可能的实施方式中,第一设备通过蜂窝网络上报位置信息给云服务器。在一些实施例中,该蜂窝网络为窄带物联网(narrow band internet of things,NB-IoT),该第一设备上报该位置信息时启动非省电模式,在不上报该位置信息时启动省电模式(power saving mode,PSM)。结合第一设备在NB-IoT下的PSM来上报位置信息,可避免在通信层面浪费数据流量和电量,可以充分利用设备在NB-IoT下的PSM达到省电的效果。With reference to the first aspect, in a possible implementation manner, the first device reports location information to the cloud server through a cellular network. In some embodiments, the cellular network is a narrowband internet of things (NB-IoT), and the first device activates the non-power saving mode when reporting the location information, and activates power saving when the location information is not reported Mode (power saving mode, PSM). Combining the PSM of the first device under NB-IoT to report location information can avoid wasting data traffic and power at the communication level, and can make full use of the PSM of the device under NB-IoT to save power.
结合第一方面,在一种可能的实施方式中,第一设备根据场景数据确定被追踪对象当前处在第一场景,具体包括:第一设备使用机器学习算法分析场景数据,以确定该对象当前处在第一场景。With reference to the first aspect, in a possible implementation manner, the first device determines that the tracked object is currently in the first scene according to the scene data, which specifically includes: the first device uses a machine learning algorithm to analyze the scene data to determine that the object is currently In the first scene.
在一些实施例中,第一设备还可以更新用于识别场景的机器学习算法。具体的,该更新过程可包括:第一设备将该场景数据以及确定的该第一场景发送给该云服务器,该场景数据以及确定的该第一场景用于该云服务器更新该机器学习算法;该第一设备接收到该云服务器发送的更新数据;该第一设备根据该更新数据更新该机器学习算法。In some embodiments, the first device may also update the machine learning algorithm used to recognize the scene. Specifically, the update process may include: the first device sends the scene data and the determined first scene to the cloud server, and the scene data and the determined first scene are used by the cloud server to update the machine learning algorithm; The first device receives the update data sent by the cloud server; the first device updates the machine learning algorithm according to the update data.
结合第一方面,在一种可能的实施方式中,场景数据包括以下一项或多项:该第一设备获取到的运动速度、加速度、振动信号或该位置信息;该位置信息包括以下一项或多项:经纬度坐标、地理位置名称或海拔高度。With reference to the first aspect, in a possible implementation manner, the scene data includes one or more of the following: the movement speed, acceleration, vibration signal or the position information obtained by the first device; the position information includes the following one Or multiple: latitude and longitude coordinates, geographic location name, or altitude.
第二方面,本申请提供了一种设备,该设备包括:一个或多个处理器、存储器和通信模块;该存储器与该一个或多个处理器耦合,该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得该设备执行:In a second aspect, the present application provides a device that includes: one or more processors, a memory, and a communication module; the memory is coupled with the one or more processors, the memory is used to store computer program code, the The computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the device to execute:
获取场景数据;该设备用于追踪对象,该设备和该对象之间的距离小于第一值;该场景数据反映了该对象所处的地理位置或者环境;Obtain scene data; the device is used to track an object, and the distance between the device and the object is less than a first value; the scene data reflects the geographic location or environment where the object is located;
根据该场景数据确定该对象当前处在第一场景;Determining that the object is currently in the first scene according to the scene data;
确定与该第一场景相对应的第一上报周期;Determine the first reporting period corresponding to the first scenario;
通过该通信模块,使用该第一上报周期上报位置信息给云服务器;该位置信息为该设备 实时的位置信息。Through the communication module, the first reporting period is used to report the location information to the cloud server; the location information is the real-time location information of the device.
这里,上报周期是指设备每2次上报位置信息之间的时间间隔。Here, the reporting period refers to the time interval between the device reporting location information every 2 times.
这里,设备追踪对象时和该对象之间的距离小于第一值,即可以将该设备获取到的位置信息看作是该对象的位置信息。Here, the distance between the device and the object when tracking the object is less than the first value, that is, the location information obtained by the device can be regarded as the location information of the object.
第二方面所描述的设备可以根据当前所处的场景自主调整上报周期,可以适应于当前场景并按照实际需求上报位置信息。The device described in the second aspect can independently adjust the reporting period according to the current scene, adapt to the current scene and report location information according to actual needs.
结合第二方面,在一种可能的实施方式中,该设备追踪的对象的类型可通过以下任意一种方式设置:With reference to the second aspect, in a possible implementation manner, the type of the object tracked by the device can be set in any of the following ways:
1.该设备追踪的该对象的类型是由用户设置的。用户可以从第二设备提供的包含多种追踪对象类型的菜单中,选择其中的一个对象类型作为该设备追踪的对象的类型,即为该设备绑定追踪对象类型。1. The type of the object tracked by the device is set by the user. The user can select one of the object types from the menu containing multiple tracking object types provided by the second device as the type of the object tracked by the device, which is the device binding tracking object type.
可理解的,由用户设置该设备追踪对象的类型的方式,可以使得该设备根据用户需要追踪不同的对象,适用范围更广,更具有实用性,更加符合用户的使用习惯,用户体验更佳。It is understandable that the way in which the user sets the device tracking object type can enable the device to track different objects according to the user's needs, with a wider application range, more practicality, more in line with the user's usage habits, and better user experience.
2.该设备追踪的该对象的类型是由该设备默认设置的。该设备可以预先存储固定的上报周期,和该固定的上报周期相对应的对象类型可以看作该设备默认设置的追踪对象类型。2. The type of the object tracked by the device is set by the device by default. The device may pre-store a fixed reporting period, and the object type corresponding to the fixed reporting period can be regarded as the tracking object type set by the device by default.
结合第二方面,在一种可能的实施方式中,该一个或多个处理器还用于调用该计算机指令以使得该设备执行:根据变化后的该场景数据确定该对象处在第二场景;确定与该第二场景相对应的第二上报周期;通过该通信模块,使用该第二上报周期上报位置信息给该云服务器。也就是说,该设备在追踪同一对象时,该对象处在不同场景时,该设备使用适应于该场景的上报周期上报位置信息。With reference to the second aspect, in a possible implementation manner, the one or more processors are further configured to invoke the computer instruction to cause the device to execute: determine that the object is in the second scene according to the changed scene data; Determine a second reporting period corresponding to the second scenario; use the second reporting period to report location information to the cloud server through the communication module. That is to say, when the device is tracking the same object and the object is in a different scene, the device uses a reporting period adapted to the scene to report location information.
结合第二方面,不同的场景对应有不同的上报周期,以满足用户对于掌握被追踪对象的位置以及活动轨迹的需求。下面示例性地给出两种该设备上报位置信息的策略:In combination with the second aspect, different scenarios correspond to different reporting periods to meet the user's needs for grasping the location and activity trajectory of the tracked object. The following exemplarily gives two strategies for the device to report location information:
1.当被追踪对象的运动速度越大时,用户需要越频繁地获知该对象的位置及活动轨迹,即该设备可以使用较短的上报周期上报位置信息。也就是说,若被追踪的该对象在该第一场景中的运动速度大于在该第二场景中的运动速度,则该第一上报周期小于该第二上报周期。1. When the moving speed of the tracked object is greater, the user needs to learn the position and movement track of the object more frequently, that is, the device can report the position information in a shorter reporting period. That is, if the movement speed of the tracked object in the first scene is greater than the movement speed in the second scene, the first reporting period is less than the second reporting period.
2.当被追踪对象处于安全场景时,用户不需要过于频繁地获知该对象的位置及活动轨迹,当被追踪对象处于非安全场景时,用户需要频繁地获知该对象的位置及活动轨迹。也就是说,若该第一场景为安全场景,该第二场景为非安全场景,则该第一上报周期大于该第二上报周期。这里,安全场景和非安全场景可以由用户预先设置,例如可以将家和学校设置为安全场景,将其余地方设置为非安全场景。2. When the tracked object is in a safe scene, the user does not need to learn the location and movement trajectory of the object too frequently. When the tracked object is in an unsafe scene, the user needs to learn the location and movement trajectory of the object frequently. That is, if the first scene is a safe scene and the second scene is a non-safe scene, the first report period is greater than the second report period. Here, the safe scene and the non-safe scene can be preset by the user. For example, home and school can be set as a safe scene, and the rest can be set as a non-safe scene.
结合第二方面,该设备确定当前被追踪对象处在的场景后,可以获知和该场景相对应的上报周期。在一些实施例中,该设备可通过以下任意一种方式来获知和当前被追踪对象处在的场景相对应的上报周期:In combination with the second aspect, after the device determines the scene where the tracked object is currently located, it can learn the reporting period corresponding to the scene. In some embodiments, the device can learn the reporting period corresponding to the scene where the tracked object is currently located in any of the following ways:
1.该对象在不同场景下的上报周期可以根据经验数据预先设置,例如可以由研发人员通过调研等方式确定该对象合适于不同场景的上报周期,并将其预置在该设备中。1. The reporting period of the object in different scenarios can be preset according to empirical data. For example, the R&D personnel can determine the reporting period of the object suitable for different scenarios through investigations, etc., and preset it in the device.
2.该对象在不同场景下的上报周期可以由用户根据需求进行设置。2. The reporting period of the object in different scenarios can be set by the user according to requirements.
结合第二方面,在一种可能的实施方式中,该一个或多个处理器还用于调用该计算机指令以使得该设备执行:通过该通信模块接收到该云服务器发送的指令,该指令用于指示该设备缩短上报周期;该设备根据该指令缩短上报周期,并通过该通信模块,使用缩短后的上报周期上报位置信息给该云服务器。这种用户主动干预该设备的上报周期的方式,在一些紧急 场景下,用户可以迅速获知被追踪对象的当前位置。With reference to the second aspect, in a possible implementation manner, the one or more processors are further configured to call the computer instruction to make the device execute: the instruction sent by the cloud server is received through the communication module, and the instruction is used Instruct the device to shorten the reporting period; the device shortens the reporting period according to the instruction, and through the communication module, uses the shortened reporting period to report location information to the cloud server. This way the user actively intervenes in the reporting cycle of the device, in some emergency scenarios, the user can quickly learn the current location of the tracked object.
结合第二方面,在一种可能的实施方式中,该指令的时效性为第一时长。在该设备接收到该指令的第一时长之内,通过该通信模块使用缩短后的上报周期上报位置信息给该云服务器;在该设备接收到该指令的第一时长之后,通过该通信模块使用和该对象当前处在的场景相对应的上报周期上报位置信息给该云服务器。With reference to the second aspect, in a possible implementation manner, the timeliness of the instruction is the first duration. Within the first period of time when the device receives the instruction, use the shortened reporting period through the communication module to report location information to the cloud server; after the device receives the first period of time for the instruction, use the communication module The location information is reported to the cloud server in the reporting period corresponding to the scene where the object is currently located.
结合第二方面,在一种可能的实施方式中,该设备还可以考虑运动情况来上报位置信息时。在一个具体的实施方式中,该一个或多个处理器还用于调用该计算机指令以使得该设备执行:若该设备在第二时长内没有运动,则停止上报位置信息给该云服务器。也就是说,当该设备长时间不动时,即使上报周期到来时,也可以不上报位置信息,可以节省功耗。这里,该设备可以通过加速度传感器、陀螺仪传感器、振动传感器等传感器检测在该第二时长内是否有运动。With reference to the second aspect, in a possible implementation manner, the device may also consider motion conditions when reporting location information. In a specific implementation manner, the one or more processors are further configured to invoke the computer instruction to make the device execute: if the device does not move within the second period of time, stop reporting location information to the cloud server. In other words, when the device is not moving for a long time, even when the reporting period comes, it may not report location information, which can save power consumption. Here, the device can detect whether there is movement within the second time period through sensors such as an acceleration sensor, a gyroscope sensor, and a vibration sensor.
结合第二方面,在一种可能的实施方式中,设备处于极端情形时,可以调整上报周期。在一个具体的实施方式中,该一个或多个处理器还用于调用该计算机指令以使得该设备执行:该设备在遭受到猛烈撞击时,缩短上报周期,并通过该通信模块使用缩短后的上报周期上报位置信息给该云服务器。设备遭遇到猛烈撞击时,可能处于危险情形,此时缩短上报周期可以使得用户获知被追踪对象最新的位置信息。这里,该设备可以通过加速度传感器、振动传感器中的一个或多个检测是否遭遇到猛烈撞击。With reference to the second aspect, in a possible implementation manner, when the device is in an extreme situation, the reporting period can be adjusted. In a specific implementation, the one or more processors are also used to call the computer instructions to make the device execute: when the device suffers a violent impact, shorten the reporting period, and use the shortened communication module The reporting period reports the location information to the cloud server. When the device encounters a violent impact, it may be in a dangerous situation. At this time, shortening the reporting period can enable the user to know the latest location information of the tracked object. Here, the device can detect whether it encounters a violent impact through one or more of an acceleration sensor and a vibration sensor.
结合第二方面,在一种可能的实施方式中,该一个或多个处理器还用于调用该计算机指令以使得该设备执行:在获取该场景数据之前,通过该通信模块,使用初始上报周期上报位置信息给该云服务器。这里,初始上报周期可以是和当前被追踪对象的类型对应的上报周期。With reference to the second aspect, in a possible implementation manner, the one or more processors are also used to call the computer instructions to make the device execute: before acquiring the scene data, through the communication module, use the initial reporting period Report location information to the cloud server. Here, the initial reporting period may be a reporting period corresponding to the type of the currently tracked object.
结合第二方面,在一种可能的实施方式中,该通信模块为移动通信模块,该移动通信模块提供蜂窝网络解决方案,该设备通过蜂窝网络上报该位置信息给该云服务器。在一些实施例中,该蜂窝网络为窄带物联网(narrow band internet of things,NB-IoT),该设备上报该位置信息时启动非省电模式,在不上报该位置信息时启动省电模式。结合该设备在NB-IoT下的PSM来上报位置信息,可避免在通信层面浪费数据流量和电量,可以充分利用设备在NB-IoT下的PSM达到省电的效果。With reference to the second aspect, in a possible implementation manner, the communication module is a mobile communication module, which provides a cellular network solution, and the device reports the location information to the cloud server through the cellular network. In some embodiments, the cellular network is a narrowband internet of things (NB-IoT), and the device activates the non-power saving mode when reporting the location information, and activates the power saving mode when the location information is not reported. Combining the device's PSM under NB-IoT to report location information can avoid wasting data traffic and power at the communication level, and can make full use of the device's PSM under NB-IoT to achieve power saving effects.
结合第二方面,在一种可能的实施方式中,该设备根据该场景数据确定该对象当前处在第一场景,具体包括:该设备使用机器学习算法分析该场景数据,以确定该对象当前处在第一场景。With reference to the second aspect, in a possible implementation manner, the device determines that the object is currently in the first scene according to the scene data, which specifically includes: the device uses a machine learning algorithm to analyze the scene data to determine the current location of the object In the first scene.
在一些实施例中,该一个或多个处理器还用于调用该计算机指令以使得该设备执行:通过该通信模块将该场景数据以及确定的该第一场景发送给该云服务器,该场景数据以及确定的该第一场景用于该云服务器更新该机器学习算法;通过该通信模块接收到该云服务器发送的更新数据;根据该更新数据更新该机器学习算法。这样改设备可以更新用于识别场景的机器学习算法,使得后续的场景识别更加准确。In some embodiments, the one or more processors are further configured to invoke the computer instructions to make the device execute: send the scene data and the determined first scene to the cloud server through the communication module, and the scene data And the determined first scenario is used for the cloud server to update the machine learning algorithm; receiving the update data sent by the cloud server through the communication module; and updating the machine learning algorithm according to the update data. In this way, the device can update the machine learning algorithm used to recognize the scene, making the subsequent scene recognition more accurate.
结合第二方面,在一种可能的实施方式中,场景数据包括以下一项或多项:该设备获取到的运动速度、加速度、振动信号或该位置信息;位置信息包括以下一项或多项:经纬度坐标、地理位置名称或海拔高度。With reference to the second aspect, in a possible implementation manner, the scene data includes one or more of the following: motion speed, acceleration, vibration signal or the position information obtained by the device; the position information includes one or more of the following : Longitude and latitude coordinates, geographic location name or altitude.
第三方面,本申请提供一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In the third aspect, the present application provides a computer program product containing instructions. When the computer program product is run on an electronic device, the electronic device is caused to perform the operations described in the first aspect and any possible implementation of the first aspect method.
第四方面,本申请提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, including instructions, when the instructions are executed on an electronic device, the electronic device is caused to execute as described in the first aspect and any possible implementation of the first aspect method.
实施本申请提供的技术方案,设备可以根据当前所处的场景自主调整上报周期,使得设备可以适应于当前场景并按照实际需求上报位置信息。By implementing the technical solution provided in this application, the device can independently adjust the reporting period according to the current scene, so that the device can adapt to the current scene and report location information according to actual needs.
附图说明Description of the drawings
图1是本申请实施例提供的通信系统的结构示意图;FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application;
图2是本申请实施例提供的第一设备的结构的示意性图;FIG. 2 is a schematic diagram of the structure of a first device provided by an embodiment of the present application;
图3是本申请实施例提供的第一设备和用户建立从属关系的方法流程示意图;FIG. 3 is a schematic flowchart of a method for establishing a subordination relationship between a first device and a user according to an embodiment of the present application;
图4-图5是本申请实施例提供的一些人机交互示意图;Figures 4 to 5 are schematic diagrams of some human-computer interaction provided by embodiments of the present application;
图6是本申请实施例提供的设备上报位置信息的方法流程示意图;FIG. 6 is a schematic flowchart of a method for reporting location information by a device according to an embodiment of the present application;
图7是本申请实施例的通信系统中各个设备提供的功能的示意图。FIG. 7 is a schematic diagram of the functions provided by each device in the communication system of an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。Among them, in the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this document is only a description of related objects The association relationship of indicates that there can be three relationships, for example, A and/or B, which can indicate: A alone exists, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
本申请实施例提供了一种设备上报位置信息的方法,设备可以根据当前所处的场景自主调整上报周期,使得设备可以适应于当前场景并按照实际需求上报位置信息。这里,上报周期是指设备每2次上报位置信息之间的时间间隔。The embodiment of the present application provides a method for a device to report location information. The device can independently adjust the reporting period according to the current scenario, so that the device can adapt to the current scenario and report location information according to actual needs. Here, the reporting period refers to the time interval between the device reporting location information every 2 times.
首先介绍本申请实施例涉及的通信系统。参考图1,图1示出了本申请实施例提供的通信系统的结构示意图。如图1所示,该通信系统可包括:第一设备100、第二设备200、云服务器300。其中:First, the communication system involved in the embodiment of this application is introduced. Referring to Fig. 1, Fig. 1 shows a schematic structural diagram of a communication system provided by an embodiment of the present application. As shown in FIG. 1, the communication system may include: a first device 100, a second device 200, and a cloud server 300. among them:
第一设备100是具有定位功能以及基于蜂窝网络的通信功能的终端。第一设备100具有定位功能是指第一设备100可以根据以下一种或多种方式获取当前所在的位置信息,这些方式包括:全球卫星导航系统(global navigation satellite system,GNSS)定位、Wi-Fi定位、基站定位、以及通过配置的传感器(例如加速度传感器、气压传感器等)测量的数据来定位等方式。第一设备100具有基于蜂窝网络的通信功能是指第一设备100可以通过蜂窝网络连接到核心网,以和其他设备通信。在本申请实施例中,第一设备100可以基于蜂窝网络连接到云服务器300,从而和云服务器300通信。The first device 100 is a terminal having a positioning function and a communication function based on a cellular network. The first device 100 has a positioning function means that the first device 100 can obtain current location information according to one or more of the following methods, including: global navigation satellite system (GNSS) positioning, Wi-Fi Positioning, base station positioning, and positioning using data measured by configured sensors (such as acceleration sensors, air pressure sensors, etc.). The first device 100 having a communication function based on a cellular network means that the first device 100 can be connected to the core network through the cellular network to communicate with other devices. In the embodiment of the present application, the first device 100 may be connected to the cloud server 300 based on a cellular network, so as to communicate with the cloud server 300.
第一设备100可以用于追踪各类对象,例如人物(例如儿童、老人)、宠物、重要物品(例如行李箱、医疗设备),以及农业、畜牧业、物流业、冷链等行业的对象等。第一设备100追踪对象时,该第一设备100和该对象之间的距离小于阈值。该阈值可以预先设置,例如10厘米(cm)、5cm等。也就是说,在本申请实施例中,可以将第一设备100的位置信息看作是 该第一设备100所追踪对象的位置信息。在具体的实施例中,第一设备100可以放置在配件中,方便用户使用。不限于图1所示的被放置在手环中的第一设备100,第一设备100还可以放置在其他配件中。例如,第一设备100可以放置在宠物项圈中,用于追踪宠物;第一设备100还可以放置在行李箱的卡扣中,用于追踪行李箱;第一设备100还可以放置在自行车的卡扣/绑带/水杯瓶扣中,用于追踪自行车;第一设备100还可以放置在衣物配饰(例如腰带)中,用于追踪儿童或老人等等。在本申请实施例中,第一设备100在追踪对象时,可以根据当前所处的场景自主调整上报周期,并根据上报周期将获取到的自身的位置信息上报给云服务器300。在一些实施例中,第一设备100也可以被称为追踪器(tracker)。The first device 100 can be used to track various objects, such as people (such as children, elderly), pets, important items (such as luggage, medical equipment), and objects in industries such as agriculture, animal husbandry, logistics, and cold chain, etc. . When the first device 100 tracks the object, the distance between the first device 100 and the object is less than the threshold. The threshold can be preset, such as 10 centimeters (cm), 5 cm, and so on. That is, in this embodiment of the present application, the location information of the first device 100 can be regarded as the location information of the object tracked by the first device 100. In a specific embodiment, the first device 100 may be placed in an accessory, which is convenient for the user to use. It is not limited to the first device 100 placed in the bracelet as shown in FIG. 1, and the first device 100 may also be placed in other accessories. For example, the first device 100 can be placed in a pet collar to track pets; the first device 100 can also be placed in a buckle of a suitcase to track the suitcase; the first device 100 can also be placed in a bicycle card The buckle/belt/water glass bottle buckle is used to track bicycles; the first device 100 can also be placed in clothing accessories (such as belts) to track children or the elderly, etc. In the embodiment of the present application, when tracking the object, the first device 100 can independently adjust the reporting period according to the current scene, and report the acquired location information to the cloud server 300 according to the reporting period. In some embodiments, the first device 100 may also be referred to as a tracker.
第二设备200可以为手机、平板电脑、个人数字助理(personal digital assistant,PDA)、可穿戴设备等便携式电子设备。便携式电子设备的示例性实施例包括但不限于搭载iOS、Android、Microsoft或者其他操作系统的便携式电子设备。上述便携式电子设备也可以是其他便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,第二设备200也可以不是便携式第二设备,而是具有触敏表面(例如触控面板)的台式计算机或者车载设备等。The second device 200 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), and a wearable device. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with iOS, Android, Microsoft or other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (such as a touch panel). It should also be understood that in some other embodiments of the present application, the second device 200 may not be a portable second device, but a desktop computer or a vehicle-mounted device with a touch-sensitive surface (such as a touch panel).
第二设备200可以通过无线网络连接到云服务器300,通过云服务器300操控第一设备100。具体的,第二设备200可以通过无线网络接收到云服务器300发送的第一设备100的位置信息。在一些实施例中,第二设备200还可以通过无线网络向云服务器300发送指令,云服务器300可以根据该指令指示第一设备100执行相应的操作(例如更改上报周期等)。这里,该无线网络可以是蜂窝网络、无线局域网(wireless local area networks,WLAN)(例如无线保真(wireless fidelity,Wi-Fi)网络))等。The second device 200 may be connected to the cloud server 300 through a wireless network, and the first device 100 may be controlled by the cloud server 300. Specifically, the second device 200 may receive the location information of the first device 100 sent by the cloud server 300 through a wireless network. In some embodiments, the second device 200 may also send an instruction to the cloud server 300 via a wireless network, and the cloud server 300 may instruct the first device 100 to perform a corresponding operation according to the instruction (for example, change the reporting period, etc.). Here, the wireless network may be a cellular network, wireless local area networks (WLAN) (for example, wireless fidelity (Wi-Fi) network), etc.
第二设备200可以安装有用于管理第一设备100的应用(application,APP),或者,第二设备200可以访问用于管理第一设备100的万维网(world wide web,web)页面。第二设备200可以通过该应用或web页面控制和该第二设备200的关联用户具有从属关系的第一设备。第二设备200的关联用户是指登录到该第二设备200上用于管理第一设备的应用或web页面的用户账号所对应的用户。在本申请实施例中,可将登录到该第二设备200的应用或web页面的用户账号称为第二设备200的关联用户账号。举例说明,用户1使用自己的用户账号(例如华为账号)在第二设备200上登录到用于管理第一设备的应用或web页面,则用户1为第二设备200的关联用户,用户1的华为账号为第二设备200的关联用户账号。用户和第一设备具有从属关系是指,该用户的用户账号和该第一设备的设备标识绑定,该第一设备属于该用户并且能够被该用户操控。The second device 200 may be installed with an application (APP) for managing the first device 100, or the second device 200 may access a world wide web (web) page for managing the first device 100. The second device 200 can control the first device that has an affiliation with the associated user of the second device 200 through the application or web page. The associated user of the second device 200 refers to a user corresponding to a user account logged in to the second device 200 for managing the application or web page of the first device. In this embodiment of the present application, the user account logged in to the application or web page of the second device 200 may be referred to as the associated user account of the second device 200. For example, if user 1 uses his own user account (such as a Huawei account) to log in to the application or web page used to manage the first device 200 on the second device 200, then user 1 is an associated user of the second device 200, and user 1’s The Huawei account is the associated user account of the second device 200. The subordination between the user and the first device means that the user account of the user is bound to the device identification of the first device, and the first device belongs to the user and can be manipulated by the user.
云服务器300是提供安全可靠的弹性计算服务的设备。在本申请实施例中,云服务器300提供用于管理第一设备100的应用或web页面的接口,云服务器300可通过该接口和第二设备200通信。具体的,云服务器300可以通过该接口接收来自第二设备200的指令,并根据该指令指示第一设备100执行相应的操作(例如更改上报周期)。在本申请实施例中,云服务器300还可以基于蜂窝网络接收到第一设备100上报的位置信息,并通过该接口将该位置信息发送给第二设备200。The cloud server 300 is a device that provides safe and reliable elastic computing services. In this embodiment of the present application, the cloud server 300 provides an interface for managing applications or web pages of the first device 100, and the cloud server 300 can communicate with the second device 200 through the interface. Specifically, the cloud server 300 may receive an instruction from the second device 200 through the interface, and instruct the first device 100 to perform a corresponding operation (for example, change the reporting cycle) according to the instruction. In the embodiment of the present application, the cloud server 300 may also receive the location information reported by the first device 100 based on the cellular network, and send the location information to the second device 200 through the interface.
本申请实施例提及的蜂窝网络可包括但不限于:1.基于以下任意一种无线通信技术构建的蜂窝网络:第二代移动通信技术(2G)(例如全球移动通讯系统(global system for mobile communications,GSM)、通用分组无线服务(general packet radio service,GPRS))、第三代移动通信技术(3G)(例如码分多址接入(code division multiple access,CDMA),宽带码分多址 (wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA))、第四代移动通信技术(4G)(例如长期演进(long term evolution,LTE))、第五代移动通信技术(5G)以及后续发展过程中提出的通信技术等等。2.窄带物联网(narrow band internet of things,NB-IoT)。其中,NB-IoT基于蜂窝网络构建,可以满足物联网终端设备低功耗、低成本的需求。The cellular networks mentioned in the embodiments of this application may include but are not limited to: 1. Cellular networks constructed based on any of the following wireless communication technologies: second-generation mobile communication technology (2G) (for example, global system for mobile communications, GSM), general packet radio service (GPRS), third-generation mobile communication technology (3G) (such as code division multiple access (CDMA), broadband code division multiple access) (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA)), fourth-generation mobile communication technology (4G) (such as long term evolution, LTE) ), the fifth-generation mobile communication technology (5G) and the communication technology proposed in the subsequent development process, etc. 2. Narrowband Internet of Things (NB-IoT). Among them, NB-IoT is based on cellular network construction, which can meet the low power consumption and low cost requirements of IoT terminal equipment.
下面介绍本申请实施例提供的第一设备100的结构。The structure of the first device 100 provided by the embodiment of the present application is described below.
参见图2,图2为第一设备100的结构示意图。第一设备100可包括处理器110,存储器120,充电管理模块130,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,传感器模块170,以及用户标识模块(subscriber identification module,SIM)卡接口180等。其中传感器模块170可以包括以下一种或多种:陀螺仪传感器170A,气压传感器170B,加速度传感器170C,距离传感器170D,温度传感器170E和振动传感器170F等。Refer to FIG. 2, which is a schematic structural diagram of the first device 100. The first device 100 may include a processor 110, a memory 120, a charging management module 130, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 170, and a user identification module (subscriber identification module, SIM) card interface 180, etc. The sensor module 170 may include one or more of the following: a gyroscope sensor 170A, an air pressure sensor 170B, an acceleration sensor 170C, a distance sensor 170D, a temperature sensor 170E, and a vibration sensor 170F.
可以理解的是,本申请实施例示意的结构并不构成对第一设备100的具体限定。在本申请另一些实施例中,第一设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。例如,在一些实施例中,第一设备100还可以配置有显示屏。在一些可能的实施方式中,该显示屏可用于显示指示该第一设备100的标识的二维码。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first device 100. In other embodiments of the present application, the first device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware. For example, in some embodiments, the first device 100 may also be configured with a display screen. In some possible implementation manners, the display screen may be used to display a two-dimensional code indicating the identification of the first device 100.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors. Among them, the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
存储器120可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如上报位置信息功能等)等。存储数据区可存储第一设备100使用过程中所创建的数据(比如位置信息等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在存储器120的指令,和/或存储在设置于处理器中的存储器的指令,执行第一设备100的各种功能应用以及数据处理。The memory 120 may be used to store computer executable program code, where the executable program code includes instructions. The memory 120 may include a program storage area and a data storage area. Among them, the storage program area can store an operating system, an application program required by at least one function (such as a function of reporting location information, etc.). The data storage area can store data (such as location information, etc.) created during the use of the first device 100. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the first device 100 by running instructions stored in the memory 120 and/or instructions stored in a memory provided in the processor.
在本申请的一些实施例中,存储器120可用于存储一个或多个用于识别第一设备100所处场景的算法。处理器110可以调用该算法,对传感器(例如气压传感器170B、加速度传感器170C)和/或无线通信模块160获取到的场景数据进行分析,识别第一设备100所处的场景。处理器110识别第一设备100所处的场景之后,可以根据第一设备100所处的场景调整第一设备100上报位置信息的周期。In some embodiments of the present application, the memory 120 may be used to store one or more algorithms for identifying the scene where the first device 100 is located. The processor 110 may call the algorithm to analyze the scene data obtained by the sensors (such as the air pressure sensor 170B and the acceleration sensor 170C) and/or the wireless communication module 160, and identify the scene where the first device 100 is located. After the processor 110 recognizes the scene where the first device 100 is located, it may adjust the period of the first device 100 reporting location information according to the scene where the first device 100 is located.
充电管理模块130用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可 以是有线充电器。在一些有线充电的实施例中,充电管理模块130可以通过USB接口接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块130可以通过第一设备100的无线充电线圈接收无线充电输入。充电管理模块130为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 130 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 130 may receive the charging input of the wired charger through the USB interface. In some embodiments of wireless charging, the charging management module 130 may receive the wireless charging input through the wireless charging coil of the first device 100. While the charging management module 130 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块130与处理器110。电源管理模块141接收电池142和/或充电管理模块130的输入,为处理器110,存储器120和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块130也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 130 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 130, and supplies power to the processor 110, the memory 120, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 130 may also be provided in the same device.
第一设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the first device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。第一设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在第一设备100上的包括2G/3G/4G/5G、NB-IoT等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。在本申请实施例中,移动通信模块150可用于根据上报周期将无线通信模块160、传感器(例如气压传感器170B、加速度传感器170C)等获取到的位置信息发送给云服务器300。在一些实施例中,移动通信模块150还用于接收来自云服务300的指令,该指令用于指示第一设备100执行相应的操作(例如调整上报周期)。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, NB-IoT, etc., applied on the first device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device. In the embodiment of the present application, the mobile communication module 150 may be used to send the position information obtained by the wireless communication module 160 and sensors (such as the air pressure sensor 170B and the acceleration sensor 170C) to the cloud server 300 according to the reporting period. In some embodiments, the mobile communication module 150 is also used to receive an instruction from the cloud service 300, and the instruction is used to instruct the first device 100 to perform a corresponding operation (for example, adjust the reporting period).
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
无线通信模块160可以提供应用在第一设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the first device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation. Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
在一些实施例中,第一设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得第一设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分 多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the first device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the first device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
陀螺仪传感器170A可以用于确定第一设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器170A确定第一设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器170A还可以用于导航场景。The gyro sensor 170A may be used to determine the movement posture of the first device 100. In some embodiments, the angular velocity of the first device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 170A. The gyro sensor 170A can also be used to navigate the scene.
气压传感器170B用于测量气压。在一些实施例中,第一设备100通过气压传感器170B测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 170B is used to measure air pressure. In some embodiments, the first device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 170B to assist positioning and navigation.
加速度传感器170C可检测第一设备100在各个方向上(一般为三轴)加速度的大小。当第一设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 170C can detect the magnitude of the acceleration of the first device 100 in various directions (generally three axes). When the first device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers and so on.
距离传感器170D,用于测量距离。第一设备100可以通过红外或激光测量距离。The distance sensor 170D is used to measure distance. The first device 100 can measure the distance by infrared or laser.
温度传感器170E用于检测温度。在一些实施例中,第一设备100可利用温度传感器170E采集周围的环境温度。The temperature sensor 170E is used to detect temperature. In some embodiments, the first device 100 may use the temperature sensor 170E to collect the ambient temperature.
振动传感器170F可以获取振动信号。在一些实施例中,当有外力作用于第一设备100时,振动传感器170F可以获取到振动信号。The vibration sensor 170F can acquire a vibration signal. In some embodiments, when an external force acts on the first device 100, the vibration sensor 170F may obtain a vibration signal.
SIM卡接口180用于连接SIM卡。SIM卡可以通过插入SIM卡接口180,或从SIM卡接口180拔出,实现和第一设备100的接触和分离。第一设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口180可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口180可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口180也可以兼容不同类型的SIM卡。SIM卡接口180也可以兼容外部存储卡。第一设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,第一设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在第一设备100中,不能和第一设备100分离。The SIM card interface 180 is used to connect to a SIM card. The SIM card can be inserted into the SIM card interface 180 or pulled out from the SIM card interface 180 to achieve contact and separation with the first device 100. The first device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 180 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 180 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 180 can also be compatible with different types of SIM cards. The SIM card interface 180 can also be compatible with external memory cards. The first device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the first device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the first device 100 and cannot be separated from the first device 100.
基于图1所示的通信系统以及图2所示的第一设备100,本申请实施例提供了设备上报位置信息的方法。实施本申请实施例提供的方法,第一设备可以根据当前所处的场景自主调整上报周期,使得第一设备可以适应于当前场景并按照实际需求上报位置信息,既能满足追踪对象的需求,又能节省功耗。Based on the communication system shown in FIG. 1 and the first device 100 shown in FIG. 2, an embodiment of the present application provides a method for a device to report location information. By implementing the method provided in the embodiments of this application, the first device can independently adjust the reporting period according to the current scene, so that the first device can adapt to the current scene and report location information according to actual needs, which can not only meet the needs of tracking objects, but also Can save power consumption.
在本申请实施例中,第一设备的位置信息可包括以下一个或多个:经纬度坐标、海拔高度或地理位置名称。第一设备可通过以下任意一种方式或者结合以下任意几种方式获取位置信息:In this embodiment of the present application, the location information of the first device may include one or more of the following: latitude and longitude coordinates, altitude, or geographic location name. The first device can obtain location information through any of the following methods or a combination of the following methods:
1.第一设备通过全球导航卫星系统,例如GPS、GLONASS、BDS、QZSS或SBAS等获取经纬度坐标或者地理位置名称。1. The first device obtains the longitude and latitude coordinates or the geographic location name through a global navigation satellite system, such as GPS, GLONASS, BDS, QZSS, or SBAS.
2.第一设备采用基站定位的方式获取经纬度坐标。2. The first device uses the base station positioning method to obtain the latitude and longitude coordinates.
3.第一设备采用无线室内定位技术获取经纬度坐标或者地理位置名称。无线室内定位技术可包括Wi-Fi、射频识别(radio frequency identification,RFID)、蓝牙、红外、超声波等短 距离无线技术。3. The first device uses wireless indoor positioning technology to obtain the latitude and longitude coordinates or the name of the geographic location. Wireless indoor positioning technologies may include short-range wireless technologies such as Wi-Fi, radio frequency identification (RFID), Bluetooth, infrared, and ultrasonic.
4.第一设备通过传感器采集到的数据获取位置信息。例如,第一设备可通过气压传感器170B测量气压值,并根据测量得到的气压值计算海拔高度。第一设备还可通过加速度传感器170C测量速度和加速度,并根据测量得到的速度、加速度和之前某个时间点的经纬度坐标计算当前时间点的经纬度坐标等。第一设备还可以通过距离传感器170D测量和某个物体之间的距离,并根据测量到的距离和该物体的经纬度坐标计算自身的经纬度坐标等。4. The first device obtains location information through the data collected by the sensor. For example, the first device may measure the air pressure value through the air pressure sensor 170B, and calculate the altitude based on the measured air pressure value. The first device may also measure the speed and acceleration through the acceleration sensor 170C, and calculate the latitude and longitude coordinates of the current time point based on the measured speed, acceleration, and the latitude and longitude coordinates of a previous time point. The first device can also measure the distance to an object through the distance sensor 170D, and calculate its own longitude and latitude coordinates based on the measured distance and the longitude and latitude coordinates of the object.
在本申请实施例中,第一设备100的部分传感器例如气压传感器170B、加速度传感器170C等可以连续长时间工作以采集数据,从而获取被追踪对象的位置信息。In the embodiment of the present application, some sensors of the first device 100, such as the air pressure sensor 170B, the acceleration sensor 170C, etc., can work continuously for a long time to collect data, so as to obtain the location information of the tracked object.
在本申请实施例中,第一设备100的无线通信模块160可以持续提供全球导航卫星系统(例如GPS)、Wi-Fi、蓝牙、红外等无线通信解决方案以获取第一设备100的位置信息,也可以周期性(例如以固定周期)或者根据需要(例如在需要上报位置信息之时或者之前)提供上述无线通信解决方案以获取第一设备100的位置信息。In the embodiment of the present application, the wireless communication module 160 of the first device 100 can continuously provide wireless communication solutions such as global navigation satellite systems (such as GPS), Wi-Fi, Bluetooth, infrared, etc. to obtain the location information of the first device 100. The above wireless communication solution may also be provided periodically (for example, in a fixed period) or as needed (for example, when or before the location information needs to be reported) to obtain the location information of the first device 100.
在实施本申请实施例提供的方法之前,即第一设备100在获取位置信息及上报位置信息之前,第一设备100需和用户建立从属关系。第一设备100上报位置信息之后,和该第一设备100具有从属关系的用户可以在第二设备200上查看第一设备的位置以及活动轨迹。示例性地,参见图3,用户和第一设备100建立从属关系的过程可包括如下步骤:Before implementing the method provided in the embodiment of the present application, that is, before the first device 100 obtains location information and reports the location information, the first device 100 needs to establish an affiliation with the user. After the first device 100 reports the location information, users who have an affiliation with the first device 100 can view the location and activity track of the first device on the second device 200. Exemplarily, referring to FIG. 3, the process of establishing a subordination relationship between the user and the first device 100 may include the following steps:
步骤1:用户使用自己的用户账号和密码登录到第二设备200上安装的用于管理第一设备的应用,或者,登陆到第二设备200访问的用于管理第一设备的万维网(web)页面。Step 1: The user uses his own user account and password to log in to the application installed on the second device 200 to manage the first device, or log in to the web used to manage the first device accessed by the second device 200 page.
这里,用于管理第一设备的应用或web页面可以由第一设备的生产厂商(例如tracker的生产厂商(例如华为))开发。Here, the application or web page used to manage the first device may be developed by the manufacturer of the first device (for example, the manufacturer of the tracker (for example, Huawei)).
示例性地,参见图4的4a,其示出了用户使用用户账号和密码登录到用于管理第一设备的应用之后,第二设备200提供的用户界面10。如4a所示,该用户界面10可包括:查看用户信息控件101、设置控件102、添加控件103、地图展示区域104、添加设备控件105。在一些实施例中,该用户界面10还可包括状态栏106,状态栏106可包括以下一项或多项:运营商的名称(例如中国移动)、Wi-Fi图标、信号强度、时间、电池图标、闹钟图标(图中未示出)或蓝牙图标(图中未示出)等。在一些实施例中,该用户界面10还可包括可隐藏的导航栏107,导航栏107可包括返回键、主显示屏键以及多任务键。在该用户界面10中:For example, referring to 4a of FIG. 4, it shows the user interface 10 provided by the second device 200 after the user logs in to the application for managing the first device using the user account and password. As shown in 4a, the user interface 10 may include: view user information control 101, set control 102, add control 103, map display area 104, and add device control 105. In some embodiments, the user interface 10 may further include a status bar 106. The status bar 106 may include one or more of the following: the name of the operator (for example, China Mobile), Wi-Fi icon, signal strength, time, battery Icon, alarm clock icon (not shown in the figure) or Bluetooth icon (not shown in the figure), etc. In some embodiments, the user interface 10 may further include a concealable navigation bar 107, which may include a return key, a main display key, and a multitasking key. In this user interface 10:
查看用户信息控件101可用于接收输入的用户操作(例如点击操作),响应于该用户操作,第二设备100可以在用户界面10上展示用户信息(例如已登录用于管理第一设备的应用的用户账号的头像、名称等)、用于退出登录或切换登录账号的控件等。The view user information control 101 can be used to receive an input user operation (for example, a click operation). In response to the user operation, the second device 100 can display user information on the user interface 10 (for example, the user who has logged in to manage the application of the first device) User account avatar, name, etc.), controls for logging out or switching login accounts, etc.
设置控件102可用于接收输入的用户操作(例如点击操作),响应于该用户操作,第二设备100可以显示设置该用于管理第一设备的应用的相关功能的用户界面。用于管理第一设备的应用的相关功能可包括:提示新消息的方式、显示的语言等。The setting control 102 may be used to receive an input user operation (for example, a click operation), and in response to the user operation, the second device 100 may display a user interface for setting related functions of the application for managing the first device. The related functions of the application used to manage the first device may include: a method of prompting new messages, a displayed language, etc.
添加控件103可用于接收输入的用户操作(例如点击操作),响应于该用户操作,第二设备200可以在用户界面10上显示包括一个或多个控件的小窗口。第二设备200可响应于在该小窗口内的控件上检测到的用户操作(例如点击操作),提供扫描二维码、查看帮助反馈信息、添加好友或其他的一些功能。The add control 103 may be used to receive an input user operation (for example, a click operation), and in response to the user operation, the second device 200 may display a small window including one or more controls on the user interface 10. The second device 200 may respond to a user operation (for example, a click operation) detected on the control in the small window, and provide scan QR code, view help feedback information, add friends or some other functions.
地图展示区域104用于展示地图。地图展示区域104可以用于展示和第二设备200的当前位置对应的地图。地图展示区域104中展示的地图可以由地图类应用(例如谷歌地图、百度地图)提供。The map display area 104 is used to display a map. The map display area 104 may be used to display a map corresponding to the current location of the second device 200. The map displayed in the map display area 104 may be provided by a map application (for example, Google Maps, Baidu Maps).
添加设备控件105可用于接收输入的用户操作(例如点击操作),响应于该用户操作,第二设备200可以获取附近的第一设备100的标识。也就是说,响应于用户在添加设备控件105上输入的用户操作(例如点击操作),第二设备200可以执行下面的步骤2。The add device control 105 can be used to receive an input user operation (for example, a click operation), and in response to the user operation, the second device 200 can obtain the identification of the first device 100 nearby. That is, in response to a user operation (for example, a click operation) input by the user on the add device control 105, the second device 200 may perform the following step 2.
步骤2:第二设备200获取第一设备100的标识,根据该标识发现第一设备100。Step 2: The second device 200 obtains the identification of the first device 100, and discovers the first device 100 according to the identification.
第一设备100的标识可以为第一设备100构建的服务集的标识(service set identifier,SSID),可以用于指示该第一设备100。第二设备200获取到第一设备100的标识,即第二设备200发现附近存在该第一设备100。The identifier of the first device 100 may be a service set identifier (SSID) of a service set constructed by the first device 100, and may be used to indicate the first device 100. The second device 200 obtains the identity of the first device 100, that is, the second device 200 finds that the first device 100 exists nearby.
在本申请实施例中,第二设备200可以执行以下任意一种方法来获取第一设备100的标识:In the embodiment of the present application, the second device 200 may execute any of the following methods to obtain the identity of the first device 100:
(1)第二设备200扫描附近的第一设备100发送的消息,该消息携带第一设备100的标识。(1) The second device 200 scans a message sent by the nearby first device 100, and the message carries the identity of the first device 100.
第一设备100可以在连接电源或者在接收到用户操作(例如智能音箱的电源键接收到用户的长按操作)之后发送消息。第一设备100可以持续发送该消息。第一设备100发送的该消息携带有第一设备100的标识。The first device 100 may send a message after being connected to a power source or after receiving a user operation (for example, the power button of a smart speaker receives a user's long press operation). The first device 100 may continuously send the message. The message sent by the first device 100 carries the identity of the first device 100.
在一些实施例中,该消息可以是第一设备100采用Wi-Fi技术发送的信标帧(beacon帧)或探查请求帧(也称为probe request)。例如,第一设备100可以作为AP热点发送beacon帧或probe request。第二设备200在接收到作用于用户界面10中的添加设备控件105上的用户操作后,可以响应于该用户操作在Wi-Fi信道上执行扫描操作。第二设备200执行扫描操作的时长可以为预设时长,在预设时长之后第二设备200可停止扫描。当第二设备200和第一设备100之间的距离在Wi-Fi信号的有效范围之内时,第二设备200可以扫描到第一设备100发送的beacon帧或probe request。In some embodiments, the message may be a beacon frame (beacon frame) or a probe request frame (also called probe request) sent by the first device 100 using Wi-Fi technology. For example, the first device 100 may act as an AP hotspot to send beacon frames or probe requests. After receiving a user operation on the add device control 105 in the user interface 10, the second device 200 may perform a scanning operation on the Wi-Fi channel in response to the user operation. The time period during which the second device 200 performs the scanning operation may be a preset time period, and the second device 200 may stop scanning after the preset time period. When the distance between the second device 200 and the first device 100 is within the effective range of the Wi-Fi signal, the second device 200 can scan the beacon frame or probe request sent by the first device 100.
在另一些实施例中,该消息可以是第一设备100采用蓝牙技术发送的广播包。第二设备200在接收到作用于用户界面10中的添加设备控件105上的用户操作后,可以响应于该用户操作在蓝牙信道上执行扫描操作。第二设备200执行扫描操作的时长可以为预设时长,在预设时长之后第二设备200可停止扫描。当第二设备200和第一设备100之间的距离在蓝牙信号的有效范围之内时,第二设备200可以扫描到第一设备100发送的广播包。In other embodiments, the message may be a broadcast packet sent by the first device 100 using Bluetooth technology. After receiving the user operation on the add device control 105 in the user interface 10, the second device 200 may perform a scanning operation on the Bluetooth channel in response to the user operation. The time period during which the second device 200 performs the scanning operation may be a preset time period, and the second device 200 may stop scanning after the preset time period. When the distance between the second device 200 and the first device 100 is within the effective range of the Bluetooth signal, the second device 200 can scan the broadcast packet sent by the first device 100.
示例性地,参见图4的4b,其示出了第二设备200响应于添加设备控件105上接收到的用户操作,通过上述第(1)种方式来获取附近的第一设备100的标识时显示的用户界面20。该用户界面20可包括:返回上一级控件201、提示信息202、可用设备列表203。其中,返回上一级控件201可用于接收输入的用户操作(例如点击操作),第二设备200可响应于该用户操作再次显示如4a所示的用户界面10。提示信息202用于提示用户当前第二设备200正在扫描附近的第一设备发送的消息。可用设备列表203用于展示第二设备200发现的附近的第一设备的信息,该信息被携带在第一设备发送的消息中,该信息可以是第一设备的名称。示例性地,如4b所示,第二设备200发现了两个第一设备,其名称分别为“AAAAA”、“BBBBB”。可用设备列表203中各个设备的名称可用于接收用户操作。Exemplarily, referring to 4b of FIG. 4, it shows that the second device 200 obtains the identification of the nearby first device 100 through the above-mentioned method (1) in response to the user operation received on the add device control 105 User interface displayed 20. The user interface 20 may include: return to the upper level control 201, prompt information 202, and available device list 203. Wherein, the return to upper level control 201 can be used to receive an input user operation (for example, a click operation), and the second device 200 can display the user interface 10 shown in 4a again in response to the user operation. The prompt information 202 is used to prompt the user that the second device 200 is currently scanning a message sent by a nearby first device. The available device list 203 is used to display the information of the nearby first device discovered by the second device 200, the information is carried in the message sent by the first device, and the information may be the name of the first device. Exemplarily, as shown in 4b, the second device 200 has discovered two first devices whose names are "AAAAA" and "BBBBB" respectively. The name of each device in the available device list 203 can be used to receive user operations.
示例性地,参见图4的4b及4c,用户可以点击可用设备列表203中的“BBBBB”,响应于该点击操作,第二设备200可以显示如4c所示的用户界面30。该用户界面30可包括返回上一级控件301、提示信息302、暂不绑定控件303和立即绑定控件304。其中,返回上一级控件301可用于接收输入的用户操作(例如点击操作),第二设备200可响应于该用户操作再次显示如4b所示的用户界面20。提示信息302用于提示用户是否绑定发现的第一设备。暂 不绑定控件303可用于接收输入的用户操作(例如点击操作),第二设备200可响应于该用户操作再次显示如4b所示的用户界面20。立即绑定控件304可用于接收输入的用户操作(例如点击操作),响应于该用户操作,第二设备200可触发使得第二设备200的关联用户和第一设备“BBBBB”建立从属关系的流程。该第二设备200的关联用户和第一设备建立从属关系的流程可参照后续步骤3-步骤8。Illustratively, referring to 4b and 4c of FIG. 4, the user can click "BBBBB" in the available device list 203, and in response to the click operation, the second device 200 can display the user interface 30 shown in 4c. The user interface 30 may include a return control 301, a prompt message 302, a temporarily unbound control 303, and an immediate binding control 304. Wherein, the return to the upper level control 301 can be used to receive an input user operation (such as a click operation), and the second device 200 can display the user interface 20 shown in 4b again in response to the user operation. The prompt message 302 is used to prompt the user whether to bind the discovered first device. The temporarily unbound control 303 can be used to receive an input user operation (for example, a click operation), and the second device 200 can display the user interface 20 shown in 4b again in response to the user operation. The immediate binding control 304 can be used to receive an input user operation (such as a click operation). In response to the user operation, the second device 200 can trigger a process for the associated user of the second device 200 to establish a subordination relationship with the first device "BBBBB" . For the process of establishing the affiliation relationship between the associated user of the second device 200 and the first device, refer to the subsequent steps 3 to 8.
在一些实施例中,第二设备200触发使得第二设备200的关联用户和第一设备建立从属关系的流程时,还可显示如图5的5b所示的用户界面40。也就是说,响应于立即绑定控件304上接收到的用户操作,第二设备200可显示如图5的5b所示的用户界面40。该用户界面40包括提示信息404,用于提示用户当前正在绑定第二设备200的关联用户和第一设备。In some embodiments, when the second device 200 triggers the process for the associated user of the second device 200 to establish an affiliation with the first device, the user interface 40 as shown in 5b of FIG. 5 may also be displayed. That is, in response to the user operation received on the immediate binding control 304, the second device 200 may display the user interface 40 as shown in 5b of FIG. 5. The user interface 40 includes prompt information 404 for prompting the user that the associated user of the second device 200 is currently being bound to the first device.
(2)第二设备200扫描附近的第一设备100提供的二维码,该二维码用于指示该第一设备100的标识。(2) The second device 200 scans the two-dimensional code provided by the nearby first device 100, and the two-dimensional code is used to indicate the identity of the first device 100.
在一些实施例中,若第一设备100配置有显示屏,则该第一设备100可以在出厂时预先存储二维码,并在开机后将二维码显示在显示屏上。在另一些实施例中,该二维码可以在该第一设备100出厂时张贴在该第一设备100的表面。In some embodiments, if the first device 100 is equipped with a display screen, the first device 100 may pre-store a two-dimensional code when it leaves the factory, and display the two-dimensional code on the display screen after being turned on. In other embodiments, the two-dimensional code may be posted on the surface of the first device 100 when the first device 100 is shipped from the factory.
具体实现中,第二设备200在接收到作用于用户界面10中的添加设备控件105上的用户操作后,可以开启摄像头并通过摄像头扫描第一设备100提供的二维码,根据该二维码获取第一设备100的标识。In a specific implementation, after receiving a user operation on the add device control 105 in the user interface 10, the second device 200 can turn on the camera and scan the QR code provided by the first device 100 through the camera. According to the QR code The identification of the first device 100 is obtained.
不限于上述两种获取第一设备100的标识的方式,本申请实施例还可以通过其他方式获取第一设备100的标识,例如第二设备200还可以接收用户输入的第一设备100的标识等。It is not limited to the above two ways to obtain the identity of the first device 100. The embodiment of the present application can also obtain the identity of the first device 100 in other ways. For example, the second device 200 can also receive the identity of the first device 100 input by the user. .
步骤3:第二设备200向云服务器300发送用于请求该云服务器300为第一设备100分配设备标识(device ID)的消息,该消息携带该第二设备200的关联用户账号。Step 3: The second device 200 sends a message for requesting the cloud server 300 to assign a device ID to the first device 100 to the cloud server 300, and the message carries the associated user account of the second device 200.
步骤4:云服务器300为第一设备100分配设备标识,并将该第一设备100的设备标识发送给第二设备200。Step 4: The cloud server 300 allocates a device identifier to the first device 100, and sends the device identifier of the first device 100 to the second device 200.
这里,云服务器300为第一设备100分配的设备标识,不同于之前步骤1中第二设备200发现第一设备100时该第一设备100的标识。云服务器300为第一设备100分配的设备标识可以用于云服务器300识别该第一设备100。该设备标识可以由数字、字母、符号等中的一个或多个组成。Here, the device identifier assigned by the cloud server 300 to the first device 100 is different from the identifier of the first device 100 when the second device 200 discovers the first device 100 in step 1 above. The device identification assigned by the cloud server 300 to the first device 100 may be used by the cloud server 300 to identify the first device 100. The device identification can consist of one or more of numbers, letters, symbols, and so on.
步骤5:第二设备200将该设备标识发送给第一设备100。Step 5: The second device 200 sends the device identification to the first device 100.
第二设备200可以采用WiFi技术或者蓝牙技术将该设备标识发送给第一设备100。The second device 200 may send the device identification to the first device 100 using WiFi technology or Bluetooth technology.
步骤6:第一设备100向云服务器300发送绑定请求,该绑定请求携带云服务器300分配给第一设备100的设备标识,用于请求云服务器300为第二设备200的关联用户和该第一设备100建立从属关系。Step 6: The first device 100 sends a binding request to the cloud server 300. The binding request carries the device identifier assigned by the cloud server 300 to the first device 100, and is used to request the cloud server 300 to be the associated user of the second device 200 and the The first device 100 establishes a subordinate relationship.
具体的,第一设备100可以通过蜂窝网络(例如2G/3G/4G/5G、NB-IoT等)向云服务器300发送该绑定请求。Specifically, the first device 100 may send the binding request to the cloud server 300 through a cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.).
步骤7:云服务器300接收到绑定请求,并根据该绑定请求将第二设备200的关联用户账号和该第一设备100的设备标识关联存储,即将第二设备200的关联用户和该第一设备100绑定。Step 7: The cloud server 300 receives the binding request, and stores the associated user account of the second device 200 with the device identification of the first device 100 according to the binding request, that is, the associated user of the second device 200 and the first device 100 One device 100 is bound.
云服务器300将第二设备200的关联用户账号和第一设备100的设备标识绑定之后,该用户账号对应的用户(即第二设备200的关联用户)和第一设备100成功建立从属关系。第二设备200的关联用户和第一设备100建立从属关系之后,该第二设备200的关联用户可以 在第二设备200上通过管理第二设备的应用或者web页面查看第一设备100上报的位置信息。After the cloud server 300 binds the associated user account of the second device 200 with the device identifier of the first device 100, the user corresponding to the user account (ie, the associated user of the second device 200) and the first device 100 successfully establish an affiliation. After the associated user of the second device 200 establishes an affiliation with the first device 100, the associated user of the second device 200 can view the location reported by the first device 100 on the second device 200 by managing the application or web page of the second device information.
步骤8:云服务器300向第二设备200发送通知消息,该通知消息用于通知第二设备200其关联用户和该第一设备100绑定成功。Step 8: The cloud server 300 sends a notification message to the second device 200, where the notification message is used to notify the second device 200 that the associated user and the first device 100 are successfully bound.
具体的,第二设备200接收到云服务器300发送的通知消息之后,可以确定第二设备200的关联用户和第一设备100成功建立从属关系。在一些实施例中,第二设备200可以提示用户当前成功和第一设备100建立从属关系的信息,提示方式可包括但不限于:在显示屏上显示提示信息、语音播报提示信息或振动等。Specifically, after the second device 200 receives the notification message sent by the cloud server 300, it can be determined that the associated user of the second device 200 and the first device 100 have successfully established an affiliation. In some embodiments, the second device 200 may prompt the user to successfully establish an affiliation with the first device 100. The prompt method may include, but is not limited to: displaying prompt information on the display screen, voice broadcast prompt information, or vibration.
在一些实施例中,上述步骤3-步骤6还可以替换为以下步骤3a-步骤6a:In some embodiments, the above step 3 to step 6 can also be replaced with the following step 3a to step 6a:
步骤3a:第一设备100请求云服务器300为该第一设备100分配设备标识(device ID)。Step 3a: The first device 100 requests the cloud server 300 to allocate a device ID (device ID) to the first device 100.
具体的,第一设备100可以通过蜂窝网络(例如2G/3G/4G/5G、NB-IoT等)请求云服务器300为该第一设备100分配设备标识(device ID)。Specifically, the first device 100 may request the cloud server 300 to allocate a device ID to the first device 100 through a cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.).
步骤4a:云服务器300为第一设备100分配设备标识,并将该第一设备100的设备标识发送给该第一设备100。Step 4a: The cloud server 300 allocates a device ID to the first device 100, and sends the device ID of the first device 100 to the first device 100.
步骤5a:第一设备100将该设备标识发送给第二设备200。 Step 5a: The first device 100 sends the device identifier to the second device 200.
步骤6a:第二设备200向云服务器300发送绑定请求,该绑定请求携带云服务器300分配给第一设备100的设备标识以及第二设备200的关联用户账号,该绑定请求用于请求云服务器300为第二设备200的关联用户和该第一设备100建立从属关系。Step 6a: The second device 200 sends a binding request to the cloud server 300. The binding request carries the device identifier assigned by the cloud server 300 to the first device 100 and the associated user account of the second device 200. The binding request is used to request The cloud server 300 establishes an affiliation relationship for the associated user of the second device 200 and the first device 100.
示例性地,参见图5的5c,第二设备200的关联用户和第一设备100建立从属关系之后,第二设备200可以在用户界面10上显示该第一设备100的相关信息108。该第一设备100的相关信息108可包括:第一设备100所追踪对象的图片和/或昵称、第一设备100的名称(例如“BBBBB”)、第一设备100的剩余电量(例如38%)、第一设备100上报位置信息的情况(例如设备是否上报位置信息、设备最近一次上报的位置信息等)等。第一设备100所追踪对象的图片和/或昵称可以由用户在和第一设备100建立从属关系添加或者设置。第一设备100的剩余电量以及上报位置信息的情况可以由第一设备100通过云服务器300发送给第二设备200。其中,第一设备100获取该位置信息的方式可参照前文相关描述,第一设备100上报该位置信息的方式可参照后续实施例的相关描述。Exemplarily, referring to 5c of FIG. 5, after the associated user of the second device 200 establishes an affiliation with the first device 100, the second device 200 may display related information 108 of the first device 100 on the user interface 10. The related information 108 of the first device 100 may include: the picture and/or nickname of the object tracked by the first device 100, the name of the first device 100 (for example, "BBBBB"), and the remaining power of the first device 100 (for example, 38%) ), the status of the location information reported by the first device 100 (for example, whether the device reports location information, the latest location information reported by the device, etc.), etc. The picture and/or nickname of the object tracked by the first device 100 may be added or set by the user when establishing an affiliation with the first device 100. The remaining power of the first device 100 and the reported position information may be sent by the first device 100 to the second device 200 through the cloud server 300. Wherein, the manner in which the first device 100 obtains the location information can refer to the previous related description, and the manner in which the first device 100 reports the location information can refer to the related description in the subsequent embodiments.
在本申请实施例中,第二设备200的关联用户和第一设备100建立从属关系之后,第一设备100可以开始工作,即第一设备100可以根据自身的上报周期上报位置信息到云服务器300。In this embodiment of the application, after the associated user of the second device 200 establishes an affiliation with the first device 100, the first device 100 can start working, that is, the first device 100 can report location information to the cloud server 300 according to its own reporting cycle .
可理解的,第一设备100的上报周期决定了用户掌控第一设备100/追踪对象的位置以及活动轨迹的准确度、精细度。该上报周期越短时,第一设备100可以越频繁地上报位置信息,使得用户更加准确地获知第一设备100/追踪对象的位置以及活动轨迹。但是,该上报周期越短,也意味着第一设备100需要更加频繁地和云服务器300通信,会增加功耗。It is understandable that the reporting period of the first device 100 determines the accuracy and fineness of the user's control of the position of the first device 100/tracking object and the activity track. The shorter the reporting period, the more frequently the first device 100 can report the location information, so that the user can learn the location and activity track of the first device 100/tracking object more accurately. However, the shorter the reporting period, it also means that the first device 100 needs to communicate with the cloud server 300 more frequently, which will increase power consumption.
考虑到用户需求以及设备功耗,一般情况下第一设备100所追踪对象的类型和自身的上报周期相对应。例如,对于家庭成员(例如儿童、老人等),用户希望能够较为频繁的获知家庭成员的位置,如每5分钟获知更新的家庭成员的位置,从而保证家庭成员的安全,因此第一设备追踪家庭成员时上报位置信息的周期可以为5分钟。又例如,宠物的重要程度相对于家庭成员的重要程度低,考虑到功耗问题,用户希望能够以普通的频次获知宠物的位置,如每1小时获知更新的宠物的位置,因此第一设备追踪宠物时上报位置信息的周期可以为1小 时。Taking into account user requirements and device power consumption, in general, the type of objects tracked by the first device 100 corresponds to its own reporting cycle. For example, for family members (such as children, the elderly, etc.), the user wants to know the location of the family member more frequently, such as the updated location of the family member every 5 minutes, so as to ensure the safety of the family member, so the first device tracks the family The period for reporting location information when a member is a member can be 5 minutes. For another example, the importance of pets is lower than that of family members. Considering power consumption, users hope to know the pet's location at a normal frequency, such as the updated pet's location every hour, so the first device tracks The period for reporting location information when pets can be 1 hour.
示例性地,可参见表1,表1给出了几种被追踪对象的类型以及和该对象类型相对应的上报周期。For example, refer to Table 1. Table 1 shows several types of tracked objects and the reporting period corresponding to the object types.
被追踪对象的类型Type of tracked object 上报周期Reporting period
家庭成员family member 5分钟5 minutes
宠物pet 1小时1 hour
牧场的牲畜Pasture livestock 0.5小时0.5 hour
行李箱trunk 1小时1 hour
表1不同对象类型对应的上报周期Table 1 The reporting period corresponding to different object types
在本申请实施例中,第一设备100追踪的对象的类型可以通过以下任意一种方式确定:In the embodiment of the present application, the type of the object tracked by the first device 100 can be determined in any of the following ways:
1.第一设备100所追踪对象的类型可以是第一设备100默认设置的。1. The type of the object tracked by the first device 100 may be set by the first device 100 by default.
在一些实施例中,第一设备100可以预先存储固定的上报周期,和该固定的上报周期相对应的对象类型可以看作第一设备100默认设置的追踪对象类型。例如,当第一设备预先存储的上报周期为5分钟时,该第一设备可用于追踪家庭成员;当第一设备预先存储的上报周期为1小时,该第一设备可用于追踪宠物。In some embodiments, the first device 100 may pre-store a fixed reporting period, and the object type corresponding to the fixed reporting period may be regarded as the tracking object type set by the first device 100 by default. For example, when the report period pre-stored by the first device is 5 minutes, the first device can be used to track family members; when the report period pre-stored by the first device is 1 hour, the first device can be used to track pets.
2.第一设备100所追踪对象的类型可以是用户设置的。2. The type of the object tracked by the first device 100 may be set by the user.
具体的,用户可以从第二设备200提供的包含多种追踪对象类型的菜单中,选择其中的一个对象类型作为第一设备100追踪的对象的类型,即为第一设备100绑定追踪对象类型。Specifically, the user can select one of the object types from the menu containing multiple tracking object types provided by the second device 200 as the type of the object tracked by the first device 100, that is, the first device 100 binds the tracking object type. .
示例性地,参见图5的5a,第二设备200可以响应于用户界面30中立即绑定控件304上输入的用户操作,显示如5a所示的用户界面40。该用户界面40可包括:返回上一级控件401、提示信息402、追踪对象类型菜单403、下一步控件404。其中,返回上一级控件401可用于接收输入的用户操作(例如点击操作),第二设备200可响应于该用户操作再次显示如图4的4c所示的用户界面30。提示信息402用于提示用户设置第一设备100所追踪对象的类型。追踪对象类型菜单403中可包括多个对象类型的名称和/或图标,例如5a所示的行李403A、宠物403B、自行车403C、贵重物品403D。不限于5a所示的追踪对象类型菜单403,具体实现中,该追踪对象类型菜单403可包括更多或更少的对象类型,本申请实施例对此不做限制。Exemplarily, referring to 5a of FIG. 5, the second device 200 may display the user interface 40 shown in 5a in response to the user operation input on the immediate binding control 304 in the user interface 30. The user interface 40 may include: return to the upper level control 401, prompt information 402, tracking object type menu 403, and next control 404. Wherein, the return to upper level control 401 can be used to receive an input user operation (such as a click operation), and the second device 200 can display the user interface 30 shown in 4c of FIG. 4 again in response to the user operation. The prompt information 402 is used to prompt the user to set the type of the object tracked by the first device 100. The tracking object type menu 403 may include the names and/or icons of multiple object types, such as luggage 403A, pets 403B, bicycles 403C, and valuables 403D shown in 5a. It is not limited to the tracking object type menu 403 shown in 5a. In a specific implementation, the tracking object type menu 403 may include more or less object types, which is not limited in the embodiment of the present application.
用户可根据第一设备100实际所追踪的对象,在追踪对象类型菜单403中选择该追踪对象所属的类型。示例性地,参见图5的5a,当第一设备100实际用于追踪用户的宠物狗时,用户可以点击宠物403B,将宠物设置为第一设备100所追踪对象的类型。用户选中宠物403B之后,可以在下一步控件404上输入用户操作(例如点击操作),响应于该用户操作,电子设备200可以显示如5b所示的用户界面40。关于5a所示的用户界面40的详细描述请参照前文相关实施例。The user can select the type to which the tracking object belongs in the tracking object type menu 403 according to the object actually tracked by the first device 100. Illustratively, referring to 5a of FIG. 5, when the first device 100 is actually used to track the user's pet dog, the user can click on the pet 403B to set the pet as the type of the object tracked by the first device 100. After the user selects the pet 403B, the user can input a user operation (such as a click operation) on the next control 404, and in response to the user operation, the electronic device 200 can display the user interface 40 shown in 5b. For a detailed description of the user interface 40 shown in 5a, please refer to the foregoing related embodiments.
用户在第二设备200上设置了第一设备100追踪对象的类型之后,第二设备200可以将该对象类型发送给云服务器300。云服务器300可以将该对象类型发送给第一设备100,以使得第一设备100获知自己追踪的对象的类型。After the user sets the type of the object tracked by the first device 100 on the second device 200, the second device 200 may send the object type to the cloud server 300. The cloud server 300 may send the object type to the first device 100 so that the first device 100 knows the type of the object it tracks.
可理解的,由用户设置第一设备100追踪对象的类型的方式,可以使得第一设备100根据用户需要追踪不同的对象,第一设备100的适用范围更广,更具有实用性,更加符合用户的使用习惯,用户体验更佳。It is understandable that the user can set the method for the first device 100 to track the object type, so that the first device 100 can track different objects according to the user's needs. The first device 100 has a wider application range, is more practical, and is more suitable for users. The user experience is better.
下面描述本申请实施例提供的第一设备100上报位置信息的方法。第一设备100上报位置信息的方法可包括以下两种:The following describes a method for the first device 100 to report location information provided by an embodiment of the present application. The method for the first device 100 to report location information may include the following two:
1.在一些实施例中,第一设备100可以在工作初始阶段按照和自身追踪对象的类型对应的上报周期上报位置信息,在工作一段时间后,根据第一设备100当前所处的场景自适应调整上报周期。也就是说,第一设备100可以将和自身追踪对象的类型对应的上报周期作为初始上报周期,并可以在工作一段时间后根据所处场景调整上报周期。这里,追踪对象的类型和上报周期之间的对应关系可参照前文表1以及相关描述。1. In some embodiments, the first device 100 can report location information according to the reporting period corresponding to the type of the object it tracks in the initial stage of work, and after a period of work, it can adapt to the current scene of the first device 100 Adjust the reporting period. That is, the first device 100 may use the reporting period corresponding to the type of the self-tracking object as the initial reporting period, and may adjust the reporting period according to the scene after working for a period of time. Here, the correspondence between the type of tracking object and the reporting period can refer to Table 1 above and related descriptions.
这里,第一设备100可以通过以下任意一种方式确定和自身追踪对象的类型对应的上报周期:Here, the first device 100 may determine the reporting period corresponding to the type of the self-tracking object by any of the following methods:
(1)在一些实施例中,和各个追踪对象类型相对应的上报周期可以存储在云服务器300中,第一设备100可以从云服务器300处获取到和自身追踪对象的类型对应的上报周期。(1) In some embodiments, the reporting period corresponding to each tracking object type may be stored in the cloud server 300, and the first device 100 may obtain the reporting period corresponding to the type of its tracking object from the cloud server 300.
(2)在另一些实施例中,第一设备100可以预先存储和各个追踪对象类型相对应的上报周期。第一设备100可以在获知追踪对象的类型之后,查找到和该追踪对象的类型对应的上报周期。(2) In other embodiments, the first device 100 may pre-store the reporting period corresponding to each tracking object type. The first device 100 may find the reporting period corresponding to the type of the tracking object after learning the type of the tracking object.
2.在另一些实施例中,第一设备100可以在工作初始阶段即根据当前所处的场景自适应确定上报周期。也就是说,第一设备100并没有初始上报周期,在整个工作过程中都根据所处场景自适应确定上报周期。2. In other embodiments, the first device 100 may adaptively determine the reporting period according to the current scene in the initial stage of work. That is to say, the first device 100 does not have an initial reporting period, and adaptively determines the reporting period according to the scene in the entire work process.
下面详细描述第一设备100根据所处场景自适应确定上报周期并上报位置信息的过程。The following describes in detail the process of the first device 100 adaptively determining the reporting period and reporting location information according to the scene it is in.
示例性地,参见图6,图6示出了本申请实施例提供的第一设备100根据所处场景自适应确定上报周期并上报位置信息的方法的流程示意图。如图6所示,该方法可包括如下步骤:Exemplarily, referring to FIG. 6, FIG. 6 shows a schematic flowchart of a method for the first device 100 to adaptively determine a reporting period and report location information according to a scene in an embodiment of the present application. As shown in Figure 6, the method may include the following steps:
步骤S101:第一设备100获取场景数据。Step S101: The first device 100 obtains scene data.
具体的,第一设备100追踪对象时,被追踪对象可能处于不同的场景。被追踪对象所处的场景可以包括或者反映该被追踪对象所处的地理位置、环境。Specifically, when the first device 100 tracks an object, the tracked object may be in a different scene. The scene where the tracked object is located may include or reflect the geographic location and environment where the tracked object is located.
示例性地,可参见表2,表2给出了几种对象类型分别对应的可能的场景。这里,各个对象类型对应的场景可以根据经验数据预先设置,也可以由用户自主设置。在一些实施例中,第二设备200可以提供用于设置或者添加和对象类型相对应的场景的用户界面,用户可通过该用户界面设置或者添加和对象类型相对应的场景。例如,用户可以设置和宠物对应的3个场景:家里场景、遛狗场景和外出旅行场景。Exemplarily, see Table 2. Table 2 shows possible scenarios corresponding to several object types. Here, the scene corresponding to each object type can be preset according to empirical data, or can be set independently by the user. In some embodiments, the second device 200 may provide a user interface for setting or adding a scene corresponding to the object type, and the user can set or add a scene corresponding to the object type through the user interface. For example, the user can set 3 scenes corresponding to pets: a home scene, a dog walking scene, and a travel scene.
Figure PCTCN2020078494-appb-000001
Figure PCTCN2020078494-appb-000001
表2不同对象类型对应的场景Table 2 Scenarios corresponding to different object types
场景数据是可以用于第一设备100判定被追踪对象当前处于哪一种场景的数据。场景数据可包括以下一个或多个:第一设备100通过加速度传感器170C获取到的运动速度和加速度、第一设备100通过振动传感器170F获取到的振动信号或者第一设备100获取到的位置信 息。其中,第一设备100获取位置信息的方式以及具体的位置信息可参照前文相关描述,在此不赘述。The scene data is data that can be used by the first device 100 to determine which scene the tracked object is currently in. The scene data may include one or more of the following: the movement speed and acceleration obtained by the first device 100 through the acceleration sensor 170C, the vibration signal obtained by the first device 100 through the vibration sensor 170F, or the position information obtained by the first device 100. Wherein, the manner in which the first device 100 obtains the location information and the specific location information can refer to related descriptions above, which will not be repeated here.
步骤S102、第一设备100根据场景数据确定被追踪对象当前所处的场景。Step S102: The first device 100 determines the scene where the tracked object is currently located according to the scene data.
具体的,第一设备100可以根据获取到的场景数据,在被追踪对象的类型所对应的场景中确定当前被追踪对象所处的场景。Specifically, the first device 100 may determine the scene where the tracked object is currently located in the scene corresponding to the type of the tracked object according to the acquired scene data.
举例来说,当第一设备100当前追踪的对象为宠物时,该宠物可能处于的场景包括:家里场景、遛狗场景、外出旅行场景。在第一设备100获取到的场景数据中,若位置信息表明该宠物位于家中,则第一设备100可确定当前处于家里场景;若运动速度>4km/h,则第一设备100可确定当前处于遛狗场景;若位置信息表明该宠物和家的距离超过预设值(例如100km),则第一设备100可以确定当前处于外出旅行场景。For example, when the object currently tracked by the first device 100 is a pet, the scenes that the pet may be in include: a home scene, a dog walking scene, and a travel scene. In the scene data obtained by the first device 100, if the location information indicates that the pet is at home, the first device 100 can determine that the pet is currently in the home scene; if the movement speed is> 4km/h, the first device 100 can determine that the pet is currently Dog walking scene; if the location information indicates that the distance between the pet and the home exceeds a preset value (for example, 100 km), the first device 100 may determine that it is currently in a traveling scene.
再举例来说,当第一设备100当前追踪的对象为用户的自行车时,该自行车可能处于的场景包括:家里场景、骑行场景。在第一设备100获取到的场景数据中,若运动速度接近于0km/h,则第一设备100可确定当前处于家里场景;若运动速度>10km/h,则第一设备100可确定当前处于骑行场景。For another example, when the object currently tracked by the first device 100 is the user's bicycle, the possible scenes of the bicycle include: a home scene and a riding scene. In the scene data acquired by the first device 100, if the movement speed is close to 0km/h, the first device 100 can determine that it is currently in the home scene; if the movement speed is >10km/h, the first device 100 can determine that it is currently Riding scene.
再举例来说,当第一设备100当前追踪的对象为儿童时,该儿童可能处于的场景包括:家里场景、学校场景、校外场景。在第一设备100获取到的场景数据中,若位置信息表明该儿童位于家中,则第一设备100可确定当前处于家里场景;若位置信息表明该儿童位于学校,则第一设备100可确定当前处于学校场景;若位置信息表明该儿童既不在家中也不在学校,则第一设备100可确定当前处于校外场景。For another example, when the object currently tracked by the first device 100 is a child, the scenes that the child may be in include: a home scene, a school scene, and an outside school scene. In the scene data obtained by the first device 100, if the location information indicates that the child is at home, the first device 100 can determine that the child is currently at home; if the location information indicates that the child is at school, the first device 100 can determine that the child is currently In a school scene; if the location information indicates that the child is neither at home nor at school, the first device 100 may determine that the child is currently in an out-of-school scene.
再举例来说,当第一设备100当前追踪的对象为用户的行李箱时,该行李箱可能处于的场景包括:家里场景、飞行场景、机场场景、出租车场景、酒店场景。在第一设备100获取到的场景数据中,若速度>300km/h、短时间(例如20s)内上升的高度超过5000m或者气压快速变化,则第一设备100可确定当前处于飞行场景;若速度>30km/h,且当前位置处于城市主干道时,则第一设备100可确定当前处于出租车场景。其中,第一设备100可根据加速度以及经纬度计算速度。For another example, when the object currently tracked by the first device 100 is the user's suitcase, the possible scenes of the suitcase include: a home scene, a flight scene, an airport scene, a taxi scene, and a hotel scene. In the scene data obtained by the first device 100, if the speed is >300km/h, the rising altitude exceeds 5000m in a short time (for example, 20s), or the air pressure changes rapidly, the first device 100 can determine that it is currently in a flying scene; >30km/h, and the current location is on an urban arterial road, the first device 100 may determine that it is currently in a taxi scene. Among them, the first device 100 can calculate the speed according to the acceleration and the latitude and longitude.
在本申请的一些实施例中,第一设备100可以存储一个或多个用于识别场景的算法。该算法可以为人工智能(artificial intelligence,AI)算法。第一设备100可以将获取到的场景数据作为该算法的输入,该算法的输出即为当前被追踪对象所处的场景。也就是说,第一设备100可以通过该算法识别当前被追踪对象所处的场景。In some embodiments of the present application, the first device 100 may store one or more algorithms for recognizing scenes. The algorithm may be an artificial intelligence (AI) algorithm. The first device 100 may use the acquired scene data as the input of the algorithm, and the output of the algorithm is the scene where the currently tracked object is located. In other words, the first device 100 can recognize the scene where the tracked object is currently located through the algorithm.
可理解的,不同的对象类型对应的场景不同,因此,在本申请实施例中,不同的对象类型分别对应不同的算法。例如,对象类型“行李箱”有对应的算法,对象类型“宠物”有对应的算法,且该两个算法不相同。第一设备100采用和当前追踪对象的类型相对应的算法,来识别被追踪对象所处的场景。It is understandable that different object types correspond to different scenarios. Therefore, in this embodiment of the present application, different object types correspond to different algorithms. For example, the object type "luggage" has a corresponding algorithm, and the object type "pet" has a corresponding algorithm, and the two algorithms are not the same. The first device 100 uses an algorithm corresponding to the type of the currently tracked object to identify the scene where the tracked object is located.
当第一设备100所追踪对象的类型通过上述第1种方式在出厂时默认设置时,第一设备100可以存储和该追踪对象的类型相对应的算法。当第一设备100所追踪对象的类型通过上述第2种方式由用户设置时,即第一设备100所追踪对象的类型不确定时,第一设备100可以存储多个分别对应不同追踪对象类型的算法,例如可存储对应于宠物的算法、对应于行李箱的算法以及对应于自行车的算法等。When the type of the object tracked by the first device 100 is set by default at the factory through the first method described above, the first device 100 may store an algorithm corresponding to the type of the tracking object. When the type of the object tracked by the first device 100 is set by the user through the second method described above, that is, when the type of the object tracked by the first device 100 is uncertain, the first device 100 may store multiple types of tracking objects corresponding to different types of tracking objects. Algorithms, for example, algorithms corresponding to pets, algorithms corresponding to luggage, and algorithms corresponding to bicycles can be stored.
这里,第一设备100存储的一个或多个用于识别场景的算法可以通过以下方式获取:1.该算法可以根据研发人员获取到的经验数据初步训练得到,并在出厂时预置在第一设备100 中。2.云服务器300根据研发人员获取到的经验数据训练该算法,并存储该算法,第一设备100从云服务器300处获取该算法。在上述任意一种方式中,训练算法时用到的经验数据具体包括:研发人员试验时采集到的场景数据,以及,试验时的场景。具体的,可以将试验采集到的场景数据作为输入,将该试验时的场景作为输出,从而训练得到对应的算法。Here, one or more algorithms for scene recognition stored in the first device 100 can be obtained in the following ways: 1. The algorithm can be obtained through preliminary training based on the experience data obtained by the R&D personnel, and is preset in the first device at the factory. Equipment 100. 2. The cloud server 300 trains the algorithm according to the empirical data obtained by the research and development personnel, and stores the algorithm, and the first device 100 obtains the algorithm from the cloud server 300. In any of the above methods, the empirical data used when training the algorithm specifically includes: scene data collected by the researcher during the experiment, and scenes during the experiment. Specifically, the scene data collected by the experiment can be used as the input, and the scene during the experiment can be used as the output, so as to train the corresponding algorithm.
在一些实施例中,第一设备100还可以更新存储的一个或多个用于识别场景的算法。具体的,随着越来越多的第一设备投入使用,会产生越来越丰富的数据。云服务器300可以获取到这些数据并使用这些数据来更新该一个或多个用于识别场景的算法。In some embodiments, the first device 100 may also update one or more stored algorithms for scene recognition. Specifically, as more and more first devices are put into use, more and more abundant data will be generated. The cloud server 300 may obtain these data and use the data to update the one or more algorithms for recognizing scenes.
下面以某种对象类型(以下称为特定对象类型)对应的算法为例说明该更新过程,该更新过程可包括如下步骤:The following takes an algorithm corresponding to a certain object type (hereinafter referred to as a specific object type) as an example to illustrate the update process. The update process may include the following steps:
步骤1:越来越多的第一设备在追踪属于该特定对象类型的对象时,可以向云服务器300上报获取到的场景数据以及确定的场景。这里,这些第一设备获取场景数据的方式可参照步骤S101中的相关描述。这些第一设备确定所处场景的方式可包括:(1)使用当前存储的算法,以获取到的场景数据作为输入得到计算结果,将该计算结果作为所处的场景。(2)第一设备根据非算法的其他方式确定当前所处的场景。例如,可根据所处地理位置的关键词确定所处场景(例如行李箱所处地理位置的关键词包括机场,则可确定行李箱所处场景为“机场场景”)。Step 1: When more and more first devices track objects belonging to the specific object type, they can report the acquired scene data and the determined scene to the cloud server 300. Here, the manner in which these first devices obtain scene data can refer to the related description in step S101. The manners for the first device to determine the scene in which it is located may include: (1) Using a currently stored algorithm to obtain a calculation result using the acquired scene data as input, and use the calculation result as the scene in which it is located. (2) The first device determines the current scene according to other methods than algorithms. For example, the scene can be determined according to the keywords of the geographic location (for example, the keyword of the geographic location of the suitcase includes an airport, and the scene of the suitcase can be determined to be an "airport scene").
也就是说,在一些实施例中,第一设备100可以将在步骤S101中获取到的场景数据以及在步骤S102中确定的场景上报给云服务器300,以供云服务器300更新用于识别场景的算法。这里,第一设备100可以按照一定的周期上报自身获取到的场景数据以及对应的场景。该周期可以预先设置或者由第一设备100自主确定,本申请实施例不做限制。可理解的,随着越来越多的第一设备投入使用,第一设备100上报自身获取到的场景数据以及对应的场景的周期可以拉长。That is to say, in some embodiments, the first device 100 may report the scene data obtained in step S101 and the scene determined in step S102 to the cloud server 300, so that the cloud server 300 can update the scene data for identifying the scene. algorithm. Here, the first device 100 may report the acquired scene data and the corresponding scene according to a certain period. The period may be preset or independently determined by the first device 100, which is not limited in the embodiment of the present application. It is understandable that as more and more first devices are put into use, the period for the first device 100 to report the scene data obtained by itself and the corresponding scene can be lengthened.
步骤2:云服务器300可以使用这些第一设备上报的场景数据以及场景来更新对应于该特定对象类型的算法。具体的,云服务器300可以将这些第一设备上报的场景数据作为输入,将对应的场景作为输入,更新对应于该特定对象类型的算法。Step 2: The cloud server 300 may use the scene data and scenes reported by the first devices to update the algorithm corresponding to the specific object type. Specifically, the cloud server 300 may use the scene data reported by the first device as input, and use the corresponding scene as input to update the algorithm corresponding to the specific object type.
步骤3:云服务器300可以将该特定对象类型的算法的更新数据发送给第一设备100。Step 3: The cloud server 300 may send the update data of the algorithm of the specific object type to the first device 100.
步骤4:第一设备100可根据接收到的更新数据来更新存储的对应于该特定对象类型的算法。更新后的算法可以用于更加精准地识别该特定对象类型的对象所处的场景。Step 4: The first device 100 may update the stored algorithm corresponding to the specific object type according to the received update data. The updated algorithm can be used to more accurately identify the scene where the object of the specific object type is located.
在本申请实施例中,可以使用机器学习算法来更新或者训练用于识别场景。该机器学习算法可以为深度学习(deep learning)算法,可包括以下一种或多种:近邻(k-NearestNeighbor,KNN)分类算法、卷积神经网络(convolutional neural network,CNN)、循环神经网络(recurrent neural network,RNN)或统计算法等。可理解的,在本申请实施例中,可以根据更新结果或者训练结果调整使用的机器学习算法。In the embodiment of the present application, a machine learning algorithm can be used to update or train for scene recognition. The machine learning algorithm can be a deep learning algorithm, which can include one or more of the following: nearest neighbor (k-Nearest Neighbor, KNN) classification algorithm, convolutional neural network (convolutional neural network, CNN), recurrent neural network ( recurrent neural network, RNN) or statistical algorithms, etc. It is understandable that in the embodiment of the present application, the machine learning algorithm used can be adjusted according to the update result or the training result.
步骤S103、第一设备100确定与被追踪对象当前所处的场景相对应的上报周期。Step S103: The first device 100 determines a reporting period corresponding to the scene where the tracked object is currently located.
下面详细描述什么是和场景相对应的上报周期。在本申请实施例中,用户在使用第一设备100追踪对象时,对象处于不同的场景时,用户需要掌握被追踪对象的位置以及活动轨迹的需求不同,即第一设备100上报位置信息的上报周期不同。下面示例性给出两种在不同的用户需求下,第一设备100上报位置信息的策略:The following describes in detail what is the reporting period corresponding to the scenario. In the embodiment of the present application, when a user uses the first device 100 to track an object, and the object is in a different scene, the user needs to know the location of the tracked object and the activity trajectory, that is, the first device 100 reports location information. The period is different. The following exemplarily provides two strategies for the first device 100 to report location information under different user requirements:
1.当被追踪对象的运动速度越大时,用户需要越频繁地获知该对象的位置及活动轨迹,即第一设备100可以使用较短的上报周期上报位置信息。具体的,被追踪对象的运动速度越大,意味着该对象的位置变化越快,为了避免该对象走失,第一设备100可以频繁上报位置 信息。1. When the moving speed of the tracked object is greater, the user needs to learn the position and movement trajectory of the object more frequently, that is, the first device 100 can report the position information in a shorter reporting period. Specifically, the greater the movement speed of the tracked object, the faster the change in the position of the object. In order to prevent the object from being lost, the first device 100 may frequently report the position information.
2.当被追踪对象处于安全场景时,用户不需要过于频繁地获知该对象的位置及活动轨迹,当被追踪对象处于非安全场景时,用户需要频繁地获知该对象的位置及活动轨迹。也就是说,当被追踪对象处于安全场景时,第一设备100可以使用较长的上报周期上报位置信息,当被追踪对象处于非安全场景时,第一设备100可以使用较短的上报周期上报位置信息。这里,安全场景、非安全场景可以预先设置。举例说明,用户使用第一设备100追踪宠物时,当宠物处于“家里场景”时,由于家中安全程度高,用户并不需要第一设备100特别频繁地上报位置信息。又例如,当宠物处于“外出旅行场景”时,安全程度降低,用户需要第一设备100较为频繁地上报位置信息,以获取宠物的位置以及活动轨迹,避免宠物走失。2. When the tracked object is in a safe scene, the user does not need to learn the location and movement trajectory of the object too frequently. When the tracked object is in an unsafe scene, the user needs to learn the location and movement trajectory of the object frequently. That is, when the tracked object is in a safe scene, the first device 100 can use a longer reporting period to report location information, and when the tracked object is in an unsafe scene, the first device 100 can use a shorter reporting period to report location information. Here, the safe scene and the non-safe scene can be preset. For example, when a user uses the first device 100 to track a pet, when the pet is in a “home scene”, the user does not need the first device 100 to report location information particularly frequently due to the high degree of security at home. For another example, when a pet is in a “traveling scene”, the degree of safety is reduced, and the user needs the first device 100 to report location information more frequently to obtain the pet's location and movement track, so as to prevent the pet from losing.
在本申请实施例中,被追踪对象在不同的场景下对应有不同的上报周期,以满足用户对于掌握对象的位置以及活动轨迹的需求。示例性地,参见3,表3示出了类型为“行李箱”的对象在不同场景下的上报周期。In the embodiment of the present application, the tracked object corresponds to different reporting periods in different scenarios, so as to meet the user's needs for grasping the location and activity track of the object. Exemplarily, referring to 3, Table 3 shows the reporting period of objects of the type "luggage" in different scenarios.
场景Scenes 上报周期Reporting period
家里场景Home scene 1小时1 hour
飞行场景Flying scene 无需上报位置信息,上报周期趋近于无限大No need to report location information, and the reporting cycle tends to be infinite
机场场景Airport scene 5分钟5 minutes
出租车场景Taxi scene 10分钟10 minutes
酒店场景Hotel scene 0.5小时0.5 hour
表3类型为“行李箱”的对象在不同场景下的上报周期Table 3 The reporting cycle of objects of type "luggage" in different scenarios
可理解的,不限于表3所示的“行李箱”,其他类型的对象在其对应的场景下也有不同的上报周期。例如,第一设备100追踪“宠物”类型的对象(例如宠物狗)时,当宠物狗处于家里场景时,上报周期可以为60分钟;当宠物狗处于遛狗场景时,上报周期可以为5分钟;当宠物狗处于其他场景时,上报周期可以为30分钟。又例如,第一设备100追踪“儿童”类型的对象时,当儿童处于上学/放学场景时,上报周期可以为1分钟;当儿童处于家里场景或学校场景时,上报周期可以为60分钟;当儿童处于游玩场景时,上报周期可以为30分钟。It is understandable that it is not limited to the "luggage box" shown in Table 3. Other types of objects also have different reporting periods in their corresponding scenarios. For example, when the first device 100 tracks an object of the "pet" type (such as a pet dog), when the pet dog is in a home scene, the reporting period can be 60 minutes; when the pet dog is in a dog walking scene, the reporting period can be 5 minutes ; When the pet dog is in other scenes, the reporting period can be 30 minutes. For another example, when the first device 100 tracks objects of the “child” type, when the child is in a school/school scene, the reporting period may be 1 minute; when the child is in a home scene or school scene, the reporting period may be 60 minutes; When children are in a play scene, the reporting period can be 30 minutes.
在本申请实施例中,第一设备100可以获知当前追踪的对象在不同场景下的上报周期。第一设备100获知当前追踪的对象在不同场景下的上报周期的方式可包括以下任意一种:In the embodiment of the present application, the first device 100 can learn the reporting period of the currently tracked object in different scenarios. The method for the first device 100 to learn the reporting period of the currently tracked object in different scenarios may include any of the following:
1.在一些实施例中,该对象在不同场景下的上报周期可以根据经验数据预先设置,例如可以由研发人员通过调研等方式确定该对象合适于不同场景的上报周期,并将其预置在第一设备100中。1. In some embodiments, the reporting period of the object in different scenarios can be preset based on empirical data. For example, R&D personnel can determine that the object is suitable for the reporting period of different scenarios through investigations, etc., and preset it in The first device 100.
当第一设备100所追踪对象的类型通过上述第1种方式在出厂时默认设置时,第一设备100可以预先存储该类型的对象在不同场景下的上报周期。例如,当第一设备100在出厂时默认设置了追踪对象的类型为“行李箱”时,第一设备100可以预先存储有类型为“行李箱”的对象在不同场景下的上报周期。When the type of the object tracked by the first device 100 is set by default at the factory through the first method described above, the first device 100 may pre-store the reporting period of the object of this type in different scenarios. For example, when the first device 100 sets the tracking object type as "luggage" by default at the factory, the first device 100 may pre-store the reporting periods of objects of the type "luggage" in different scenarios.
当第一设备100所追踪对象的类型通过上述第2种方式由用户设置时,即第一设备100所追踪对象的类型不确定时,第一设备100可以预先存储多个不同类型的对象分别在不同场景下的上报周期。例如,第一设备100可以预先存储有“行李箱”、“宠物”、“家庭成员”等多个类型的对象分别在不同场景下的上报周期,在用户设置第一设备100所追踪对象的类型之后,第一设备100可以从预先存储的多个类型的对象对应的上报周期中查找到和该第一设备100所追踪对象在不同场景下的上报周期。When the type of the object tracked by the first device 100 is set by the user through the above-mentioned second method, that is, when the type of the object tracked by the first device 100 is uncertain, the first device 100 may pre-store multiple objects of different types in The reporting period in different scenarios. For example, the first device 100 may pre-store the reporting periods of multiple types of objects such as "luggage", "pets", and "family members" in different scenarios, and the user sets the types of objects tracked by the first device 100 After that, the first device 100 may find the reporting periods corresponding to the objects tracked by the first device 100 in different scenarios from the reporting periods corresponding to multiple types of objects stored in advance.
2.在另一些实施例中,该对象在不同场景下的上报周期可以由用户根据需求进行设置。2. In other embodiments, the reporting period of the object in different scenarios can be set by the user according to requirements.
具体的,第二设备200可以在显示屏上提供用于设置该对象在不同场景下的上报周期的用户界面。用户可以在该用户界面上设置该对象在不同场景下的上报周期。第二设备200可以将用户设置的该对象在不同场景下的上报周期发送给云服务器300,并由云服务器300将该对象在不同场景下的上报周期发送给第一设备100。Specifically, the second device 200 may provide a user interface on the display screen for setting the reporting period of the object in different scenarios. The user can set the reporting period of the object in different scenarios on the user interface. The second device 200 may send the report period of the object in different scenarios set by the user to the cloud server 300, and the cloud server 300 may send the report period of the object in different scenarios to the first device 100.
步骤S104、第一设备100使用和被追踪对象当前所处的场景相对应的上报周期上报位置信息给云服务器300,该位置信息为第一设备100获取到的实时位置信息。Step S104: The first device 100 uses the reporting period corresponding to the scene where the tracked object is currently located to report location information to the cloud server 300, where the location information is real-time location information obtained by the first device 100.
在步骤S103中,第一设备100可以使用和步骤S103中确定的当前所处的场景相对应的上报周期上报位置信息。上报周期是指第一设备100每2次上报位置信息的间隔。举例说明,第一设备100确定追踪的行李箱当前处于“机场场景”时,可以每5分钟上报1次位置信息。这里,第一设备100获取位置信息的方式可参照前文相关描述,这里不再赘述。In step S103, the first device 100 may use the reporting period corresponding to the current scene determined in step S103 to report the location information. The reporting period refers to the interval at which the first device 100 reports location information every 2 times. For example, when the first device 100 determines that the tracked suitcase is currently in the "airport scene", it may report the location information once every 5 minutes. Here, the manner in which the first device 100 obtains the location information can refer to the previous related description, and it will not be repeated here.
在本申请实施例中,第一设备100可以采用移动通信模块提供的无线通信解决方案上报位置信息给云服务器300。即,第一设备100可以通过蜂窝网络(例如2G/3G/4G/5G、NB-IoT等)上报位置信息给云服务器300。具体的,当第一设备100需要上报位置信息时,第一设备100可以使用蜂窝网络将第一设备100实时获取到的位置信息上报给云服务器300。第一设备100实时获取到的位置信息可以是指最近一次获取到的位置信息,也可以是指电子设备100在需要上报位置信息之前(例如1s之前)或之时获取到的位置信息,本申请对此不做限制。可理解的,本申请实施例提及的需要上报位置信息时是指第一设备100的上报周期到来时。In the embodiment of the present application, the first device 100 may use a wireless communication solution provided by a mobile communication module to report location information to the cloud server 300. That is, the first device 100 may report location information to the cloud server 300 through a cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.). Specifically, when the first device 100 needs to report location information, the first device 100 may use the cellular network to report the location information obtained by the first device 100 in real time to the cloud server 300. The real-time location information acquired by the first device 100 may refer to the location information acquired last time, or it may refer to the location information acquired by the electronic device 100 before (for example, 1 second before) or when the location information needs to be reported. This application There is no restriction on this. It is understandable that the time when location information needs to be reported in the embodiment of the present application refers to when the reporting period of the first device 100 arrives.
第一设备100的移动通信模块提供NB-IoT的无线通信解决方案时,在一种可能的实施方式中,第一设备100还可以结合在NB-IoT下的省电模式(power saving mode,PSM)来上报位置信息。具体的,基于NB-IoT工作的设备工作时可以处于PSM,在PSM下,第一设备100关闭收发无线信号的功能,不监听核心网侧的寻呼,无法接收下行数据,消耗的功率很低。具体的,第一设备100可以在不需要上报位置信息时启动PSM;在需要上报位置信息时,若第一设备100处于PSM,则启动非PSM,即主动唤醒第一设备100,并通过NB-IoT将第一设备100最新获取到的位置信息上报给云服务器300。第一设备100的非PSM可包括连接(connected)态和空闲(idle)态。这里,在上报周期到来时,第一设备100需要上报位置信息。也就是说,第一设备100可以在上报位置信息时启动非省电模式,在不上报位置信息时启动省电模式。When the mobile communication module of the first device 100 provides the NB-IoT wireless communication solution, in a possible implementation manner, the first device 100 may also be combined with the power saving mode (PSM) under NB-IoT. ) To report location information. Specifically, a device based on NB-IoT can be in PSM when working. Under PSM, the first device 100 disables the function of sending and receiving wireless signals, does not monitor the paging on the core network side, cannot receive downlink data, and consumes very low power. . Specifically, the first device 100 can start PSM when it does not need to report location information; when it needs to report location information, if the first device 100 is in PSM, then start non-PSM, that is, actively wake up the first device 100 and pass NB- The IoT reports the position information newly acquired by the first device 100 to the cloud server 300. The non-PSM of the first device 100 may include a connected (connected) state and an idle (idle) state. Here, when the reporting period arrives, the first device 100 needs to report location information. That is, the first device 100 may activate the non-power saving mode when reporting location information, and activate the power saving mode when not reporting location information.
结合第一设备100在NB-IoT下的PSM来上报位置信息,可避免在通信层面浪费数据流量和电量,可以充分利用设备在NB-IoT下的PSM达到省电的效果。Combining the PSM of the first device 100 under NB-IoT to report location information can avoid wasting data traffic and power at the communication level, and can make full use of the PSM of the device under NB-IoT to achieve power saving effects.
通过图6所示的方法,第一设备可以根据当前所处的场景自主调整上报周期,可以适应于当前场景并且按照实际需求上报位置信息,既能满足追踪对象的需求,又能节省功耗。With the method shown in FIG. 6, the first device can independently adjust the reporting period according to the current scene, adapt to the current scene and report location information according to actual needs, which can meet the needs of tracking objects and save power consumption.
在本申请实施例中,可以将步骤S102中第一设备100根据场景数据确定的被追踪对象处于的场景称为第一场景,将在步骤S103中确定的和当前所处的场景相对应的上报周期称为第一上报周期。In the embodiment of the present application, the scene in which the tracked object is determined by the first device 100 according to the scene data in step S102 may be referred to as the first scene, and the scene determined in step S103 corresponding to the current scene is reported The period is called the first reporting period.
在一些实施例中,若第一设备100/被追踪对象所处的地理位置或者环境有所变化,则第一设备100可以获取到变化后的场景数据,第一设备100可以再次执行上述步骤S101-S104。在本申请实施例中,可以将第一设备根据变化后的场景数据确定的被追踪对象所处的场景称为第二场景,将和该第二场景相对应的上报周期称为第二上报周期。In some embodiments, if the geographic location or environment of the first device 100/tracked object changes, the first device 100 may obtain the changed scene data, and the first device 100 may perform step S101 again. -S104. In the embodiment of the present application, the scene where the tracked object is determined by the first device according to the changed scene data may be called the second scene, and the reporting period corresponding to the second scene may be called the second reporting period .
在一种具体的实施方式中,若被追踪对象在第一场景中的运动速度大于在第二场景中的运动速度,则第一上报周期小于第二上报周期。在另一种具体的实施方式中,若第一场景为安全场景,第二场景为非安全场景,则第一上报周期大于第二上报周期。这样,可以满足用户对于掌握被追踪对象的位置及活动轨迹的需求。In a specific implementation, if the movement speed of the tracked object in the first scene is greater than the movement speed in the second scene, the first reporting period is less than the second reporting period. In another specific implementation manner, if the first scene is a safe scene and the second scene is a non-safe scene, the first reporting period is greater than the second reporting period. In this way, the user's needs for grasping the location and activity trajectory of the tracked object can be met.
结合图6所示的第一设备100根据所处场景自适应确定上报周期并上报位置信息的方法,在一些实施例中,第一设备100根据对应的上报周期上报位置信息时,还可以考虑第一设备100的运动情况。例如,第一设备100的上报周期到来时,第一设备100若在预设时间内没有运动,则可以不上报位置信息。也就是说,当第一设备100长时间不动时,即使上报周期到来时,也可以不上报位置信息,可以节省功耗。这里,第一设备100可以通过加速度传感器170C、陀螺仪传感器170A、振动传感器170F等传感器检测在预设时间内是否运动。With reference to the method in which the first device 100 adaptively determines the reporting period and reports location information according to the scenario shown in FIG. 6, in some embodiments, the first device 100 may also consider the first device 100 when reporting location information according to the corresponding reporting period. The movement of a device 100. For example, when the reporting period of the first device 100 arrives, if the first device 100 does not move within the preset time, it may not report the location information. That is, when the first device 100 does not move for a long time, even when the reporting period comes, it may not report the location information, which can save power consumption. Here, the first device 100 may detect whether it moves within a preset time through sensors such as the acceleration sensor 170C, the gyro sensor 170A, and the vibration sensor 170F.
结合图6所示的第一设备100根据所处场景自适应确定上报周期并上报位置信息的方法,在一些实施例中,第一设备100还可以结合其他的一些情况来调整上报周期,下面详细描述2种可能的调整方式:With reference to the method in which the first device 100 adaptively determines the reporting period and reporting location information according to the scenario shown in FIG. 6, in some embodiments, the first device 100 may also adjust the reporting period in combination with other situations, as detailed below Describe 2 possible adjustment methods:
1.第一设备100处于极端情形时,调整上报周期。1. When the first device 100 is in an extreme situation, adjust the reporting period.
在一些实施例中,第一设备100遭遇到猛烈撞击时,可能处于危险情形,第一设备100可以将上报周期缩短,例如将上报周期调整为5秒,使得用户可以尽快获取被追踪对象的位置。可理解的,当第一设备100的无线通信模块提供NB-IoT的无线通信解决方案时,第一设备100遭遇到猛烈撞击时若处于PSM,则可以立即启动非PSM,即唤醒第一设备100,并通过NB-IoT将第一设备100最新获取到的位置信息上报给云服务器300。第一设备100主动启动非PSM的方式可以包括:第一设备100主动向核心网侧发送上行数据。In some embodiments, when the first device 100 encounters a violent impact, it may be in a dangerous situation. The first device 100 can shorten the reporting period, for example, adjust the reporting period to 5 seconds, so that the user can obtain the location of the tracked object as soon as possible . It is understandable that when the wireless communication module of the first device 100 provides an NB-IoT wireless communication solution, if the first device 100 is in the PSM when it encounters a severe impact, it can immediately start the non-PSM, that is, wake up the first device 100 , And report the latest location information acquired by the first device 100 to the cloud server 300 through NB-IoT. The manner in which the first device 100 actively starts the non-PSM may include: the first device 100 actively sends uplink data to the core network side.
这里,第一设备100可以通过加速度传感器170C、振动传感器170F中的一个或多个检测是否遭遇到猛烈撞击。Here, the first device 100 may detect whether a severe impact is encountered through one or more of the acceleration sensor 170C and the vibration sensor 170F.
2.用户发出指令指示第一设备100上报位置信息时,第一设备100根据该指令调整上报周期。2. When the user issues an instruction to instruct the first device 100 to report location information, the first device 100 adjusts the reporting cycle according to the instruction.
在一些实施例中,图6所示的方法还可包括:第一设备100根据指令调整上报周期。该第一设备100根据指令调整上报周期的过程可包括如下步骤:In some embodiments, the method shown in FIG. 6 may further include: the first device 100 adjusts the reporting period according to the instruction. The process of the first device 100 adjusting the reporting period according to the instruction may include the following steps:
步骤1:第二设备200根据输入的用户操作,向云服务器300发送第一指令。Step 1: The second device 200 sends a first instruction to the cloud server 300 according to the input user operation.
示例性地,参见图5的5d,其示出了第二设备200的关联用户和第一设备100建立了从属关系,并且第一设备100工作一段时间(例如1小时)之后,第二设备200显示的用户界面50。该用户界面50可以由第二设备200响应于输入的用户操作而显示,该用户操作可以是图5的5c所示的相关信息108中第一设备100追踪的对象的图片或第一设备100的名称接收到的用户操作(例如点击操作)。Exemplarily, referring to 5d of FIG. 5, it shows that the associated user of the second device 200 has established an affiliation with the first device 100, and after the first device 100 works for a period of time (for example, 1 hour), the second device 200 Displayed user interface 50. The user interface 50 may be displayed by the second device 200 in response to an input user operation. The user operation may be a picture of an object tracked by the first device 100 in the related information 108 shown in 5c of FIG. User actions (such as click actions) received by the name.
该用户界面50用于展示第一设备100追踪对象的详细情况。如5d所示,该用户界面50可包括:返回上一级控件501、第一设备100的相关信息502、第一设备100上报的位置信息503、查看历史轨迹控件504和紧急查找控件505。其中:The user interface 50 is used to display the details of the tracking object of the first device 100. As shown in 5d, the user interface 50 may include: return to the upper level control 501, related information 502 of the first device 100, position information 503 reported by the first device 100, view history track control 504, and emergency search control 505. among them:
返回上一级控件501可用于接收输入的用户操作(例如点击操作),第二设备200可响应于该用户操作再次显示如5c所示的用户界面10。Back to the upper level control 501 can be used to receive an input user operation (for example, a click operation), and the second device 200 can display the user interface 10 shown in 5c again in response to the user operation.
第一设备100的相关信息502和用户界面10中所示的第一设备100的相关信息108相同,可参照相关描述。The related information 502 of the first device 100 is the same as the related information 108 of the first device 100 shown in the user interface 10, and the related description may be referred to.
第一设备100上报的位置信息503可包括第一设备上报的位置信息以及上报该位置信息的时间。该位置信息可以是第一设备100最近一次上报的。第一设备100上报该位置信息的方法可参照前文相关实施例(例如图6所示的方法实施例)的描述。The location information 503 reported by the first device 100 may include the location information reported by the first device and the time when the location information was reported. The location information may be the last reported by the first device 100. For the method for the first device 100 to report the location information, reference may be made to the description of the foregoing related embodiments (for example, the method embodiment shown in FIG. 6).
查看历史轨迹控件504可用于接收输入的用户操作(例如点击操作),第二设备200可响应于该用户操作显示第一设备100的历史轨迹。The viewing history track control 504 can be used to receive an input user operation (for example, a click operation), and the second device 200 can display the history track of the first device 100 in response to the user operation.
紧急查找控件505可用于接收输入的用户操作(例如点击操作),第二设备200可响应该用户操作向云服务器300发送第一指令。该第一指令用于请求云服务器300通知第一设备100尽快上报位置信息。The emergency search control 505 can be used to receive an input user operation (for example, a click operation), and the second device 200 can send a first instruction to the cloud server 300 in response to the user operation. The first instruction is used to request the cloud server 300 to notify the first device 100 to report location information as soon as possible.
步骤2:云服务器300接收到该第一指令,并检测第一设备100是否连接到云服务器300。Step 2: The cloud server 300 receives the first instruction and detects whether the first device 100 is connected to the cloud server 300.
在一些实施例中,第一设备100可能连接到核心网,但是还没有和云服务器300建立连接。第一设备100和云服务器300没有建立连接时,云服务器300和第一设备100之间不能通信。In some embodiments, the first device 100 may be connected to the core network, but has not yet established a connection with the cloud server 300. When the first device 100 and the cloud server 300 are not connected, the cloud server 300 and the first device 100 cannot communicate.
步骤3:当第一设备100连接到云服务器300时,云服务器300可以基于该第一指令,通过蜂窝网络(例如2G/3G/4G/5G、NB-IoT等)向第一设备100发送第二指令,该第二指令用于指示第一设备100尽快上报位置信息。Step 3: When the first device 100 is connected to the cloud server 300, the cloud server 300 may send the first device 100 through the cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.) based on the first instruction. The second instruction is used to instruct the first device 100 to report location information as soon as possible.
当第一设备100没有连接到云服务器300时,云服务器300通过核心网指示第一设备100和云服务器300建立连接。第一设备100接收到核心网的指示后,可使用基于用户数据包协议(user datagram protocol,UDP)的受限制应用协议(constrained application protocol,CoAP),即使用CoAP over UDP主动和云服务器300建立连接。在第一设备100连接到云服务器300后,云服务器300可以基于该第一指令,通过蜂窝网络(例如2G/3G/4G/5G、NB-IoT等)向第一设备100发送第二指令,该第二指令用于指示第一设备100尽快上报位置信息。When the first device 100 is not connected to the cloud server 300, the cloud server 300 instructs the first device 100 to establish a connection with the cloud server 300 through the core network. After the first device 100 receives the instruction from the core network, it can use the restricted application protocol (CoAP) based on the user datagram protocol (UDP), that is, use CoAP over UDP to actively establish with the cloud server 300 connection. After the first device 100 is connected to the cloud server 300, the cloud server 300 may send a second instruction to the first device 100 through a cellular network (for example, 2G/3G/4G/5G, NB-IoT, etc.) based on the first instruction. The second instruction is used to instruct the first device 100 to report location information as soon as possible.
步骤4:第一设备100在接收到云服务器300发送的第二指令,缩短上报周期,以更快的频率上报位置信息。例如第一设备100可以将上报周期调整为5秒,使得用户可以尽快获取被追踪对象的位置。Step 4: When the first device 100 receives the second instruction sent by the cloud server 300, the reporting period is shortened, and the location information is reported at a faster frequency. For example, the first device 100 may adjust the reporting period to 5 seconds, so that the user can obtain the location of the tracked object as soon as possible.
在一些实施例中,第一设备100通过NB-IoT和云服务器300通信,该第一设备100可能处于PSM,也可能处于非PSM。在云服务器300向第一设备100发送第二指令时,若第一设备100处于非PSM,则第一设备可以立即接收到该第二指令,并根据该第二指令调整上报周期。在云服务器300向第一设备100发送第二指令时,若第一设备100处于PSM,则第一设备100需要在退出PSM后,才能接收到该第二指令并根据该第二指令调整上报周期。第一设备100可以在以下两种情况下退出PSM:第一设备100主动向核心网侧发送上行数据,或者,第一设备100的跟踪区更新(tracking area update,TAU)周期结束。In some embodiments, the first device 100 communicates with the cloud server 300 through NB-IoT, and the first device 100 may be in PSM or non-PSM. When the cloud server 300 sends the second instruction to the first device 100, if the first device 100 is in a non-PSM, the first device can immediately receive the second instruction and adjust the reporting cycle according to the second instruction. When the cloud server 300 sends the second instruction to the first device 100, if the first device 100 is in the PSM, the first device 100 needs to exit the PSM before it can receive the second instruction and adjust the reporting cycle according to the second instruction . The first device 100 can exit the PSM in the following two situations: the first device 100 actively sends uplink data to the core network side, or the tracking area update (tracking area update, TAU) period of the first device 100 ends.
在一些实施例中,该第二指令具有时效性。即,第一设备100接收到第二指令并根据第二指令调整上报周期后,可以仅在预设时间内根据该调整后的上报周期上报位置信息。在该预设时间之后,第一设备100可以按照前文实施例所描述的调整上报周期的方法(例如图6所示的方法)调整上报周期。也就是说,第一设备100在接收到第二指令的预设时间之内,使用缩短后的上报周期上报位置信息给云服务器300;在接收到第二指令的预设时间之后,使用和被追踪对象当前处在的场景相对应的上报周期上报位置信息给云服务器300。该预设时间可以预先设置。在本申请实施例中,可以将该预设时间称为第一时长。In some embodiments, the second instruction is time-sensitive. That is, after the first device 100 receives the second instruction and adjusts the reporting period according to the second instruction, it may report the location information according to the adjusted reporting period only within a preset time. After the preset time, the first device 100 may adjust the reporting period according to the method for adjusting the reporting period described in the previous embodiment (for example, the method shown in FIG. 6). That is, the first device 100 uses the shortened reporting period to report the location information to the cloud server 300 within the preset time of receiving the second instruction; after receiving the second instruction for the preset time, it uses and is The location information is reported to the cloud server 300 in the reporting period corresponding to the scene where the tracking object is currently located. The preset time can be preset. In the embodiment of the present application, the preset time may be referred to as the first duration.
通过上述第2种由用户主动干预第一设备的上报周期的方式,在一些紧急场景下,用户可以迅速获知被追踪对象的当前位置。Through the second method in which the user actively intervenes in the reporting period of the first device, in some emergency scenarios, the user can quickly learn the current location of the tracked object.
在本申请实施例中,第一设备100将位置信息上报给云服务器300之后,云服务器300可以获知第一设备100当前的位置信息。云服务器300可以根据以下任意一种策略来确定是否将接收到的第一设备100的位置信息同步发送给第二设备200:1.云服务器300接收到第一设备100发送的位置信息,即将该位置信息发送给第二设备200。2.云服务器300接收到第一设备100发送的位置信息,判断该位置信息是否在预设区域内,若是,则将该位置信息发送给第二设备200。其中,预设区域可以由用户自主设置。可理解的,第2种策略类似地理围栏,当第一设备100追踪的对象位于预设区域时,第二设备200才能收到更新的位置信息。In the embodiment of the present application, after the first device 100 reports the location information to the cloud server 300, the cloud server 300 can learn the current location information of the first device 100. The cloud server 300 may determine whether to synchronously send the received location information of the first device 100 to the second device 200 according to any one of the following strategies: 1. The cloud server 300 receives the location information sent by the first device 100, that is, The location information is sent to the second device 200. 2. The cloud server 300 receives the location information sent by the first device 100, determines whether the location information is within a preset area, and if so, sends the location information to the second device 200. Among them, the preset area can be set independently by the user. It is understandable that the second strategy is similar to geofencing. When the object tracked by the first device 100 is located in the preset area, the second device 200 can receive the updated location information.
第二设备200接收到云服务器300发送的位置信息后,可以提示用户当前第一设备100所追踪对象的位置有更新。第二设备200提示用户的方式可包括以下一种或多种:After receiving the location information sent by the cloud server 300, the second device 200 may prompt the user that the current location of the object tracked by the first device 100 is updated. The way for the second device 200 to prompt the user may include one or more of the following:
1、第二设备200接收到云服务器300发送的位置信息后,可以通过用于管理第一设备的应用提供的用户界面显示该位置信息,以使得掌控被追踪对象所在的位置。示例性地,参见图5的5c及5d,在第一设备100上报位置信息之后,用户可以在第二设备提供的如5c所示的用户界面10上查看第一设备100的相关信息108,以及,如5d所示的位置信息503中查看到第一设备100最近一次上报的位置信息,从而掌握被追踪对象所在的位置。1. After receiving the location information sent by the cloud server 300, the second device 200 can display the location information through the user interface provided by the application for managing the first device, so as to control the location of the tracked object. Exemplarily, referring to 5c and 5d of FIG. 5, after the first device 100 reports the location information, the user can view the related information 108 of the first device 100 on the user interface 10 shown in 5c provided by the second device, and In the position information 503 shown in 5d, the last position information reported by the first device 100 is checked, so as to grasp the position of the tracked object.
在一些实施例中,第二设备200还可以根据第一设备100近期上报的一个或多个位置信息展示第一设备100的活动轨迹。示例性地,用户还可以点击5d所示用户界面50中的查看历史轨迹控件504,响应于该点击操作,第二设备200可以显示被追踪对象的活动轨迹。In some embodiments, the second device 200 may also display the activity track of the first device 100 according to one or more location information recently reported by the first device 100. Exemplarily, the user can also click the view history track control 504 in the user interface 50 shown in 5d, and in response to the click operation, the second device 200 can display the activity track of the tracked object.
2、第二设备200接收到云服务器300发送的位置信息后,可以调用第二设备200的通知管理器,在第二设备200的显示屏顶部显示提示窗,该提示窗包括该第二设备200接收到的位置信息。第二设备200的显示屏顶部显示的提示窗可以短暂停留后自动消失,无需用户交互。2. After receiving the location information sent by the cloud server 300, the second device 200 can call the notification manager of the second device 200 to display a prompt window on the top of the display screen of the second device 200, the prompt window including the second device 200 Location information received. The prompt window displayed on the top of the display screen of the second device 200 can automatically disappear after a short stay without user interaction.
不限于上述2种提示方式,第二设备200接收到云服务器300发送的位置信息后,还可以通过发出提示音、振动、指示灯闪烁灯方式提示用户,本申请实施例不做限制。It is not limited to the above two prompting methods. After receiving the location information sent by the cloud server 300, the second device 200 can also prompt the user by emitting a prompt sound, vibrating, and flashing the indicator light, which is not limited in this embodiment of the application.
上述详细描述了本申请实施例提供的设备上报位置信息的方法,下面结合本申请的方法以及通信系统,描述各个设备在本申请中的功能。示例性地,参见图7,图7示出了本申请实施例中各个设备的主要功能。其中:The foregoing describes in detail the method for the device to report location information provided by the embodiment of the present application. The following describes the function of each device in the present application in conjunction with the method and the communication system of the present application. Exemplarily, refer to FIG. 7, which shows the main functions of each device in the embodiments of the present application. among them:
第一设备100的传感器和无线通信模块可用于获取第一设备100的场景数据,获取方式可参照前文相关描述。第一设备100可存储有场景识别算法,第一设备可将获取到的场景数据作为该场景识别算法的输入,以识别第一设备100所处的场景。The sensor and wireless communication module of the first device 100 can be used to acquire the scene data of the first device 100, and the acquisition method can refer to the relevant description above. The first device 100 may store a scene recognition algorithm, and the first device may use the acquired scene data as an input of the scene recognition algorithm to identify the scene in which the first device 100 is located.
第一设备100的处理器可用于根据第一设备100所处的场景自适应调整上报周期。在一些实施例中,第一设备100通过NB-IOT和云服务器300通信时,处理器还可调整第一设备100所处的模式(PSM或非PSM),调整方式可参照前文相关描述。The processor of the first device 100 may be configured to adaptively adjust the reporting period according to the scene in which the first device 100 is located. In some embodiments, when the first device 100 communicates with the cloud server 300 through NB-IOT, the processor may also adjust the mode (PSM or non-PSM) of the first device 100, and the adjustment method may refer to the relevant description above.
第一设备100的传感器和无线通信模块还可用于获取第一设备100的位置信息,获取方式可参照前文相关描述。The sensor and wireless communication module of the first device 100 can also be used to obtain the location information of the first device 100, and the obtaining method can refer to the relevant description above.
第一设备100的移动通信模块还用于将获取到的位置信息按照上报周期发送给云服务器300。The mobile communication module of the first device 100 is further configured to send the acquired location information to the cloud server 300 according to the reporting cycle.
第一设备100还可以被放置在配件中使用,配件类型可参照前文相关描述。The first device 100 can also be placed in an accessory for use, and the type of accessory can refer to the previous description.
云服务器300可提供电子围栏云服务、算法训练及更新、位置云服务等。其中,算法训 练及更新可参照前文相关描述。位置云服务是指云服务器300可以接收第一设备100上报的位置信息,为第二设备100提供查询位置或历史轨迹的服务。电子围栏云服务是指云服务器300接收到第一设备100发送的位置信息后,可判断该位置信息是否在预设区域内,若是,则将该位置信息发送给第二设备200。可理解的,图7所示的云服务器300提供的多种服务不一定由一个云服务器提供,也可以分别由多个云服务器提供。The cloud server 300 may provide electronic fence cloud services, algorithm training and updating, location cloud services, and the like. Among them, the algorithm training and update can refer to the previous description. The location cloud service means that the cloud server 300 can receive the location information reported by the first device 100 and provide the second device 100 with a service of querying the location or historical track. The electronic fence cloud service means that after the cloud server 300 receives the location information sent by the first device 100, it can determine whether the location information is within a preset area, and if so, it sends the location information to the second device 200. It is understandable that the various services provided by the cloud server 300 shown in FIG. 7 are not necessarily provided by one cloud server, but may also be provided by multiple cloud servers.
第二设备200可提供设备场景绑定、历史轨迹查看、紧急查找等功能,具体可参照前文相关描述,在此不赘述。The second device 200 can provide functions such as device scene binding, historical trajectory viewing, emergency search, etc. For details, please refer to the relevant description above, which will not be repeated here.
由上述方法实施例以及人机交互实施例可知,实施本申请实施例提供的设备上报位置信息的方法,第一设备100可以用于追踪不同类型的对象,适用性广。第一设备100在追踪对象时,可以根据当前所处的场景调整上报周期,按照实际需求上报位置信息,既能满足追踪对象的需求,又能够适用于当前的应用场景进行低功耗工作,提高待机时长。It can be seen from the foregoing method embodiments and the human-computer interaction embodiments that the first device 100 can be used to track different types of objects and has wide applicability by implementing the method for reporting location information by a device provided in an embodiment of the present application. When tracking an object, the first device 100 can adjust the reporting cycle according to the current scene, and report location information according to actual needs. This can not only meet the needs of tracking objects, but also be suitable for current application scenarios to perform low-power work and improve Standby time.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in this application are 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, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In short, the above are only examples of the technical solution of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (28)

  1. 一种设备上报位置信息的方法,其特征在于,包括:A method for equipment to report location information, characterized in that it includes:
    第一设备获取场景数据;所述第一设备用于追踪对象,所述第一设备和所述对象之间的距离小于第一值;所述场景数据反映了所述对象所处的地理位置或者环境;The first device acquires scene data; the first device is used to track an object, and the distance between the first device and the object is less than a first value; the scene data reflects the geographic location of the object or surroundings;
    所述第一设备根据所述场景数据确定所述对象当前处在第一场景;Determining, by the first device, that the object is currently in the first scene according to the scene data;
    所述第一设备确定与所述第一场景相对应的第一上报周期;Determining, by the first device, a first reporting period corresponding to the first scenario;
    所述第一设备使用所述第一上报周期上报位置信息给云服务器;所述位置信息为所述第一设备实时的位置信息。The first device uses the first reporting period to report location information to the cloud server; the location information is real-time location information of the first device.
  2. 根据权利要求1所述的方法,其特征在于,所述第一设备追踪的所述对象的类型是由用户设置的,或者,所述第一设备追踪的所述对象的类型是由所述第一设备默认设置的。The method according to claim 1, wherein the type of the object tracked by the first device is set by a user, or the type of the object tracked by the first device is set by the first device. One device is set by default.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    所述第一设备根据变化后的所述场景数据确定所述对象处在第二场景;Determining, by the first device, that the object is in the second scene according to the changed scene data;
    所述第一设备确定与所述第二场景相对应的第二上报周期;Determining, by the first device, a second reporting period corresponding to the second scenario;
    所述第一设备使用所述第二上报周期上报位置信息给所述云服务器。The first device uses the second reporting period to report location information to the cloud server.
  4. 根据权利要求3所述的方法,其特征在于,The method according to claim 3, wherein:
    若被追踪的所述对象在所述第一场景中的运动速度大于在所述第二场景中的运动速度,则所述第一上报周期小于所述第二上报周期;If the moving speed of the tracked object in the first scene is greater than the moving speed in the second scene, the first reporting period is less than the second reporting period;
    或者,or,
    若所述第一场景为安全场景,所述第二场景为非安全场景,则所述第一上报周期大于所述第二上报周期。If the first scene is a safe scene and the second scene is a non-safe scene, the first reporting period is greater than the second reporting period.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述第一设备接收到所述云服务器发送的指令,所述指令用于指示所述第一设备缩短上报周期;The first device receives an instruction sent by the cloud server, where the instruction is used to instruct the first device to shorten the reporting period;
    所述第一设备根据所述指令缩短上报周期,并使用缩短后的上报周期上报位置信息给所述云服务器。The first device shortens the reporting period according to the instruction, and uses the shortened reporting period to report location information to the cloud server.
  6. 根据权利要求5所述的方法,其特征在于,所述指令的时效性为第一时长;The method according to claim 5, wherein the timeliness of the instruction is the first duration;
    在所述第一设备接收到所述指令的第一时长之内,所述第一设备使用缩短后的上报周期上报位置信息给所述云服务器;Within the first time period after the first device receives the instruction, the first device uses the shortened reporting period to report location information to the cloud server;
    在所述第一设备接收到所述指令的第一时长之后,所述第一设备使用和所述对象当前处在的场景相对应的上报周期上报位置信息给所述云服务器。After the first device receives the instruction for the first duration, the first device uses a reporting period corresponding to the scene in which the object is currently located to report location information to the cloud server.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,The method according to any one of claims 1-6, characterized in that,
    若所述第一设备在第二时长内没有运动,则停止上报位置信息给所述云服务器;If the first device does not move within the second time period, stop reporting location information to the cloud server;
    或者,or,
    所述第一设备在遭受到猛烈撞击时,缩短上报周期,并使用缩短后的上报周期上报位置 信息给所述云服务器。When the first device is subjected to a violent impact, the reporting period is shortened, and the shortened reporting period is used to report the location information to the cloud server.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一设备获取场景数据之前,所述方法还包括:所述第一设备使用初始上报周期上报位置信息给所述云服务器。The method according to any one of claims 1-7, wherein before the first device obtains scene data, the method further comprises: the first device uses an initial reporting period to report location information to the cloud server.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述第一设备通过蜂窝网络上报所述位置信息给所述云服务器。The method according to any one of claims 1-8, wherein the first device reports the location information to the cloud server through a cellular network.
  10. 根据权利要求9所述的方法,其特征在于,所述蜂窝网络为窄带物联网;所述第一设备上报所述位置信息时启动非省电模式,在不上报所述位置信息时启动省电模式。The method according to claim 9, wherein the cellular network is a narrowband Internet of Things; the first device activates a non-power saving mode when reporting the location information, and activates power saving when the location information is not reported mode.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述第一设备根据所述场景数据确定所述对象当前处在第一场景,具体包括:所述第一设备使用机器学习算法分析所述场景数据,以确定所述对象当前处在第一场景。The method according to any one of claims 1-10, wherein the first device determines that the object is currently in the first scene according to the scene data, which specifically comprises: the first device uses machine learning The algorithm analyzes the scene data to determine that the object is currently in the first scene.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method of claim 11, wherein the method further comprises:
    所述第一设备将所述场景数据以及确定的所述第一场景发送给所述云服务器,所述场景数据以及确定的所述第一场景用于所述云服务器更新所述机器学习算法;The first device sends the scene data and the determined first scene to the cloud server, and the scene data and the determined first scene are used by the cloud server to update the machine learning algorithm;
    所述第一设备接收到所述云服务器发送的更新数据;The first device receives the update data sent by the cloud server;
    所述第一设备根据所述更新数据更新所述机器学习算法。The first device updates the machine learning algorithm according to the update data.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,The method according to any one of claims 1-12, wherein:
    所述场景数据包括以下一项或多项:所述第一设备获取到的运动速度、加速度、振动信号或所述位置信息;The scene data includes one or more of the following: motion speed, acceleration, vibration signal or the position information acquired by the first device;
    所述位置信息包括以下一项或多项:经纬度坐标、地理位置名称或海拔高度。The location information includes one or more of the following: latitude and longitude coordinates, geographic location name, or altitude.
  14. 一种设备,其特征在于,包括:一个或多个处理器、存储器和通信模块;A device, characterized by comprising: one or more processors, memories, and communication modules;
    所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述设备执行:The memory is coupled with the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the Equipment execution:
    获取场景数据;所述设备用于追踪对象,所述设备和所述对象之间的距离小于第一值;所述场景数据反映了所述对象所处的地理位置或者环境;Acquiring scene data; the device is used to track an object, and the distance between the device and the object is less than a first value; the scene data reflects the geographic location or environment where the object is located;
    根据所述场景数据确定所述对象当前处在第一场景;Determining, according to the scene data, that the object is currently in the first scene;
    确定与所述第一场景相对应的第一上报周期;Determine the first reporting period corresponding to the first scenario;
    通过所述通信模块,使用所述第一上报周期上报位置信息给云服务器;所述位置信息为所述设备实时的位置信息。Through the communication module, the location information is reported to the cloud server using the first reporting period; the location information is real-time location information of the device.
  15. 根据权利要求14所述的设备,其特征在于,所述设备追踪的所述对象的类型是由用户设置的,或者,所述设备追踪的所述对象的类型是由所述设备默认设置的。The device according to claim 14, wherein the type of the object tracked by the device is set by a user, or the type of the object tracked by the device is set by the device by default.
  16. 根据权利要求14或15所述的设备,其特征在于,所述一个或多个处理器还用于调用所述计算机指令以使得所述设备执行:The device according to claim 14 or 15, wherein the one or more processors are further configured to invoke the computer instructions to cause the device to execute:
    根据变化后的所述场景数据确定所述对象处在第二场景;Determining that the object is in the second scene according to the changed scene data;
    确定与所述第二场景相对应的第二上报周期;Determine a second reporting period corresponding to the second scenario;
    通过所述通信模块,使用所述第二上报周期上报位置信息给所述云服务器。The location information is reported to the cloud server through the communication module using the second reporting period.
  17. 根据权利要求16所述的设备,其特征在于,The device of claim 16, wherein:
    若被追踪的所述对象在所述第一场景中的运动速度大于在所述第二场景中的运动速度,则所述第一上报周期小于所述第二上报周期;If the moving speed of the tracked object in the first scene is greater than the moving speed in the second scene, the first reporting period is less than the second reporting period;
    或者,or,
    若所述第一场景为安全场景,所述第二场景为非安全场景,则所述第一上报周期大于所述第二上报周期。If the first scene is a safe scene and the second scene is a non-safe scene, the first reporting period is greater than the second reporting period.
  18. 根据权利要求14-17任一项所述的设备,其特征在于,所述一个或多个处理器还用于调用所述计算机指令以使得所述设备执行:The device according to any one of claims 14-17, wherein the one or more processors are further configured to call the computer instructions to cause the device to execute:
    通过所述通信模块接收到所述云服务器发送的指令,所述指令用于指示所述设备缩短上报周期;Receiving an instruction sent by the cloud server through the communication module, where the instruction is used to instruct the device to shorten the reporting period;
    所述设备根据所述指令缩短上报周期,并通过所述通信模块,使用缩短后的上报周期上报位置信息给所述云服务器。The device shortens the reporting period according to the instruction, and uses the shortened reporting period to report the location information to the cloud server through the communication module.
  19. 根据权利要求18所述的设备,其特征在于,所述指令的时效性为第一时长;The device according to claim 18, wherein the timeliness of the instruction is the first duration;
    在所述设备接收到所述指令的第一时长之内,通过所述通信模块使用缩短后的上报周期上报位置信息给所述云服务器;Within the first time period when the device receives the instruction, report the location information to the cloud server through the communication module using the shortened reporting period;
    在所述设备接收到所述指令的第一时长之后,通过所述通信模块使用和所述对象当前处在的场景相对应的上报周期上报位置信息给所述云服务器。After the device receives the instruction for the first duration, the communication module uses a reporting period corresponding to the scene in which the object is currently located to report the location information to the cloud server.
  20. 根据权利要求14-19任一项所述的设备,其特征在于,所述一个或多个处理器还用于调用所述计算机指令以使得所述设备执行:The device according to any one of claims 14-19, wherein the one or more processors are further configured to call the computer instructions to cause the device to execute:
    若所述设备在第二时长内没有运动,则停止上报位置信息给所述云服务器;If the device does not move within the second time period, stop reporting location information to the cloud server;
    或者,or,
    所述设备在遭受到猛烈撞击时,缩短上报周期,并通过所述通信模块使用缩短后的上报周期上报位置信息给所述云服务器。When the device is subjected to a violent impact, the reporting period is shortened, and the shortened reporting period is used through the communication module to report location information to the cloud server.
  21. 根据权利要求14-20任一项所述的设备,其特征在于,所述一个或多个处理器还用于调用所述计算机指令以使得所述设备执行:The device according to any one of claims 14-20, wherein the one or more processors are further configured to invoke the computer instructions to cause the device to execute:
    在获取所述场景数据之前,通过所述通信模块,使用初始上报周期上报位置信息给所述云服务器。Before acquiring the scene data, the communication module uses the initial reporting period to report location information to the cloud server.
  22. 根据权利要求14-21任一项所述的设备,其特征在于,所述通信模块为移动通信模块,所述设备通过蜂窝网络上报所述位置信息给所述云服务器。The device according to any one of claims 14-21, wherein the communication module is a mobile communication module, and the device reports the location information to the cloud server through a cellular network.
  23. 根据权利要求22所述的设备,其特征在于,所述蜂窝网络为窄带物联网;所述设备上报所述位置信息时启动非省电模式,在不上报所述位置信息时启动省电模式。The device according to claim 22, wherein the cellular network is a narrowband Internet of Things; when the device reports the location information, the non-power saving mode is activated, and the power saving mode is activated when the location information is not reported.
  24. 根据权利要求14-23任一项所述的设备,其特征在于,所述设备根据所述场景数据确定所述对象当前处在第一场景,具体包括:所述设备使用机器学习算法分析所述场景数据,以确定所述对象当前处在第一场景。The device according to any one of claims 14-23, wherein the device determines that the object is currently in the first scene according to the scene data, and specifically comprises: the device uses a machine learning algorithm to analyze the Scene data to determine that the object is currently in the first scene.
  25. 根据权利要求24所述的设备,其特征在于,所述一个或多个处理器还用于调用所述计算机指令以使得所述设备执行:The device according to claim 24, wherein the one or more processors are further configured to invoke the computer instructions to cause the device to execute:
    通过所述通信模块将所述场景数据以及确定的所述第一场景发送给所述云服务器,所述场景数据以及确定的所述第一场景用于所述云服务器更新所述机器学习算法;Sending the scene data and the determined first scene to the cloud server through the communication module, where the scene data and the determined first scene are used by the cloud server to update the machine learning algorithm;
    通过所述通信模块接收到所述云服务器发送的更新数据;Receiving the update data sent by the cloud server through the communication module;
    根据所述更新数据更新所述机器学习算法。The machine learning algorithm is updated according to the update data.
  26. 根据权利要求14-25任一项所述的设备,其特征在于,The device according to any one of claims 14-25, wherein:
    所述场景数据包括以下一项或多项:所述设备获取到的运动速度、加速度、振动信号或所述位置信息;The scene data includes one or more of the following: motion speed, acceleration, vibration signal or the position information acquired by the device;
    所述位置信息包括以下一项或多项:经纬度坐标、地理位置名称或海拔高度。The location information includes one or more of the following: latitude and longitude coordinates, geographic location name, or altitude.
  27. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任一项所述的方法。A computer program product containing instructions, wherein when the computer program product runs on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-13.
  28. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任一项所述的方法。A computer-readable storage medium, comprising instructions, characterized in that when the instructions run on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-13.
PCT/CN2020/078494 2019-03-15 2020-03-10 Method for reporting position information by device, and related apparatus WO2020187082A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910197407.0 2019-03-15
CN201910197407.0A CN110049445A (en) 2019-03-15 2019-03-15 The method and relevant apparatus of equipment reporting position information

Publications (1)

Publication Number Publication Date
WO2020187082A1 true WO2020187082A1 (en) 2020-09-24

Family

ID=67273735

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/078494 WO2020187082A1 (en) 2019-03-15 2020-03-10 Method for reporting position information by device, and related apparatus

Country Status (2)

Country Link
CN (1) CN110049445A (en)
WO (1) WO2020187082A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049445A (en) * 2019-03-15 2019-07-23 华为技术有限公司 The method and relevant apparatus of equipment reporting position information
CN112584319A (en) * 2019-09-30 2021-03-30 大唐移动通信设备有限公司 Position report period adjusting method, device, network equipment and terminal
CN110728823A (en) * 2019-10-09 2020-01-24 中兴健康科技有限公司 Path perception electronic fence system of low-power consumption round trip guardianship
CN110868473B (en) * 2019-11-20 2022-07-12 青岛海信日立空调系统有限公司 Household appliance
CN110822638B (en) * 2019-11-20 2022-04-05 青岛海信日立空调系统有限公司 Household appliance
CN110971255A (en) * 2019-11-29 2020-04-07 四川科道芯国智能技术股份有限公司 Wrist wearing equipment
CN111896979A (en) * 2020-08-07 2020-11-06 成都思晗科技股份有限公司 Positioning module and method for electric power tool
CN112036532A (en) * 2020-09-03 2020-12-04 成都思晗科技股份有限公司 Intelligent power safety tool management system and method
CN115002650A (en) * 2021-12-08 2022-09-02 丰疆智能(深圳)有限公司 Data transmission method, device and storage medium
CN114513753A (en) * 2022-01-28 2022-05-17 青岛海信移动通信技术股份有限公司 Terminal device, track monitoring method and storage medium
CN116258314A (en) * 2022-11-23 2023-06-13 东土科技(宜昌)有限公司 Scene management method and system for production workshop, electronic equipment and storage medium
CN116546104A (en) * 2023-06-27 2023-08-04 北京集度科技有限公司 Data reporting method, internet of things equipment, system, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140118202A (en) * 2013-03-28 2014-10-08 주식회사 앰투앰넷 Mobile terminal and location measurement method thereof
CN105353395A (en) * 2015-09-24 2016-02-24 广州视源电子科技股份有限公司 Method and device of regulation of report frequency of position information
CN106023540A (en) * 2016-05-20 2016-10-12 广州视源电子科技股份有限公司 Loss-preventive article prompting method and device based on loss preventive device
CN108156186A (en) * 2016-12-02 2018-06-12 中移(杭州)信息技术有限公司 A kind of information collecting method and device
CN108900976A (en) * 2018-07-10 2018-11-27 宇龙计算机通信科技(深圳)有限公司 A kind of location information report method and device
CN109392064A (en) * 2018-11-07 2019-02-26 深圳酷泰丰科技有限公司 Reduce method, system, equipment and the storage medium of positioning wearable device power consumption
CN110049445A (en) * 2019-03-15 2019-07-23 华为技术有限公司 The method and relevant apparatus of equipment reporting position information

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916938A (en) * 2014-01-27 2014-07-09 北京奇虎科技有限公司 Method, device and system for switching mode of portable positioning device into power saving mode
CN104066163B (en) * 2014-04-24 2017-05-03 深圳市研强物联技术有限公司 Power consumption saving device, mobile terminal and power consumption saving method
CN105338466B (en) * 2014-07-08 2019-08-27 华为软件技术有限公司 Location information acquisition method and equipment
CN107466006A (en) * 2016-06-02 2017-12-12 韩军 A kind of mobile terminal track following recording technique of adaptation mechanism
CN108605310B (en) * 2016-11-30 2021-02-12 华为技术有限公司 Method and device for adjusting positioning period
CN106792520B (en) * 2016-12-07 2020-07-28 朱策 Position information recording method and apparatus
CN106507311B (en) * 2016-12-13 2019-12-24 南京福盛建材有限公司 Positioning processing method and system
CN107197031A (en) * 2017-06-19 2017-09-22 深圳市盛路物联通讯技术有限公司 A kind of terminal unit status detection method and system applied to Internet of Things
CN107277774A (en) * 2017-07-17 2017-10-20 上海斐讯数据通信技术有限公司 A kind of monitoring method and system based on fence
CN108228714A (en) * 2017-12-01 2018-06-29 兰雨晴 High in the clouds manages system and its cloud management
CN108174347A (en) * 2017-12-27 2018-06-15 广州小毛球智能科技有限公司 A kind of pet positioning device energy consumption management method, pet positioning device and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140118202A (en) * 2013-03-28 2014-10-08 주식회사 앰투앰넷 Mobile terminal and location measurement method thereof
CN105353395A (en) * 2015-09-24 2016-02-24 广州视源电子科技股份有限公司 Method and device of regulation of report frequency of position information
CN106023540A (en) * 2016-05-20 2016-10-12 广州视源电子科技股份有限公司 Loss-preventive article prompting method and device based on loss preventive device
CN108156186A (en) * 2016-12-02 2018-06-12 中移(杭州)信息技术有限公司 A kind of information collecting method and device
CN108900976A (en) * 2018-07-10 2018-11-27 宇龙计算机通信科技(深圳)有限公司 A kind of location information report method and device
CN109392064A (en) * 2018-11-07 2019-02-26 深圳酷泰丰科技有限公司 Reduce method, system, equipment and the storage medium of positioning wearable device power consumption
CN110049445A (en) * 2019-03-15 2019-07-23 华为技术有限公司 The method and relevant apparatus of equipment reporting position information

Also Published As

Publication number Publication date
CN110049445A (en) 2019-07-23

Similar Documents

Publication Publication Date Title
WO2020187082A1 (en) Method for reporting position information by device, and related apparatus
US11450196B2 (en) XCB tracking devices, methods and systems
US11678141B2 (en) Hybrid cellular Bluetooth tracking devices, methods and systems
US10893659B2 (en) Mobile telephone dog training tool and method
US11184858B2 (en) Bluecell devices and methods
CN113615217B (en) Method for determining that terminal equipment is located inside geo-fence and terminal equipment
US20180206450A1 (en) Mobile Telephone Dog Training Tool and Method
US11393323B2 (en) XCB tracking devices, methods and systems
CN110505572B (en) Indoor positioning method and electronic equipment
US20160050531A1 (en) Method and apparatus for device positioning
US20170150321A1 (en) Location and activity aware media content delivery system
TWI586988B (en) Tracking device and tracking device control method
US20160142876A1 (en) System and method for ad-hoc network for tracking the position of a subject
CN109688539B (en) Terminal positioning method and device, mobile terminal and readable storage medium
US10805900B2 (en) Method and device for deriving location
WO2022257665A1 (en) Device tracking detection method and electronic device
US20160321517A1 (en) Method and apparatus for generating superpixel clusters
KR20200066902A (en) Wildlife tracking system and its operation method
KR101867548B1 (en) A method of retrieving a user's context using a mobile device based on wireless signal characteristics
CN108055393A (en) Speed based reminding method, device and computer readable storage medium
JP7344342B2 (en) Transmission device, information processing system, transmission method and program
WO2023046012A1 (en) Perception service processing method, terminal, and network side device
US20230306832A1 (en) Vehicle monitoring
KR20240029468A (en) Apparatus and method for position estimation of electronic device
CN116569572A (en) Sensing service providing method and device, communication equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20772910

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20772910

Country of ref document: EP

Kind code of ref document: A1