CN109041082B - Positioning information transmission method - Google Patents
Positioning information transmission method Download PDFInfo
- Publication number
- CN109041082B CN109041082B CN201810826409.7A CN201810826409A CN109041082B CN 109041082 B CN109041082 B CN 109041082B CN 201810826409 A CN201810826409 A CN 201810826409A CN 109041082 B CN109041082 B CN 109041082B
- Authority
- CN
- China
- Prior art keywords
- equipment
- broadcasting
- information
- signal strength
- received signal
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000005540 biological transmission Effects 0.000 title claims abstract description 27
- 238000004891 communication Methods 0.000 claims abstract description 20
- 238000004140 cleaning Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 3
- 230000003139 buffering effect Effects 0.000 claims 1
- 238000012545 processing Methods 0.000 description 15
- 238000004422 calculation algorithm Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0231—Traffic management, e.g. flow control or congestion control based on communication conditions
- H04W28/0236—Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
- H04W28/14—Flow control between communication endpoints using intermediate storage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/33—Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The embodiment of the invention relates to the technical field of Internet of things and discloses a positioning information transmission method. The positioning information transmission method comprises the following steps: acquiring a received signal strength RSSI value between the broadcasting equipment and the broadcasting equipment; establishing a wireless communication connection with a broadcasting device; judging whether the RSSI value is greater than or equal to a cache threshold value of the broadcasting equipment or not; if the judgment result is yes, the RSSI value and the equipment information of the RSSI value and the equipment information are sent to the broadcasting equipment for caching, and all the RSSI values and all the equipment information of the current cached received signal strength of the broadcasting equipment are uploaded to a preset positioning server. By adopting the embodiment of the invention, the intelligent equipment which sends the information to the positioning server can be screened, and the information does not need to be transmitted to the positioning server by all the intelligent equipment, thereby not only saving the network bandwidth and simplifying and effectively the positioning information received by the positioning server, but also improving the number of broadcasting equipment which can be positioned under the same network condition.
Description
Technical Field
The embodiment of the invention relates to the technical field of Internet of things, in particular to a positioning information transmission method.
Background
With the rapid development of applications of smart phones and mobile internet, location-based services are more and more concerned by people, a real-time positioning technology becomes a basic technology for a plurality of high-level applications such as traffic, commerce, logistics, personalized services and the like, and a global navigation satellite system can provide good positioning services through long-term development. However, the satellite signals are weak when reaching the ground, cannot penetrate buildings, and have multipath effects, so that the global positioning system cannot provide reliable indoor positioning services.
At present, the indoor positioning technology mostly utilizes the principle that the wireless signal intensity gradually attenuates along with the increase of the distance, a plurality of wireless signal receivers are arranged in an internet of things system, a signal transmitting device carried by a moving target transmits a wireless signal, each receiver acquires the wireless signal intensity between the receiver and the signal transmitting device, and the acquired wireless signal intensity is used as a parameter to be transmitted to a positioning server, so that the positioning server can calculate the distance between each receiver and the moving target, and the indoor positioning of the moving target is realized. However, the inventors of the present patent application found in the course of long-term development that: after each receiver in the prior art acquires the wireless signal intensity between the receiver and the signal transmitting device, the acquired wireless signal intensity is sent to the positioning server, the positioning server receives more positioning information, and useless data in the positioning information can increase the data processing pressure of the positioning server, so that the positioning efficiency is reduced and is low.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a method for transmitting positioning information, which can screen an intelligent device that sends information to a positioning server, and does not require all the intelligent devices to transmit information to the positioning server, thereby saving network bandwidth, simplifying and effectively transmitting the positioning information received by the positioning server, reducing data processing pressure of the positioning server, improving positioning efficiency, and increasing the number of broadcasting devices that can be positioned under the same network conditions.
In order to solve the above technical problem, an embodiment of the present invention provides a positioning information transmission method, which is applied to an intelligent device, and the method includes:
acquiring a received signal strength RSSI value between the broadcasting equipment and the broadcasting equipment;
establishing a wireless communication connection with a broadcasting device;
acquiring a cache threshold value of the broadcasting equipment, and judging whether the RSSI value is greater than or equal to the cache threshold value of the broadcasting equipment or not;
if the judgment result is yes, sending the received signal strength RSSI value and the self equipment information to the broadcasting equipment for caching;
when all received signal strength RSSI values and all equipment information which are cached currently by the broadcasting equipment are acquired, all the received signal strength RSSI values and all the equipment information which are cached currently by the broadcasting equipment are uploaded to a preset positioning server;
when the number of the RSSI values of the received signal strength currently cached by the broadcasting equipment is less than an initial preset threshold value, the caching threshold value is- ∞; when the number of the received signal strength RSSI values currently cached by the broadcasting equipment reaches an initial preset threshold value, the caching threshold value is equal to the lowest received signal strength RSSI value currently cached by the broadcasting equipment.
The embodiment of the invention also provides a positioning information transmission method, which is applied to broadcasting equipment and comprises the following steps:
when a connection request of the intelligent equipment is received, establishing wireless communication connection with the intelligent equipment;
sending all currently cached RSSI values to the intelligent equipment so that the intelligent equipment can acquire the cache threshold value of the broadcasting equipment; or generating a cache threshold value according to all currently cached RSSI values, and sending the cache threshold value to the intelligent equipment; if the number of the currently cached RSSI values is smaller than an initial preset threshold value, setting a caching threshold value to-infinity, and if the number of the currently cached RSSI values reaches the initial preset threshold value, setting the caching threshold value to be the currently cached lowest RSSI value;
when a received signal strength RSSI value and equipment information sent by the intelligent equipment are received, deleting the currently cached lowest received signal strength RSSI value and the equipment information, and caching the received signal strength RSSI value and the equipment information;
and sending all the currently cached RSSI values and all the equipment information to the intelligent equipment.
An embodiment of the present invention further provides an intelligent device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described location information transmission method applied to the smart device.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the positioning information transmission method applied to the intelligent device.
Compared with the prior art, the embodiment of the invention has the advantages that the intelligent equipment sends the received signal strength RSSI value and the equipment information thereof to the broadcasting equipment for caching when the received signal strength RSSI value is greater than or equal to the caching threshold value of the broadcasting equipment, namely, the received signal strength RSSI values of the intelligent equipment in the Internet of things system are screened, and the larger received signal strength RSSI value can be cached in the broadcasting equipment. Therefore, the intelligent equipment transmits the RSSI value and the equipment information of each received signal strength cached by the broadcasting equipment to the positioning server for positioning, so that the positioning information received by the positioning server is simplified and effective, the data processing pressure of the positioning server is reduced, and the positioning efficiency is improved. By the method, the intelligent equipment for sending the information to the positioning server is screened, so that all the intelligent equipment are not required to transmit the information to the positioning server, the network bandwidth is saved, and the number of the broadcasting equipment which can be positioned under the same network condition is increased.
Preferably, before uploading all the RSSI values of the received signal strength currently cached by the broadcasting device and all the device information to a preset positioning server, the method further includes: and detecting that the received signal strength RSSI value is the maximum value of all received signal strength RSSI values currently cached by the broadcasting equipment. Therefore, the positioning server is prevented from receiving too much invalid and repeated data information, the data processing pressure of the positioning server is further reduced, and the positioning efficiency is improved.
Preferably, the positioning information transmission method further includes: if the judgment result is yes, the mobile information is uploaded to a preset positioning server when the mobile information sent by the broadcasting equipment is received. Therefore, the positioning server can obtain more effective information, and a data basis is provided for obtaining a positioning result with higher accuracy.
Preferably, before uploading the mobile information to a preset positioning server, the method further includes: and detecting that the received signal strength RSSI value is the maximum value of all received signal strength RSSI values currently cached by the broadcasting equipment. Therefore, the positioning server is prevented from receiving too much invalid and repeated data information, the data processing pressure of the positioning server is further reduced, and the positioning efficiency is improved.
Preferably, before establishing the wireless communication connection with the broadcasting device, the method further includes: and judging that the time interval between the time point of last connection establishment with the broadcasting equipment and the current time point is greater than the preset time length, so that the power consumption of the intelligent equipment can be reduced, and the connection pressure of the broadcasting equipment can be reduced.
Preferably, before sending the RSSI value and the device information of the broadcast device to the broadcast device for caching, the method further includes: sending a cleaning instruction to the broadcasting equipment; the clearing instruction is used for controlling the broadcasting equipment to delete each overtime received signal strength RSSI value and corresponding equipment information in all currently cached received signal strength RSSI values. In this way, the broadcaster can be enabled to delete the invalid timeout information in a timely manner to make room for the storage of subsequent RSSI values.
Preferably, the broadcasting device is a bluetooth device; establishing a wireless communication connection with a broadcasting device, specifically comprising: the low-power-consumption Bluetooth general configuration GATT connection is established with the broadcasting equipment, so that the occupation of network resources can be reduced, the data transmission efficiency is improved, and the phenomenon of packet loss is avoided.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a detailed flowchart of a positioning information transmission method according to a first embodiment;
fig. 2 is a schematic diagram of a positional relationship of the smart devices a1, a2 and A3 and the broadcasting device B1 according to the first embodiment;
fig. 3 is a detailed flowchart of a positioning information transmission method and an intelligent device according to a second embodiment;
fig. 4 is a detailed flowchart of a positioning information transmission method and an intelligent device according to a third embodiment;
fig. 5 is a schematic diagram of a smart device according to a fourth embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a method for transmitting positioning information, and a specific flow is shown in fig. 1. The positioning information transmission method in the embodiment is implemented on intelligent equipment, and the intelligent equipment can be intelligent lighting equipment (such as an intelligent bulb), an intelligent ground mat, an intelligent switch and the like. The following describes specific implementation steps of the positioning information transmission method in this embodiment:
Specifically, the broadcasting device can be a mobile terminal such as a wireless tag, a mobile phone, a bracelet, a tablet computer, and the like, and is convenient for a user to carry about.
More specifically, the broadcasting device broadcasts a data packet, and the data packet may include device information of the broadcasting device and signal transmission power. When the intelligent equipment receives the data packet, the signal receiving power when the data packet is obtained is detected, and the received signal strength RSSI value is obtained according to the signal receiving power and the signal sending power contained in the data packet.
Specifically, after receiving a data packet broadcast by the broadcasting equipment, the intelligent equipment sends a connection request to the broadcasting equipment according to the equipment information in the data packet, and establishes wireless communication connection with the broadcasting equipment. The wireless communication connection established between the intelligent device and the broadcasting device can be a mobile wireless network connection, a wireless fidelity network connection, a Bluetooth network connection and the like.
More specifically, the intelligent device establishes the wireless communication connection with the broadcasting device only when the time interval between the time point of the last connection establishment with the broadcasting device and the current time point is determined to be greater than the preset time, so that the intelligent device can be prevented from being connected with the broadcasting device too frequently, the power consumption of the intelligent device can be reduced, and the connection pressure of the broadcasting device can be reduced. The preset time period may be preset by a technician, for example, the preset time period may be 1 second.
Specifically, the obtaining manner of the cache threshold value may be: and the broadcasting equipment sends all the currently cached RSSI values to the intelligent equipment so that the intelligent equipment can set and acquire the caching threshold value of the broadcasting equipment. For example, the intelligent device sets an acquisition buffer threshold value according to an initial preset threshold value of the broadcasting device and all currently buffered received signal strength RSSI values, when the number of currently buffered received signal strength RSSI values of the broadcasting device is less than the initial preset threshold value, the buffer threshold value is ∞, and when the number of currently buffered received signal strength RSSI values of the broadcasting device reaches the initial preset threshold value, the buffer threshold value is equal to the lowest currently buffered received signal strength RSSI value of the broadcasting device. The initial preset threshold may be 1, or may be preset by a technician according to a positioning algorithm in the positioning server, for example, when the positioning algorithm in the positioning server is a triangulation algorithm, the initial preset threshold may be 3.
More specifically, the obtaining manner of the cache threshold value may further be: and the broadcasting equipment generates a cache threshold value according to all the currently cached RSSI values and sends the cache threshold value to the intelligent equipment.
The following illustrates a specific implementation form of step 103 in this embodiment:
(1) the initial preset threshold value is 3, and if the broadcasting equipment actually caches 2 RSSI values at present, the caching threshold value of the broadcasting equipment acquired by the intelligent equipment is- ∞.
(2) The initial preset threshold value is 3, the broadcasting equipment actually caches 3 RSSI values at present, which are-59, -60, -70 respectively, and then the caching threshold value of the broadcasting equipment acquired by the intelligent equipment is-70. If the RSSI value of the smart device is-65, the determination result in step 102 is yes. If the RSSI value of the received signal strength of the smart device is-71, the determination result in step 102 is no.
Specifically, the clear instruction is used to control the broadcasting device to delete each overtime RSSI value among all currently cached RSSI values and the corresponding device information. In this way, the broadcaster can be enabled to clear the time-out, invalid information in a timely manner to make room for the storage of subsequent RSSI values.
It should be noted that the broadcasting device may also detect whether an overtime received signal strength RSSI value exists in all currently cached received signal strength RSSI values by itself, and if it is detected that an overtime received signal strength RSSI value exists in all currently cached received signal strength RSSI values, delete the overtime received signal strength RSSI value and the corresponding device information, so as to also implement timely cleaning of the overtime and invalid information and free up a location for storing a subsequent RSSI value. Based on this, step 104 may be omitted if the broadcasting device has a function of self-cleaning data.
And 105, sending the received signal strength RSSI value and the own equipment information to the broadcasting equipment for caching.
Specifically, the smart device sends the RSSI value and its own device information to the broadcasting device through the established wireless communication connection, so that the broadcasting device deletes the lowest RSSI value currently cached and its corresponding device information, and caches the device information and the RSSI value of the smart device as a set of correspondence (that is, all the RSSI values currently cached by the broadcasting device and all the device information are one correspondence between the RSSI values and the device information). The device information of the intelligent device may be a unique identification code of the intelligent device, such as a hardware address of the intelligent device or a device number of the intelligent device in the internet of things system.
In this embodiment, after caching the device information and the received signal strength RSSI value of the smart device, the broadcasting device may filter and screen the currently cached received signal strength RSSI value and the device information. For example, the broadcasting device may only store the maximum RSSI value and the device information thereof if only one RSSI value with the maximum RSSI value exists among all the RSSI values currently cached by the broadcasting device, and the other RSSI values with the maximum RSSI value are equal. That is, the RSSI value of the received signal strength buffered by the broadcasting device and the amount of the device information may be determined according to actual situations. The following are exemplified:
as shown in fig. 2, the smart devices a1, a2, and A3 are smart bulbs, a2 and A3 are symmetrically disposed on both sides of the smart device a1, and the broadcasting device B1 is located right below the smart device a 1. RSSI1 represents the received signal strength RSSI value between smart device a1 and broadcaster B1; RSSI2 represents the received signal strength RSSI value between smart device a2 and broadcaster B2; RSSI3 represents the received signal strength RSSI value between smart device A3 and broadcaster B3. As can be seen from fig. 2, RSSI2 and RSSI3 are equal, and RSSI1 is greater than RSSI2 and RSSI 3. At this time, the location of the smart device a1 is the location of the broadcasting device B1, so the RSSI value actually cached by the broadcasting device may be only RSSI1, and thus, there is less data to be transmitted between the broadcasting device and the smart device, less data to be uploaded by the smart device, and less data processing pressure of the location server.
However, the example in fig. 2 is only an exemplary illustration, and the embodiment does not limit how the broadcasting device processes the buffered RSSI value.
And step 106, acquiring all received signal strength RSSI values and all equipment information currently cached by the broadcasting equipment, and uploading to a preset positioning server.
Specifically, the intelligent device transmits all received signal strength RSSI values and all device information sent by the broadcasting device to the gateway through the MESH network of the wireless MESH of the internet of things system, so as to be conveniently transferred to the preset positioning server through the gateway. The technical staff or the user can perform simple configuration on the gateway in advance, so that the gateway can guide the data to a preset positioning server for calculation.
In this embodiment, after acquiring the RSSI value sent by the smart device, the broadcasting device may detect whether the RSSI value is the maximum value among all the RSSI values currently cached. If the RSSI value is the maximum value of all the RSSI values cached currently, the broadcasting equipment transmits all the RSSI values cached currently and all the equipment information to the intelligent equipment. Or, after acquiring all the received signal strength RSSI values and all the device information currently cached by the broadcasting device, the intelligent device may further detect whether the received signal strength RSSI value between itself and the broadcasting device is the maximum value among all the received signal strength RSSI values currently cached by the broadcasting device, and perform the uploading step only when detecting that the received signal strength RSSI value is the maximum value among all the received signal strength RSSI values. Therefore, the positioning server can be prevented from receiving too much invalid and repeated data information, the data processing pressure of the positioning server is further reduced, and the positioning efficiency is improved.
For example, all the RSSI values currently buffered by the broadcasting device and all the device information may be as shown in the following table one:
watch 1
Device numbering | RSSI value |
1 | -59 |
2 | -60 |
3 | -70 |
As can be seen from table one, the smart device with device number 1 is closest to the broadcasting device among the three smart devices in table one; the smart device with device number 3 is the farthest from the broadcaster of the three smart devices in table one. The positioning server may obtain the position coordinates of the smart device with the device number 1, the position coordinates of the smart device with the device number 2, and the position coordinates of the smart device with the device number 3 according to a pre-stored positioning algorithm (such as a triangulation algorithm) and a correspondence between the device information and the position coordinates, thereby positioning the broadcasting device.
It should be noted that, if the broadcasting device is a bluetooth tag, a mobile phone with a bluetooth function, a bracelet, or the like, the wireless communication connection established between the smart device and the broadcasting device may be a bluetooth low energy (bluetooth) Generic Attribute Profile (GATT) connection. Therefore, information interaction between the intelligent equipment and the broadcasting equipment is transmitted through the data channel, the load of the broadcasting channel can be reduced, and the conditions of congestion, low transmission efficiency and serious packet loss of the broadcasting channel are avoided. In addition, although the length of the data transmitted by the bluetooth data channel is limited, in this embodiment, only a very small number of RSSI values and device information need to be transmitted, so that the GATT connection can be established to meet the data transmission requirements in this embodiment.
Compared with the prior art, the embodiment of the invention has the advantages that the intelligent device sends the received signal strength RSSI value and the self device information to the broadcasting device for caching when the received signal strength RSSI value is greater than or equal to the caching threshold value of the broadcasting device, namely, the received signal strength RSSI values of all the intelligent devices in the Internet of things system are screened, and the larger received signal strength RSSI value can be cached in the broadcasting device. Therefore, the intelligent equipment transmits the RSSI value and the equipment information of each received signal strength cached by the broadcasting equipment to the positioning server for positioning, so that the positioning information received by the positioning server is simplified and effective, the data processing pressure of the positioning server is reduced, and the positioning efficiency is improved. By the method, the intelligent equipment for sending the information to the positioning server is screened, so that all the intelligent equipment are not required to transmit the information to the positioning server, the network bandwidth is saved, and the number of the broadcasting equipment which can be positioned under the same network condition is increased.
A second embodiment of the present invention relates to a positioning information transmission method. The second embodiment is improved on the basis of the first embodiment, and the main improvement lies in that: in the second embodiment of the present invention, the intelligent device further uploads the mobile information of the broadcasting device to the positioning server, so as to provide a data base for the positioning server to obtain a positioning result with higher accuracy.
Specifically, if the determination result in step 103 is yes, the smart device uploads the movement information to a preset positioning server when receiving the movement information sent by the broadcasting device, so that the positioning server performs positioning calibration on the broadcasting device according to the movement information. Therefore, the positioning server can acquire a more accurate positioning result, and can prevent all intelligent devices from sending the received mobile information to the positioning server, so that the positioning server receives too many repeated mobile information, thereby effectively reducing the data processing pressure of the positioning server and improving the positioning efficiency.
More specifically, the broadcasting device may be provided with sensors such as an accelerator, a gyroscope, and the like, by which the broadcasting device monitors whether it is moving and generates movement information. And, the broadcasting equipment can transmit the mobile information in a broadcasting form, so that the intelligent equipment can receive the mobile information broadcasted by the broadcasting equipment.
In actual operation, the uploading condition of the mobile information can be increased, for example, the intelligent device uploads the mobile information to a preset positioning server when detecting that the RSSI value is the maximum value of all RSSI values cached by the broadcasting device currently, so that the positioning server can be further prevented from receiving too many repeated mobile information, the data processing pressure of the positioning server is effectively reduced, and the positioning efficiency is improved.
Compared with the first embodiment, the positioning information transmission method in the present embodiment can obtain a more accurate positioning result even when the user moves, and the application range is wider.
A third embodiment of the present invention relates to a method for transmitting positioning information, and a specific flow is shown in fig. 3. The positioning information transmission method in the embodiment is implemented on broadcasting equipment, and the broadcasting equipment can be a mobile terminal such as a wireless tag, a mobile phone, a bracelet, a tablet computer and the like. The following describes specific implementation steps of the positioning information transmission method in this embodiment:
Specifically, the broadcasting device broadcasts a data packet, and the data packet may include device information of the broadcasting device and signal transmission power. When the intelligent equipment receives the data packet, the signal receiving power when the data packet is obtained is detected, and the received signal strength RSSI value is obtained according to the signal receiving power and the signal sending power contained in the data packet. And the intelligent equipment sends a connection request to the broadcasting equipment according to the equipment information in the data packet, and establishes wireless communication connection with the broadcasting equipment. The wireless communication connection established between the intelligent device and the broadcasting device can be a mobile wireless network connection, a wireless fidelity network connection, a Bluetooth network connection and the like.
In this embodiment, the broadcast device generates the buffer threshold value. If the number of the currently cached RSSI values of the received signal strength is smaller than an initial preset threshold value, setting the caching threshold value to- ∞, and if the number of the currently cached RSSI values reaches the initial preset threshold value, setting the caching threshold value to be the lowest RSSI value currently cached. The initial preset threshold may be preset by a technician and stored in the broadcasting device, for example, the initial preset threshold may be 1. In actual use, a technician may set an initial preset threshold according to a positioning algorithm in the positioning server, for example, when the positioning algorithm in the positioning server is a triangulation algorithm, the initial preset threshold is 3.
Specifically, the broadcasting device deletes the lowest RSSI value and the device information corresponding thereto, which are currently cached, and caches the device information of the smart device and the RSSI value as a set of correspondence. The device information of the intelligent device may be a unique identification code of the intelligent device, such as a hardware address of the intelligent device or a device number of the intelligent device in the internet of things system.
More specifically, the broadcasting device may filter the currently buffered RSSI values and the device information. For example, the broadcasting device may only store the maximum RSSI value and the device information thereof if only one RSSI value with the maximum RSSI value exists among all the RSSI values currently cached by the broadcasting device, and the other RSSI values with the maximum RSSI value are equal. That is, the broadcasting device may perform certain processing on the buffered RSSI value.
And step 204, sending all the currently cached RSSI values and all the equipment information to the intelligent equipment.
Specifically, the broadcasting device sends all currently buffered RSSI values and all device information to the smart device through the wireless communication connection established in step 201.
In this embodiment, the technical staff sets the broadcasting equipment to have a data self-cleaning function, for example, the broadcasting equipment detects whether an overtime received signal strength RSSI value exists in all currently cached received signal strength RSSI values, and if it is detected that an overtime received signal strength RSSI value exists in all currently cached received signal strength RSSI values, the overtime received signal strength RSSI value and the corresponding equipment information are deleted, so as to clear the overtime and invalid information in time and vacate a position for storing a subsequent RSSI value. Wherein the time value of whether the broadcast equipment measures time out can be preset by a technician.
In actual operation, the technician may also set that the intelligent device sends a cleaning instruction to the broadcasting device after determining whether the received signal strength RSSI value is greater than or equal to the cache threshold value of the broadcasting device, so that the broadcasting device deletes each overtime received signal strength RSSI value and the corresponding device information in all currently cached received signal strength RSSI values according to the cleaning instruction. It also enables the broadcaster to clear timely the overtime, invalid information in order to make room for the storage of subsequent RSSI values.
Therefore, the broadcasting equipment can clear all the received signal strength RSSI values and all the equipment information which are cached at present by self, and can also passively clear all the received signal strength RSSI values and all the equipment information which are cached at present when a clearing instruction sent by the intelligent equipment is received. In this regard, the present embodiment is not limited at all.
It should be noted that, after acquiring the RSSI value of the received signal strength sent by the smart device, the broadcasting device may detect whether the RSSI value of the received signal strength is the maximum value among all the RSSI values currently cached. If the RSSI value is the maximum value of all the RSSI values cached currently, the broadcasting equipment transmits all the RSSI values cached currently and all the equipment information to the intelligent equipment. Therefore, the positioning server can be prevented from receiving too much invalid and repeated data information, the data processing pressure of the positioning server is further reduced, and the positioning efficiency is improved.
It should be noted that, after the RSSI value is cached by the broadcasting device, the mobile information may be generated by using a built-in mobile detection module and broadcasted, so that the intelligent device can obtain the mobile information and upload the mobile information to a preset positioning server, so that the positioning server can obtain a more accurate positioning result. The movement detection module can be a sensor such as an accelerator and a gyroscope.
A fourth embodiment of the present invention relates to a method for transmitting positioning information, and a specific flow is shown in fig. 4. The fourth embodiment is substantially the same as the third embodiment, and mainly differs therefrom in that: the steps performed are slightly different and are specifically described below:
Specifically, the broadcasting device sends all currently cached RSSI values to the intelligent device through the wireless communication connection established in step 301, and the intelligent device sets and acquires the caching threshold value according to the initial preset threshold value of the broadcasting device and all currently cached RSSI values. If the number of the currently cached RSSI values of the broadcast device is less than the initial preset threshold, the caching threshold value is ∞, and if the number of the currently cached RSSI values of the broadcast device reaches the initial preset threshold, the caching threshold value is equal to the lowest RSSI value currently cached by the broadcast device. The initial preset threshold value may be preset in the intelligent device by a technician, or may be preset by the technician, stored in the broadcasting device, and transmitted to the intelligent device by the broadcasting device.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fifth embodiment of the present invention relates to a smart device, as shown in fig. 5, comprising at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401 to implement the positioning information transmission method mentioned in the first embodiment or the second embodiment.
Where the memory 402 and the processor 401 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 401 and the memory 402 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 401 may be transmitted over a wireless medium via an antenna, which may receive the data and transmit the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 402 may be used to store data used by processor 401 in performing operations.
Compared with the prior art, the method and the device for locating the broadcasting equipment can screen the intelligent equipment which sends the information to the locating server, and all the intelligent equipment is not required to transmit the information to the locating server, so that the network bandwidth is saved, the locating information received by the locating server is simplified and effective, the data processing pressure of the locating server is reduced, the locating efficiency is improved, and the number of the broadcasting equipment which can be located under the same network condition is increased.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the positioning information transmission method mentioned in the first embodiment or the second embodiment.
Compared with the prior art, the method and the device for locating the broadcasting equipment can screen the intelligent equipment which sends the information to the locating server, and all the intelligent equipment is not required to transmit the information to the locating server, so that the network bandwidth is saved, the locating information received by the locating server is simplified and effective, the data processing pressure of the locating server is reduced, the locating efficiency is improved, and the number of the broadcasting equipment which can be located under the same network condition is increased.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. A positioning information transmission method is applied to intelligent equipment, and the method comprises the following steps:
acquiring a received signal strength RSSI value between the broadcasting equipment and the broadcasting equipment;
establishing a wireless communication connection with the broadcasting device;
acquiring a cache threshold value of the broadcasting equipment, and judging whether the RSSI value is greater than or equal to the cache threshold value of the broadcasting equipment or not;
if the received signal strength RSSI value is the received signal strength RSSI value, sending the received signal strength RSSI value and the equipment information of the receiving signal strength RSSI value to the broadcasting equipment for caching;
when all received signal strength RSSI values and all equipment information which are cached currently by the broadcasting equipment are acquired, uploading all the received signal strength RSSI values and all the equipment information which are cached currently by the broadcasting equipment to a preset positioning server;
when the number of the RSSI values of the current cached received signal strength of the broadcasting equipment is less than an initial preset threshold value, the caching threshold value is- ∞; and when the number of the received signal strength RSSI values currently cached by the broadcasting equipment reaches an initial preset threshold value, the caching threshold value is equal to the lowest received signal strength RSSI value currently cached by the broadcasting equipment.
2. The method according to claim 1, wherein before uploading all RSSI values and all device information currently cached by the broadcasting device to a preset location server, the method further comprises:
and detecting that the RSSI value is the maximum value of all RSSI values currently cached by the broadcasting equipment.
3. The method for transmitting positioning information according to claim 1, further comprising:
if the mobile information is received, the mobile information is uploaded to a preset positioning server when the mobile information sent by the broadcasting equipment is received.
4. The method according to claim 3, wherein before uploading the mobile information to a predetermined location server, the method further comprises:
and detecting that the RSSI value is the maximum value of all RSSI values currently cached by the broadcasting equipment.
5. The method for transmitting positioning information according to claim 1, wherein before establishing the wireless communication connection with the broadcasting device, the method further comprises:
and judging that the time interval between the time point of last connection establishment with the broadcasting equipment and the current time point is greater than preset time length.
6. The method according to claim 1, wherein before sending the RSSI value and the device information to the broadcasting device for buffering, the method further comprises:
sending a cleaning instruction to the broadcasting equipment; the clearing instruction is used for controlling the broadcasting equipment to delete each overtime received signal strength RSSI value and corresponding equipment information in all currently cached received signal strength RSSI values.
7. The method according to claim 1, wherein the broadcasting device is a bluetooth device; the establishing of the wireless communication connection with the broadcasting device specifically includes:
and establishing a low-power Bluetooth general configuration GATT connection with the broadcasting equipment.
8. A positioning information transmission method, applied to a broadcasting device, the method comprising:
when a connection request of intelligent equipment is received, establishing wireless communication connection with the intelligent equipment;
sending all currently cached RSSI values to the intelligent equipment so that the intelligent equipment can obtain a cache threshold value of the broadcasting equipment; or generating a cache threshold value according to all currently cached RSSI values, and sending the cache threshold value to the intelligent equipment; if the number of the currently cached RSSI values is smaller than an initial preset threshold value, setting the caching threshold value to- ∞, and if the number of the currently cached RSSI values reaches the initial preset threshold value, setting the caching threshold value to be the lowest RSSI value currently cached;
when receiving a received signal strength RSSI value and device information sent by the intelligent device, deleting the currently cached lowest received signal strength RSSI value and the device information, and caching the received signal strength RSSI value and the device information, wherein the received signal strength RSSI value and the device information are sent by the intelligent device when the received signal strength RSSI value is greater than or equal to a caching threshold value of the broadcasting device;
and sending all the currently cached RSSI values and all the equipment information to the intelligent equipment.
9. The method for transmitting positioning information according to claim 8, further comprising:
and generating movement information by using a built-in movement detection module, and broadcasting the movement information.
10. The method according to claim 8, wherein when the broadcasting device detects that there is a received signal strength RSSI value that is overtime among all currently buffered received signal strength RSSI values, the broadcasting device deletes the received signal strength RSSI value that is overtime and the device information corresponding to the received signal strength RSSI value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810826409.7A CN109041082B (en) | 2018-07-25 | 2018-07-25 | Positioning information transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810826409.7A CN109041082B (en) | 2018-07-25 | 2018-07-25 | Positioning information transmission method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109041082A CN109041082A (en) | 2018-12-18 |
CN109041082B true CN109041082B (en) | 2022-02-22 |
Family
ID=64646096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810826409.7A Active CN109041082B (en) | 2018-07-25 | 2018-07-25 | Positioning information transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109041082B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327831A (en) * | 2018-12-19 | 2019-02-12 | 惠州Tcl移动通信有限公司 | Mobile terminal blue-teeth data processing method, device and storage medium |
CN109640308B (en) * | 2019-01-23 | 2023-07-04 | 成都怡康科技有限公司 | Bracelet wireless communication system and method thereof |
CN112822826A (en) * | 2019-10-30 | 2021-05-18 | 厦门立达信照明有限公司 | Light control method, system and signal transceiver |
CN111586661B (en) * | 2020-05-11 | 2022-09-02 | 山东亚华电子股份有限公司 | Adaptive association networking method and device based on BLE |
CN113037642B (en) * | 2021-02-25 | 2022-12-13 | 深圳技术大学 | Internet of things data transmission method and transmission system |
CN118042519B (en) * | 2024-04-12 | 2024-06-14 | 广东云百科技有限公司 | Intelligent DTU (digital television) of industrial Internet of things and data transmission method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103202075A (en) * | 2010-09-30 | 2013-07-10 | 诺基亚公司 | Positioning |
CN105182389A (en) * | 2014-03-26 | 2015-12-23 | 马维尔国际有限公司 | Method for collecting positioning data by using user equipment and user equipment |
CN106680767A (en) * | 2016-12-20 | 2017-05-17 | 深圳市天工测控技术有限公司 | Vehicle maintainer locating method and vehicle maintainer locating device based on wireless technology |
CN106856594A (en) * | 2016-12-13 | 2017-06-16 | 中国南方电网有限责任公司调峰调频发电公司 | Indoor orientation method and system based on RSSI |
CN107948296A (en) * | 2017-11-30 | 2018-04-20 | 中电科卫星导航运营服务有限公司 | A kind of indoor locating system and method based on bluetooth |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9820101B2 (en) * | 2015-08-24 | 2017-11-14 | Thinking Source, LLC | Device tracking system |
CN105873023A (en) * | 2016-05-09 | 2016-08-17 | 深圳市天工测控技术有限公司 | Indoor positioning system and method based on BLE mesh networking |
-
2018
- 2018-07-25 CN CN201810826409.7A patent/CN109041082B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103202075A (en) * | 2010-09-30 | 2013-07-10 | 诺基亚公司 | Positioning |
CN105182389A (en) * | 2014-03-26 | 2015-12-23 | 马维尔国际有限公司 | Method for collecting positioning data by using user equipment and user equipment |
CN106856594A (en) * | 2016-12-13 | 2017-06-16 | 中国南方电网有限责任公司调峰调频发电公司 | Indoor orientation method and system based on RSSI |
CN106680767A (en) * | 2016-12-20 | 2017-05-17 | 深圳市天工测控技术有限公司 | Vehicle maintainer locating method and vehicle maintainer locating device based on wireless technology |
CN107948296A (en) * | 2017-11-30 | 2018-04-20 | 中电科卫星导航运营服务有限公司 | A kind of indoor locating system and method based on bluetooth |
Also Published As
Publication number | Publication date |
---|---|
CN109041082A (en) | 2018-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109041082B (en) | Positioning information transmission method | |
US20180152840A1 (en) | Wearable apparatus, information terminal, communication system, electronic apparatus, and communication control method | |
JP4445951B2 (en) | Area estimation system and area estimation method | |
US20130308618A1 (en) | Driving hybrid location services from wlan stations using access points | |
KR101541809B1 (en) | Apparatus and method for receiving map data in portable terminal | |
US20120249300A1 (en) | Determination of location using rssi and transmit power | |
CN111836352B (en) | Power control method and terminal for physical side link feedback channel | |
US9686766B2 (en) | Location positioning using M2M ecosystem | |
JP2008051808A (en) | Mobile communication terminal, gps positioning method, positioning calculation system, and positioning server | |
CN105430744B (en) | Positioning method and positioning system | |
WO2013112322A1 (en) | Dynamic data retrieval in a wlan positioning system | |
EP3751948A3 (en) | Radio resource sensing and selecting method used by mobile device for wireless communication and mobile device using the same | |
CN112291711A (en) | Terminal and positioning method and positioning device thereof | |
CN107492259A (en) | A kind of parking space management system and method based on ibeacon | |
JP2008249723A (en) | Mobile communication terminal, gps positioning method, and positioning calculation system | |
WO2020052243A1 (en) | Multimodal location sensing on a mobile phone | |
WO2022179526A1 (en) | Positioning method, gateway, and positioning device | |
US20100003925A1 (en) | Insensitive area detecting method and apparatus for the same in radio communication system | |
CN113242517B (en) | Positioning control method, storage medium and equipment | |
WO2021164375A1 (en) | Terminal positioning method, server, and storage medium | |
CN111835468B (en) | Information sending and receiving method, terminal and control node | |
US20140293892A1 (en) | Wireless signal receiver and associated signal processing method | |
CN111031485A (en) | Bluetooth position service system combined with CNN and positioning method thereof | |
CN118042595B (en) | Positioning method, positioning device and communication equipment | |
US12015977B2 (en) | Control station device and wireless terminal station device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |