WO2023134357A1 - Positioning method and apparatus for internet-of-things module, and system and storage medium - Google Patents

Positioning method and apparatus for internet-of-things module, and system and storage medium Download PDF

Info

Publication number
WO2023134357A1
WO2023134357A1 PCT/CN2022/138271 CN2022138271W WO2023134357A1 WO 2023134357 A1 WO2023134357 A1 WO 2023134357A1 CN 2022138271 W CN2022138271 W CN 2022138271W WO 2023134357 A1 WO2023134357 A1 WO 2023134357A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
internet
module
broadcast message
location information
Prior art date
Application number
PCT/CN2022/138271
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 WO2023134357A1 publication Critical patent/WO2023134357A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/1851Systems using a satellite or space-based relay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the present application relates to the field of positioning technology, in particular to a method, device, system and storage medium for positioning an Internet of Things module.
  • the GPS chip of the item to which this function is applied must be functioning normally, and the item is in an open and unobstructed area. Areas where the signal is weak, this will cause a large deviation between the GPS positioning result of the item and the actual location information, or even make it impossible to locate. That is to say, the device using GPS function will be greatly limited in function in areas with weak GPS signal.
  • the inventor found at least the following problems in the traditional technology: the positioning accuracy of the existing IoT module positioning method is poor.
  • a method, device, system and storage medium for positioning an Internet of Things module are provided.
  • the present application provides a method for locating an Internet of Things module, which is executed by an Internet of Things module in an electronic device, including:
  • the Bluetooth state is switched to the search state, and the Bluetooth broadcast message is periodically searched; the Bluetooth broadcast message includes the location information of another IoT module; the Bluetooth broadcast message is another IoT module. It is output when the strength of the satellite signal detected by the module is greater than the threshold;
  • the location information of another IoT module in the Bluetooth broadcast message is used as the location information of the main body.
  • an IoT module positioning device including:
  • the detection unit is used to detect the satellite signal strength and compare the satellite signal strength with a threshold
  • the search unit is used to switch the bluetooth state to the search state when the result of the comparison is that the strength of the satellite signal is less than the threshold, and periodically search for bluetooth broadcast messages;
  • the bluetooth broadcast messages include the location information of another internet of things module;
  • the bluetooth broadcast messages It is output when the strength of the satellite signal detected by another IoT module is greater than the threshold;
  • the positioning unit is configured to use the location information of another IoT module in the Bluetooth broadcast message as the location information of the main body when the Bluetooth broadcast message is found.
  • the present application also provides an Internet of Things module, which is used to execute the above-mentioned method for locating an Internet of Things module.
  • the present application also provides an IoT module positioning system, including: a server and one or more electronic devices; the electronic device includes the aforementioned IoT module; the IoT module is connected to the server;
  • the IoT module uploads the location information of the ontology to the server.
  • the present application also provides one or more computer-readable storage media, on which computer-readable instructions are stored, and the computer-readable instructions implement the steps of the above method when executed by one or more processors.
  • the present application further provides a computer program product, including computer readable instructions, which implement the steps of the above method when executed by one or more processors.
  • Fig. 1 is a first schematic flow chart of a method for locating an Internet of Things module in an embodiment
  • Fig. 2 is a second schematic flow diagram of a method for locating an Internet of Things module in an embodiment
  • Fig. 3 is a third schematic flow chart of an IoT module positioning method in an embodiment
  • Fig. 4 is a structural block diagram of an IoT module positioning device in an embodiment
  • Fig. 5 is a schematic structural diagram of an IoT module positioning system in an embodiment.
  • connection in the following embodiments should be understood as “electrical connection”, “communication connection” and the like in the case of the transmission of electrical signals or data between the connected objects.
  • a method for locating an Internet of Things module is provided, and the application of the method to an electronic device with an Internet of Things module is used as an example for illustration, including the following steps:
  • the Bluetooth state when the result of the comparison is that the strength of the satellite signal is less than the threshold, switch the Bluetooth state to the search state, and periodically search for the Bluetooth broadcast message; the Bluetooth broadcast message includes the location information of another IoT module; the Bluetooth broadcast message is another It is output when the strength of the satellite signal detected by the IoT module is greater than the threshold.
  • the Internet of Things module can support the satellite positioning function, which is used to realize the tracking of the position information of the main body.
  • the ontology refers to the Internet of Things module itself
  • the location information of the ontology refers to information on the location of the Internet of Things module itself.
  • the IoT module also supports Bluetooth function, which includes Bluetooth broadcast function and Bluetooth search function. The size of the threshold can be set according to the actual situation.
  • the IoT module detects the strength of the satellite signal in real time, and compares the strength of the satellite signal with the threshold. If the result of the comparison is that the strength of the satellite signal is less than the threshold, it indicates that the strength of the detected satellite signal is weak, and the currently detected position information may be inaccurate. Therefore, the IoT module switches the Bluetooth state to the search state, and periodically searches whether there is a Bluetooth broadcast message nearby.
  • the Bluetooth broadcast message is output when the strength of the satellite signal detected by other IoT modules is greater than the threshold.
  • the Bluetooth broadcast message includes location information detected by another IoT module.
  • the Internet of Things module searches for a Bluetooth broadcast message output by another Internet of Things module, it uses the location information of another Internet of Things module in the Bluetooth broadcast message as the location information of the main body.
  • the Bluetooth broadcast message is output by another IoT module when the intensity of the detected satellite signal is greater than a threshold.
  • the IoT module realizes repositioning by sharing the high-precision location information detected by other nearby IoT modules, thereby improving the accuracy of the positioning information of the body .
  • the electronic device with the Internet of Things module can also upload the positioning information of the main body to the server.
  • the electronic device can upload the high-precision location information of another IoT module searched through the Bluetooth function as the main body location information to the server.
  • the server can monitor the location of the electronic device in real time, and can find the electronic device at any time according to the location information uploaded by the Internet of Things module, which expands the application scenarios of the Internet of Things module.
  • the application detects the strength of the satellite signal, and switches the Bluetooth state to the search state when the strength of the satellite signal is lower than the threshold, and periodically searches for nearby Bluetooth broadcast messages.
  • the location information of another IoT module in the Bluetooth broadcast message is used as the location information of the main body.
  • this application can effectively improve the positioning of the body by using the obtained high-precision location information shared by other nearby IoT modules as the location information of the body when the satellite signal in the area where the body is located is weak or the body positioning system fails. precision.
  • the satellite signal is a GPS (Global Positioning System, Global Positioning System) signal; the data type of the location information is NMEA data; the search mode of the search state is BLE (Bluetooth Low Energy, Bluetooth Low Energy) search; The broadcast mode of broadcast state is BLE broadcast.
  • GPS Global Positioning System, Global Positioning System
  • the data type of the location information is NMEA data;
  • the search mode of the search state is BLE (Bluetooth Low Energy, Bluetooth Low Energy) search;
  • the broadcast mode of broadcast state is BLE broadcast.
  • the IoT module can use a GPS positioning chip, and the detected satellite signal is GPS information.
  • the GPS positioning data may be NMEA data, that is, the data type of the location information is NMEA data.
  • the IoT module supports the BLE function, and the power consumption of BLE is low. Adding the BLE function to the IoT module will not increase excessive power consumption.
  • the search mode is the BLE search mode, and the Internet of Things module performs periodic searches.
  • the broadcast mode is the BLE broadcast mode, and the IoT module broadcasts periodically.
  • the BLE broadcast and search functions of this application will not significantly increase the power consumption of the IoT module, and achieve more energy saving and controllable power consumption.
  • the positioning method of the Internet of Things module may also include: when the result of the comparison is that the satellite signal strength is greater than the threshold, switching the Bluetooth state to the broadcast state, and periodically performing the Bluetooth broadcast message including the current position information Broadcasting; the broadcasting power in the broadcasting state satisfies the power condition; the power condition is for the purpose of reducing the coverage of broadcasting.
  • the Internet of Things module detects that the strength of the satellite signal is greater than the threshold, it means that the satellite signal in the environment where the Internet of Things module is located is strong and the positioning information is accurate, so the Internet of Things module can switch the Bluetooth state to the broadcast state, which will include detection
  • the Bluetooth broadcast message of the current location information is periodically broadcast, and the detected high-precision location information is shared with other nearby IoT modules.
  • Other IoT modules that detect weak satellite signals in the vicinity can search for the Bluetooth broadcast message, thereby using the location information in the Bluetooth broadcast message as its location information, realizing high-precision location sharing between IoT modules, and effectively The positioning accuracy of each IoT module is improved.
  • the broadcast power of the Bluetooth state in the broadcast state can be adjusted to meet the power condition, and the power condition is aimed at reducing the coverage of the broadcast.
  • the coverage of the Bluetooth broadcast is reduced, so that the distance between the IoT module and other IoT modules that have searched for the Bluetooth broadcast message is reduced, that is, the high precision detected by the IoT module is reduced.
  • the actual position error between the location and other IoT modules that have searched for the Bluetooth broadcast message, so that other IoT modules that receive the Bluetooth broadcast message that includes the high-precision location information use the location information in the Bluetooth broadcast message as When using its location information, the location shared through Bluetooth location is closer to its actual location, thereby improving the location accuracy.
  • This application compares the strength of the detected satellite signal with the size relationship between the threshold, selectively switches the Bluetooth state to the search state or the broadcast state according to the comparison result, and periodically searches for the information output by another Internet of Things module that includes another Internet of Things module.
  • the Bluetooth broadcast message of the location information, or the periodic broadcast including the Bluetooth broadcast message of the detected current location information enables the sharing of high-precision location information among the IoT modules.
  • the GPS positioning chip of the IoT module fails or the positioning signal of the current environment is weak
  • the high-precision positioning information of other nearby IoT modules can be obtained as the ontology positioning information, which effectively improves the position accuracy.
  • the broadcast power of the IoT module of the present application satisfies the power condition aimed at reducing the broadcast coverage, which can further improve the location accuracy of the IoT module that uses the location information in the received Bluetooth broadcast message as its own location information.
  • the IoT module positioning method may also include the following steps:
  • the Internet of Things module can Adjust the search cycle according to the intensive use of IoT modules in the area where Ontology is located. Due to the mobility of devices equipped with IoT modules, in areas where IoT modules are used intensively, devices come and go frequently, that is, devices with IoT modules enter and leave the area more frequently, and the IoT modules search for each other's BLE The probability of broadcasting is relatively high. Therefore, when the Bluetooth state is switched to the search state, the IoT module can increase the search cycle.
  • the Bluetooth search cycle can be set to reduce.
  • the search cycle of the search state is adjusted according to the intensive use of the IoT module in the area.
  • the IoT modules in the area where Ontology is located are highly intensively used, increase the search cycle.
  • the search cycle is reduced, so that the application can further reduce the power consumption of the Internet of Things modules and achieve the effect of energy saving.
  • This application reasonably adjusts the Bluetooth search cycle according to the intensive use of the IoT module in the area where the main body is located, so as to further achieve the effects of reduced power consumption, controllable power consumption, and energy saving.
  • the IoT module positioning method may also include the following steps:
  • the Bluetooth broadcast message determines whether the number of relay broadcasts of the Bluetooth broadcast message reaches a preset number of times; the number of relay broadcasts is the number of times the Bluetooth broadcast message is forwarded by other IoT modules.
  • the preset number of times may be set according to actual conditions.
  • the Internet of Things module may also determine whether the number of relay broadcasts of the searched Bluetooth broadcast message reaches a preset number of times when the Bluetooth broadcast message is found. When the judgment result is that the number of relay broadcasts does not reach the preset number, the IoT module can switch the Bluetooth state to the broadcast state, and periodically broadcast the received Bluetooth broadcast messages.
  • the number of relay broadcasts is the number of times a Bluetooth broadcast message is forwarded by other IoT modules, that is, the number of relay broadcasts is the number of times a certain IoT module receives a Bluetooth broadcast message including the location information of another IoT module.
  • the A IoT module detects high-precision location information, it periodically broadcasts a Bluetooth broadcast message including the location information.
  • the B-IoT module receives the Bluetooth broadcast message, and the number of relay broadcasts of the Bluetooth broadcast message received by the B-IoT module is 0.
  • the B IoT module After receiving the Bluetooth broadcast message, the B IoT module uses the location information in the Bluetooth broadcast message as the body location information of the B IoT module, and continues to broadcast the Bluetooth broadcast message.
  • the C-IoT module searches for the Bluetooth broadcast message broadcast by the B-IoT module, the number of relay broadcasts of the Bluetooth broadcast message found by the C-IoT module is 1.
  • the C Internet of Things module uses the location information in the Bluetooth broadcast message as the body location information of the C Internet of Things module, and continues to broadcast the Bluetooth broadcast message.
  • the D IoT module searches for the Bluetooth broadcast message, the number of relay broadcasts of the Bluetooth broadcast message received by the D IoT module is 2, because the Bluetooth broadcast message has been forwarded by the B IoT module and the C IoT module .
  • the Bluetooth broadcast message output by a certain Internet of Things module is large, it means that the Bluetooth broadcast message has been forwarded by more Internet of Things modules. Since each IoT module has a certain broadcast range, in the case of a large number of relay broadcasts of the Bluetooth broadcast message, the IoT module receiving the Bluetooth broadcast message may be different from the IoT module that originally sent the Bluetooth broadcast message. The distance between the networking modules is relatively large. At this time, the location information in the Bluetooth broadcast message and the actual location of the IoT module that received the Bluetooth broadcast message may have a large error. When the location information in the message is used as the location information of the ontology, the location accuracy is low.
  • the Bluetooth state is no longer switched to the broadcast state, and the Bluetooth broadcast message is no longer broadcast, so that all Internet of Things that can receive the Bluetooth broadcast message
  • the module uses the location information in the Bluetooth broadcast message as the location information of the main body, the error with its actual location will not be too large, which effectively improves the location accuracy.
  • this application is based on the huge foundation of the current Internet of Things module and a certain degree of mobility, relying on the BLE search and broadcast mechanism, according to the strength of the detected satellite signal, automatically switch the way of Bluetooth search and broadcast status, to realize the Internet of Things
  • the positioning information is shared between networked modules, and the positioning accuracy is not greatly affected.
  • the GPS positioning error is reduced to a controllable range in a small range, effectively improving the location accuracy.
  • the application can also flexibly adjust the BLE search state cycle according to the intensive use of the IoT module in the area where the IoT module is located, effectively reducing the power consumption of the module, and achieving the effect of energy saving and power saving.
  • steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
  • an embodiment of the present application also provides an IoT module positioning device for implementing the above-mentioned IoT module positioning method.
  • the solution to the problem provided by this device is similar to the implementation described in the above method, so the specific limitations in one or more embodiments of the IoT module positioning device provided below can be referred to above for the positioning of the IoT module The limitation of the method will not be repeated here.
  • an IoT module positioning device which may include a detection unit 402, a search unit 404, and a positioning unit 406, wherein:
  • the detection unit 402 is configured to detect the satellite signal strength, and compare the satellite signal strength with a threshold.
  • the search unit 404 is used to switch the bluetooth state to the search state when the result of the comparison is that the strength of the satellite signal is less than the threshold, and periodically search for the bluetooth broadcast message; the bluetooth broadcast message includes the location information of another internet of things module; the bluetooth broadcast The message is output when the strength of the satellite signal detected by another IoT module is greater than the threshold.
  • the positioning unit 406 is configured to use the location information of another IoT module in the Bluetooth broadcast message as the location information of the body when the Bluetooth broadcast message is found.
  • the IoT module locating device may also include a judging unit and a first broadcasting unit, wherein:
  • the judging unit is used to judge whether the number of relay broadcasts of the Bluetooth broadcast message reaches a preset number of times when the Bluetooth broadcast message is found; the number of relay broadcasts is the number of times the Bluetooth broadcast message is forwarded by other IoT modules.
  • the first broadcast unit is configured to switch the Bluetooth state to the broadcast state and periodically broadcast Bluetooth broadcast messages when the judgment result is that the number of relay broadcasts has not reached the preset number of times.
  • the IoT module positioning device may also include a second broadcast unit, wherein:
  • the second broadcast unit is used to switch the bluetooth state to the broadcast state when the result of the comparison is that the satellite signal strength is greater than the threshold, and periodically broadcast the bluetooth broadcast message including the current position information; the broadcast power in the broadcast state satisfies Power condition; the power condition is for the purpose of reducing the coverage of the broadcast.
  • the IoT module positioning device may also include a confirmation unit and an adjustment unit, wherein:
  • the confirmation unit is used to confirm the area where the main body is located.
  • the adjustment unit is configured to adjust the search period of the search state according to the intensive use of the IoT module in the area where the ontology is located.
  • the satellite signal may be a GPS signal; the data type of the location information may be NMEA data; the search mode of the search state may be BLE search; the broadcast mode of the broadcast state may be BLE broadcast.
  • Each module in the above-mentioned Internet of Things module positioning device can be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of one or more processors in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that one or more processors can call and execute the above The operation corresponding to the module.
  • the division of modules in the embodiment of the present application is schematic and is a logical function division, and there may be another division manner in actual implementation.
  • an Internet of Things module for performing the above-mentioned method for locating an Internet of Things module.
  • the IoT module of the present application can realize low power consumption operation and provide high-precision position information.
  • a positioning system for an Internet of Things module may include: a server and one or more electronic devices; the electronic device includes the above-mentioned Internet of Things module; the Internet of Things module is connected to the server;
  • the IoT module uploads the location information of the ontology to the server.
  • the electronic device communicates with the server through the network.
  • the data storage system can store the data that the server needs to process.
  • the data storage system can be integrated on the server, or placed on the cloud or other network servers.
  • electronic terminals can be but not limited to various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices, and IoT devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. .
  • Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, and the like.
  • the server can be implemented by an independent server or a server cluster composed of multiple servers.
  • the electronic device detects GPS positioning information in real time, and uploads the positioning information to the server.
  • the electronic device detects that the GPS satellite signal is weak or the GPS chip is faulty, it switches the Bluetooth state to the search state, and periodically searches for the information broadcast by nearby electronic devices.
  • Bluetooth broadcast message when the Bluetooth broadcast message output by another electronic device is searched, the location information of another electronic device in the Bluetooth broadcast message is used as the location information of the body, and the location information is uploaded to the server, so that the server can monitor in real time Location information of electronic devices.
  • the electronic device is a shared bicycle
  • the shared bicycle A is parked in an area with weak GPS satellite signals, such as in an underground garage.
  • the server of the shared bicycle manufacturer intelligently receives the approximate location information of the shared bicycle, and communicates with The actual position deviates greatly, which brings great trouble to the factory staff to find the shared bicycle.
  • another shared bicycle happened to be riding past the door of the underground garage (the distance between the two vehicles is relatively close), and at the same time, shared bicycle B was just broadcasting its own location information during the period when the BLE broadcast was turned on.
  • Bluetooth broadcast message shared bicycle A is also constantly searching for Bluetooth broadcast messages. When shared bicycle B passes by the entrance of the underground garage, shared bicycle A receives the Bluetooth broadcast message broadcast by shared bicycle B.
  • Shared bicycle A uses the location information of shared bicycle B in the Bluetooth broadcast message as the location information of the main body, refreshes its own location information, and reports it to the device manufacturer's server. The staff of the equipment manufacturer can quickly find the shared bicycle A according to the high-precision location information reported by the shared bicycle A.
  • the electronic device in the IoT module positioning system of this application can obtain more accurate positioning information, and the server can also monitor the position of the electronic device in real time according to the high-precision position information uploaded by the electronic device, thus greatly expanding the scope of this application.
  • the usage scenario of the IoT module positioning system can be used.
  • one or more computer-readable storage media are provided, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by one or more processors, the steps in the above-mentioned method embodiments are implemented. .
  • a computer program product including computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the steps in the foregoing method embodiments are implemented.
  • data involved in this application are all information and data authorized by the user or fully authorized by all parties.
  • the computer-readable instructions can be stored in a non-volatile computer
  • the computer-readable instructions may include the processes of the embodiments of the above-mentioned methods when executed.
  • any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage.
  • Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc.
  • the volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc.
  • RAM Random Access Memory
  • RAM Random Access Memory
  • RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
  • the databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database.
  • the non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto.
  • the one or more processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, and data processing logic devices based on quantum computing Etc., not limited to this.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application relates to a positioning method for an Internet-of-Things module. The method comprises: measuring the strength of a satellite signal, and comparing the strength of the satellite signal with a threshold value (S102); when a comparison result shows that the strength of the satellite signal is less than the threshold value, switching a Bluetooth state to a search state to periodically search for a Bluetooth broadcast message, wherein the Bluetooth broadcast message comprises location information of another Internet-of-Things module, and the Bluetooth broadcast message is output when the strength of a satellite signal that is measured by another Internet-of-Things module is greater than the threshold value (S104); and when a Bluetooth broadcast message is found, taking the location information of another Internet-of-Things module in the Bluetooth broadcast message as location information of the present Internet-of-Things module (S106).

Description

物联网模块定位方法、装置、系统和存储介质IoT module positioning method, device, system and storage medium
相关申请related application
本申请要求2022年1月13日申请的,申请号为2022100372028,名称为“物联网模块定位方法、装置、系统和存储介质”的中国专利申请的优先权,在此将其全文引入作为参考。This application claims the priority of the Chinese patent application filed on January 13, 2022, with the application number 2022100372028, entitled "Internet of Things Module Positioning Method, Device, System, and Storage Medium", which is hereby incorporated by reference in its entirety.
技术领域technical field
本申请涉及定位技术领域,特别是涉及一种物联网模块定位方法、装置、系统和存储介质。The present application relates to the field of positioning technology, in particular to a method, device, system and storage medium for positioning an Internet of Things module.
背景技术Background technique
目前市面上有很多物联网模块都会用到GPS定位功能,用来实现对设备的位置信息跟踪。但是GPS功能要实现高精度定位,必须是应用此功能的物品GPS芯片功能正常,且该物品处于空旷无遮挡区域,然而很多时候,该物品的使用场景却刚好在一些有高楼遮挡,或者位于GPS信号弱的区域,这样就会导致该物品的GPS定位结果与实际位置信息出现较大偏差,甚至无法定位。也就是说使用GPS功能的设备在GPS信号弱的区域,功能上也会受到很大的限制。At present, there are many IoT modules on the market that use the GPS positioning function to track the location information of the device. However, in order for the GPS function to achieve high-precision positioning, the GPS chip of the item to which this function is applied must be functioning normally, and the item is in an open and unobstructed area. Areas where the signal is weak, this will cause a large deviation between the GPS positioning result of the item and the actual location information, or even make it impossible to locate. That is to say, the device using GPS function will be greatly limited in function in areas with weak GPS signal.
在实现过程中,发明人发现传统技术中至少存在如下问题:现有的物联网模块定位方式的定位精度差。During the implementation process, the inventor found at least the following problems in the traditional technology: the positioning accuracy of the existing IoT module positioning method is poor.
发明内容Contents of the invention
根据本申请提供的各种实施例,提供一种物联网模块定位方法、装置、系统和存储介质。According to various embodiments provided in this application, a method, device, system and storage medium for positioning an Internet of Things module are provided.
第一方面,本申请提供了一种物联网模块定位方法,由电子设备中的物联网模块执行包括:In the first aspect, the present application provides a method for locating an Internet of Things module, which is executed by an Internet of Things module in an electronic device, including:
检测卫星信号的强度,将卫星信号的强度和阈值进行比较;Detect the strength of the satellite signal and compare the strength of the satellite signal with a threshold;
在比较的结果为卫星信号的强度小于阈值的情况下,切换蓝牙状态为搜索状态,周期性搜索蓝牙广播消息;蓝牙广播消息包括另一物联网模块的位置信息;蓝牙广播消息为另一物联网模块检测到的卫星信号的强度大于阈值的情况下输出的;When the result of the comparison is that the strength of the satellite signal is less than the threshold, the Bluetooth state is switched to the search state, and the Bluetooth broadcast message is periodically searched; the Bluetooth broadcast message includes the location information of another IoT module; the Bluetooth broadcast message is another IoT module. It is output when the strength of the satellite signal detected by the module is greater than the threshold;
在搜索到蓝牙广播消息的情况下,将蓝牙广播消息中的另一物联网模块的位置信息作 为本体的位置信息。When the Bluetooth broadcast message is found, the location information of another IoT module in the Bluetooth broadcast message is used as the location information of the main body.
第二方面,本申请还提供了一种物联网模块定位装置,包括:In the second aspect, the present application also provides an IoT module positioning device, including:
检测单元,用于检测卫星信号强度,将卫星信号强度和阈值进行比较;The detection unit is used to detect the satellite signal strength and compare the satellite signal strength with a threshold;
搜索单元,用于在比较的结果为卫星信号的强度小于阈值的情况下,切换蓝牙状态为搜索状态,周期性搜索蓝牙广播消息;蓝牙广播消息包括另一物联网模块的位置信息;蓝牙广播消息为另一物联网模块检测到的卫星信号的强度大于阈值的情况下输出的;The search unit is used to switch the bluetooth state to the search state when the result of the comparison is that the strength of the satellite signal is less than the threshold, and periodically search for bluetooth broadcast messages; the bluetooth broadcast messages include the location information of another internet of things module; the bluetooth broadcast messages It is output when the strength of the satellite signal detected by another IoT module is greater than the threshold;
定位单元,用于在搜索到蓝牙广播消息的情况下,将蓝牙广播消息中的另一物联网模块的位置信息作为本体的位置信息。The positioning unit is configured to use the location information of another IoT module in the Bluetooth broadcast message as the location information of the main body when the Bluetooth broadcast message is found.
第三方面,本申请还提供了一种物联网模块,用于执行上述的物联网模块定位方法。In a third aspect, the present application also provides an Internet of Things module, which is used to execute the above-mentioned method for locating an Internet of Things module.
第四方面,本申请还提供了一种物联网模块定位系统,包括:服务器和一个或多个电子设备;电子设备包括上述的物联网模块;物联网模块连接服务器;In the fourth aspect, the present application also provides an IoT module positioning system, including: a server and one or more electronic devices; the electronic device includes the aforementioned IoT module; the IoT module is connected to the server;
物联网模块将本体的位置信息上传至服务器。The IoT module uploads the location information of the ontology to the server.
第五方面,本申请还提供了一个或多个计算机可读存储介质,其上存储有计算机可读指令,计算机可读指令被一个或多个处理器执行时实现上述的方法的步骤。In a fifth aspect, the present application also provides one or more computer-readable storage media, on which computer-readable instructions are stored, and the computer-readable instructions implement the steps of the above method when executed by one or more processors.
第六方面,本申请还提供了一种计算机程序产品,包括计算机可读指令,该计算机可读指令被一个或多个处理器执行时实现上述的方法的步骤。In a sixth aspect, the present application further provides a computer program product, including computer readable instructions, which implement the steps of the above method when executed by one or more processors.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features, objects and advantages of the present application will be apparent from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例或传统技术中的技术方案,下面将对实施例或传统技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据公开的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the traditional technology. Obviously, the accompanying drawings in the following description are only the present invention For the embodiments of the application, those skilled in the art can also obtain other drawings based on the disclosed drawings without creative effort.
图1为一个实施例中物联网模块定位方法的第一流程示意图;Fig. 1 is a first schematic flow chart of a method for locating an Internet of Things module in an embodiment;
图2为一个实施例中物联网模块定位方法的第二流程示意图;Fig. 2 is a second schematic flow diagram of a method for locating an Internet of Things module in an embodiment;
图3为一个实施例中物联网模块定位方法的第三流程示意图;Fig. 3 is a third schematic flow chart of an IoT module positioning method in an embodiment;
图4为一个实施例中物联网模块定位装置的结构框图;Fig. 4 is a structural block diagram of an IoT module positioning device in an embodiment;
图5为一个实施例中物联网模块定位系统的结构示意图。Fig. 5 is a schematic structural diagram of an IoT module positioning system in an embodiment.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
为了便于理解本申请,下面将参照相关附图对本申请进行更全面的描述。附图中给出了本申请的实施例。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使本申请的公开内容更加透彻全面。In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the application are given in the drawings. However, the present application can be embodied in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of this application more thorough and comprehensive.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein in the specification of the application are only for the purpose of describing specific embodiments, and are not intended to limit the application.
需要说明的是,当一个元件被认为是“连接”另一个元件时,它可以是直接连接到另一个元件,或者通过居中元件连接另一个元件。此外,以下实施例中的“连接”,在被连接的对象之间具有电信号或数据的传递的情况下,应理解为“电连接”、“通信连接”等。It should be noted that when an element is considered to be "connected" to another element, it may be directly connected to the other element, or connected to the other element through an intervening element. In addition, "connection" in the following embodiments should be understood as "electrical connection", "communication connection" and the like in the case of the transmission of electrical signals or data between the connected objects.
在此使用时,单数形式的“一”、“一个”和“所述/该”也可以包括复数形式,除非上下文清楚指出另外的方式。还应当理解的是,术语“包括/包含”或“具有”等指定所陈述的特征、整体、步骤、操作、组件、部分或它们的组合的存在,但是不排除存在或添加一个或更多个其他特征、整体、步骤、操作、组件、部分或它们的组合的可能性。When used herein, the singular forms "a", "an" and "the/the" may also include the plural forms unless the context clearly dictates otherwise. It should also be understood that the terms "comprising/comprising" or "having" etc. specify the presence of stated features, integers, steps, operations, components, parts or combinations thereof, but do not exclude the presence or addition of one or more The possibility of other features, integers, steps, operations, components, parts or combinations thereof.
在一个实施例中,如图1所示,提供了一种物联网模块定位方法,以该方法应用于具有物联网模块的电子设备为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 1 , a method for locating an Internet of Things module is provided, and the application of the method to an electronic device with an Internet of Things module is used as an example for illustration, including the following steps:
S102,检测卫星信号的强度,将卫星信号的强度和阈值进行比较。S102. Detect the strength of the satellite signal, and compare the strength of the satellite signal with a threshold.
S104,在比较的结果为卫星信号的强度小于阈值的情况下,切换蓝牙状态为搜索状态,周期性搜索蓝牙广播消息;蓝牙广播消息包括另一物联网模块的位置信息;蓝牙广播消息为另一物联网模块检测到的卫星信号的强度大于阈值的情况下输出的。S104, when the result of the comparison is that the strength of the satellite signal is less than the threshold, switch the Bluetooth state to the search state, and periodically search for the Bluetooth broadcast message; the Bluetooth broadcast message includes the location information of another IoT module; the Bluetooth broadcast message is another It is output when the strength of the satellite signal detected by the IoT module is greater than the threshold.
S106,在搜索到蓝牙广播消息的情况下,将蓝牙广播消息中的另一物联网模块的位置信息作为本体的位置信息。S106. When the Bluetooth broadcast message is found, use the location information of another IoT module in the Bluetooth broadcast message as the location information of the main body.
其中,物联网模块可以支持卫星定位功能,用于实现对本体位置信息的跟踪。可以理解,本体是指物联网模块自身,本体位置信息是指物联网模块自身位置的信息。物联网模块还支持蓝牙功能,蓝牙功能包括蓝牙广播功能和蓝牙搜索功能。阈值的大小可以根据实际情况进行设定。Among them, the Internet of Things module can support the satellite positioning function, which is used to realize the tracking of the position information of the main body. It can be understood that the ontology refers to the Internet of Things module itself, and the location information of the ontology refers to information on the location of the Internet of Things module itself. The IoT module also supports Bluetooth function, which includes Bluetooth broadcast function and Bluetooth search function. The size of the threshold can be set according to the actual situation.
具体地,物联网模块通过实时检测卫星信号的强度,并将卫星信号的强度和阈值进行 比较。在比较的结果为卫星信号的强度小于阈值的情况下,说明检测到的卫星信号强度弱,当前检测到的位置信息可能不准确。因此,物联网模块切换蓝牙状态为搜索状态,周期性搜索附近是否存在蓝牙广播消息。蓝牙广播消息为其他物联网模块检测到的卫星信号的强度大于阈值的情况下输出的。蓝牙广播消息中包括另一物联网模块检测到的位置信息。Specifically, the IoT module detects the strength of the satellite signal in real time, and compares the strength of the satellite signal with the threshold. If the result of the comparison is that the strength of the satellite signal is less than the threshold, it indicates that the strength of the detected satellite signal is weak, and the currently detected position information may be inaccurate. Therefore, the IoT module switches the Bluetooth state to the search state, and periodically searches whether there is a Bluetooth broadcast message nearby. The Bluetooth broadcast message is output when the strength of the satellite signal detected by other IoT modules is greater than the threshold. The Bluetooth broadcast message includes location information detected by another IoT module.
物联网模块在搜索到另一物联网模块输出的蓝牙广播消息时,将蓝牙广播消息中的另一物联网模块的位置信息作为本体的位置信息。可以理解,该蓝牙广播消息是另一物联网模块在检测到的卫星信号的强度大于阈值的情况下输出的。物联网模块在卫星定位系统出现故障或者所处区域的卫星信号弱的情况下,通过共享附近的其他物联网模块检测到的高精度位置信息,实现再次定位,从而可以提高本体定位信息的准确性。具有物联网模块的电子设备还可以将本体定位信息上传至服务器。即使在电子设备所处环境卫星信号弱的区域,电子设备也可以将通过蓝牙功能搜索到的另一物联网模块的高精度位置信息作为本体位置信息上传至服务器。服务器可以实时监控电子设备的位置,随时可以根据物联网模块上传的位置信息找到电子设备,扩大了物联网模块的应用场景。When the Internet of Things module searches for a Bluetooth broadcast message output by another Internet of Things module, it uses the location information of another Internet of Things module in the Bluetooth broadcast message as the location information of the main body. It can be understood that the Bluetooth broadcast message is output by another IoT module when the intensity of the detected satellite signal is greater than a threshold. When the satellite positioning system fails or the satellite signal in the area is weak, the IoT module realizes repositioning by sharing the high-precision location information detected by other nearby IoT modules, thereby improving the accuracy of the positioning information of the body . The electronic device with the Internet of Things module can also upload the positioning information of the main body to the server. Even in an area where the satellite signal is weak in the environment where the electronic device is located, the electronic device can upload the high-precision location information of another IoT module searched through the Bluetooth function as the main body location information to the server. The server can monitor the location of the electronic device in real time, and can find the electronic device at any time according to the location information uploaded by the Internet of Things module, which expands the application scenarios of the Internet of Things module.
本申请通过检测卫星信号的强度,在卫星信号的强度小于阈值的情况下,切换蓝牙状态为搜索状态,周期性搜索附近的蓝牙广播消息。在搜索到蓝牙广播消息的情况下,将蓝牙广播消息中另一物联网模块的位置信息作为本体的位置信息。进而本申请可以在本体所处区域的卫星信号弱或本体定位系统出现故障的情况下,通过将获取的附近其他物联网模块共享的高精度位置信息作为本体的位置信息,能够有效提高本体的定位精度。The application detects the strength of the satellite signal, and switches the Bluetooth state to the search state when the strength of the satellite signal is lower than the threshold, and periodically searches for nearby Bluetooth broadcast messages. When the Bluetooth broadcast message is found, the location information of another IoT module in the Bluetooth broadcast message is used as the location information of the main body. Furthermore, this application can effectively improve the positioning of the body by using the obtained high-precision location information shared by other nearby IoT modules as the location information of the body when the satellite signal in the area where the body is located is weak or the body positioning system fails. precision.
在其中一个实施例中,卫星信号为GPS(Global Positioning System,全球定位系统)信号;位置信息的数据类型为NMEA数据;搜索状态的搜索方式为BLE(Bluetooth Low Energy,低功耗蓝牙)搜索;广播状态的广播方式为BLE广播。In one of the embodiments, the satellite signal is a GPS (Global Positioning System, Global Positioning System) signal; the data type of the location information is NMEA data; the search mode of the search state is BLE (Bluetooth Low Energy, Bluetooth Low Energy) search; The broadcast mode of broadcast state is BLE broadcast.
具体地,物联网模块可以采用GPS定位芯片,检测的卫星信号为GPS信息。GPS定位数据可以为NMEA数据,即位置信息的数据类型为NMEA数据。并且,物联网模块支持BLE功能,BLE的功耗低。物联网模块增加BLE功能不会额外增加过高的功耗。在物联网模块切换蓝牙状态为搜索状态的情况下,搜索方式为BLE搜索方式,物联网模块进行周期性搜索。同样的,在物联网模块切换蓝牙状态为广播状态的情况下,广播方式为BLE广播方式,物联网模块进行周期性广播。Specifically, the IoT module can use a GPS positioning chip, and the detected satellite signal is GPS information. The GPS positioning data may be NMEA data, that is, the data type of the location information is NMEA data. Moreover, the IoT module supports the BLE function, and the power consumption of BLE is low. Adding the BLE function to the IoT module will not increase excessive power consumption. When the Internet of Things module switches the Bluetooth state to the search state, the search mode is the BLE search mode, and the Internet of Things module performs periodic searches. Similarly, when the IoT module switches the Bluetooth status to the broadcast status, the broadcast mode is the BLE broadcast mode, and the IoT module broadcasts periodically.
本申请的BLE广播和搜索功能不会明显增加物联网模块的功耗,实现更节能省电,功耗可控的效果。The BLE broadcast and search functions of this application will not significantly increase the power consumption of the IoT module, and achieve more energy saving and controllable power consumption.
在其中一个实施例中,物联网模块定位方法还可以包括:在比较的结果为卫星信号强度大于阈值的情况下,切换蓝牙状态为广播状态,并将包括当前位置信息的蓝牙广播消息 进行周期性广播;广播状态下的广播功率满足功率条件;功率条件为以减小广播的覆盖范围为目的。In one of the embodiments, the positioning method of the Internet of Things module may also include: when the result of the comparison is that the satellite signal strength is greater than the threshold, switching the Bluetooth state to the broadcast state, and periodically performing the Bluetooth broadcast message including the current position information Broadcasting; the broadcasting power in the broadcasting state satisfies the power condition; the power condition is for the purpose of reducing the coverage of broadcasting.
具体地,在物联网模块检测到卫星信号的强度大于阈值的情况下,说明物联网模块所处环境的卫星信号强,定位信息准确,从而物联网模块可以切换蓝牙状态为广播状态,将包括检测到的当前位置信息的蓝牙广播消息进行周期性广播,将检测到的高精度位置信息共享给附近的其他物联网模块。附近检测到卫星信号弱的其他物联网模块可以搜索到该蓝牙广播消息,从而把该蓝牙广播消息中的位置信息作为它的位置信息,实现了各物联网模块之间的高精度位置共享,有效提高了各物联网模块的定位精度。Specifically, when the Internet of Things module detects that the strength of the satellite signal is greater than the threshold, it means that the satellite signal in the environment where the Internet of Things module is located is strong and the positioning information is accurate, so the Internet of Things module can switch the Bluetooth state to the broadcast state, which will include detection The Bluetooth broadcast message of the current location information is periodically broadcast, and the detected high-precision location information is shared with other nearby IoT modules. Other IoT modules that detect weak satellite signals in the vicinity can search for the Bluetooth broadcast message, thereby using the location information in the Bluetooth broadcast message as its location information, realizing high-precision location sharing between IoT modules, and effectively The positioning accuracy of each IoT module is improved.
并且,蓝牙状态在广播状态下的广播功率,可以以满足功率条件进行调节,功率条件以减小广播的覆盖范围为目的。通过减小蓝牙广播的功率,减小蓝牙广播的覆盖范围,从而使得物联网模块与搜索到蓝牙广播消息的其他物联网模块之间的距离减小,即减小物联网模块检测到的高精度位置与搜索到蓝牙广播消息的其他物联网模块之间的实际位置误差,从而使得接收到包括该高精度位置信息的蓝牙广播消息的其他物联网模块,在以该蓝牙广播消息中的位置信息作为其位置信息时,使通过蓝牙位置共享的位置更接近本身的实际位置,进而提高了位置精确度。In addition, the broadcast power of the Bluetooth state in the broadcast state can be adjusted to meet the power condition, and the power condition is aimed at reducing the coverage of the broadcast. By reducing the power of the Bluetooth broadcast, the coverage of the Bluetooth broadcast is reduced, so that the distance between the IoT module and other IoT modules that have searched for the Bluetooth broadcast message is reduced, that is, the high precision detected by the IoT module is reduced. The actual position error between the location and other IoT modules that have searched for the Bluetooth broadcast message, so that other IoT modules that receive the Bluetooth broadcast message that includes the high-precision location information use the location information in the Bluetooth broadcast message as When using its location information, the location shared through Bluetooth location is closer to its actual location, thereby improving the location accuracy.
本申请通过比较检测到的卫星信号的强度与阈值的大小关系,根据比较的结果选择性切换蓝牙状态为搜索状态或广播状态,周期性搜索另一物联网模块输出的包括另一物联网模块的位置信息的蓝牙广播消息,或周期性广播包括检测到当前位置信息的蓝牙广播消息,使得各物联网模块之间的高精度位置信息共享。在物联网模块的GPS定位芯片发生故障或当前所处环境的定位信号弱的情况下,均可以获取附近其他物联网模块的高精度定位信息作为本体定位信息,有效提高了位置精度。并且本申请的物联网模块的广播功率满足以减小广播的覆盖范围为目的的功率条件,可以进一步提高将接收到的蓝牙广播消息中的位置信息作为本身位置信息的物联网模块的位置精度。This application compares the strength of the detected satellite signal with the size relationship between the threshold, selectively switches the Bluetooth state to the search state or the broadcast state according to the comparison result, and periodically searches for the information output by another Internet of Things module that includes another Internet of Things module. The Bluetooth broadcast message of the location information, or the periodic broadcast including the Bluetooth broadcast message of the detected current location information, enables the sharing of high-precision location information among the IoT modules. When the GPS positioning chip of the IoT module fails or the positioning signal of the current environment is weak, the high-precision positioning information of other nearby IoT modules can be obtained as the ontology positioning information, which effectively improves the position accuracy. Moreover, the broadcast power of the IoT module of the present application satisfies the power condition aimed at reducing the broadcast coverage, which can further improve the location accuracy of the IoT module that uses the location information in the received Bluetooth broadcast message as its own location information.
在其中一个实施例中,如图2所示,物联网模块定位方法还可以包括以下步骤:In one of the embodiments, as shown in Figure 2, the IoT module positioning method may also include the following steps:
S202,确认本体所处区域。S202. Confirm the area where the main body is located.
S204,根据本体所处区域的物联网模块使用密集程度调节搜索状态的搜索周期。S204. Adjust the search period of the search state according to the usage intensity of the Internet of Things modules in the area where the Ontology is located.
具体地,当物联网模块的GPS定位芯片出现故障或所处位置的GPS卫星信号强度较弱时,在切换蓝牙状态为搜索状态,周期性搜索附近的蓝牙广播消息的情况下,物联网模块可以根据本体所处区域的物联网模块使用密集程度对搜索周期进行调整。由于设有物联网模块的设备具有流动性,在物联网模块使用密集的区域,设备往来频繁,即具有物联网模块的设备进出该区域的频率较高,物联网模块相互之间搜索到对方BLE广播的概率相对 较高,因此,可以在切换蓝牙状态为搜索状态的情况下,物联网模块将搜索周期增大。同样地,在本体所处区域的物联网模块使用密集较小的情况下,由于区域内设备来往较少,物联网模块之间搜索到对方BLE广播的概率相对比较低,因此可以将蓝牙搜索周期降低。Specifically, when the GPS positioning chip of the Internet of Things module fails or the signal strength of the GPS satellite at the location is weak, in the case of switching the Bluetooth state to the search state and periodically searching for nearby Bluetooth broadcast messages, the Internet of Things module can Adjust the search cycle according to the intensive use of IoT modules in the area where Ontology is located. Due to the mobility of devices equipped with IoT modules, in areas where IoT modules are used intensively, devices come and go frequently, that is, devices with IoT modules enter and leave the area more frequently, and the IoT modules search for each other's BLE The probability of broadcasting is relatively high. Therefore, when the Bluetooth state is switched to the search state, the IoT module can increase the search cycle. Similarly, when the IoT modules in the area where the Ontology is located are less intensively used, the probability of finding each other’s BLE broadcasts between IoT modules is relatively low due to the small number of devices in the area. Therefore, the Bluetooth search cycle can be set to reduce.
即通过确认物联网模块本体所处区域,根据该区域的物联网模块使用密集程度调节搜索状态的搜索周期。当确认本体所处区域的物联网模块使用密集程度较高时,增加搜索周期。而当确认本体所处区域的物联网模块使用密集程度较低时,降低搜索周期,从而本申请可以进一步降低物联网模块功耗,实现节能省电的效果。That is, by confirming the area where the IoT module body is located, the search cycle of the search state is adjusted according to the intensive use of the IoT module in the area. When it is confirmed that the IoT modules in the area where Ontology is located are highly intensively used, increase the search cycle. When it is confirmed that the Internet of Things modules in the area where the main body is located are less intensively used, the search cycle is reduced, so that the application can further reduce the power consumption of the Internet of Things modules and achieve the effect of energy saving.
本申请根据本体所处区域的物联网模块使用密集程度,合理调节蓝牙搜索周期,从而可以进一步实现降低功耗、功耗可控以及节能省电的效果。This application reasonably adjusts the Bluetooth search cycle according to the intensive use of the IoT module in the area where the main body is located, so as to further achieve the effects of reduced power consumption, controllable power consumption, and energy saving.
在其中一个实施例中,如图3所示,物联网模块定位方法还可以包括以下步骤:In one of the embodiments, as shown in Figure 3, the IoT module positioning method may also include the following steps:
S302,在搜索到蓝牙广播消息的情况下,判断蓝牙广播消息的接力广播次数是否达到预设次数;接力广播次数为蓝牙广播消息被其他物联网模块转发的次数。S302. When the Bluetooth broadcast message is found, determine whether the number of relay broadcasts of the Bluetooth broadcast message reaches a preset number of times; the number of relay broadcasts is the number of times the Bluetooth broadcast message is forwarded by other IoT modules.
S304,在判断结果为接力广播次数未达到预设次数的情况下,切换蓝牙状态为广播状态,周期性广播蓝牙广播消息。S304. If the result of the judgment is that the number of relay broadcasts does not reach the preset number of times, switch the Bluetooth state to the broadcast state, and broadcast Bluetooth broadcast messages periodically.
其中,预设次数可以根据实际情况进行设置。Wherein, the preset number of times may be set according to actual conditions.
具体而言,物联网模块还可以在搜索到蓝牙广播消息的情况下,判断搜索到的蓝牙广播消息的接力广播次数是否达到预设次数。在判断结果为接力广播次数未达到预设次数的情况下,物联网模块可以切换蓝牙状态为广播状态,并将接收到的蓝牙广播消息进行周期性广播。Specifically, the Internet of Things module may also determine whether the number of relay broadcasts of the searched Bluetooth broadcast message reaches a preset number of times when the Bluetooth broadcast message is found. When the judgment result is that the number of relay broadcasts does not reach the preset number, the IoT module can switch the Bluetooth state to the broadcast state, and periodically broadcast the received Bluetooth broadcast messages.
接力广播次数为蓝牙广播消息被其他物联网模块转发的次数,即接力广播次数为某一物联网模块在接收到包括另一物联网模块的位置信息的蓝牙广播消息的情况下,将该蓝牙广播消息继续广播,让另外的物联网模块接收到后,另外的物联网模块又将同一蓝牙广播消息继续广播的次数。例如,在A物联网模块检测到高精度位置信息的情况下,将包括该位置信息的蓝牙广播消息进行周期性广播。B物联网模块接收到该蓝牙广播消息,B物联网模块接收到的该蓝牙广播消息的接力广播次数为0。而B物联网模块在接收到该蓝牙广播消息后,将该蓝牙广播消息中的位置信息作为B物联网模块的本体位置信息,并继续将该蓝牙广播消息进行广播。在C物联网模块搜索到B物联网模块广播的蓝牙广播消息时,C物联网模块搜索到的该蓝牙广播消息的接力广播次数为1。C物联网模块将该蓝牙广播消息中的位置信息作为C物联网模块的本体位置信息,并继续将该蓝牙广播消息继续广播。而当D物联网模块搜索到该蓝牙广播消息时,D物联网模块接收到的该蓝牙广播消息的接力广播次数为2,因为该蓝牙广播消息已被B物联网模块和C物联网模块转发过。The number of relay broadcasts is the number of times a Bluetooth broadcast message is forwarded by other IoT modules, that is, the number of relay broadcasts is the number of times a certain IoT module receives a Bluetooth broadcast message including the location information of another IoT module. The number of times the message continues to broadcast, and after another IoT module receives it, the other IoT module continues to broadcast the same Bluetooth broadcast message. For example, when the A IoT module detects high-precision location information, it periodically broadcasts a Bluetooth broadcast message including the location information. The B-IoT module receives the Bluetooth broadcast message, and the number of relay broadcasts of the Bluetooth broadcast message received by the B-IoT module is 0. After receiving the Bluetooth broadcast message, the B IoT module uses the location information in the Bluetooth broadcast message as the body location information of the B IoT module, and continues to broadcast the Bluetooth broadcast message. When the C-IoT module searches for the Bluetooth broadcast message broadcast by the B-IoT module, the number of relay broadcasts of the Bluetooth broadcast message found by the C-IoT module is 1. The C Internet of Things module uses the location information in the Bluetooth broadcast message as the body location information of the C Internet of Things module, and continues to broadcast the Bluetooth broadcast message. And when the D IoT module searches for the Bluetooth broadcast message, the number of relay broadcasts of the Bluetooth broadcast message received by the D IoT module is 2, because the Bluetooth broadcast message has been forwarded by the B IoT module and the C IoT module .
而在某物联网模块输出的蓝牙广播消息的接力广播次数较大的情况下,说明该蓝牙广播消息被较多的物联网模块转发过。而由于每个物联网模块都有一定的广播范围,因此,在蓝牙广播消息的接力广播次数较大的情况下,接收到该蓝牙广播消息的物联网模块可能与最初发送该蓝牙广播消息的物联网模块距离较大,此时,蓝牙广播消息中的位置信息与接收到该蓝牙广播消息的物联网模块的实际位置误差可能较大,在接收到该蓝牙广播消息的物联网模块以该蓝牙广播消息中的位置信息作为本体的位置信息的情况下,位置精确度较低。因此,通过限制接力广播的次数,在搜索到的蓝牙广播消息的接力广播次数未达到预设次数的情况下,切换蓝牙状态为广播状态,继续周期性广播该蓝牙广播消息,不会影响下一个接收到该蓝牙广播消息,并以该蓝牙广播消息中的位置信息作为本体位置信息的物联网模块的位置精度。而在搜索到的蓝牙广播消息的接力广播次数达到预设次数的情况下,不再切换蓝牙状态为广播状态,不再继续广播该蓝牙广播消息,进而使得所有能够接收到蓝牙广播消息的物联网模块,在以蓝牙广播消息中的位置信息作为本体的位置信息的情况下,与它的实际位置误差不会太大,有效提高了位置精度。However, if the number of relay broadcasts of the Bluetooth broadcast message output by a certain Internet of Things module is large, it means that the Bluetooth broadcast message has been forwarded by more Internet of Things modules. Since each IoT module has a certain broadcast range, in the case of a large number of relay broadcasts of the Bluetooth broadcast message, the IoT module receiving the Bluetooth broadcast message may be different from the IoT module that originally sent the Bluetooth broadcast message. The distance between the networking modules is relatively large. At this time, the location information in the Bluetooth broadcast message and the actual location of the IoT module that received the Bluetooth broadcast message may have a large error. When the location information in the message is used as the location information of the ontology, the location accuracy is low. Therefore, by limiting the number of relay broadcasts, when the number of relay broadcasts of the searched Bluetooth broadcast messages does not reach the preset number of times, switch the Bluetooth state to the broadcast state, and continue to periodically broadcast the Bluetooth broadcast message without affecting the next Receive the Bluetooth broadcast message, and use the location information in the Bluetooth broadcast message as the location accuracy of the IoT module of the main body location information. When the number of relay broadcasts of the searched Bluetooth broadcast message reaches the preset number of times, the Bluetooth state is no longer switched to the broadcast state, and the Bluetooth broadcast message is no longer broadcast, so that all Internet of Things that can receive the Bluetooth broadcast message When the module uses the location information in the Bluetooth broadcast message as the location information of the main body, the error with its actual location will not be too large, which effectively improves the location accuracy.
以上,本申请基于目前物联网模块的基础庞大,且具有一定流动性的基础上,依靠BLE搜索和广播机制,根据检测到的卫星信号的强度,自动切换蓝牙搜索和广播状态的方式,实现物联网模块之间的定位信息共享,且定位精度不受太大影响。并且根据合理设置BLE广播功率以及蓝牙广播消息的接力广播次数,在小范围内将GPS定位误差降低到可控范围,有效提高位置精度。本申请还可以根据物联网模块所处区域的物联网模块使用密集程度灵活调节BLE搜索状态周期,有效降低模块功耗,实现节能省电的效果。Based on the above, this application is based on the huge foundation of the current Internet of Things module and a certain degree of mobility, relying on the BLE search and broadcast mechanism, according to the strength of the detected satellite signal, automatically switch the way of Bluetooth search and broadcast status, to realize the Internet of Things The positioning information is shared between networked modules, and the positioning accuracy is not greatly affected. And according to the reasonable setting of BLE broadcast power and the number of relay broadcasts of Bluetooth broadcast messages, the GPS positioning error is reduced to a controllable range in a small range, effectively improving the location accuracy. The application can also flexibly adjust the BLE search state cycle according to the intensive use of the IoT module in the area where the IoT module is located, effectively reducing the power consumption of the module, and achieving the effect of energy saving and power saving.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的物联网模块定位方法的物联网模块定位装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个物联网模块定位装置实施例中的具体限定 可以参见上文中对于物联网模块定位方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application also provides an IoT module positioning device for implementing the above-mentioned IoT module positioning method. The solution to the problem provided by this device is similar to the implementation described in the above method, so the specific limitations in one or more embodiments of the IoT module positioning device provided below can be referred to above for the positioning of the IoT module The limitation of the method will not be repeated here.
在一个实施例中,如图4所示,提供了一种物联网模块定位装置,可以包括检测单元402、搜索单元404和定位单元406,其中:In one embodiment, as shown in FIG. 4 , an IoT module positioning device is provided, which may include a detection unit 402, a search unit 404, and a positioning unit 406, wherein:
检测单元402,用于检测卫星信号强度,将卫星信号强度和阈值进行比较。The detection unit 402 is configured to detect the satellite signal strength, and compare the satellite signal strength with a threshold.
搜索单元404,用于在比较的结果为卫星信号的强度小于阈值的情况下,切换蓝牙状态为搜索状态,周期性搜索蓝牙广播消息;蓝牙广播消息包括另一物联网模块的位置信息;蓝牙广播消息为另一物联网模块检测到的卫星信号的强度大于阈值的情况下输出的。The search unit 404 is used to switch the bluetooth state to the search state when the result of the comparison is that the strength of the satellite signal is less than the threshold, and periodically search for the bluetooth broadcast message; the bluetooth broadcast message includes the location information of another internet of things module; the bluetooth broadcast The message is output when the strength of the satellite signal detected by another IoT module is greater than the threshold.
定位单元406,用于在搜索到蓝牙广播消息的情况下,将蓝牙广播消息中的另一物联网模块的位置信息作为本体的位置信息。The positioning unit 406 is configured to use the location information of another IoT module in the Bluetooth broadcast message as the location information of the body when the Bluetooth broadcast message is found.
在其中一个实施例中,物联网模块定位装置还可以包括判断单元和第一广播单元,其中:In one of the embodiments, the IoT module locating device may also include a judging unit and a first broadcasting unit, wherein:
判断单元,用于在搜索到蓝牙广播消息的情况下,判断蓝牙广播消息的接力广播次数是否达到预设次数;接力广播次数为蓝牙广播消息被其他物联网模块转发的次数。The judging unit is used to judge whether the number of relay broadcasts of the Bluetooth broadcast message reaches a preset number of times when the Bluetooth broadcast message is found; the number of relay broadcasts is the number of times the Bluetooth broadcast message is forwarded by other IoT modules.
第一广播单元,用于在判断结果为接力广播次数未达到预设次数的情况下,切换蓝牙状态为广播状态,周期性广播蓝牙广播消息。The first broadcast unit is configured to switch the Bluetooth state to the broadcast state and periodically broadcast Bluetooth broadcast messages when the judgment result is that the number of relay broadcasts has not reached the preset number of times.
在其中一个实施例中,物联网模块定位装置还可以包括第二广播单元,其中:In one of the embodiments, the IoT module positioning device may also include a second broadcast unit, wherein:
第二广播单元,用于在比较的结果为卫星信号强度大于阈值的情况下,切换蓝牙状态为广播状态,并将包括当前位置信息的蓝牙广播消息进行周期性广播;广播状态下的广播功率满足功率条件;功率条件为以减小广播的覆盖范围为目的。The second broadcast unit is used to switch the bluetooth state to the broadcast state when the result of the comparison is that the satellite signal strength is greater than the threshold, and periodically broadcast the bluetooth broadcast message including the current position information; the broadcast power in the broadcast state satisfies Power condition; the power condition is for the purpose of reducing the coverage of the broadcast.
在其中一个实施例中,物联网模块定位装置还可以包括确认单元和调节单元,其中:In one of the embodiments, the IoT module positioning device may also include a confirmation unit and an adjustment unit, wherein:
确认单元,用于确认本体所处区域。The confirmation unit is used to confirm the area where the main body is located.
调节单元,用于根据本体所处区域的物联网模块使用密集程度调节搜索状态的搜索周期。The adjustment unit is configured to adjust the search period of the search state according to the intensive use of the IoT module in the area where the ontology is located.
在其中一个实施例中,卫星信号可以为GPS信号;位置信息的数据类型可以为NMEA数据;搜索状态的搜索方式可以为BLE搜索;广播状态的广播方式可以为BLE广播。In one embodiment, the satellite signal may be a GPS signal; the data type of the location information may be NMEA data; the search mode of the search state may be BLE search; the broadcast mode of the broadcast state may be BLE broadcast.
上述物联网模块定位装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的一个或多个处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于一个或多个处理器调用执行以上各个模块对应的操作。需要说明的是,本申请实施例中对模块的划分是示意性的,为一种逻辑功能划分,实际实现时可以有另外的划分方式。Each module in the above-mentioned Internet of Things module positioning device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of one or more processors in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that one or more processors can call and execute the above The operation corresponding to the module. It should be noted that the division of modules in the embodiment of the present application is schematic and is a logical function division, and there may be another division manner in actual implementation.
在一个实施例中,提供了一种物联网模块,用于执行上述的物联网模块定位方法。In one embodiment, an Internet of Things module is provided for performing the above-mentioned method for locating an Internet of Things module.
本申请的物联网模块可以实现低功耗运行以及提供高精度位置信息。The IoT module of the present application can realize low power consumption operation and provide high-precision position information.
在一个实施例中,如图5所示,提供了一种物联网模块定位系统,可以包括:服务器和一个或多个电子设备;电子设备包括上述的物联网模块;物联网模块连接服务器;In one embodiment, as shown in FIG. 5 , a positioning system for an Internet of Things module is provided, which may include: a server and one or more electronic devices; the electronic device includes the above-mentioned Internet of Things module; the Internet of Things module is connected to the server;
物联网模块将本体的位置信息上传至服务器。The IoT module uploads the location information of the ontology to the server.
具体地,电子设备通过网络与服务器进行通信。数据存储系统可以存储服务器需要处理的数据。数据存储系统可以集成在服务器上,也可以放在云上或其他网络服务器上。其中,电子终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。Specifically, the electronic device communicates with the server through the network. The data storage system can store the data that the server needs to process. The data storage system can be integrated on the server, or placed on the cloud or other network servers. Among them, electronic terminals can be but not limited to various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices, and IoT devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. . Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, and the like. The server can be implemented by an independent server or a server cluster composed of multiple servers.
电子设备实时检测GPS定位信息,并将定位信息上传至服务器,当电子设备检测到的GPS卫星信号弱或GPS芯片故障的情况下,切换蓝牙状态为搜索状态,周期性搜索附近的电子设备广播的蓝牙广播消息,在搜索到另一电子设备输出的蓝牙广播消息时,将蓝牙广播消息中另一电子设备的位置信息作为本体的位置信息,并将该位置信息上传至服务器,从而服务器可以实时监控电子设备的位置信息。The electronic device detects GPS positioning information in real time, and uploads the positioning information to the server. When the electronic device detects that the GPS satellite signal is weak or the GPS chip is faulty, it switches the Bluetooth state to the search state, and periodically searches for the information broadcast by nearby electronic devices. Bluetooth broadcast message, when the Bluetooth broadcast message output by another electronic device is searched, the location information of another electronic device in the Bluetooth broadcast message is used as the location information of the body, and the location information is uploaded to the server, so that the server can monitor in real time Location information of electronic devices.
在一个具体的示例中,电子设备为共享单车,共享单车A被停放在GPS卫星信号较弱的区域,比如地下车库内,共享单车厂家的服务器智能接收到该共享单车的大概的位置信息,与实际的位置偏差较大,对于厂家工作人员寻找该共享单车带来了很大的麻烦。当此时恰巧有另一辆共享单车被骑行路过该地下车库的门口(两辆车位置相距较近),同时共享单车B刚好在BLE广播开启的周期内,不断在广播包括自己的位置信息的蓝牙广播消息。共享单车A也在不断搜索蓝牙广播消息。共享单车B经过地下车库门口时,共享单车A接收到共享单车B广播的蓝牙广播消息。共享单车A将蓝牙广播消息中的共享单车B的位置信息作为本体的位置信息,刷新了自己的位置信息,并上报给设备厂家服务器。设备厂家工作人员根据共享单车A上报的高精度位置信息可以很快找到共享单车A。In a specific example, the electronic device is a shared bicycle, and the shared bicycle A is parked in an area with weak GPS satellite signals, such as in an underground garage. The server of the shared bicycle manufacturer intelligently receives the approximate location information of the shared bicycle, and communicates with The actual position deviates greatly, which brings great trouble to the factory staff to find the shared bicycle. At this time, another shared bicycle happened to be riding past the door of the underground garage (the distance between the two vehicles is relatively close), and at the same time, shared bicycle B was just broadcasting its own location information during the period when the BLE broadcast was turned on. Bluetooth broadcast message. Shared bicycle A is also constantly searching for Bluetooth broadcast messages. When shared bicycle B passes by the entrance of the underground garage, shared bicycle A receives the Bluetooth broadcast message broadcast by shared bicycle B. Shared bicycle A uses the location information of shared bicycle B in the Bluetooth broadcast message as the location information of the main body, refreshes its own location information, and reports it to the device manufacturer's server. The staff of the equipment manufacturer can quickly find the shared bicycle A according to the high-precision location information reported by the shared bicycle A.
以上,本申请的物联网模块定位系统中电子设备可以获取到更准确的定位信息,服务器也可以根据电子设备上传的高精度位置信息对电子设备的位置进行实时监控,从而极大地扩展了本申请物联网模块定位系统的使用场景。As mentioned above, the electronic device in the IoT module positioning system of this application can obtain more accurate positioning information, and the server can also monitor the position of the electronic device in real time according to the high-precision position information uploaded by the electronic device, thus greatly expanding the scope of this application. The usage scenario of the IoT module positioning system.
在一个实施例中,提供了一个或多个计算机可读存储介质,其上存储有计算机可读指 令,该计算机可读指令被一个或多个处理器执行时实现上述各方法实施例中的步骤。In one embodiment, one or more computer-readable storage media are provided, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by one or more processors, the steps in the above-mentioned method embodiments are implemented. .
在一个实施例中,提供了一种计算机程序产品,包括计算机可读指令,该计算机可读指令被一个或多个处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer program product is provided, including computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the steps in the foregoing method embodiments are implemented.
需要说明的是,本申请所涉及的数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据。It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的一个或多个处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile computer In the readable storage medium, the computer-readable instructions may include the processes of the embodiments of the above-mentioned methods when executed. Wherein, any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The one or more processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, and data processing logic devices based on quantum computing Etc., not limited to this.
在本说明书的描述中,参考术语“有些实施例”、“其他实施例”、“理想实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特征包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性描述不一定指的是相同的实施例或示例。In the description of this specification, descriptions referring to the terms "some embodiments", "other embodiments", "ideal embodiments" and the like mean that specific features, structures, materials, or characteristics described in connection with the embodiments or examples are included in this specification. In at least one embodiment or example of the invention. In this specification, schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, should be considered as within the scope of this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

  1. 一种物联网模块定位方法,由电子设备中的物联网模块执行,包括:A method for locating an Internet of Things module, performed by an Internet of Things module in an electronic device, comprising:
    检测卫星信号的强度,将所述卫星信号的强度和阈值进行比较;Detecting the strength of the satellite signal, comparing the strength of the satellite signal with a threshold;
    在所述比较的结果为所述卫星信号的强度小于所述阈值的情况下,切换蓝牙状态为搜索状态,周期性搜索蓝牙广播消息;所述蓝牙广播消息包括另一物联网模块的位置信息;所述蓝牙广播消息为所述另一物联网模块检测到的卫星信号的强度大于所述阈值的情况下输出的;When the result of the comparison is that the strength of the satellite signal is less than the threshold, switch the bluetooth state to a search state, and periodically search for bluetooth broadcast messages; the bluetooth broadcast messages include the location information of another IoT module; The Bluetooth broadcast message is output when the strength of the satellite signal detected by the other IoT module is greater than the threshold;
    在搜索到所述蓝牙广播消息的情况下,将所述蓝牙广播消息中的所述另一物联网模块的位置信息作为本体的位置信息。If the Bluetooth broadcast message is found, use the location information of the other IoT module in the Bluetooth broadcast message as the location information of the main body.
  2. 根据权利要求1所述的物联网模块定位方法,其特征在于,还包括:The IoT module positioning method according to claim 1, further comprising:
    在搜索到所述蓝牙广播消息的情况下,判断所述蓝牙广播消息的接力广播次数是否达到预设次数;所述接力广播次数为所述蓝牙广播消息被其他物联网模块转发的次数;When the bluetooth broadcast message is found, it is judged whether the number of relay broadcasts of the bluetooth broadcast message reaches a preset number of times; the number of relay broadcasts is the number of times the bluetooth broadcast message is forwarded by other IoT modules;
    在判断结果为所述接力广播次数未达到所述预设次数的情况下,切换所述蓝牙状态为广播状态,周期性广播所述蓝牙广播消息。If the judgment result is that the number of relay broadcasts has not reached the preset number of times, the Bluetooth state is switched to a broadcast state, and the Bluetooth broadcast message is broadcast periodically.
  3. 根据权利要求1所述的物联网模块定位方法,其特征在于,还包括:The IoT module positioning method according to claim 1, further comprising:
    在所述比较的结果为所述卫星信号强度大于所述阈值的情况下,切换所述蓝牙状态为广播状态,并将包括当前位置信息的蓝牙广播消息进行周期性广播;所述广播状态下的广播功率满足功率条件;所述功率条件为以减小广播的覆盖范围为目的。When the result of the comparison is that the satellite signal strength is greater than the threshold, switch the bluetooth state to a broadcast state, and periodically broadcast a bluetooth broadcast message including current location information; The broadcast power satisfies the power condition; the power condition is for the purpose of reducing the coverage of the broadcast.
  4. 根据权利要求1所述的物联网模块定位方法,其特征在于,还包括:The IoT module positioning method according to claim 1, further comprising:
    确认本体所处区域;Confirm the area where the main body is located;
    根据所述本体所处区域的物联网模块使用密集程度调节所述搜索状态的搜索周期。The search cycle of the search state is adjusted according to the intensive use of the Internet of Things modules in the area where the ontology is located.
  5. 根据权利要求2所述的物联网模块定位方法,其特征在于,所述卫星信号为GPS信号;所述位置信息的数据类型为NMEA数据;所述搜索状态的搜索方式为BLE搜索;所述广播状态的广播方式为BLE广播。The IoT module positioning method according to claim 2, wherein the satellite signal is a GPS signal; the data type of the location information is NMEA data; the search mode of the search state is BLE search; the broadcast The broadcast mode of status is BLE broadcast.
  6. 一种物联网模块定位装置,其特征在于,包括:A module positioning device for the Internet of Things, characterized in that it comprises:
    检测单元,用于检测卫星信号强度,将所述卫星信号强度和阈值进行比较;a detection unit, configured to detect satellite signal strength, and compare the satellite signal strength with a threshold;
    搜索单元,用于在所述比较的结果为所述卫星信号的强度小于所述阈值的情况下,切换蓝牙状态为搜索状态,周期性搜索蓝牙广播消息;所述蓝牙广播消息包括另一物联网模块的位置信息;所述蓝牙广播消息为所述另一物联网模块检测到的卫星信号的强度大于所述阈值的情况下输出的;The search unit is used to switch the bluetooth state to the search state when the result of the comparison is that the strength of the satellite signal is less than the threshold, and periodically search for bluetooth broadcast messages; the bluetooth broadcast messages include another internet of things The location information of the module; the Bluetooth broadcast message is output when the strength of the satellite signal detected by the other IoT module is greater than the threshold;
    定位单元,用于在搜索到所述蓝牙广播消息的情况下,将所述蓝牙广播消息中的所述另一物联网模块的位置信息作为本体的位置信息。The positioning unit is configured to use the location information of the other IoT module in the Bluetooth broadcast message as the location information of the main body when the Bluetooth broadcast message is found.
  7. 一种物联网模块,其特征在于,用于执行权利要求1至5任一项所述的物联网模块定位方法。An Internet of Things module, characterized in that it is used to execute the method for positioning an Internet of Things module according to any one of claims 1 to 5.
  8. 一种物联网模块定位系统,其特征在于,包括:服务器和一个或多个电子设备;所述电子设备包括权利要求7所述的物联网模块;所述物联网模块连接所述服务器;A positioning system for an Internet of Things module, characterized in that it includes: a server and one or more electronic devices; the electronic device includes the Internet of Things module according to claim 7; the Internet of Things module is connected to the server;
    所述物联网模块将本体的位置信息上传至所述服务器。The IoT module uploads the location information of the main body to the server.
  9. 一个或多个计算机可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被一个或多个处理器执行时实现权利要求1至5中任一项所述的方法的步骤。One or more computer-readable storage media on which computer-readable instructions are stored, wherein the computer-readable instructions are executed by one or more processors to implement any one of claims 1 to 5 steps of the method.
  10. 一种计算机程序产品,包括计算机可读指令,其特征在于,该计算机可读指令被一个或多个处理器执行时实现权利要求1至5中任一项所述的方法的步骤。A computer program product comprising computer readable instructions, wherein the computer readable instructions are executed by one or more processors to implement the steps of the method according to any one of claims 1 to 5.
PCT/CN2022/138271 2022-01-13 2022-12-12 Positioning method and apparatus for internet-of-things module, and system and storage medium WO2023134357A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210037202.8A CN114466341A (en) 2022-01-13 2022-01-13 Internet of things module positioning method, device and system and storage medium
CN202210037202.8 2022-01-13

Publications (1)

Publication Number Publication Date
WO2023134357A1 true WO2023134357A1 (en) 2023-07-20

Family

ID=81409868

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/138271 WO2023134357A1 (en) 2022-01-13 2022-12-12 Positioning method and apparatus for internet-of-things module, and system and storage medium

Country Status (2)

Country Link
CN (1) CN114466341A (en)
WO (1) WO2023134357A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466341A (en) * 2022-01-13 2022-05-10 西安广和通无线软件有限公司 Internet of things module positioning method, device and system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015187005A1 (en) * 2014-06-06 2015-12-10 Intellifi B.V. An information transmission method
CN110392342A (en) * 2019-07-25 2019-10-29 深圳市前海智车科技有限公司 A kind of indoor and outdoor seamless positioning navigation methods and systems
CN110769367A (en) * 2019-10-30 2020-02-07 四川长虹电器股份有限公司 Indoor and outdoor positioning method and system combining NB-IOT communication and Bluetooth
CN110996263A (en) * 2019-12-03 2020-04-10 南京卓连软件科技有限公司 Relay positioning system and positioning method based on short-distance low-power-consumption communication technology
CN112822643A (en) * 2021-01-14 2021-05-18 深圳市芯中芯科技有限公司 Bluetooth device multi-connection networking method and system based on BLE broadcasting
CN114466341A (en) * 2022-01-13 2022-05-10 西安广和通无线软件有限公司 Internet of things module positioning method, device and system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015187005A1 (en) * 2014-06-06 2015-12-10 Intellifi B.V. An information transmission method
CN110392342A (en) * 2019-07-25 2019-10-29 深圳市前海智车科技有限公司 A kind of indoor and outdoor seamless positioning navigation methods and systems
CN110769367A (en) * 2019-10-30 2020-02-07 四川长虹电器股份有限公司 Indoor and outdoor positioning method and system combining NB-IOT communication and Bluetooth
CN110996263A (en) * 2019-12-03 2020-04-10 南京卓连软件科技有限公司 Relay positioning system and positioning method based on short-distance low-power-consumption communication technology
CN112822643A (en) * 2021-01-14 2021-05-18 深圳市芯中芯科技有限公司 Bluetooth device multi-connection networking method and system based on BLE broadcasting
CN114466341A (en) * 2022-01-13 2022-05-10 西安广和通无线软件有限公司 Internet of things module positioning method, device and system and storage medium

Also Published As

Publication number Publication date
CN114466341A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
WO2023134357A1 (en) Positioning method and apparatus for internet-of-things module, and system and storage medium
US11218864B2 (en) Methods and systems for varying channel scanning duration
US20130331118A1 (en) Performing enhanced background location scans to facilitate location-based geo-fencing
US7942936B2 (en) Electronic system location determination
US10448238B2 (en) Delay tolerant decentralized network
US9137775B2 (en) Method for enhancing positioning measurement and communications apparatus utilizing the same
CN114222363B (en) Terminal position identification method, device and positioning system
JP2017504003A (en) Granular asset tracking using landmark tags
US11581746B2 (en) Battery life of battery powered wireless devices
WO2020037903A1 (en) Method and apparatus for controlling controller, and device and storage medium
US20230206870A1 (en) Synchronous display blinking
WO2021238524A1 (en) Radio frequency fingerprint reporting control method and terminal, and storage medium
US20160070332A1 (en) Modifying Power Consumption Based On Energy-Usage Messages
TW201921991A (en) Optimized data synchronization
US11716668B2 (en) Wireless channel selection management system and method of using the same
Ibikunle et al. Management issues and challenges in mobile database system
US20230333239A1 (en) Ultra-wide band device and ultra-wide band ranging method using the same
CN112788713A (en) Network connection method, terminal and computer storage medium
WO2023116750A1 (en) Detection method and apparatus, and terminal and storage medium
US20230370806A1 (en) Location based network information
US20230413293A1 (en) Many-to-many wireless network ranging technique
CN114302424B (en) Power consumption detection method and device of communication module, computer equipment and storage medium
US9351117B2 (en) Use of a trained classifier to predict distance based on a pair of wireless scans
CN111246450B (en) 5G mobile terminal coverage loss processing method
CN117202291A (en) Signal access method, signal access device, computer 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: 22919990

Country of ref document: EP

Kind code of ref document: A1