WO2020042146A1 - 定位信息确定方法、定位方法、节点、网关及物联网系统 - Google Patents

定位信息确定方法、定位方法、节点、网关及物联网系统 Download PDF

Info

Publication number
WO2020042146A1
WO2020042146A1 PCT/CN2018/103519 CN2018103519W WO2020042146A1 WO 2020042146 A1 WO2020042146 A1 WO 2020042146A1 CN 2018103519 W CN2018103519 W CN 2018103519W WO 2020042146 A1 WO2020042146 A1 WO 2020042146A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
parameter
gateway
preset
value
Prior art date
Application number
PCT/CN2018/103519
Other languages
English (en)
French (fr)
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 哈尔滨海能达科技有限公司
Priority to PCT/CN2018/103519 priority Critical patent/WO2020042146A1/zh
Publication of WO2020042146A1 publication Critical patent/WO2020042146A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/14Determining absolute distances from a plurality of spaced points of known location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of the Internet of Things, and more particularly, to a positioning information determination method, a positioning method, a node, a gateway, and an Internet of Things system.
  • the Internet of Things is a network of connected items.
  • the Internet of Things collects the information of the terminal (also called a node) through the lowest-level device, that is, the gateway, and reports it to the upper-layer devices (such as the monitoring station) of the Internet of Things, so that the terminal can be monitored and managed.
  • the commonly used node positioning method is to add a GPS module to a node and use GPS signals for positioning. This method not only increases the hardware cost of the node, but because the IoT node is generally powered by the battery, and the GPS module needs to consume power, therefore, adding the GPS module will undoubtedly shorten the working time of the node.
  • the purpose of this application is to provide a positioning information determination method, a positioning method, a node, a gateway, and an Internet of Things system, so as to realize positioning of a node at a lower cost and power consumption.
  • a positioning information determination method applied to a node includes:
  • a synchronization policy sends an adjustment instruction to each of the target gateways, and the adjustment instruction is used to instruct the target gateway to adjust the value of at least one preset parameter to determine that the node is located with the target gateway as The central annular area, where the preset parameter is related to the coverage distance of the gateway signal; the determined annular area is used to determine the location of the node.
  • the request for obtaining a positioning mode includes:
  • the performing information exchange with gateways around the node, and determining a preset number of target gateways among the gateways around the node according to the interaction results including:
  • the number of the candidate gateways is greater than or equal to the preset number, determining a preset number of target gateways among the candidate gateways;
  • the number of gateways to be selected is less than the preset number, adjust the value of the at least one preset parameter in synchronization with the gateways around the node to increase the signal coverage distance of the gateways around the node ; Return to the step of performing the broadcasting the first positioning request message.
  • the performing information exchange with gateways around the node, and determining a preset number of target gateways among the gateways around the node according to the interaction results including:
  • the number of the received second positioning request information is greater than or equal to the preset number, determining a preset number of target gateways among the gateways sending the second positioning request message;
  • the value of the at least one preset parameter is adjusted in synchronization with the gateway around the node, so as to expand the gateway around the node.
  • the signal covers the distance; and returns to the step of receiving the second positioning request information sent by a gateway around the node.
  • the sending an adjustment instruction to each of the target gateways according to a preset synchronization strategy includes:
  • the target gateway If the determination result is no, send a second adjustment instruction to the target gateway, and restore the value of the parameter to be adjusted to the value before the last adjustment, and the second adjustment instruction is used to instruct the target gateway Returning the value of the parameter to be adjusted to the value before the last adjustment; if there are unadjusted parameters, selecting the next preset parameter among the at least one preset parameter as the parameter to be adjusted, And returning to the step of determining the target value of the parameter to be adjusted according to a preset adjustment strategy, and in the case where there is no unadjusted parameter, sending an adjustment end message to the target gateway, so that the target gateway Determine the annular area centered on the target gateway where the node is located according to the coverage distance determined in the last two times and the position of the target gateway.
  • the sending an adjustment instruction to each of the target gateways according to a preset synchronization strategy includes:
  • the target gateway If the determination result is no, send a fifth adjustment instruction to the target gateway, and restore the value of the parameter to be adjusted to the value before the last adjustment; the fifth adjustment instruction is used to instruct the target gateway Restore the value of the parameter to be adjusted to the value before the last adjustment;
  • a sixth adjustment instruction is sent to the target gateway to instruct the target gateway to select a next preset parameter among the at least one preset parameter according to the preset selection strategy.
  • a parameter to be adjusted and returning to executing the step of adjusting the value of the parameter to be adjusted to a target value according to the preset adjustment strategy;
  • the at least one preset parameter is at least one of the following three parameters: a spreading factor, a bandwidth, and a transmission power.
  • a positioning information determining method applied to a gateway includes:
  • the node performs information interaction with the node entering the positioning mode, so that the node determines a preset number of target gateways according to the interaction result, the preset number is a positive integer greater than or equal to 3;
  • an adjustment instruction sent by the node is received, adjusting the value of at least one preset parameter in response to the adjustment instruction, so as to determine a ring area centered on the gateway where the node is located; the The preset parameter is related to the coverage distance of the gateway signal; the determined circular area is used to determine the location of the node.
  • the request for obtaining a positioning mode includes:
  • the performing information interaction with a node entering a positioning mode includes:
  • the performing information interaction with a node entering a positioning mode includes:
  • the timing is an order in which all gateways entering a positioning mode send the second positioning request message to the node;
  • the node sends the second positioning request message.
  • the value of at least one preset parameter is adjusted in response to the adjustment instruction, so as to determine the gateway to which the node is located.
  • Centered circular area including:
  • the value of the parameter to be adjusted is adjusted to The target value
  • the value of the parameter to be adjusted is restored to the value before the last adjustment
  • the ring-shaped area centered on the gateway where the node is located is determined according to the coverage distance determined in the last two times and the location of the gateway.
  • the value of at least one preset parameter is adjusted in response to the adjustment instruction, so as to determine the gateway to which the node is located.
  • Centered circular area including:
  • a preset parameter is selected as the parameter to be adjusted according to a preset selection strategy; the value of the parameter to be adjusted is adjusted to the target value according to the preset adjustment strategy; The value of the at least one preset parameter determines a signal coverage distance of the gateway;
  • the value of the parameter to be adjusted is restored to the value before the last adjustment
  • the next preset parameter is selected as the parameter to be adjusted according to the preset selection strategy, and the execution returns to the adjustment of the parameter to be adjusted according to the preset adjustment strategy.
  • the ring-shaped area centered on the gateway where the node is located is determined according to the last two determined coverage distances and the position of the gateway to be synchronized.
  • a method for determining positioning information includes:
  • Both the node to be located and the gateways around the node to be located enter a positioning mode
  • the node to be located performs information interaction with its surrounding gateways, and determines a preset number of target gateways among the gateways around the node to be located according to the interaction result, the preset number is a positive integer greater than or equal to 3 ;
  • the node to be located sends an adjustment instruction to each of the target gateways according to a preset synchronization strategy to instruct the target gateway to adjust the value of at least one preset parameter in order to determine the location of the node to be located.
  • the target gateway is a circular area with a center; the preset parameter is related to a coverage distance of the gateway signal; and the determined circular area is used to determine a position where the node is located.
  • the node to be located and a gateway around the node to be located both enter a positioning mode, including:
  • the node to be located obtains a first positioning mode activation request, and in response to the first positioning mode activation request, sends a second positioning mode activation request to a home gateway of the node to be located, and enters a positioning mode;
  • the first A positioning mode start request is generated by a user trigger, or the first positioning mode start request is sent by a preset terminal device to the node;
  • the home gateway of the node to be located sends a third positioning mode activation request to the positioning server, and enters the positioning mode;
  • the neighboring gateway of the home gateway enters a positioning mode in response to a fourth positioning mode activation request sent by the positioning server.
  • the node to be located and a gateway around the node to be located both enter a positioning mode, including:
  • the home gateway of the node to be located, and the neighboring gateway of the home gateway receive a fifth positioning mode activation request sent by the positioning server;
  • the home gateway sends a sixth positioning mode activation request to the node to be located in response to the fifth positioning mode activation request, and enters a positioning mode, and the neighboring gateway of the home gateway responds to the fifth positioning mode activation request.
  • the node to be located enters a positioning mode in response to the sixth positioning mode start request.
  • the node to be located performs information interaction with the gateways around it, and determines a preset number of target gateways among the gateways around the node to be located according to the interaction result, including:
  • a gateway around the node to be located receives the first positioning request message, sending a response message to the node to be located;
  • the node to be located performs information interaction with the gateways around it, and determines a preset number of target gateways among the gateways around the node to be located according to the interaction result, including:
  • a gateway around the node to be located sends a second positioning request message to the node to be located according to a preset timing
  • the node to be located sends an adjustment instruction to each of the target gateways according to a preset synchronization strategy to instruct the target gateway to adjust the value of at least one preset parameter in order to determine the pending
  • the ring area where the bit node is located centered on the target gateway includes:
  • the target gateway adjusts the value of the parameter to be adjusted to the target value in response to the first adjustment instruction, and determines a signal coverage distance of the target gateway according to the target value;
  • the node to be located returns to execute the step of determining a target value of the parameter to be adjusted according to a preset adjustment strategy
  • the node to be located sends a second adjustment instruction to the target gateway, and restores the value of the parameter to be adjusted to the value before the last adjustment;
  • the target gateway restores the value of the parameter to be adjusted to the value before the last adjustment
  • the node to be located selects the next preset parameter as the parameter to be adjusted, and returns to the step of determining the target value of the parameter to be adjusted according to the preset adjustment strategy, When there are no unadjusted parameters, the node to be located sends an adjustment end message to the target gateway;
  • the target gateway determines a ring-shaped area centered on the target gateway where the node to be located is located according to the last two determined coverage distances and the position of the target gateway.
  • the node to be located sends an adjustment instruction to each of the target gateways according to a preset synchronization strategy to instruct the target gateway to adjust the value of at least one preset parameter in order to determine the
  • the ring area where the bit node is located centered on the target gateway includes:
  • the node to be located sends a third adjustment instruction to the target gateway
  • the target gateway selects a preset parameter among the at least one preset parameter as a parameter to be adjusted according to a preset selection strategy
  • the node to be located sends a fourth adjustment instruction to the target gateway
  • the target gateway In response to the fourth adjustment instruction, the target gateway returns to execute the step of adjusting the value of the parameter to be adjusted to the target value according to a preset adjustment strategy;
  • the node to be located returns to execute the step of adjusting the value of the parameter to be adjusted to the target value according to a preset adjustment strategy
  • the node to be located sends a fifth adjustment instruction to the target gateway, and restores the value of the parameter to be adjusted to the value before the last adjustment;
  • the target gateway restores the value of the parameter to be adjusted to the value before the last adjustment
  • the node to be located sends a sixth adjustment instruction to the target gateway;
  • the target gateway selects a next preset parameter among the at least one preset parameter as a parameter to be adjusted according to the preset selection strategy, and returns to execute the pressing the preset A step of the adjustment strategy determining a target value of the parameter to be adjusted;
  • the node to be located Selecting, by the node to be located, the next preset parameter among the at least one preset parameter as the parameter to be adjusted according to the preset selection strategy, and returning to executing the determination of the parameter to be adjusted according to the preset adjustment strategy
  • the node to be located sends an adjustment end instruction to the target gateway;
  • the target gateway determines a circular area centered on the target gateway where the node is located according to the coverage distance determined the last two times and the position of the target gateway.
  • a positioning method in which the position of a node is determined by using the annular region determined by the method for determining positioning information according to any one of the preceding, includes:
  • a point is determined as the position of the node in the overlapping area.
  • a node including:
  • a first acquisition module configured to acquire a request to enter a positioning mode
  • a first response module configured to enter a positioning mode in response to the request
  • a first interaction module configured to perform information interaction with gateways around the node, and determine a preset number of target gateways among the gateways around the node according to the interaction result, where the preset number is greater than or equal to 3 Positive integer
  • a first synchronization module configured to send an adjustment instruction to each of the target gateways according to a preset synchronization strategy, where the adjustment instruction is used to instruct the target gateway to adjust a value of at least one preset parameter to determine the
  • the ring area where the node is located is centered on the target gateway, wherein the preset parameter is related to the coverage distance of the gateway signal; the determined ring area is used to determine the location of the node.
  • the foregoing node is preferably that the first obtaining module is specifically configured to:
  • the first interaction module is specifically configured to:
  • the number of the candidate gateways is greater than or equal to the preset number, determining a preset number of target gateways among the candidate gateways;
  • the number of gateways to be selected is less than the preset number, adjust the value of the at least one preset parameter in synchronization with the gateways around the node to increase the signal coverage distance of the gateways around the node ; Return to the step of performing the broadcasting the first positioning request message.
  • the first interaction module is specifically configured to:
  • the number of the received second positioning request information is greater than or equal to the preset number, determining a preset number of target gateways among the gateways sending the second positioning request message;
  • the value of the at least one preset parameter is adjusted in synchronization with the gateway around the node, so as to expand the gateway around the node.
  • the signal covers the distance; and returns to the step of receiving the second positioning request information sent by a gateway around the node.
  • the first synchronization module is specifically configured to:
  • the target gateway If the determination result is no, send a second adjustment instruction to the target gateway, and restore the value of the parameter to be adjusted to the value before the last adjustment, and the second adjustment instruction is used to instruct the target gateway Returning the value of the parameter to be adjusted to the value before the last adjustment; if there are unadjusted parameters, selecting the next preset parameter among the at least one preset parameter as the parameter to be adjusted, And returning to the step of determining the target value of the parameter to be adjusted according to a preset adjustment strategy, and in the case where there is no unadjusted parameter, sending an adjustment end message to the target gateway, so that the target gateway Determine the annular area centered on the target gateway where the node is located according to the coverage distance determined in the last two times and the position of the target gateway.
  • the first synchronization module is specifically configured to:
  • the target gateway If the determination result is no, send a fifth adjustment instruction to the target gateway, and restore the value of the parameter to be adjusted to the value before the last adjustment; the fifth adjustment instruction is used to instruct the target gateway Restore the value of the parameter to be adjusted to the value before the last adjustment;
  • a sixth adjustment instruction is sent to the target gateway to instruct the target gateway to select a next preset parameter among the at least one preset parameter according to the preset selection strategy.
  • a parameter to be adjusted and returning to executing the step of adjusting the value of the parameter to be adjusted to a target value according to the preset adjustment strategy;
  • the at least one preset parameter is at least one of the following three parameters: a spreading factor, a bandwidth, and a transmission power.
  • a gateway including:
  • a second acquisition module configured to acquire a request to enter a positioning mode
  • a second response module configured to enter a positioning mode in response to the request
  • a second interaction module configured to perform information interaction with a node that enters a positioning mode, so that the node determines a preset number of target gateways according to the interaction result, where the preset number is a positive integer greater than or equal to 3;
  • a second synchronization module configured to adjust a value of at least one preset parameter in response to the adjustment instruction sent by the node, so as to determine that the node is located with the gateway as A central circular area; the preset parameter is related to the coverage distance of the gateway signal; the determined circular area is used to determine the position of the node.
  • the second obtaining module is specifically configured to:
  • the second interaction module is specifically configured to:
  • the second interaction module is specifically configured to:
  • the timing is an order in which all gateways entering a positioning mode send the second positioning request message to the node;
  • the node sends the second positioning request message.
  • the second synchronization module is specifically configured to:
  • the value of the parameter to be adjusted is adjusted to The target value
  • the value of the parameter to be adjusted is restored to the value before the last adjustment
  • the ring-shaped area centered on the gateway where the node is located is determined according to the coverage distance determined in the last two times and the location of the gateway.
  • the second synchronization module is specifically configured to:
  • a preset parameter is selected as the parameter to be adjusted according to a preset selection strategy; the value of the parameter to be adjusted is adjusted to the target value according to the preset adjustment strategy; The value of the at least one preset parameter determines a signal coverage distance of the gateway;
  • the value of the parameter to be adjusted is restored to the value before the last adjustment
  • the next preset parameter is selected as the parameter to be adjusted according to the preset selection strategy, and the execution returns to the adjustment of the parameter to be adjusted according to the preset adjustment strategy.
  • the ring-shaped area centered on the gateway where the node is located is determined according to the last two determined coverage distances and the position of the gateway to be synchronized.
  • An Internet of Things system includes a node according to any one of the preceding items, a gateway according to any one of the preceding items, and a positioning server; the gateway communicates with the positioning server through the Internet.
  • a positioning information determination method a positioning method, a node, a gateway, and an IoT system provided by this application.
  • the node and the gateway around the node both enter a positioning mode, and then the node is around At least three gateways are determined as target gateways among the gateways, and a node performs information interaction with the at least three target gateways, so that the target gateway determines a ring area centered on the target gateway where the node is located, so that the ring area can be overlapped according to the overlap of the ring areas.
  • the area determines the location of the node. Since this method does not require the node to add a GPS module, it can achieve positioning of the node at a lower cost and power consumption.
  • FIG. 1 is a schematic structural diagram of an Internet of Things system according to an embodiment of the present application.
  • FIG. 2 is an implementation flowchart of a method for determining positioning information according to an embodiment of the present application
  • FIG. 3 is an implementation flowchart of a node to be located and a gateway around the node to be located in a positioning mode according to an embodiment of the present application;
  • FIG. 4 is another implementation flowchart of a node to be located and a gateway around the node to be located that are in a positioning mode according to an embodiment of the present application;
  • FIG. 5 is an embodiment of the present application.
  • a to-be-located node sends an adjustment instruction to each of the target gateways according to a preset synchronization strategy to instruct the target gateway to adjust the value of at least one preset parameter in order to determine the location of the to-be-located node.
  • FIG. 6 is an embodiment of the present application.
  • a to-be-located node sends an adjustment instruction to each of the target gateways according to a preset synchronization strategy, to instruct the target gateway to adjust the value of at least one preset parameter, so as to determine the location of the Another implementation flowchart of the ring area centered on the target gateway;
  • FIG. 7 is an implementation flowchart of a method for determining positioning information applied to a node according to an embodiment of the present application
  • FIG. 8 is an implementation flowchart of a method for determining positioning information applied to a gateway according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a node according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a gateway according to an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of an IoT system according to an embodiment of the present application, including: a positioning server, a plurality of gateways, and nodes. Among them, there may be several nodes. Show one. Among them, the positioning server and the gateway can communicate through the Internet, and the gateway and the gateway can also communicate through the Internet. The gateway and the node communicate with each other based on LoRa (Long Range), that is, the gateway and the node communicate through the LoRa wireless module.
  • LoRa Long Range
  • FIG. 2 is an implementation flowchart of a method for determining positioning information according to an embodiment of the present application, which may include:
  • Step S21 Both the node to be located and the gateways around the node to be located enter the positioning mode.
  • the gateways around the node to be located include: the home gateway of the node to be located, and the neighboring gateways of the home gateway.
  • the nodes and gateways in the Internet of Things are both provided with a normal working mode and a positioning mode.
  • the home gateway of the node to be located refers to the gateway that communicates with the node to be located when both the node to be located and the gateway are in the normal working mode.
  • both the node and the gateway are in the normal working mode, the working frequencies of the adjacent gateways are different. Therefore, the node can only communicate with one of the gateways at the same time.
  • both the node and the gateway around the node are required to enter a positioning mode, that is, the working frequency of the node and the gateway around the node are adjusted to the same preset frequency.
  • the working bandwidth of the gateways are adjusted to the same preset bandwidth, and the spreading factors of the nodes and the gateways around the nodes are also adjusted to the same preset spreading factor, so that in addition to communicating with the home gateway, the node can also communicate with the home network.
  • the gateway's neighboring gateways communicate.
  • Step S22 The to-be-located node performs information interaction with its surrounding gateways, and determines a preset number (for convenience of description, N) of the target gateways among the gateways around the to-be-located node according to the interaction result, and the preset number is Is a positive integer greater than or equal to 3.
  • the node to be located performs information interaction with the gateways around it to determine which gateways can communicate with the node to be located and the signal quality of the gateways that communicate with the node to be located.
  • the signal quality can be characterized by the signal-to-noise ratio. The larger the signal-to-noise ratio, the better the signal quality, and the smaller the signal-to-noise ratio, the worse the signal quality.
  • the node to be located can determine the target gateway according to the signal-to-noise ratio of the signal transmitted by the gateway. Specifically, among the gateways that can communicate with the node to be located, the N gateways with the highest signal-to-noise ratio of the transmitted signal are selected as the target gateway.
  • the determined preset number of target gateways may include the home gateway of the node to be located, or may not include the home gateway of the node to be located.
  • Step S23 The node to be located sends an adjustment instruction to each target gateway according to a preset synchronization strategy, so that the node to be located and the target gateway adjust the value of at least one preset parameter synchronously, so that the target gateway determines the location of the node to be located.
  • a ring area centered on the target gateway, this ring area is the positioning information.
  • the adjustment instruction is used to instruct the target gateway to adjust the value of the at least one preset parameter.
  • the preset synchronization strategy refers to a strategy in which the node to be located and the target gateway adjust the at least one preset parameter synchronously.
  • the at least one preset parameter is a parameter associated with the signal coverage distance of the gateway.
  • the at least one preset parameter may be at least one of the following three parameters: a spreading factor, a bandwidth, and a transmission power.
  • the signal coverage distance of the target gateway can be adjusted, so that the target gateway can cover the minimum coverage distance when the target gateway's signal can cover the node to be located,
  • the maximum coverage distance when the node to be located can be covered, and the location of the gateway can determine the ring area corresponding to the target gateway where the node to be located is located. That is, each target gateway determines a ring area where the node to be located is located.
  • the position of the node to be located can be calculated based on the N ring areas. Specifically:
  • a point in the overlapping area as the position of the node to be located.
  • a point in the overlapping area may be randomly determined as the position of the node to be located, or the centroid of the above-mentioned overlapping area may be calculated, and the position of the center of mass may be used as the position of the node to be located.
  • the above-mentioned process of calculating the position of the node to be located may be completed at the positioning server, that is, the target gateway sends the obtained positioning information to the positioning server, and the positioning server calculates the position of the node to be located according to the positioning information. or,
  • the above-mentioned process of calculating the position of the node to be located may be completed on the side of the node to be located, that is, the target gateway sends the obtained positioning information to the node to be located, and the node to be located calculates the position of the node to be located according to the positioning information.
  • both the node and the gateways around the node enter a positioning mode, and then the node determines at least three gateways among the surrounding gateways as target gateways.
  • At least three target gateways perform information interaction, so that the target gateway determines a ring area centered on the target gateway where the node is located, so that the node position can be determined according to the overlapping area of the ring area. Since this method does not require the node to add a GPS module, it can achieve positioning of the node at a lower cost and power consumption.
  • FIG. 3 is an implementation flowchart of a node to be located and a gateway around the node to be located in a positioning mode according to an embodiment of the present application, which may include:
  • Step S31 The node to be located obtains a request for starting the first positioning mode.
  • the first positioning mode start request may be generated by a user trigger, or the first positioning mode start request may be sent to a node by a preset terminal device.
  • the preset terminal may be a mobile communication terminal, such as a mobile phone, or a remote controller that matches the node.
  • Step S32 The node to be located sends a second positioning mode initiation request to the home gateway of the node to be located in response to the first positioning mode initiation request.
  • Step S33 The node to be located enters a positioning mode.
  • the node to be located enters the positioning mode after sending a second positioning mode start request.
  • Step S34 The home gateway of the node to be located sends a third positioning mode activation request to the positioning server in response to the second positioning mode activation request.
  • steps S34 and S33 are not specifically limited, and step S34 may be executed before step S33, may be executed after step S33, or executed simultaneously with step S33.
  • Step S35 The home gateway of the node to be located enters the positioning mode.
  • the home gateway of the positioning node After the home gateway of the positioning node sends a third positioning mode start request, it enters the positioning mode.
  • Step S36 The positioning server sends a fourth positioning mode activation request to a neighboring gateway of the home gateway in response to the third positioning mode activation request.
  • steps S36 and S35 are not specifically limited, and step S36 may be executed before step S35, may be executed after step S35, or executed simultaneously with step S35.
  • Step S37 The neighboring gateway of the home gateway enters the positioning mode in response to the fourth positioning mode start request sent by the positioning server.
  • a positioning mode initiation request is initiated by a node to be located.
  • FIG. 4 is another implementation flowchart of a node to be located and a gateway around the node to be located in the positioning mode according to an embodiment of the present application, which may include:
  • Step S41 The positioning server sends a fifth positioning mode activation request to the home gateway of the node to be located and the neighboring gateway of the home gateway.
  • Step S42 In response to the fifth positioning mode start request, the home gateway sends a sixth positioning mode start request to the node to be located.
  • Step S43 The home gateway enters a positioning mode.
  • the home gateway of the node to be located After the home gateway of the node to be located sends a sixth positioning mode start request to the node to be located, it enters the positioning mode.
  • Step S44 The neighboring gateway of the home gateway enters the positioning mode in response to the fifth positioning mode start request.
  • step S44 is not necessarily executed after step S43, and step S44 may be executed at any time between step S41 and step S45.
  • Step S45 The node to be located enters the positioning mode in response to the sixth positioning mode start request.
  • the positioning server initiates a positioning mode start request.
  • the node to be located performs information interaction with the gateways around it, and an implementation manner of determining a preset number of target gateways among the gateways around the node to be located according to the interaction result may be:
  • the node to be located broadcasts a first positioning request message.
  • the gateway can receive the first A positioning request message.
  • the gateway around the node to be located After receiving the first positioning request message, the gateway around the node to be located sends a response message to the node to be located.
  • the gateway may send a response message to the node to be located according to a preset timing.
  • the preset timing is the chronological order in which the gateways around the node to be located send information (such as the above response message) to the node to be located. Different gateways send information to the node to be located at different times to avoid multiple gateways simultaneously Nodes sending messages cause the channel to be blocked.
  • the preset timing may be generated by the positioning server.
  • the positioning server can randomly generate a time sequence.
  • the positioning server may generate a sequence based on the size of the unique address code of the gateway, that is, the larger the address code, the earlier the time to send information; the smaller the address code, the later the time to send information; or the smaller the address code , The earlier the message is sent; the larger the address code, the later the message is sent.
  • the gateway around the node to be located can receive the first positioning request message, the gateway sends a response message to the node to be located.
  • the gateway may determine the time for sending the response message by itself according to the sending time of the first positioning request message carried in the first positioning request message and the preset timing. Specifically, the gateway may use the sending time of the first positioning request message as a time reference, and send a response message to the node after waiting for a duration corresponding to the timing according to the timing of the self-sending information defined by the preset timing.
  • the gateway After receiving the first positioning request message, if the gateway ranks first in the above sequence, it uses the sending time of the first positioning request message as the starting time, and sends a response message to the node after waiting for a preset time t. If you take the second place in the above timing, you use the sending time of the first positioning request message as the starting time, and send a response message to the node after waiting for 2t, and so on. If you rank m in the above timing, Bit, the sending time of the first positioning request message is used as the starting time, and a response message is sent to the node after the waiting time m * t.
  • the gateway to which the node to be located sends the response message is determined as the gateway to be selected.
  • N target gateways are determined among the gateways to be selected.
  • the N gateways with the best signal quality can be selected from the candidate gateways as the target gateway.
  • the N gateways with the best signal quality may be the N gateways with the highest signal-to-noise ratio of the transmitted signal.
  • the number of gateways to be selected is less than the preset number N, adjust the value of at least one preset parameter in synchronization with the gateways around the node to be located to expand the signal coverage of the gateways around the node to be located; A step and subsequent steps of positioning a request message. That is, after the nodes and gateways to be located synchronize and adjust the values of the preset parameters, they again perform information interaction with the gateways around them to determine greater than or equal to N candidate gateways, thereby determining N target gateways.
  • the number of gateways to be selected is less than the preset number N, indicating that the number of gateways that can communicate with the node to be located is less than N. Therefore, the nodes to be located and the surrounding gateways need to be adjusted to adjust the value of the preset parameters in order to expand the number of to be located.
  • the node to be located determines a preset parameter among the at least one preset parameter as the parameter to be adjusted.
  • the node to be located determines the target value of the parameter to be adjusted according to a preset adjustment strategy.
  • the preset adjustment strategy refers to an adjustment strategy in which the gateway's signal coverage distance increases after the value of the parameter to be adjusted is adjusted to the target value.
  • the value of the parameter to be adjusted can be increased by a preset step size, or the preset step size can be decreased to make the value of the parameter to be adjusted to the target value.
  • Step size If the value of the parameter to be adjusted is smaller and the signal coverage distance of the gateway is larger, the value of the parameter to be adjusted is adjusted to a smaller step size corresponding to the parameter to be adjusted. That is, different parameters have different preset step sizes.
  • the node to be located sends the target value of the parameter to be adjusted to the gateways around the node to be located, so that the surrounding gateways adjust the value of the parameter to be adjusted to the target value.
  • the node to be located can send the target value of the parameter to be adjusted to the home gateway of the node to be located.
  • the home gateway sends the target value of the parameter to be adjusted to the positioning server, and the positioning server sends the target value of the parameter to be adjusted to Other gateways besides the home gateway among the gateways around the node to be located.
  • the nodes to be located can also directly send the target values of the parameters to be adjusted to these gateways.
  • the node to be located After the node to be located sends the value of the parameter to be adjusted to the surrounding gateways, it adjusts the value of the parameter to be adjusted to the target value.
  • the node to be located After the node to be located adjusts the value of the parameter to be adjusted to the target value, it returns to the step of performing the broadcast of the first positioning request message and the subsequent steps. That is, the node to be located and the gateway synchronize the value of the parameter to be adjusted to the target value, and then perform information interaction with the gateways around it, and determine a preset number of gateways around the node to be located according to the interaction result Destination gateway.
  • the node to be located sends a parameter adjustment instruction to the gateway around the node to be located, so that the gateway around the node to be located determines a parameter to be adjusted among the at least one preset parameter according to a preset parameter adjustment strategy, and adjusts the The value of the adjustment parameter is adjusted to the target value.
  • one of the at least one preset parameter is determined to be adjusted once to adjust the value of the parameter to be adjusted to the above target. Value.
  • the process of determining the parameters to be adjusted by the node to be located and the gateway is the same as the process of adjusting the parameters to be adjusted, so as to achieve the purpose of adjusting the parameters of the node to be synchronized with the gateway.
  • the positioning node After the value adjustment of the parameter to be adjusted by the positioning node is completed, it returns to the step of broadcasting the first positioning request message and the subsequent steps. That is, the node to be located and the gateway synchronize the value of the parameter to be adjusted to the target value, and then perform information interaction with the surrounding gateways again, and determine a preset number of gateways around the node to be located according to the interaction result. Destination gateway.
  • the node to be located determines the parameter to be adjusted and its target value, and then sends the target value of the parameter to be adjusted to the gateway, and the gateway directly adjusts the value of the parameter to be adjusted to the target value. value.
  • the node to be located only sends an adjustment instruction to the gateway, and the gateway determines the parameter to be adjusted, calculates the value of the parameter to be adjusted, and then adjusts the value of the parameter to be adjusted to the target value.
  • the node to be located performs information exchange with its surrounding gateways
  • another preset implementation of determining a preset number of target gateways among the gateways around the node to be located according to the interaction result may be:
  • the gateway around the node to be located sends a second positioning request message to the node to be located according to a preset timing.
  • the preset timing is the chronological order in which the gateways around the node to be located send information (such as the second positioning request message above) to the node to be located. Different gateways send information to the node to be located at different times to avoid multiple gateways simultaneously. Sending information to the node to be located causes the channel to be blocked.
  • the preset timing may be generated by the positioning server. E.g:
  • the positioning server can randomly generate a time series. or,
  • the positioning server can generate the sequence according to the size of the unique address code of the gateway, that is, the larger the address code, the earlier the information is sent; the smaller the address code, the later the information is sent; or, the smaller the address code, the information is sent The earlier the time is; the larger the address code is, the later the message is sent.
  • the positioning mode start request sent by the positioning server may carry the sending time of the positioning mode start request, and the gateway may use the sending time of the positioning mode start request as a reference time for sending the second positioning request message.
  • the preset timing determines the time when the second positioning request message is sent by itself.
  • the node to be located determines the number of second positioning request messages received.
  • the node to be located determines N target gateways among the gateways sending the second positioning request message.
  • the node to be located synchronizes with the surrounding gateway to adjust the value of the at least one preset parameter to expand the signal of the gateway around the node to be located Coverage range; returns to the step of determining the number of received second positioning request messages.
  • the node to be located determines one parameter among the at least one preset parameter as the parameter to be adjusted.
  • the node to be located determines the target value of the parameter to be adjusted according to a preset adjustment strategy.
  • the node to be located sends the target value of the parameter to be adjusted to the gateway around the node to be located, so that the surrounding gateways adjust the value of the parameter to be adjusted to the target value.
  • the gateway After the gateway adjusts the value of the parameter to be adjusted to the target value, it sends a second positioning request message to the node to be located again.
  • the gateway may determine the time for sending the second positioning request message according to the time when the target value of the parameter to be adjusted is sent by the node to be located and the preset timing described above, so as to avoid sending the second positioning request message to the node to be located at the same time to cause the channel Blocked.
  • the node to be located can send the target value of the parameter to be adjusted to the home gateway of the node to be located.
  • the home gateway sends the target value of the parameter to be adjusted to the positioning server, and the positioning server sends the target value of the parameter to be adjusted to Other gateways besides the home gateway among the gateways around the node to be located.
  • the nodes to be located can also directly send the target values of the parameters to be adjusted to these gateways.
  • the node to be located After the node to be located sends the value of the parameter to be adjusted to the surrounding gateways, it adjusts the value of the parameter to be adjusted to the target value.
  • the node to be located After the node to be located adjusts the value of the parameter to be adjusted to the target value, it returns to the step of determining the number of received second positioning request messages and the subsequent steps. That is, the node to be located and the gateway synchronize the value of the parameter to be adjusted to the target value, and then perform information interaction with the surrounding gateways again, and determine a preset number of gateways around the node to be located according to the interaction result. Destination gateway.
  • the node to be located sends a parameter adjustment instruction to the gateway around the node to be located, so that the gateway around the node to be located determines a parameter to be adjusted among the at least one preset parameter according to a preset parameter adjustment strategy, and adjusts the The value of the adjustment parameter is adjusted to the target value.
  • one of the at least one preset parameter is determined to be adjusted once to adjust the value of the parameter to be adjusted to the above target. Value.
  • the process of determining the parameters to be adjusted by the node to be located and the gateway is the same as the process of adjusting the parameters to be adjusted, so as to achieve the purpose of synchronizing the parameters of the node to be adjusted with the gateway.
  • the positioning node After the value adjustment of the parameters to be adjusted by the positioning node is completed, it returns to the step of determining the number of the received second positioning request messages and the subsequent steps. That is, the node to be located and the gateway synchronize the value of the parameter to be adjusted to the target value, and then perform information interaction with the surrounding gateways again, and determine a preset number of gateways around the node to be located according to the interaction result. Destination gateway.
  • the node to be located sends an adjustment instruction to each of the target gateways according to a preset synchronization strategy to instruct the target gateway to adjust the value of at least one preset parameter in order to determine the location of the node to be located.
  • An implementation flowchart of a ring area centered at the target gateway is shown in FIG. 5 and may include:
  • Step S501 The node to be located selects a preset parameter from at least one preset parameter as the parameter to be adjusted.
  • Step S502 The node to be located determines the target value of the parameter to be adjusted according to a preset adjustment strategy.
  • the preset adjustment strategy refers to an adjustment strategy in which the gateway's signal coverage distance decreases after the value of the parameter to be adjusted is adjusted to the target value.
  • the value of the parameter to be adjusted can be increased by a preset step size, or the preset step size can be decreased to make the value of the parameter to be adjusted to the target value. Specifically, when other preset parameters are unchanged, if the value of the parameter to be adjusted is larger, and the signal coverage distance of the gateway is larger, the value of the parameter to be adjusted is adjusted to a smaller value corresponding to the parameter to be adjusted. Set the step size. If the value of the parameter to be adjusted is smaller and the signal coverage distance of the gateway is larger, the value of the parameter to be adjusted is increased to a preset step size corresponding to the parameter to be adjusted.
  • the aforementioned spreading factor, bandwidth, and transmission power as an example: when the spreading factor and bandwidth are the same, the greater the transmission power of the gateway, the greater the signal coverage distance of the gateway, the smaller the transmission power of the gateway, and the signal coverage of the gateway.
  • the power is the same, the larger the spreading factor of the gateway, the greater the signal coverage distance of the gateway, and the smaller the spreading factor of the gateway, the smaller the signal coverage distance of the gateway.
  • the preset step size can be 1, the corresponding bandwidth, and the preset step size can be the preset minimum bandwidth, for example, the minimum bandwidth can be 62.kHz.
  • the preset step size can be 1dB.
  • the value of the parameter to be adjusted when the parameter to be adjusted is the transmission power, the value of the parameter to be adjusted may be reduced by 1 dB, so that the signal coverage distance of the gateway is reduced.
  • the value of the parameter to be adjusted when the parameter to be adjusted is the working bandwidth, the value of the parameter to be adjusted can be increased by 62.kHz to reduce the signal coverage distance of the gateway.
  • the parameter to be adjusted is a spreading factor, the value of the parameter to be adjusted can be reduced by 1 to reduce the signal coverage distance of the gateway.
  • Step S503 The node to be located sends a first adjustment instruction to the target gateway A carrying the target value of the parameter to be adjusted.
  • the target gateway that adjusts parameters synchronously with the node to be located is referred to as the target gateway A here.
  • Step S504 The target gateway A adjusts the value of the parameter to be adjusted to the target value in response to the first adjustment instruction.
  • Step S505 The target gateway A determines the signal coverage distance of the target gateway A according to the target value of the parameter to be adjusted.
  • the target gateway A may determine a signal coverage distance of the target gateway A according to a target value of the parameter to be adjusted and values of other parameters except the parameter to be adjusted in the at least one preset parameter.
  • the signal coverage distance of the target gateway A may be determined after the value of the parameter to be adjusted is adjusted to the target value according to the preset correspondence between the value of the at least one preset parameter and the signal coverage distance of the gateway.
  • Step S506 The node to be located adjusts the value of the parameter to be adjusted to the target value.
  • step S506 does not have to be performed after step S505, and step S506 may be performed at any time after step S503 and before step S507.
  • Step S507 The node to be located determines whether the signal transmitted by the target gateway A can be received. If the determination result is yes, it returns to step S502 to determine a new target value. If the determination result is no, step S508 is performed.
  • Step S508 The node to be located sends a second adjustment instruction to the target gateway A, and the second adjustment instruction carries the value of the parameter to be adjusted before the last adjustment.
  • the node to be located determines the value of the parameter to be adjusted before the last adjustment, and encapsulates the value before the last adjustment in a second adjustment instruction and sends it to the target gateway A.
  • the node to be located may first adjust the value of the at least one preset parameter to be the same as the value of the at least one preset parameter of the target gateways other than the target gateway A among the N target gateways, so that it can be performed with other target gateways.
  • Communication and the gateway can communicate through the Internet, and the gateway and the positioning server can also communicate through the Internet, so that the node to be located can communicate with the above target gateway A through other target gateways and the Internet, or the node to be located can Communicate with target gateway A through other target gateways and the Internet and positioning server.
  • Step S509 In response to the second adjustment instruction, the target gateway A restores the value of the parameter to be adjusted to the value before the last adjustment.
  • Step S510 The node to be located restores the value of the parameter to be adjusted to the value before the last adjustment.
  • Step S511 The node to be located determines whether there are unadjusted parameters. If there are unadjusted parameters, step S512 is performed. If there are no unadjusted parameters, step S513 is performed.
  • Step S512 The node to be located selects the next preset parameter as the parameter to be adjusted from the at least one preset parameter, and returns to step S502.
  • Step S513 The node to be located sends an adjustment end message to the target gateway A.
  • Step S514 The target gateway A determines the annular area centered on the target gateway A where the node to be located is located according to the coverage distance determined in the last two times and the position of the target gateway A.
  • the coverage distance determined by target gateway A for the last two times refers to: the coverage distance determined by target gateway A before the value of the parameter to be adjusted is restored, and the coverage distance determined after the value of the parameter to be adjusted is restored.
  • the embodiment shown in FIG. 5 is a process for the node to be located to adjust the at least one preset parameter synchronously with any target gateway.
  • the node to be located is synchronizing with other target gateways.
  • the value of the preset parameter of the node to be located is adjusted to be the same as the value of the preset parameter of other target gateways, so that the node to be located can communicate with other target gateways.
  • the node to be located and the target gateway are synchronized to adjust parameters, there will be part of the same process. Therefore, at the initial stage of parameter adjustment, the node to be located can synchronize and adjust parameters with all target gateways.
  • the positioning node When a signal transmitted by a target gateway is reached, the positioning node first interacts with the target gateway, and after the parameters of the target gateway are adjusted, it interacts with each other target gateway one by one to complete the remaining one by one. The parameters of the target gateway are adjusted synchronously.
  • the node to be located sends an adjustment instruction to each of the target gateways according to a preset synchronization strategy to instruct the target gateway to adjust the value of at least one preset parameter in order to determine the location of the node to be located.
  • a preset synchronization strategy to instruct the target gateway to adjust the value of at least one preset parameter in order to determine the location of the node to be located.
  • Step S601 The node to be located sends a third adjustment instruction to the target gateway A.
  • Step S602 In response to the third adjustment instruction, the target gateway A selects a preset parameter among the at least one preset parameter as a parameter to be adjusted according to a preset selection strategy.
  • Step S603 The target gateway A adjusts the value of the parameter to be adjusted to the target value according to a preset adjustment strategy.
  • Step S604 The target gateway A determines the signal coverage distance of the target gateway A according to the target value of the parameter to be adjusted.
  • the target gateway A may determine the signal coverage distance of the target gateway A according to the target value of the parameter to be adjusted and the value of other preset parameters except the parameter to be adjusted among the at least one preset parameter.
  • the signal coverage distance of the target gateway A may be determined after the value of the parameter to be adjusted is adjusted to the target value according to the preset correspondence between the value of the at least one preset parameter and the signal coverage distance of the gateway.
  • Step S605 After the node to be located sends a third adjustment instruction to the target gateway A, a preset parameter is selected among the at least one preset parameter as the parameter to be adjusted according to the preset selection strategy.
  • step S605 is not necessarily executed after step S604, and it may be executed at any time after step S601 and before step S606.
  • Step S606 The node to be located adjusts the value of the parameter to be adjusted to the target value according to the preset adjustment strategy.
  • the node to be located and the target gateway A use the same adjustment strategy to adjust the value of the parameter to be adjusted, so that the value of the parameter to be adjusted is the same.
  • Step S607 The node to be located determines whether the signal transmitted by the target gateway A can be received. If the determination result is yes, step S608 is performed, and if the determination result is no, step S610 is performed.
  • Step S608 The node to be located sends a fourth adjustment instruction to the target gateway A, and returns to step S606 to adjust the value of the parameter to be adjusted to the new target value.
  • Step S609 In response to the fourth adjustment instruction, the target gateway A returns to execute step S603, that is, the value of the parameter to be adjusted is adjusted to the new target value.
  • Step S610 The node to be located sends a fifth adjustment instruction to the target gateway A.
  • Step S611 In response to the fifth adjustment instruction, the target gateway A restores the value of the parameter to be adjusted to the value before the last adjustment.
  • Step S612 The node to be located restores the value of the parameter to be adjusted to the value before the last adjustment.
  • Step S613 The node to be located determines whether there are unadjusted parameters. If there are unadjusted parameters, step S614 is performed; if there are no unadjusted parameters, step S617 is performed.
  • Step S614 The node to be located sends a sixth adjustment instruction to the target gateway A.
  • Step S615 In response to the sixth adjustment instruction, the target gateway A selects the next preset parameter among the at least one preset parameter as the parameter to be adjusted according to the preset selection strategy, and returns to execute step S603;
  • Step S616 The node to be located selects the next preset parameter among the at least one preset parameter as the parameter to be adjusted according to the preset selection strategy, and returns to execute step S606.
  • step S616 may be performed after step S615, or may be performed before step S615, or both.
  • Step S617 The node to be located sends an adjustment end instruction to the target gateway A.
  • Step S618 In response to the adjustment end instruction, the target gateway A determines a ring area centered on the target gateway A based on the target gateway A based on the coverage distance determined in the last two times and the position of the target gateway A.
  • the coverage distance determined by target gateway A for the last two times refers to: the coverage distance determined by target gateway A before the value of the parameter to be adjusted is restored, and the coverage distance determined after the value of the parameter to be adjusted is restored.
  • the target value of the parameter to be adjusted is calculated by the node to be located, it is sent to the target gateway, and the target gateway directly adjusts the value of the parameter to be adjusted to the target. Just take the value.
  • the node to be located sends a parameter adjustment instruction to the target gateway, and the node to be located and the target gateway adjust the value of the parameter to be adjusted according to the same adjustment strategy.
  • the embodiment shown in FIG. 6 is a process in which the node to be located adjusts the at least one preset parameter synchronously with any target gateway.
  • the node to be located Before the other target gateways adjust the parameters synchronously, the values of the preset parameters of the nodes to be located are adjusted to be the same as the values of the preset parameters of the other target gateways, so that the nodes to be located can communicate with other target gateways.
  • the node to be located and the target gateway are synchronized to adjust parameters, there will be part of the same process. Therefore, at the initial stage of parameter adjustment, the node to be located can synchronize and adjust parameters with all target gateways.
  • the positioning node When a signal transmitted by a target gateway is reached, the positioning node first interacts with the target gateway, and after the parameters of the target gateway are adjusted, it interacts with each other target gateway one by one to complete the remaining one by one. The parameters of the target gateway are adjusted synchronously.
  • the present application also provides a method for determining positioning information applied to a node, and a method for determining positioning information applied to a gateway.
  • FIG. 7 is an implementation flowchart of a method for determining positioning information applied to a node according to an embodiment of the present application, which may include:
  • Step S71 Acquire a request to enter the positioning mode.
  • Step S72 Enter the positioning mode in response to the request to enter the positioning mode.
  • Step S73 Perform information exchange with the gateways around the node, and determine a preset number of target gateways among the gateways around the node according to the interaction result, and the preset number is a positive integer greater than or equal to 3. Among them, the gateways around the nodes have all entered the positioning mode.
  • the gateways around the nodes include the home gateways of the nodes and the neighboring gateways of the home gateways.
  • Step S74 Send an adjustment instruction to each target gateway according to a preset synchronization strategy, where the adjustment instruction is used to instruct the target gateway to adjust the value of at least one preset parameter to determine the ring in which the node is centered on the target gateway.
  • Area the above preset parameters are related to the coverage distance of the gateway signal. The determined circular area is used to determine the position of the node.
  • An implementation manner of obtaining the request to enter the positioning mode may be:
  • the preset device may be a mobile communication terminal, such as a mobile phone. It can also be a remote controller that matches the node.
  • An implementation manner of performing information interaction with the gateways around the node and determining a preset number of target gateways among the gateways around the node according to the interaction result may be:
  • the gateway sending the response message corresponding to the first positioning request message is determined as the candidate gateway.
  • the target gateway of the preset number is determined from the gateways to be selected.
  • the number of gateways to be selected is less than the preset number, adjust the value of the at least one preset parameter in synchronization with the gateways around the node to expand the signal coverage distance of the gateways around the node; return to perform broadcast first positioning request message A step of.
  • a preset number of target gateways are determined among the gateways that send the second positioning request message.
  • the method returns the step of executing the second positioning request information sent by the gateway around the receiving node.
  • An implementation manner of sending an adjustment instruction to each target gateway according to a preset synchronization strategy may be:
  • a preset parameter is selected as the parameter to be adjusted from the at least one preset parameter.
  • the target gateway If the judgment result is no, send a second adjustment instruction to the target gateway and restore the value of the parameter to be adjusted to the value before the last adjustment.
  • the second adjustment instruction is used to instruct the target gateway to take the value of the parameter to be adjusted. Revert to the value before the last adjustment; if there are unadjusted parameters, select the next preset parameter as the parameter to be adjusted from at least one of the above preset parameters, and return to execute the preset adjustment strategy to determine the In the step of adjusting the target value of the parameter, in the absence of unadjusted parameters, an adjustment end message is sent to the target gateway so that the target gateway determines the node's location based on the coverage distance determined by the last two times and the location of the target gateway. The ring area centered on the target gateway.
  • Another implementation manner of sending an adjustment instruction to each target gateway according to a preset synchronization strategy may be:
  • the target value is a signal coverage distance of the target gateway according to the value of the at least one preset parameter.
  • a preset parameter is selected as the parameter to be adjusted from the at least one preset parameter, and the value of the parameter to be adjusted is adjusted to the target value according to the preset adjustment strategy.
  • a fourth adjustment instruction is sent to the target gateway to instruct the target gateway to return to the step of adjusting the value of the parameter to be adjusted to the target value according to a preset adjustment strategy.
  • the judgment result is no, send a fifth adjustment instruction to the target gateway and restore the value of the parameter to be adjusted to the value before the last adjustment; the fifth adjustment instruction is used to instruct the target gateway to restore the value of the parameter to be adjusted The value before the last adjustment.
  • a sixth adjustment instruction is sent to the target gateway to instruct the target gateway to select the next preset parameter as the parameter to be adjusted among the at least one preset parameter according to the preset selection strategy, and return Perform the step of adjusting the value of the parameter to be adjusted to the target value according to a preset adjustment strategy.
  • an adjustment end instruction is sent to the target gateway, so that the target gateway determines the ring area around the target gateway where the node is located according to the coverage distance determined by the last two times and the position of the target gateway.
  • the at least one preset parameter is at least one of the following three parameters: a spreading factor, a bandwidth, and a transmission power.
  • FIG. 8 is an implementation flowchart of a method for determining positioning information applied to a gateway according to an embodiment of the present application, which may include:
  • Step S81 Obtain a request to enter the positioning mode.
  • Step S82 Enter the positioning mode in response to the request for entering the positioning mode.
  • Step S83 Perform information interaction with the node entering the positioning mode, so that the node entering the positioning mode determines a preset number of target gateways according to the interaction result, and the preset number is a positive integer greater than or equal to 3.
  • the gateway is the home gateway of the node or the neighboring gateway of the home gateway.
  • Step S84 if an adjustment instruction sent by the node is received, the value of at least one preset parameter is adjusted in response to the adjustment instruction, in order to determine the gateway-centric ring area where the node is located; the above preset parameters are all Parameters related to the coverage distance of the gateway signal. The determined circular area is used to determine the position of the node.
  • An implementation manner of obtaining the request to enter the positioning mode may be:
  • a request from a receiving node to enter positioning mode is a request from a receiving node to enter positioning mode.
  • An implementation manner of performing information interaction with a node that enters a positioning mode may be:
  • Another implementation manner for performing information interaction with a node that enters the positioning mode may be:
  • the second positioning request message is sent to the node according to a preset timing; the above timing is the order in which all gateways entering the positioning mode send the second positioning request message to the node.
  • an implementation manner of adjusting the value of at least one preset parameter in response to the adjustment instruction may be:
  • the value of the parameter to be adjusted is adjusted to the target value.
  • the signal coverage distance of the gateway is determined according to the value of the at least one preset parameter.
  • the value of the parameter to be adjusted is restored to the value before the last adjustment.
  • the gateway-centric ring area where the node is located is determined according to the coverage distance determined in the last two times and the position of the gateway.
  • Another implementation manner of adjusting the value of at least one preset parameter in response to the adjustment instruction may be:
  • a preset parameter is selected as the parameter to be adjusted according to the preset selection strategy; the value of the parameter to be adjusted is adjusted to the target value according to the preset adjustment strategy; Set the parameter value to determine the signal coverage distance of the gateway.
  • the fourth adjustment instruction sent by the node If the fourth adjustment instruction sent by the node is received, it returns to the step of adjusting the value of the parameter to be adjusted to the target value according to a preset adjustment strategy.
  • the value of the parameter to be adjusted is restored to the value before the last adjustment.
  • the next preset parameter is selected as the parameter to be adjusted according to the preset selection strategy, and the execution is performed according to the preset adjustment strategy to adjust the value of the parameter to be adjusted to the target value.
  • the ring-centric area where the node is located is determined based on the coverage distance determined in the last two times and the position of the gateway to be synchronized.
  • the simulation proves that the method for determining positioning information provided by the embodiments of the present application is effective and feasible.
  • this application also provides an IoT node.
  • a schematic structural diagram of the node is shown in FIG. 9 and may include:
  • the first obtaining module 91 is configured to obtain a request to enter a positioning mode
  • the first response module 92 is configured to enter a positioning mode in response to the request
  • the first interaction module 93 is configured to perform information interaction with gateways around the node, and determine a preset number of target gateways among the gateways around the node according to the interaction result, where the preset number is greater than or equal to 3 Positive integer.
  • the gateways around the nodes have all entered the positioning mode, and the gateways around the nodes include the home gateway of the node and the neighboring gateways of the home gateway;
  • the first synchronization module 94 is configured to send an adjustment instruction to each of the target gateways according to a preset synchronization strategy, where the adjustment instruction is used to instruct the target gateway to adjust a value of at least one preset parameter to determine the
  • the node is located in a circular area centered on the target gateway, and the preset parameter is related to a coverage distance of the gateway signal. The determined circular area is used to determine the position of the node.
  • the node and the gateways around the node both enter a positioning mode, and then the node determines at least three gateways among the surrounding gateways as target gateways.
  • the target gateways perform information interaction so that the target gateway determines the ring area where the node is located, so that the position of the node can be determined according to the overlapping area of the ring area. Since this method does not require the node to add a GPS module, it can achieve positioning of the node at a lower cost and power consumption.
  • the first obtaining module 91 may be specifically configured to:
  • the first interaction module 93 may be specifically configured to:
  • the number of the candidate gateways is greater than or equal to the preset number, determining a preset number of target gateways among the candidate gateways;
  • the number of gateways to be selected is less than the preset number, adjust the value of the at least one preset parameter in synchronization with the gateways around the node to increase the signal coverage distance of the gateways around the node ; Return to the step of performing the broadcasting the first positioning request message.
  • the first interaction module 93 may be specifically configured to:
  • the number of the received second positioning request information is greater than or equal to the preset number, determining a preset number of target gateways among the gateways sending the second positioning request message;
  • the value of the at least one preset parameter is adjusted in synchronization with the gateway around the node, so as to expand the gateway around the node.
  • the signal covers the distance; and returns to the step of receiving the second positioning request information sent by a gateway around the node.
  • the first synchronization module 94 may be specifically configured to:
  • the target gateway If the determination result is no, send a second adjustment instruction to the target gateway, and restore the value of the parameter to be adjusted to the value before the last adjustment, and the second adjustment instruction is used to instruct the target gateway Returning the value of the parameter to be adjusted to the value before the last adjustment; if there are unadjusted parameters, selecting the next preset parameter among the at least one preset parameter as the parameter to be adjusted, And returning to the step of determining the target value of the parameter to be adjusted according to a preset adjustment strategy, and in the case where there is no unadjusted parameter, sending an adjustment end message to the target gateway, so that the target gateway Determine the annular area centered on the target gateway where the node is located according to the coverage distance determined in the last two times and the position of the target gateway.
  • the first synchronization module 94 may be specifically configured to:
  • the target gateway If the determination result is no, send a fifth adjustment instruction to the target gateway, and restore the value of the parameter to be adjusted to the value before the last adjustment; the fifth adjustment instruction is used to instruct the target gateway Restore the value of the parameter to be adjusted to the value before the last adjustment;
  • a sixth adjustment instruction is sent to the target gateway to instruct the target gateway to select a next preset parameter among the at least one preset parameter according to the preset selection strategy.
  • a parameter to be adjusted and returning to executing the step of adjusting the value of the parameter to be adjusted to a target value according to the preset adjustment strategy;
  • the at least one preset parameter is at least one of the following three parameters: a spreading factor, a bandwidth, and a transmission power.
  • this application further provides an IoT gateway.
  • a schematic structural diagram of the gateway is shown in FIG. 10 and may include:
  • the second obtaining module 101 is configured to obtain a request to enter a positioning mode
  • the second response module 102 is configured to enter a positioning mode in response to the request
  • the second interaction module 103 is configured to perform information interaction with a node entering the positioning mode, so that the node determines a preset number of target gateways according to the interaction result, where the preset number is a positive integer greater than or equal to 3.
  • the gateway is a home gateway of the node or a neighboring gateway of the home gateway;
  • the second synchronization module 104 is configured to adjust the value of at least one preset parameter in response to the adjustment instruction sent by the node, so as to determine that the node is located with the gateway as A central circular area; the preset parameter is related to the coverage distance of the gateway signal; the determined circular area is used to determine the position of the node.
  • the node and the gateways around the node both enter a positioning mode, and then the node determines at least three gateways among the surrounding gateways as target gateways.
  • the target gateways perform information interaction so that the target gateway determines the ring area where the node is located, so that the position of the node can be determined according to the overlapping area of the ring area. Since this method does not require the node to add a GPS module, it can achieve positioning of the node at a lower cost and power consumption.
  • the second obtaining module 101 may be specifically configured to:
  • the second interaction module 103 may be specifically configured to:
  • the second interaction module 103 may be specifically configured to:
  • the timing is an order in which all gateways entering a positioning mode send the second positioning request message to the node;
  • the node sends the second positioning request message.
  • the second synchronization module 104 may be specifically configured to:
  • the value of the parameter to be adjusted is adjusted to The target value
  • the value of the parameter to be adjusted is restored to the value before the last adjustment
  • the ring-shaped area centered on the gateway where the node is located is determined according to the coverage distance determined in the last two times and the location of the gateway.
  • the second synchronization module 104 may be specifically configured to:
  • a preset parameter is selected as the parameter to be adjusted according to a preset selection strategy; the value of the parameter to be adjusted is adjusted to the target value according to the preset adjustment strategy; The value of the at least one preset parameter determines a signal coverage distance of the gateway;
  • the value of the parameter to be adjusted is restored to the value before the last adjustment
  • the next preset parameter is selected as the parameter to be adjusted according to the preset selection strategy, and the execution returns to the adjustment of the parameter to be adjusted according to the preset adjustment strategy.
  • the ring-shaped area centered on the gateway where the node is located is determined according to the last two determined coverage distances and the position of the gateway to be synchronized.
  • the Internet of Things system includes the nodes and gateways disclosed in the foregoing embodiments, and further includes a positioning server. among them:
  • Nodes and gateways can communicate based on LoRa.
  • the gateway and the positioning server can communicate through the Internet.
  • the gateways can also communicate via the Internet.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present invention is essentially a part that contributes to the existing technology or a part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in various embodiments of the present invention.
  • the foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种定位信息确定方法、定位方法、节点、网关及物联网系统,当需要对节点进行定位时,节点以及节点周围的网关均进入定位模式,然后节点在周围的网关中确定至少三个网关作为目标网关,节点与该至少三个目标网关进行信息交互,使得目标网关确定节点所处的以目标网关为中心的环形区域,从而可以根据该环形区域的交叠区域确定节点的位置。由于本方法不需要节点增加GPS模块,因此,可以实现以较低的成本和耗电量对节点进行定位。

Description

定位信息确定方法、定位方法、节点、网关及物联网系统 技术领域
本申请涉及物联网技术领域,更具体地说,涉及一种定位信息确定方法、定位方法、节点、网关及物联网系统。
背景技术
顾名思义,物联网就是连接物品的网络。物联网通过最底层的设备,即网关,采集终端(也称为节点)的信息并上报给物联网的上层设备(如,监控台),从而可以实现对终端的监控和管理。
在物联网的使用过程中,通常会有对节点进行定位的需求。而目前,普遍使用的节点定位方法是,在节点中增加GPS模块,利用GPS信号进行定位。这种方式不但增加了节点的硬件成本,而且,由于物联网节点一般是靠电池供电,而GPS模块需要消耗电量,因此,增加GPS模块无疑会缩短节点的可工作时间。
因此,如何以较低的成本和耗电量对节点进行定位成为亟待解决的问题。
发明内容
本申请的目的是提供一种定位信息确定方法、定位方法、节点、网关及物联网系统,以实现以较低的成本和耗电量对节点进行定位。
为实现上述目的,本申请提供了如下技术方案:
一种定位信息确定方法,应用于节点,包括:
获取进入定位模式的请求;
响应于所述请求进入定位模式;
与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;按照预置同步策略向每个所述目标网关发送调节指令,所述调节指令用于指示所述目标网关对至少一个预设参数的取值进行调节,以确定所 述节点所处的以所述目标网关为中心的环形区域,其中所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
上述方法,优选的,所述获取进入定位模式的请求包括:
获取用户触发生成的进入定位模式的请求;
或者,
接收预设装置发送的进入定位模式的请求。
上述方法,优选的,所述与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,包括:
广播第一定位请求消息;
将发送与所述第一定位请求消息对应的响应消息的网关,确定为待选网关;
若所述待选网关的个数大于或等于所述预设个数,在所述待选网关中确定预设个数的目标网关;
若所述待选网关的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述广播第一定位请求消息的步骤。
上述方法,优选的,所述与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,包括:
接收所述节点周边的网关发送的第二定位请求信息;
若接收到的第二定位请求信息的个数大于或等于所述预设个数,在发送所述第二定位请求消息的网关中确定预设个数的目标网关;
若接收到的第二定位请求信息的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述接收所述节点周边的网关发送的第二定位请求信息的步骤。
上述方法,优选的,所述按照预置同步策略向每个所述目标网关发送调节指令,包括:
在所述至少一个预设参数中选择一个预设参数作为待调整参数;
按预设调整策略确定所述待调整参数的目标取值;
向所述目标网关发送携带所述待调整参数的目标取值的第一调节指令,所述第一调节指令用于指示所述目标网关将所述待调整参数的取值调整为所述目标取值,并依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
将所述待调整参数的取值调整为所述目标取值;
判断是否能够接收到所述目标网关发射的信号;
若判断结果为是,返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤;
若判断结果为否,向所述目标网关发送第二调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值,所述第二调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;在还有未调整的参数的情况下,在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束消息,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
上述方法,优选的,所述按照预置同步策略向每个所述目标网关发送调节指令,包括:
向所述目标网关发送第三调节指令,以指示所述目标网关按预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按预设调整策略将所述待调整参数的取值调整为目标取值,依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
按所述预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按所述预设调整策略将所述待调整参数的取值调整为所述目标取值;
判断是否能够接收到所述目标网关发射的信号;
若判断结果为是,则向所述目标网关发送第四调节指令,以指示所述目标网关返回执行所述按预设调整策略将所述待调整参数的取值调整为目 标取值的步骤;
返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤;
若判断结果为否,向所述目标网关发送第五调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;所述第五调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;
在还有未调整的参数的情况下,向所述目标网关发送第六调节指令,以指示所述目标网关按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束指令,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
上述方法,优选的,所述至少一个预设参数为如下三个参数中的至少一个:扩频因子,带宽,发射功率。
一种定位信息确定方法,应用于网关,包括:
获取进入定位模式的请求;
响应于所述请求进入定位模式;
与进入定位模式的节点进行信息交互,以使所述节点根据交互结果确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;
若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点所处的以所述网关为中心的环形区域;所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
上述方法,优选的,所述获取进入定位模式的请求包括:
接收定位服务器发送的进入定位模式的请求;
或者,
接收所述节点发送的进入定位模式的请求。
上述方法,优选的,所述与进入定位模式的节点进行信息交互,包括:
接收所述节点广播的第一定位请求消息;响应于所述第一定位请求消息,向所述节点发送响应消息;
或者,
接收定位服务器发送的参数调整请求,响应于所述参数调整请求,对所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖距离。
上述方法,优选的,所述与进入定位模式的节点进行信息交互,包括:
按照预设时序向所述节点发送第二定位请求消息;所述时序为所有进入定位模式的网关向所述节点发送所述第二定位请求消息的顺序;
或者,
接收定位服务器发送的参数调整请求;响应于所述参数调整请求,对所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖范围;按照所述预设时序向所述节点发送所述第二定位请求消息。
上述方法,优选的,所述若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点所处的以所述网关为中心的环形区域,包括:
若接收到所述节点发送的第一调节指令,所述第一调节指令中携带有所述至少一个预设参数中待调整参数的目标取值,则将所述待调整参数的取值调整为所述目标取值;
依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
若接收到所述节点发送的第二调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
若接收到所述节点发送的调整结束消息,依据最后两次确定的覆盖距离,以及所述网关的位置确定所述节点所处的以所述网关为中心的环形区域。
上述方法,优选的,所述若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点 所处的以所述网关为中心的环形区域,包括:
若接收到所述节点发送的第三调节指令,则按预设选择策略选择一个预设参数作为待调整参数;按预设调整策略将所述待调整参数的取值调整为目标取值;依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
若接收到所述节点发送的第四调节指令,则返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
若接收到所述节点发送的第五调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
若接收到所述节点发送的第六调节指令,则按所述预设选择策略选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
若接收到所述节点发送的调整结束指令,依据最后两次确定的覆盖距离,以及所述待同步网关的位置确定所述节点所处的以所述网关为中心的环形区域。
一种定位信息确定方法,包括:
待定位节点,以及所述待定位节点周围的网关均进入定位模式;
所述待定位节点与其周围的网关进行信息交互,并根据交互结果在所述待定位节点周围的网关中确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;
所述待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示所述目标网关对至少一个预设参数的取值进行调节,以便确定所述待定位节点所处的以所述目标网关为中心的环形区域;所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
上述方法,优选的,所述待定位节点,以及所述待定位节点周围的网关均进入定位模式,包括:
所述待定位节点获取第一定位模式启动请求,响应于所述第一定位模式启动请求,向所述待定位节点的归属网关发送第二定位模式启动请求, 并进入定位模式;所述第一定位模式启动请求由用户触发生成,或者,所述第一定位模式启动请求由预设终端设备向所述节点发送;
所述待定位节点的归属网关响应于所述第二定位模式启动请求,向定位服务器发送第三定位模式启动请求,并进入定位模式;
所述归属网关的邻近网关响应于所述定位服务器发送的第四定位模式启动请求,进入定位模式。
上述方法,优选的,所述待定位节点,以及所述待定位节点周围的网关均进入定位模式,包括:
所述待定位节点的归属网关,以及所述归属网关的邻近网关接收定位服务器发送的第五定位模式启动请求;
所述归属网关响应于所述第五定位模式启动请求向所述待定位节点发送第六定位模式启动请求,并进入定位模式,所述归属网关的邻近网关响应于所述第五定位模式启动请求,进入定位模式;
所述待定位节点响应于所述第六定位模式启动请求,进入定位模式。
上述方法,优选的,所述待定位节点与其周围的网关进行信息交互,并根据交互结果在所述待定位节点周围的网关中确定预设个数的目标网关,包括:
所述待定位节点广播第一定位请求消息;
所述待定位节点周围的网关若接收到所述第一定位请求消息,向所述待定位节点发送响应消息;
所述待定位节点将发送所述响应消息的网关,确定为待选网关;若所述待选网关的个数大于或等于所述预设个数,在所述待选网关中确定预设个数的目标网关;若所述待选网关的个数小于所述预设个数,则与所述待定位节点周围的网关同步调整所述至少一个预设参数的取值,以扩大所述待定位节点周围的网关的信号覆盖距离;返回执行所述广播第一定位请求消息的步骤。
上述方法,优选的,所述待定位节点与其周围的网关进行信息交互,并根据交互结果在所述待定位节点周围的网关中确定预设个数的目标网关,包括:
所述待定位节点周围的网关按照预设时序向所述待定位节点发送第二定位请求消息;
所述待定位节点确定接收到的第二定位请求消息的个数;若接收到的第二定位请求信息的个数大于或等于所述预设个数,在发送所述第二定位请求消息的网关中确定预设个数的目标网关;若接收到的第二定位请求信息的个数小于所述预设个数,则与所述待定位节点周围的网关同步调整所述至少一个预设参数的取值,以扩大所述待定位节点周围的网关的信号覆盖距离;返回执行所述确定接收到的第二定位请求消息的个数的步骤。
上述方法,优选的,所述待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示所述目标网关对至少一个预设参数的取值进行调节,以便确定所述待定位节点所处的以所述目标网关为中心的环形区域,包括:
所述待定位节点在所述至少一个预设参数中选择一个预设参数作为待调整参数;
所述待定位节点按预设调整策略确定所述待调整参数的目标取值;
所述待定位节点向所述目标网关发送携带所述待调整参数的目标取值的第一调节指令;
所述目标网关响应于所述第一调节指令,将所述待调整参数的取值调整为所述目标取值,并依据所述目标取值确定所述目标网关的信号覆盖距离;
所述待定位节点将所述待调整参数的取值调整为所述目标取值;
所述待定位节点判断是否能够接收到所述目标网关发射的信号;
若判断结果为是,所述待定位节点返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤;
若判断结果为否,所述待定位节点向所述目标网关发送第二调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;
所述目标网关响应于所述第二调节指令,将所述待调整参数的取值恢复为最后一次调整前的取值;
在还有未调整的参数的情况下,所述待定位节点选择下一个预设参数 作为待调整参数,并返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,所述待定位节点向所述目标网关发送调整结束消息;
所述目标网关响应于所述调整结束消息,依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述待定位节点所处的以所述目标网关为中心的环形区域。
上述方法,优选的,所述待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示所述目标网关对至少一个预设参数的取值进行调节,以便确定所述待定位节点所处的以所述目标网关为中心的环形区域,包括:
所述待定位节点向所述目标网关发送第三调节指令;
所述目标网关响应于所述第三调节指令,按预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数;
所述目标网关按预设调整策略将所述待调整参数的取值调整为目标取值;
所述目标网关依据所述目标取值确定所述网关的信号覆盖距离;
所述待定位节点按所述预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数;
所述待定位节点按所述预设调整策略将所述待调整参数的取值调整为所述目标取值;
所述待定位节点判断是否能够接收到所述目标网关发射的信号;
若判断结果为是,所述待定位节点向所述目标网关发送第四调节指令;
所述目标网关响应于所述第四调节指令,返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
所述待定位节点返回执行所述按预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤;
若判断结果为否,所述待定位节点向所述目标网关发送第五调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;
所述目标网关响应于所述第五调节指令,将所述待调整参数的取值恢 复为最后一次调整前的取值;
在还有未调整的参数的情况下,所述待定位节点向所述目标网关发送第六调节指令;
所述目标网关响应于所述第六调节指令,按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略确定所述待调整参数的目标取值的步骤;
所述待定位节点按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,所述待定位节点向所述目标网关发送调整结束指令;
所述目标网关响应于所述调整结束指令,依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
一种定位方法,应用如前任意一项所述的确定定位信息的方法确定的环形区域确定节点的位置,包括:
计算所述预设个数的网关确定的环形区域的交叠区域;
在所述交叠区域中确定一点作为所述节点的位置。
一种节点,包括:
第一获取模块,用于获取进入定位模式的请求;
第一响应模块,用于响应于所述请求进入定位模式;
第一交互模块,用于与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;
第一同步模块,用于按照预置同步策略向每个所述目标网关发送调节指令,所述调节指令用于指示所述目标网关对至少一个预设参数的取值进行调节,以确定所述节点所处的以所述目标网关为中心的环形区域,其中,所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
上述节点,优选的,所述第一获取模块具体用于:
获取用户触发生成的进入定位模式的请求;或者,
接收预设装置发送的进入定位模式的请求。
上述节点,优选的,所述第一交互模块具体用于:
广播第一定位请求消息;
将发送与所述第一定位请求消息对应的响应消息的网关,确定为待选网关;
若所述待选网关的个数大于或等于所述预设个数,在所述待选网关中确定预设个数的目标网关;
若所述待选网关的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述广播第一定位请求消息的步骤。
上述节点,优选的,所述第一交互模块具体用于:
接收所述节点周边的网关发送的第二定位请求信息;
若接收到的第二定位请求信息的个数大于或等于所述预设个数,在发送所述第二定位请求消息的网关中确定预设个数的目标网关;
若接收到的第二定位请求信息的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述接收所述节点周边的网关发送的第二定位请求信息的步骤。
上述节点,优选的,所述第一同步模块具体用于:
在所述至少一个预设参数中选择一个预设参数作为待调整参数;
按预设调整策略确定所述待调整参数的目标取值;
向所述目标网关发送携带所述待调整参数的目标取值的第一调节指令,所述第一调节指令用于指示所述目标网关将所述待调整参数的取值调整为所述目标取值,并依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
将所述待调整参数的取值调整为所述目标取值;
判断是否能够接收到所述目标网关发射的信号;
若判断结果为是,返回执行所述按预设调整策略确定所述待调整参数 的目标取值的步骤;
若判断结果为否,向所述目标网关发送第二调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值,所述第二调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;在还有未调整的参数的情况下,在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束消息,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
上述节点,优选的,所述第一同步模块具体用于:
向所述目标网关发送第三调节指令,以指示所述目标网关按预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按预设调整策略将所述待调整参数的取值调整为目标取值,依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
按所述预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按所述预设调整策略将所述待调整参数的取值调整为所述目标取值;
判断是否能够接收到所述目标网关发射的信号;
若判断结果为是,则向所述目标网关发送第四调节指令,以指示所述目标网关返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤;
若判断结果为否,向所述目标网关发送第五调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;所述第五调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;
在还有未调整的参数的情况下,向所述目标网关发送第六调节指令,以指示所述目标网关按所述预设选择策略在所述至少一个预设参数中选择 下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束指令,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
上述节点,优选的,所述至少一个预设参数为如下三个参数中的至少一个:扩频因子,带宽,发射功率。
一种网关,包括:
第二获取模块,用于获取进入定位模式的请求;
第二响应模块,用于响应于所述请求进入定位模式;
第二交互模块,用于与进入定位模式的节点进行信息交互,以使所述节点根据交互结果确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;
第二同步模块,用于若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点所处的以所述网关为中心的环形区域;所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
上述网关,优选的,所述第二获取模块具体用于:
接收定位服务器发送的进入定位模式的请求;
或者,
接收所述节点发送的进入定位模式的请求。
上述网关,优选的,所述第二交互模块具体用于:
接收所述节点广播的第一定位请求消息;响应于所述第一定位请求消息,向所述节点发送响应消息;
或者,
接收定位服务器发送的参数调整请求,响应于所述参数调整请求,对 所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖距离。
上述网关,优选的,所述第二交互模块具体用于:
按照预设时序向所述节点发送第二定位请求消息;所述时序为所有进入定位模式的网关向所述节点发送所述第二定位请求消息的顺序;
或者,
接收定位服务器发送的参数调整请求;响应于所述参数调整请求,对所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖范围;按照所述预设时序向所述节点发送所述第二定位请求消息。
上述网关,优选的,所述第二同步模块具体用于:
若接收到所述节点发送的第一调节指令,所述第一调节指令中携带有所述至少一个预设参数中待调整参数的目标取值,则将所述待调整参数的取值调整为所述目标取值;
依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
若接收到所述节点发送的第二调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
若接收到所述节点发送的调整结束消息,依据最后两次确定的覆盖距离,以及所述网关的位置确定所述节点所处的以所述网关为中心的环形区域。
上述网关,优选的,所述第二同步模块具体用于:
若接收到所述节点发送的第三调节指令,则按预设选择策略选择一个预设参数作为待调整参数;按预设调整策略将所述待调整参数的取值调整为目标取值;依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
若接收到所述节点发送的第四调节指令,则返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
若接收到所述节点发送的第五调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
若接收到所述节点发送的第六调节指令,则按所述预设选择策略选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略将所述 待调整参数的取值调整为目标取值的步骤;
若接收到所述节点发送的调整结束指令,依据最后两次确定的覆盖距离,以及所述待同步网关的位置确定所述节点所处的以所述网关为中心的环形区域。
一种物联网系统,包括如前任意一项所述的节点,以及如前任意一项所述的网关,以及定位服务器;所述网关与所述定位服务器之间通过互联网进行通信。
通过以上方案可知,本申请提供的一种定位信息确定方法、定位方法、节点、网关及物联网系统,当需要对节点进行定位时,节点以及节点周围的网关均进入定位模式,然后节点在周围的网关中确定至少三个网关作为目标网关,节点与该至少三个目标网关进行信息交互,使得目标网关确定节点所处的以目标网关为中心的环形区域,从而可以根据该环形区域的交叠区域确定节点的位置。由于本方法不需要节点增加GPS模块,因此,可以实现以较低的成本和耗电量对节点进行定位。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的物联网系统的一种结构示意图;
图2为本申请实施例提供的确定定位信息方法的一种实现流程图;
图3为本申请实施例提供的待定位节点,以及待定位节点周围的网关均进入定位模式的一种实现流程图;
图4为本申请实施例提供的待定位节点,以及待定位节点周围的网关均进入定位模式的另一种实现流程图;
图5为本申请实施例提供的待定位节点按照预置同步策略向每个所述 目标网关发送调节指令,以指示目标网关对至少一个预设参数的取值进行调节,以便确定待定位节点所处的以目标网关为中心的环形区域的一种实现流程图;
图6为本申请实施例提供的待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示目标网关对至少一个预设参数的取值进行调节,以便确定待定位节点所处的以目标网关为中心的环形区域的另一种实现流程图;
图7为本申请实施例提供的应用于节点的定位信息确定方法的一种实现流程图;
图8为本申请实施例提供的应用于网关的定位信息确定方法的一种实现流程图;
图9为本申请实施例提供的节点的一种结构示意图;
图10为本申请实施例提供的网关的一种结构示意图。
说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的部分,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示的以外的顺序实施。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,图1为本申请实施例提供的物联网系统的一种结构示意图,包括:定位服务器,若干网关,以及节点,其中,节点也可以有若干个,为了便于说明,图中仅示出一个。其中,定位服务器和网关之间可以通过互联网进行通信,网关与网关之间也可以通过互联网进行通信。网关 和节点之间基于LoRa(Long Range,广距)进行通信,即网关和节点通过LoRa无线模块进行通信。
请参阅图2,图2为本申请实施例提供的确定定位信息方法的一种实现流程图,可以包括:
步骤S21:待定位节点,以及待定位节点周围的网关均进入定位模式。其中,待定位节点周围的网关包括:待定位节点的归属网关,以及归属网关的邻近网关。
本申请实施例中,物联网中的节点和网关均设置有正常工作模式和定位模式。
待定位节点的归属网关是指待定位节点以及网关均处于正常工作模式时,与待定位节点进行通信的网关。
当节点和网关均处于正常工作模式时,相邻网关的工作频率不同,因此,同一时刻节点只能与其中一个网关进行通信。本申请实施例中,当需要对节点定位时,需要节点,以及节点周围的网关均进入定位模式,即节点和节点周围的网关的工作频率均调整到同一预设频率,同时,节点和节点周围的网关的工作带宽均调整到同一预设带宽,节点和节点周围的网关的扩频因子也均调整到同一预设扩频因子,以便于节点除了可以与其归属网关进行通信外,还可以与归属网关的邻近网关进行通信。
一个网关的邻近网关是哪些是预先定义好的,也就是说,哪些网关属于待定位节点的归属网关的邻近网关是预先定义好的。
步骤S22:待定位节点与其周围的网关进行信息交互,并根据交互结果在待定位节点周围的网关中确定预设个数的(为方便叙述,记为N个)目标网关,该预设个数为大于或等于3的正整数。
待定位节点与其周围的网关进行信息交互,以确定有哪些网关可以与待定位节点进行通信,以及与待定位节点进行通信的网关的信号质量。信号质量可以用信噪比表征,信噪比越大,信号质量越好,信噪比越小,信号质量越差。待定位节点可以根据网关发射信号的信噪比确定目标网关,具体的,在可以与待定位节点进行通信的网关中,选择发射信号的信噪比最大的N个网关作为目标网关。
其中,所确定的预设个数的目标网关中,可以包括待定位节点的归属网关,也可以不包括待定位节点的归属网关。
步骤S23:待定位节点按照预置同步策略向每个目标网关发送调节指令,以便于待定位节点与目标网关同步调整至少一个预设参数的取值,以使目标网关确定待定位节点所处的以目标网关为中心的环形区域,该环形区域即为定位信息。
其中,上述调节指令用于指示目标网关对上述至少一个预设参数的取值进行调节。
上述预置同步策略是指:待定位节点和目标网关同步调整上述至少一个预设参数的策略。
上述至少一个预设参数均是与网关的信号覆盖距离相关联的参数。例如,上述至少一个预设参数可以是如下三个参数中的至少一个:扩频因子,带宽,发射功率。
通过待定位节点与目标网关同步调整上述至少一个预设参数的取值,可以调整目标网关的信号覆盖距离,从而目标网关可以根据目标网关的信号能够覆盖待定位节点时的最小覆盖距离,以及不能够覆盖待定位节点时的最大覆盖距离,以及网关的位置可以确定待定位节点所处的与目标网关对应的环形区域。也就是说,每个目标网关均确定待定位节点所在的一个环形区域。
在上述N个目标网关中的每个网关均确定待定位节点所在的一个环形区域后,即在得到N个环形区域后,就可以根据该N个环形区域计算待定位节点的位置,具体的:
计算N个环形区域的交叠区域,即节点所处的区域。
在交叠区域内确定一点作为待定位节点的位置。具体的,可以在交叠区域内随机确定一点作为待定位节点的位置,或者,计算上述交叠区域的质心,将质心的位置作为待定位节点的位置。
上述计算待定位节点的位置的过程可以在定位服务器端完成,即目标网关将得到的定位信息发送给定位服务器,由定位服务器根据定位信息计算待定位节点的位置。或者,
上述计算待定位节点的位置的过程可以在待定位节点侧完成,即目标网关将得到的定位信息发送给待定位节点,由待定位节点根据定位信息计算待定位节点的位置。
本申请实施例提供的确定定位信息的方法,当需要对节点进行定位时,节点以及节点周围的网关均进入定位模式,然后节点在周围的网关中确定至少三个网关作为目标网关,节点与该至少三个目标网关进行信息交互,使得目标网关确定节点所在的以目标网关为中心的环形区域,从而可以根据环形区域的交叠区域确定节点的位置。由于本方法不需要节点增加GPS模块,因此,可以实现以较低的成本和耗电量对节点进行定位。
请参阅图3,图3为本申请实施例提供的待定位节点,以及待定位节点周围的网关均进入定位模式的一种实现流程图,可以包括:
步骤S31:待定位节点获取第一定位模式启动请求。其中,第一定位模式启动请求可以由用户触发生成,或者,第一定位模式启动请求由预设终端设备向节点发送。
待定位节点用户需要对待定位节点进行定位时,可以直接对待定位节点进行操作,以触发生成第一定位模式启动请求,或者,对预设终端进行操作,由该预设终端向待定位节点发送第一定位模式启动请求。预设终端可以是移动通信终端,如手机,也可以是与节点匹配的摇控器等。
步骤S32:待定位节点响应于第一定位模式启动请求,向待定位节点的归属网关发送第二定位模式启动请求。
步骤S33:待定位节点进入定位模式。
待定位节点发送第二定位模式启动请求后进入定位模式。
步骤S34:待定位节点的归属网关响应于第二定位模式启动请求,向定位服务器发送第三定位模式启动请求。
需要说明的是,步骤S34与步骤S33的执行顺序不做具体限定,步骤S34可以在步骤S33之前执行,也可以在步骤S33之后执行,或者与步骤S33同时执行。
步骤S35:待定位节点的归属网关进入定位模式。
待定位节点的归属网关发送第三定位模式启动请求后,进入定位模式。
步骤S36:定位服务器响应于第三定位模式启动请求,向归属网关的邻近网关发送第四定位模式启动请求。
需要说明的是,步骤S36与步骤S35的执行顺序不做具体限定,步骤S36可以在步骤S35之前执行,也可以在步骤S35之后执行,或者与步骤S35同时执行。
步骤S37:归属网关的邻近网关响应于定位服务器发送的第四定位模式启动请求,进入定位模式。
本实施例中,由待定位节点发起定位模式启动请求。
除了可以由节点发起定位模式启动请求外,还可以由定位服务器发起定位模式启动请求。请参阅图4,图4为本申请实施例提供的待定位节点,以及待定位节点周围的网关均进入定位模式的另一种实现流程图,可以包括:
步骤S41:定位服务器向待定位节点的归属网关,以及归属网关的邻近网关发送第五定位模式启动请求。
步骤S42:归属网关响应于第五定位模式启动请求,向待定位节点发送第六定位模式启动请求。
步骤S43:归属网关进入定位模式。
待定位节点的归属网关向待定位节点发送第六定位模式启动请求后,进入定位模式。
步骤S44:归属网关的邻近网关响应于第五定位模式启动请求,进入定位模式。
需要说明的是,步骤S44并不一定在步骤S43之后执行,步骤S44可以在步骤S41与步骤S45之间的任意一时刻执行。
步骤S45:待定位节点响应于第六定位模式启动请求,进入定位模式。
与图3所示实施例不同,本实施例中,由定位服务器发起定位模式启动请求。
在一可选的实施例中,待定位节点与其周围的网关进行信息交互,并根据交互结果在待定位节点周围的网关中确定预设个数的目标网关的一种实现方式可以为:
待定位节点广播第一定位请求消息。
由于待定位节点与其周围网关的工作频率、工作带宽和扩频因子均相同,因此,待定位节点广播第一定位请求消息时,若定位节点位于网关的信号覆盖范围内,网关可以接收到该第一定位请求消息。
待定位节点周围的网关接收到第一定位请求消息后,向待定位节点发送响应消息。
为避免信道阻塞,网关可以按照预设时序向待定位节点发送响应消息。该预设时序为待定位节点周围的网关向待定位节点发送信息(如上述响应消息)的时间先后顺序,不同的网关向待定位节点发送信息的时间不同,以避免多个网关同时向待定位节点发送信息导致信道阻塞。
该预设时序可以是由定位服务器生成的。例如:定位服务器可以随机生成的一个时序。或者,定位服务器可以是按照网关的唯一地址码的大小生成的时序,即:地址码越大,发送信息的时间越早;地址码越小,发送信息的时间越晚;或者,地址码越小,发送信息的时间越早;地址码越大,发送信息的时间越晚。
也就是说,如果待定位节点周围的网关能够接收到第一定位请求消息,则网关向待定位节点发送响应消息。网关可以根据第一定位请求消息中携带的该第一定位请求消息的发送时间,以及上述预设时序确定自己发送响应消息的时间。具体的,网关可以以第一定位请求消息的发送时间作为时间基准,根据上述预设时序定义的自己发送信息的时序,等待与上述时序对应的时长后,向节点发送响应消息。
例如,网关接收到第一定位请求消息后,若自己在上述时序中排第一位,则以第一定位请求消息的发送时间为起始时间,在等待预设时长t后向节点发送响应消息,若自己在上述时序中拍第2位,则以第一定位请求消息的发送时间为起始时间,在等待时长2t后向节点发送响应消息,依次类推,若自己在上述时序中排第m位,则以第一定位请求消息的发送时间 为起始时间,在等待时长m*t后向节点发送响应消息。
待定位节点将发送响应消息的网关,确定为待选网关。
若待选网关的个数大于或等于预设个数N,在待选网关中确定N目标网关。
可选的,可以从待选网关中选择信号质量最好的N个网关作为目标网关。其中,信号质量最好的N个网关可以是发射信号的信噪比最大的N个网关。
若待选网关的个数小于预设个数N,则与待定位节点周围的网关同步调整至少一个预设参数的取值,以扩大待定位节点周围的网关的信号覆盖范围;返回执行广播第一定位请求消息的步骤及后续步骤。也就是说,待定位节点和网关同步调整预设参数的取值后,再次与其周围的网关进行信息交互,以确定大于或等于N个待选网关,从而确定N个目标网关。
待选网关的个数小于预设个数N,说明可以与待定位节点通信的网关的数量小于N,因此,需要待定位节点与其周围的网关同步调整预设参数的取值,以扩大待定位节点周围的网关的信号覆盖范围,从而使得更多的网关可以与待定位节点进行通信。具体可以有以下两种参数调整方式:
方式一
待定位节点在上述至少一个预设参数中确定一个预设参数作为待调整参数。
待定位节点按预设调整策略确定该待调整参数的目标取值。该预设调整策略是指,网关将待调整参数的取值调整为目标取值后,网关的信号覆盖距离增大的调整策略。可以将待调整参数的取值调大预设步长,或者,调小预设步长来使得待调整参数的取值调整为目标取值。具体的,在其它预设参数不变的情况下,若待调整参数的取值越大,网关的信号覆盖距离越大,则将待调整参数的取值调大与待调整参数对应的预设步长,若待调整参数的取值越小,网关的信号覆盖距离越大,则将待调整参数的取值调小与待调整参数对应的预设步长。也就是说,参数不同,对应的预设步长不同。
待定位节点将该待调整参数的目标取值发送给待定位节点周围的网 关,以使周围的网关将上述待调整参数的取值调整为上述目标取值。
待定位节点可以将待调整参数的目标取值发送给待定位节点的归属网关,由归属网关将待调整参数的目标取值发送给定位服务器,由定位服务器将待调整参数的目标取值发送给待定位节点周围的网关中除所述归属网关以外的其它网关。
对于向待定位节点发送响应消息的网关,由于可以直接与待定位节点通信,因此,待定位节点也可以直接将待调整参数的目标取值发送给这些网关。
待定位节点将上述待调整参数的取值发送给其周围的网关后,将自身的上述待调整参数的取值调整为上述目标取值。
待定位节点将待调整参数的取值调整为目标取值后,返回执行广播第一定位请求消息的步骤及后续步骤。也就是说,待定位节点与网关同步将待调整参数的取值调整为目标取值后,再次与其周围的网关进行信息交互,并根据交互结果在待定位节点周围的网关中确定预设个数的目标网关。
方式二
待定位节点向待定位节点周围的网关发送参数调整指令,以使待定位节点周围的网关按照预设的参数调整策略在上述至少一个预设参数中确定一个待调整参数进行一次调整,以将待调整参数的取值调整为目标取值。
待定位节点向网关发送参数调整指令后,按照上述预设的参数调整策略在所述至少一个预设参数中确定一个待调整参数进行一次调整,以将该待调整参数的取值调整为上述目标取值。
待定位节点与网关确定待调整参数的过程,以及对待调整参数进行调整的过程相同,从而实现待定位节点与网关同步调整参数的目的。
待定位节点对待调整参数的取值调整完成后,返回执行广播第一定位请求消息的步骤及后续步骤。也就是说,待定位节点与网关同步将待调整参数的取值调整为目标取值后,再次与其周围的网关进行信息交互,并根据交互结果在待定位节点周围的网关中确定预设个数的目标网关。
与方式一不同,方式一中,由待定位节点确定待调整参数及其目标取值,然后将待调整参数的目标取值发送给网关,由网关直接将待调整参数 的取值调整为目标取值。而方式二中,待定位节点只向网关发送调节指令,由网关确定待调整参数,计算待调整参数的取值,然后将待调整参数的取值调整为目标取值。
在一可选的实施例中,待定位节点与其周围的网关进行信息交互,并根据交互结果在待定位节点周围的网关中确定预设个数的目标网关的另一种实现方式可以为:
待定位节点周围的网关按照预设时序向待定位节点发送第二定位请求消息。
该预设时序为待定位节点周围的网关向待定位节点发送信息(如上述第二定位请求消息)的时间先后顺序,不同的网关向待定位节点发送信息的时间不同,以避免多个网关同时向待定位节点发送信息导致信道阻塞。
该预设时序可以是由定位服务器生成的。例如:
定位服务器可以随机生成一个时序。或者,
定位服务器可以按照网关的唯一地址码的大小生成的时序,即:地址码越大,发送信息的时间越早;地址码越小,发送信息的时间越晚;或者,地址码越小,发送信息的时间越早;地址码越大,发送信息的时间越晚。
定位服务器发送的定位模式启动请求中可以携带该定位模式启动请求的发送时间,网关可以将该定位模式启动请求的发送时间作为发送第二定位请求消息的基准时间,后续可以根据该基准时间以及上述预设时序确定自己发送第二定位请求消息的时间。
待定位节点确定接收到的第二定位请求消息的个数。
若接收到的第二定位请求信息的个数大于或等于上述预设个数N,待定位节点在发送第二定位请求消息的网关中确定N个目标网关。
若接收到的第二定位请求信息的个数小于上述预设个数N,则待定位节点与其周围的网关同步调整上述至少一个预设参数的取值,以扩大待定位节点周围的网关的信号覆盖范围;返回执行确定接收到的第二定位请求消息的个数的步骤。具体可以有以下两种参数调整方式:
方式一
待定位节点在上述至少一个预设参数中确定一个参数作为待调整参数。
待定位节点按预设调整策略确定该待调整参数的目标取值。
待定位节点将该待调整参数的目标取值发送给待定位节点周围的网关,以使周围的网关将上述待调整参数的取值调整为上述目标取值。网关将待调整参数的取值调整为目标取值后,再次向待定位节点发送第二定位请求消息。此时,网关可以根据待定位节点发送待调整参数的目标取值的时间,以及上述预设时序确定发送第二定位请求消息的时间,以避免同时向待定位节点发送第二定位请求消息导致信道阻塞。
待定位节点可以将待调整参数的目标取值发送给待定位节点的归属网关,由归属网关将待调整参数的目标取值发送给定位服务器,由定位服务器将待调整参数的目标取值发送给待定位节点周围的网关中除所述归属网关以外的其它网关。
对于向待定位节点发送响应消息的网关,由于可以直接与待定位节点通信,因此,待定位节点也可以直接将待调整参数的目标取值发送给这些网关。
待定位节点将上述待调整参数的取值发送给其周围的网关后,将自身的上述待调整参数的取值调整为上述目标取值。
待定位节点将待调整参数的取值调整为目标取值后,返回执行确定接收到的第二定位请求消息的个数的步骤及后续步骤。也就是说,待定位节点与网关同步将待调整参数的取值调整为目标取值后,再次与其周围的网关进行信息交互,并根据交互结果在待定位节点周围的网关中确定预设个数的目标网关。
方式二
待定位节点向待定位节点周围的网关发送参数调整指令,以使待定位节点周围的网关按照预设的参数调整策略在上述至少一个预设参数中确定一个待调整参数进行一次调整,以将待调整参数的取值调整为目标取值。
待定位节点向网关发送参数调整指令后,按照上述预设的参数调整策略在所述至少一个预设参数中确定一个待调整参数进行一次调整,以将该 待调整参数的取值调整为上述目标取值。
待定位节点与网关确定待调整参数的过程,以及对待调整参数进行调整额过程相同,从而实现待定位节点与网关同步调整参数的目的。
待定位节点对待调整参数的取值调整完成后,返回执行确定接收到的第二定位请求消息的个数的步骤及后续步骤。也就是说,待定位节点与网关同步将待调整参数的取值调整为目标取值后,再次与其周围的网关进行信息交互,并根据交互结果在待定位节点周围的网关中确定预设个数的目标网关。
在一可选的实施例中,待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示目标网关对至少一个预设参数的取值进行调节,以便确定待定位节点所处的以目标网关为中心的环形区域的一种实现流程图如图5所示,可以包括:
步骤S501:待定位节点在至少一个预设参数中选择一个预设参数作为待调整参数。
步骤S502:待定位节点按预设调整策略确定待调整参数的目标取值。
该预设调整策略是指,网关将待调整参数的取值调整为目标取值后,网关的信号覆盖距离减小的调整策略。可以将待调整参数的取值调大预设步长,或者,调小预设步长来使得待调整参数的取值调整为目标取值。具体的,在其它预设参数不变的情况下,若待调整参数的取值越大,网关的信号覆盖距离越大,则将待调整参数的取值调小与该待调整参数对应的预设步长,若待调整参数的取值越小,网关的信号覆盖距离越大,则将待调整参数的取值调大与该待调整参数对应的预设步长。
以前述扩频因子,带宽和发射功率为例:在扩频因子和带宽相同的情况下,网关的发射功率越大,网关的信号覆盖距离越大,网关的发射功率越小,网关的信号覆盖距离越大小;在扩频因子和发射功率相同的情况下,网关的工作带宽越小,网关的信号覆盖距离越大,网关的工作带宽越大,网关的信号覆盖距离越小;在带宽和发射功率相同的情况下,网关的扩频因子越大,网关的信号覆盖距离越大,网关的扩频因子越小,网关的信号 覆盖距离越小。
则对应扩频因子,预设步长可以为1,对应带宽,预设步长可以为预设的最小带宽,例如,该最小带宽可以为62.kHz。对应发射功率,预设步长可以为1dB。
相应的,当待调整参数为发射功率时,可以将待调整参数的取值调小1dB,以使得网关的信号覆盖距离减小。当待调整参数为工作带宽时,可以将待调整参数的取值调大62.kHz,以使得网关的信号覆盖距离减小。当待调整参数为扩频因子时,可以将待调整参数的取值调小1,以使得网关的信号覆盖距离减小。
步骤S503:待定位节点向目标网关A发送携带待调整参数的目标取值的第一调节指令。
为便于区分,这里将与待定位节点同步调整参数的目标网关记为目标网关A。
步骤S504:目标网关A响应于第一调节指令,将待调整参数的取值调整为目标取值。
步骤S505:目标网关A依据待调整参数的目标取值确定目标网关A的信号覆盖距离。
具体的,目标网关A可以根据待调整参数的目标取值,以及上述至少一个预设参数中除待调整参数外其它参数的取值确定目标网关A的信号覆盖距离。例如,
可以根据预先设定的上述至少一个预设参数的取值与网关的信号覆盖距离的对应关系,确定待调整参数的取值调整为目标取值后,目标网关A的信号覆盖距离。
步骤S506:待定位节点将待调整参数的取值调整为目标取值。
需要说明的是,步骤S506不是必须在步骤S505之后执行,步骤S506可以在步骤S503之后,步骤S507之前任意一时刻执行。
步骤S507:待定位节点判断是否能够接收到目标网关A发射的信号,若判断结果为是,返回执行步骤S502,即确定新的目标值,若判断结果为否,执行步骤S508。
步骤S508:待定位节点向目标网关A发送第二调节指令,第二调节指令中携带有待调整参数最后一次调整前的取值。
待定位节点确定待调整参数最后一次调整前的取值,将该最后一次调整前的取值封装在第二调节指令中发送给目标网关A。待定位节点可以先将上述至少一个预设参数的取值调整为与N个目标网关中除目标网关A以外其它目标网关的上述至少一个预设参数的取值相同,从而可以与其它目标网关进行通信,而网关之间可以通过互联网进行通信,网关与定位服务器之间也可以通过互联网进行通信,从而待定位节点可以通过其它目标网关及互联网与上述目标网关A进行通信,或者,待定位节点可以通过其它目标网关以及互联网和定位服务器与目标网关A进行通信。
步骤S509:目标网关A响应于第二调节指令,将待调整参数的取值恢复为最后一次调整前的取值。
步骤S510:待定位节点将待调整参数的取值恢复为最后一次调整前的取值。
步骤S511:待定位节点判断是否还有未调整参数,若还有未调整的参数,执行步骤S512,若不存在未调整的参数,执行步骤S513。
步骤S512:待定位节点在上述至少一个预设参数中选择下一个预设参数作为待调整参数,返回执行步骤S502。
步骤S513:待定位节点向目标网关A发送调整结束消息。
步骤S514:目标网关A依据最后两次确定的覆盖距离,以及目标网关A的位置确定待定位节点所处的以目标网关A为中心的环形区域。
目标网关A最后两次确定的覆盖距离是指:目标网关A在恢复待调整参数的取值之前确定的覆盖距离,以及在恢复待调整参数的取值之后确定的覆盖距离。
图5所示实施例为待定位节点与任意一个目标网关同步调整上述至少一个预设参数的过程。
需要说明的是,当待定位节点与一个目标网关同步调整参数完成后,由于待定位节点的预设参数的取值已经改变,因此,为了与其它目标网关同步调整参数,待定位节点在与其它目标网关同步调整参数前,先将待定 位节点的预设参数的取值调整到与其它目标网关的预设参数的取值相同,以便于待定位节点与其它目标网关进行通信。
另外,由于待定位节点与不同的目标网关同步调整参数时,会有部分过程相同,因此,在参数调整的初期,待定位节点可以与所有目标网关一起同步调整参数,当出现待定位节点不能接收到某个目标网关发射的信号时,待定位节点先与该某个目标网关进行交互,等该某个目标网关的参数调整完成后,再逐个与各个其它目标网关进行交互,以逐个完成与剩余目标网关的参数同步调整。
在一可选的实施例中,待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示目标网关对至少一个预设参数的取值进行调节,以便确定待定位节点所处的以目标网关为中心的环形区域的另一种实现流程图如图6所示,可以包括:
步骤S601:待定位节点向目标网关A发送第三调节指令。
步骤S602:目标网关A响应于第三调节指令,按预设选择策略在上述至少一个预设参数中选择一个预设参数作为待调整参数。
步骤S603:目标网关A按预设调整策略将待调整参数的取值调整为目标取值。
步骤S604:目标网关A依据待调整参数的目标取值确定目标网关A的信号覆盖距离。
具体的,目标网关A可以根据待调整参数的目标取值,以及上述至少一个预设参数中除待调整参数外其它预设参数的取值确定目标网关A的信号覆盖距离。例如,
可以根据预先设定的上述至少一个预设参数的取值与网关的信号覆盖距离的对应关系,确定待调整参数的取值调整为目标取值后,目标网关A的信号覆盖距离。
步骤S605:待定位节点向目标网关A发送第三调节指令后,按上述预设选择策略在上述至少一个预设参数中选择一个预设参数作为待调整参数。
其中,步骤S605不一定在步骤S604之后执行,其可以在步骤S601之后,步骤S606之前,任意一时刻执行。
步骤S606:待定位节点按上述预设调整策略将待调整参数的取值调整为目标取值。
也就是说,待定位节点与目标网关A使用相同的调整策略对待调整参数的取值进行调整,从而使得待调整参数的取值相同。
步骤S607:待定位节点判断是否能够接收到目标网关A发射的信号,若判断结果为是,执行步骤S608,若判断结果为否,执行步骤S610。
步骤S608:待定位节点向目标网关A发送第四调节指令,返回执行步骤S606,即将待调整参数的取值调整为新的目标取值。
步骤S609:目标网关A响应于第四调节指令,返回执行步骤S603,即将待调整参数的取值调整为新的目标取值。
步骤S610:待定位节点向目标网关A发送第五调节指令。
步骤S611:目标网关A响应于第五调节指令,将待调整参数的取值恢复为最后一次调整前的取值。
步骤S612:待定位节点将待调整参数的取值恢复为最后一次调整前的取值。
步骤S613:待定位节点判断是否还有未调整的参数,若还有未调整的参,执行步骤S614;若不存在未调整的参数,执行步骤S617。
步骤S614:待定位节点向目标网关A发送第六调节指令。
步骤S615:目标网关A响应于第六调节指令,按预设选择策略在上述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行步骤S603;
步骤S616:待定位节点按上述预设选择策略在上述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行步骤S606。
其中,步骤S616可以在步骤S615之后执行,也可以在步骤S615之前执行,或者,二者同时执行。
步骤S617:待定位节点向目标网关A发送调整结束指令。
步骤S618:目标网关A响应于调整结束指令,依据最后两次确定的覆 盖距离,以及目标网关A的位置确定待定位节点所处以目标网关A为中心的环形区域。
目标网关A最后两次确定的覆盖距离是指:目标网关A在恢复待调整参数的取值之前确定的覆盖距离,以及在恢复待调整参数的取值之后确定的覆盖距离。
与图5所示实施例不同,图5所示实施例中,由待定位节点计算出待调整参数的目标取值后,发送给目标网关,目标网关直接将待调整参数的取值调整为目标取值即可。而图6所示实施例中,由待定位节点向目标网关发送参数调节指令,待定位节点与目标网关按同样的调整策略对待调整参数的取值进行调整。
图6所示实施例为待定位节点与任意一个目标网关同步调整上述至少一个预设参数的过程。
需要说明的是,当待定位节点与一个目标网关同步调整参数完成后,由于待定位节点的预设参数的取值已经改变,因此,为了能够与其它目标网关同步调整参数,待定位节点在与其它目标网关同步调整参数前,先将待定位节点的预设参数的取值调整到与其它目标网关的预设参数的取值相同,以便于待定位节点与其它目标网关进行通信。
另外,由于待定位节点与不同的目标网关同步调整参数时,会有部分过程相同,因此,在参数调整的初期,待定位节点可以与所有目标网关一起同步调整参数,当出现待定位节点不能接收到某个目标网关发射的信号时,待定位节点先与该某个目标网关进行交互,等该某个目标网关的参数调整完成后,再逐个与各个其它目标网关进行交互,以逐个完成与剩余目标网关的参数同步调整。
与前述确定定位信息的方法实施例相对应,本申请还提供一种应用于节点的定位信息确定方法,以及一种应用于网关的定位信息确定方法。
请参阅图7,图7为本申请实施例提供的应用于节点的定位信息确定方法的一种实现流程图,可以包括:
步骤S71:获取进入定位模式的请求。
步骤S72:响应于上述进入定位模式的请求进入定位模式。
步骤S73:与节点周边的网关进行信息交互,并根据交互结果在节点周边的网关中确定预设个数的目标网关,该预设个数为大于或等于3的正整数。其中,节点周边的网关均已进入定位模式,节点周边的网关包括节点的归属网关,以及归属网关的邻近网关。
步骤S74:按照预置同步策略向每个目标网关发送调节指令,该调节指令用于指示目标网关对至少一个预设参数的取值进行调节,以确定节点所处的以目标网关为中心的环形区域;上述预设参数与网关信号的覆盖距离相关。所确定的环形区域用于确定节点所处的位置。
其中,获取进入定位模式的请求的一种实现方式可以为:
获取用户触发生成的进入定位模式的请求。
或者,
接收预设装置发送的进入定位模式的请求。该预设装置可以为移动通信终端,如,手机。也可以是与节点匹配的遥控器等。
其中,与节点周边的网关进行信息交互,并根据交互结果在节点周边的网关中确定预设个数的目标网关的一种实现方式可以为:
广播第一定位请求消息。
将发送与第一定位请求消息对应的响应消息的网关,确定为待选网关。
若待选网关的个数大于或等于上述预设个数,在待选网关中确定预设个数的目标网关。
若待选网关的个数小于预设个数,则与节点周边的网关同步调整上述至少一个预设参数的取值,以扩大节点周边的网关的信号覆盖距离;返回执行广播第一定位请求消息的步骤。
其中,与节点周边的网关进行信息交互,并根据交互结果在节点周边的网关中确定预设个数的目标网关的另一种实现方式可以为:
接收节点周边的网关发送的第二定位请求信息。
若接收到的第二定位请求信息的个数大于或等于上述预设个数,在发送第二定位请求消息的网关中确定预设个数的目标网关。
若接收到的第二定位请求信息的个数小于上述预设个数,则与节点周 边的网关同步调整上述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行接收节点周边的网关发送的第二定位请求信息的步骤。
其中,按照预置同步策略向每个目标网关发送调节指令的一种实现方式可以为:
在上述至少一个预设参数中选择一个预设参数作为待调整参数。
按预设调整策略确定待调整参数的目标取值。
向目标网关发送携带待调整参数的目标取值的第一调节指令,该第一调节指令用于指示目标网关将待调整参数的取值调整为上述目标取值,并依据上述至少一个预设参数的取值确定目标网关的信号覆盖距离。
将待调整参数的取值调整为上述目标取值。
判断是否能够接收到目标网关发射的信号。
若判断结果为是,返回执行按预设调整策略确定待调整参数的目标取值的步骤。
若判断结果为否,向目标网关发送第二调节指令,并将待调整参数的取值恢复为最后一次调整前的取值,上述第二调节指令用于指示目标网关将待调整参数的取值恢复为最后一次调整前的取值;在还有未调整的参数的情况下,在上述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行按预设调整策略确定待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,向目标网关发送调整结束消息,以使目标网关依据最后两次确定的覆盖距离,以及目标网关的位置确定节点所处的以目标网关为中心的环形区域。
其中,按照预置同步策略向每个目标网关发送调节指令的另一种实现方式可以为:
向目标网关发送第三调节指令,以指示目标网关按预设选择策略在上述至少一个预设参数中选择一个预设参数作为待调整参数,按预设调整策略将待调整参数的取值调整为目标取值,依据上述至少一个预设参数的取值确定目标网关的信号覆盖距离。
按预设选择策略在上述至少一个预设参数中选择一个预设参数作为待 调整参数,按预设调整策略将待调整参数的取值调整为上述目标取值。
判断是否能够接收到目标网关发射的信号。
若判断结果为是,则向目标网关发送第四调节指令,以指示目标网关返回执行按预设调整策略将待调整参数的取值调整为目标取值的步骤。
返回执行按预设调整策略将待调整参数的取值调整为上述目标取值的步骤。
若判断结果为否,向目标网关发送第五调节指令,并将待调整参数的取值恢复为最后一次调整前的取值;第五调节指令用于指示目标网关将待调整参数的取值恢复为最后一次调整前的取值。
在还有未调整的参数的情况下,向目标网关发送第六调节指令,以指示目标网关按预设选择策略在上述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行按预设调整策略将待调整参数的取值调整为目标取值的步骤。
按预设选择策略在上述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行按预设调整策略将待调整参数的取值调整为上述目标取值的步骤,在不存在未调整的参数的情况下,向目标网关发送调整结束指令,以使目标网关依据最后两次确定的覆盖距离,以及目标网关的位置确定节点所处的以目标网关为中心的环形区域。
其中,上述至少一个预设参数为如下三个参数中的至少一个:扩频因子,带宽,发射功率。
请参阅图8,图8为本申请实施例提供的应用于网关的定位信息确定方法的一种实现流程图,可以包括:
步骤S81:获取进入定位模式的请求。
步骤S82:响应于上述进入定位模式的请求进入定位模式。
步骤S83:与进入定位模式的节点进行信息交互,以使该进入定位模式的节点根据交互结果确定预设个数的目标网关,该预设个数为大于或等于3的正整数。该网关为节点的归属网关或归属网关的邻近网关。
步骤S84:若接收到节点发送的调节指令,响应于该调节指令对至少 一个预设参数的取值进行调节,以便于确定节点所处的以网关为中心的环形区域;上述预设参数均为与网关信号的覆盖距离相关的参数。所确定的环形区域用于确定节点所处的位置。
其中,获取进入定位模式的请求的一种实现方式可以为:
接收定位服务器发送的进入定位模式的请求。
或者,
接收节点发送的进入定位模式的请求。
其中,与进入定位模式的节点进行信息交互的一种实现方式可以为:
接收节点广播的第一定位请求消息;响应于该第一定位请求消息,向节点发送响应消息。
或者,
接收定位服务器发送的参数调整请求,响应于该参数调整请求,对至少一个预设参数的取值进行调整,以扩大网关的信号覆盖距离。
其中,与进入定位模式的节点进行信息交互的另一种实现方式可以为:
按照预设时序向节点发送第二定位请求消息;上述时序为所有进入定位模式的网关向节点发送第二定位请求消息的顺序。
或者,
接收定位服务器发送的参数调整请求;响应于该参数调整请求,对上述至少一个预设参数的取值进行调整,以扩大网关的信号覆盖范围;按照预设时序向节点发送第二定位请求消息。
其中,若接收到节点发送的调节指令,响应于该调节指令对至少一个预设参数的取值进行调节的一种实现方式可以为:
若接收到节点发送的第一调节指令,该第一调节指令中携带有上述至少一个预设参数中待调整参数的目标取值,则将待调整参数的取值调整为上述目标取值。
依据上述至少一个预设参数的取值确定网关的信号覆盖距离。
若接收到节点发送的第二调节指令,则将待调整参数的取值恢复为最后一次调整前的取值。
若接收到节点发送的调整结束消息,依据最后两次确定的覆盖距离, 以及网关的位置确定节点所处的以网关为中心的环形区域。
其中,若接收到节点发送的调节指令,响应于该调节指令对至少一个预设参数的取值进行调节的另一种实现方式可以为:
若接收到节点发送的第三调节指令,则按预设选择策略选择一个预设参数作为待调整参数;按预设调整策略将待调整参数的取值调整为目标取值;依据上述至少一个预设参数的取值确定网关的信号覆盖距离。
若接收到节点发送的第四调节指令,则返回执行按预设调整策略将待调整参数的取值调整为目标取值的步骤。
若接收到节点发送的第五调节指令,则将待调整参数的取值恢复为最后一次调整前的取值。
若接收到节点发送的第六调节指令,则按所述预设选择策略选择下一个预设参数作为待调整参数,并返回执行按预设调整策略将待调整参数的取值调整为目标取值的步骤。
若接收到节点发送的调整结束指令,依据最后两次确定的覆盖距离,以及待同步网关的位置确定节点所处的以网关为中心的环形区域。
经过仿真证明,本申请实施例提供的确定定位信息的方法是有效的,可行的。
与方法实施例相对应,本申请还提供一种物联网节点,该节点的一种结构示意图如图9所示,可以包括:
第一获取模块91,第一响应模块92,第一交互模块93和第一同步模块94,其中:
第一获取模块91用于获取进入定位模式的请求;
第一响应模块92用于响应于所述请求进入定位模式;
第一交互模块93用于与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,所述预设个数为大于或等于3的正整数。
所述节点周边的网关均已进入定位模式,所述节点周边的网关包括所述节点的归属网关,以及所述归属网关的邻近网关;
第一同步模块94用于按照预置同步策略向每个所述目标网关发送调节指令,所述调节指令用于指示所述目标网关对至少一个预设参数的取值进行调节,以确定所述节点所处的以所述目标网关为中心的环形区域,其中,所述预设参数与网关信号的覆盖距离相关。所确定的环形区域用于确定所述节点所处的位置。
本申请实施例提供的物联网节点,当需要对节点进行定位时,节点以及节点周围的网关均进入定位模式,然后节点在周围的网关中确定至少三个网关作为目标网关,节点与该至少三个目标网关进行信息交互,使得目标网关确定节点所在的环形区域,从而可以根据该环形区域的交叠区域确定节点的位置。由于本方法不需要节点增加GPS模块,因此,可以实现以较低的成本和耗电量对节点进行定位。
在一可选的实施例中,第一获取模块91具体可以用于:
获取用户触发生成的进入定位模式的请求;或者,
接收预设装置发送的进入定位模式的请求。
在一可选的实施例中,第一交互模块93具体可以用于:
广播第一定位请求消息;
将发送与所述第一定位请求消息对应的响应消息的网关,确定为待选网关;
若所述待选网关的个数大于或等于所述预设个数,在所述待选网关中确定预设个数的目标网关;
若所述待选网关的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述广播第一定位请求消息的步骤。
在另一可选的实施例中,第一交互模块93具体可以用于:
接收所述节点周边的网关发送的第二定位请求信息;
若接收到的第二定位请求信息的个数大于或等于所述预设个数,在发送所述第二定位请求消息的网关中确定预设个数的目标网关;
若接收到的第二定位请求信息的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周 边的网关的信号覆盖距离;返回执行所述接收所述节点周边的网关发送的第二定位请求信息的步骤。
在一可选的实施例中,第一同步模块94具体可以用于:
在所述至少一个预设参数中选择一个预设参数作为待调整参数;
按预设调整策略确定所述待调整参数的目标取值;
向所述目标网关发送携带所述待调整参数的目标取值的第一调节指令,所述第一调节指令用于指示所述目标网关将所述待调整参数的取值调整为所述目标取值,并依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
将所述待调整参数的取值调整为所述目标取值;
判断是否能够接收到所述目标网关发射的信号;
若判断结果为是,返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤;
若判断结果为否,向所述目标网关发送第二调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值,所述第二调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;在还有未调整的参数的情况下,在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束消息,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
在另一可选的实施例中,第一同步模块94具体可以用于:
向所述目标网关发送第三调节指令,以指示所述目标网关按预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按预设调整策略将所述待调整参数的取值调整为目标取值,依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
按所述预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按所述预设调整策略将所述待调整参数的取值调整为所述 目标取值;
判断是否能够接收到所述目标网关发射的信号;
若判断结果为是,则向所述目标网关发送第四调节指令,以指示所述目标网关返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤;
若判断结果为否,向所述目标网关发送第五调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;所述第五调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;
在还有未调整的参数的情况下,向所述目标网关发送第六调节指令,以指示所述目标网关按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束指令,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
在一可选的实施例中,上述至少一个预设参数为如下三个参数中的至少一个:扩频因子,带宽,发射功率。
与方法实施例相对应,本申请还提供一种物联网网关,该网关的一种结构示意图如图10所示,可以包括:
第二获取模块101,第二响应模块102,第二交互模块103和第二同步模块104,其中:
第二获取模块101用于获取进入定位模式的请求;
第二响应模块102用于响应于所述请求进入定位模式;
第二交互模块103用于与进入定位模式的节点进行信息交互,以使所述节点根据交互结果确定预设个数的目标网关,所述预设个数为大于或等于3的正整数。
所述网关为所述节点的归属网关或所述归属网关的邻近网关;
第二同步模块104用于若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点所处的以所述网关为中心的环形区域;所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
本申请实施例提供的物联网网关,当需要对节点进行定位时,节点以及节点周围的网关均进入定位模式,然后节点在周围的网关中确定至少三个网关作为目标网关,节点与该至少三个目标网关进行信息交互,使得目标网关确定节点所在的环形区域,从而可以根据该环形区域的交叠区域确定节点的位置。由于本方法不需要节点增加GPS模块,因此,可以实现以较低的成本和耗电量对节点进行定位。
在一可选的实施例中,第二获取模块101具体可以用于:
接收定位服务器发送的进入定位模式的请求;
或者,
接收所述节点发送的进入定位模式的请求。
在一可选的实施例中,第二交互模块103具体可以用于:
接收所述节点广播的第一定位请求消息;响应于所述第一定位请求消息,向所述节点发送响应消息;
或者,
接收定位服务器发送的参数调整请求,响应于所述参数调整请求,对所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖距离。
在另一可选的实施例中,第二交互模块103具体可以用于:
按照预设时序向所述节点发送第二定位请求消息;所述时序为所有进入定位模式的网关向所述节点发送所述第二定位请求消息的顺序;
或者,
接收定位服务器发送的参数调整请求;响应于所述参数调整请求,对 所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖范围;按照所述预设时序向所述节点发送所述第二定位请求消息。
在一可选的实施例中,第二同步模块104具体可以用于:
若接收到所述节点发送的第一调节指令,所述第一调节指令中携带有所述至少一个预设参数中待调整参数的目标取值,则将所述待调整参数的取值调整为所述目标取值;
依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
若接收到所述节点发送的第二调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
若接收到所述节点发送的调整结束消息,依据最后两次确定的覆盖距离,以及所述网关的位置确定所述节点所处的以所述网关为中心的环形区域。
在另一可选的实施例中,第二同步模块104具体可以用于:
若接收到所述节点发送的第三调节指令,则按预设选择策略选择一个预设参数作为待调整参数;按预设调整策略将所述待调整参数的取值调整为目标取值;依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
若接收到所述节点发送的第四调节指令,则返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
若接收到所述节点发送的第五调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
若接收到所述节点发送的第六调节指令,则按所述预设选择策略选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
若接收到所述节点发送的调整结束指令,依据最后两次确定的覆盖距离,以及所述待同步网关的位置确定所述节点所处的以所述网关为中心的环形区域。
本申请还提供一种物联网系统,如图1所示,该物联网系统包括如前 所述实施例公开的节点和网关,还包括定位服务器。其中:
节点和网关之间可以基于LoRa进行通信。
网关与定位服务器之间可以通过互联网进行通信。
网关之间也可以通过互联网进行通信。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
应当理解,本申请实施例中,从权、各个实施例、特征可以互相组合结合,都能实现解决前述技术问题。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (35)

  1. 一种定位信息确定方法,应用于节点,其特征在于,包括:
    获取进入定位模式的请求;
    响应于所述请求进入定位模式;
    与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;按照预置同步策略向每个所述目标网关发送调节指令,所述调节指令用于指示所述目标网关对至少一个预设参数的取值进行调节,以确定所述节点所处的以所述目标网关为中心的环形区域,其中所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
  2. 根据权利要求1所述的方法,其特征在于,所述获取进入定位模式的请求包括:
    获取用户触发生成的进入定位模式的请求;
    或者,
    接收预设装置发送的进入定位模式的请求。
  3. 根据权利要求1所述的方法,其特征在于,所述与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,包括:
    广播第一定位请求消息;
    将发送与所述第一定位请求消息对应的响应消息的网关,确定为待选网关;
    若所述待选网关的个数大于或等于所述预设个数,在所述待选网关中确定预设个数的目标网关;
    若所述待选网关的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述广播第一定位请求消息的步骤。
  4. 根据权利要求1所述的方法,其特征在于,所述与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,包括:
    接收所述节点周边的网关发送的第二定位请求信息;
    若接收到的第二定位请求信息的个数大于或等于所述预设个数,在发送所述第二定位请求消息的网关中确定预设个数的目标网关;
    若接收到的第二定位请求信息的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述接收所述节点周边的网关发送的第二定位请求信息的步骤。
  5. 根据权利要求1所述的方法,其特征在于,所述按照预置同步策略向每个所述目标网关发送调节指令,包括:
    在所述至少一个预设参数中选择一个预设参数作为待调整参数;
    按预设调整策略确定所述待调整参数的目标取值;
    向所述目标网关发送携带所述待调整参数的目标取值的第一调节指令,所述第一调节指令用于指示所述目标网关将所述待调整参数的取值调整为所述目标取值,并依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
    将所述待调整参数的取值调整为所述目标取值;
    判断是否能够接收到所述目标网关发射的信号;
    若判断结果为是,返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤;
    若判断结果为否,向所述目标网关发送第二调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值,所述第二调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;在还有未调整的参数的情况下,在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束消息,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
  6. 根据权利要求1所述的方法,其特征在于,所述按照预置同步策略 向每个所述目标网关发送调节指令,包括:
    向所述目标网关发送第三调节指令,以指示所述目标网关按预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按预设调整策略将所述待调整参数的取值调整为目标取值,依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
    按所述预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按所述预设调整策略将所述待调整参数的取值调整为所述目标取值;
    判断是否能够接收到所述目标网关发射的信号;
    若判断结果为是,则向所述目标网关发送第四调节指令,以指示所述目标网关返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤;
    若判断结果为否,向所述目标网关发送第五调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;所述第五调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;
    在还有未调整的参数的情况下,向所述目标网关发送第六调节指令,以指示所述目标网关按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束指令,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
  7. 根据权利要求1-6任意一项所述的方法,其特征在于,所述至少一个预设参数为如下三个参数中的至少一个:扩频因子,带宽,发射功率。
  8. 一种定位信息确定方法,应用于网关,其特征在于,包括:
    获取进入定位模式的请求;
    响应于所述请求进入定位模式;
    与进入定位模式的节点进行信息交互,以使所述节点根据交互结果确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;
    若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点所处的以所述网关为中心的环形区域;所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
  9. 根据权利要求8所述的方法,其特征在于,所述获取进入定位模式的请求包括:
    接收定位服务器发送的进入定位模式的请求;
    或者,
    接收所述节点发送的进入定位模式的请求。
  10. 根据权利要求8所述的方法,其特征在于,所述与进入定位模式的节点进行信息交互,包括:
    接收所述节点广播的第一定位请求消息;响应于所述第一定位请求消息,向所述节点发送响应消息;
    或者,
    接收定位服务器发送的参数调整请求,响应于所述参数调整请求,对所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖距离。
  11. 根据权利要求8所述的方法,其特征在于,所述与进入定位模式的节点进行信息交互,包括:
    按照预设时序向所述节点发送第二定位请求消息;所述时序为所有进入定位模式的网关向所述节点发送所述第二定位请求消息的顺序;
    或者,
    接收定位服务器发送的参数调整请求;响应于所述参数调整请求,对所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖范围;按照所述预设时序向所述节点发送所述第二定位请求消息。
  12. 根据权利要求8所述的方法,其特征在于,所述若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点所处的以所述网关为中心的环形区域,包括:
    若接收到所述节点发送的第一调节指令,所述第一调节指令中携带有所述至少一个预设参数中待调整参数的目标取值,则将所述待调整参数的取值调整为所述目标取值;
    依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
    若接收到所述节点发送的第二调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
    若接收到所述节点发送的调整结束消息,依据最后两次确定的覆盖距离,以及所述网关的位置确定所述节点所处的以所述网关为中心的环形区域。
  13. 根据权利要求8所述的方法,其特征在于,所述若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点所处的以所述网关为中心的环形区域,包括:
    若接收到所述节点发送的第三调节指令,则按预设选择策略选择一个预设参数作为待调整参数;按预设调整策略将所述待调整参数的取值调整为目标取值;依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
    若接收到所述节点发送的第四调节指令,则返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    若接收到所述节点发送的第五调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
    若接收到所述节点发送的第六调节指令,则按所述预设选择策略选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    若接收到所述节点发送的调整结束指令,依据最后两次确定的覆盖距离,以及所述待同步网关的位置确定所述节点所处的以所述网关为中心的环形区域。
  14. 一种定位信息确定方法,其特征在于,包括:
    待定位节点,以及所述待定位节点周围的网关均进入定位模式;
    所述待定位节点与其周围的网关进行信息交互,并根据交互结果在所述待定位节点周围的网关中确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;
    所述待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示所述目标网关对至少一个预设参数的取值进行调节,以便确定所述待定位节点所处的以所述目标网关为中心的环形区域;所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
  15. 根据权利要求14所述的方法,其特征在于,所述待定位节点,以及所述待定位节点周围的网关均进入定位模式,包括:
    所述待定位节点获取第一定位模式启动请求,响应于所述第一定位模式启动请求,向所述待定位节点的归属网关发送第二定位模式启动请求,并进入定位模式;所述第一定位模式启动请求由用户触发生成,或者,所述第一定位模式启动请求由预设终端设备向所述节点发送;
    所述待定位节点的归属网关响应于所述第二定位模式启动请求,向定位服务器发送第三定位模式启动请求,并进入定位模式;
    所述归属网关的邻近网关响应于所述定位服务器发送的第四定位模式启动请求,进入定位模式。
  16. 根据权利要求14所述的方法,其特征在于,所述待定位节点,以及所述待定位节点周围的网关均进入定位模式,包括:
    所述待定位节点的归属网关,以及所述归属网关的邻近网关接收定位服务器发送的第五定位模式启动请求;
    所述归属网关响应于所述第五定位模式启动请求向所述待定位节点发送第六定位模式启动请求,并进入定位模式,所述归属网关的邻近网关响应于所述第五定位模式启动请求,进入定位模式;
    所述待定位节点响应于所述第六定位模式启动请求,进入定位模式。
  17. 根据权利要求14所述的方法,其特征在于,所述待定位节点与其 周围的网关进行信息交互,并根据交互结果在所述待定位节点周围的网关中确定预设个数的目标网关,包括:
    所述待定位节点广播第一定位请求消息;
    所述待定位节点周围的网关若接收到所述第一定位请求消息,向所述待定位节点发送响应消息;
    所述待定位节点将发送所述响应消息的网关,确定为待选网关;若所述待选网关的个数大于或等于所述预设个数,在所述待选网关中确定预设个数的目标网关;若所述待选网关的个数小于所述预设个数,则与所述待定位节点周围的网关同步调整所述至少一个预设参数的取值,以扩大所述待定位节点周围的网关的信号覆盖距离;返回执行所述广播第一定位请求消息的步骤。
  18. 根据权利要求14所述的方法,其特征在于,所述待定位节点与其周围的网关进行信息交互,并根据交互结果在所述待定位节点周围的网关中确定预设个数的目标网关,包括:
    所述待定位节点周围的网关按照预设时序向所述待定位节点发送第二定位请求消息;
    所述待定位节点确定接收到的第二定位请求消息的个数;若接收到的第二定位请求信息的个数大于或等于所述预设个数,在发送所述第二定位请求消息的网关中确定预设个数的目标网关;若接收到的第二定位请求信息的个数小于所述预设个数,则与所述待定位节点周围的网关同步调整所述至少一个预设参数的取值,以扩大所述待定位节点周围的网关的信号覆盖距离;返回执行所述确定接收到的第二定位请求消息的个数的步骤。
  19. 根据权利要求14所述的方法,其特征在于,所述待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示所述目标网关对至少一个预设参数的取值进行调节,以便确定所述待定位节点所处的以所述目标网关为中心的环形区域,包括:
    所述待定位节点在所述至少一个预设参数中选择一个预设参数作为待调整参数;
    所述待定位节点按预设调整策略确定所述待调整参数的目标取值;
    所述待定位节点向所述目标网关发送携带所述待调整参数的目标取值的第一调节指令;
    所述目标网关响应于所述第一调节指令,将所述待调整参数的取值调整为所述目标取值,并依据所述目标取值确定所述目标网关的信号覆盖距离;
    所述待定位节点将所述待调整参数的取值调整为所述目标取值;
    所述待定位节点判断是否能够接收到所述目标网关发射的信号;
    若判断结果为是,所述待定位节点返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤;
    若判断结果为否,所述待定位节点向所述目标网关发送第二调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;
    所述目标网关响应于所述第二调节指令,将所述待调整参数的取值恢复为最后一次调整前的取值;
    在还有未调整的参数的情况下,所述待定位节点选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,所述待定位节点向所述目标网关发送调整结束消息;
    所述目标网关响应于所述调整结束消息,依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述待定位节点所处的以所述目标网关为中心的环形区域。
  20. 根据权利要求14所述的方法,其特征在于,所述待定位节点按照预置同步策略向每个所述目标网关发送调节指令,以指示所述目标网关对至少一个预设参数的取值进行调节,以便确定所述待定位节点所处的以所述目标网关为中心的环形区域,包括:
    所述待定位节点向所述目标网关发送第三调节指令;
    所述目标网关响应于所述第三调节指令,按预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数;
    所述目标网关按预设调整策略将所述待调整参数的取值调整为目标取值;
    所述目标网关依据所述目标取值确定所述网关的信号覆盖距离;
    所述待定位节点按所述预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数;
    所述待定位节点按所述预设调整策略将所述待调整参数的取值调整为所述目标取值;
    所述待定位节点判断是否能够接收到所述目标网关发射的信号;
    若判断结果为是,所述待定位节点向所述目标网关发送第四调节指令;
    所述目标网关响应于所述第四调节指令,返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    所述待定位节点返回执行所述按预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤;
    若判断结果为否,所述待定位节点向所述目标网关发送第五调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;
    所述目标网关响应于所述第五调节指令,将所述待调整参数的取值恢复为最后一次调整前的取值;
    在还有未调整的参数的情况下,所述待定位节点向所述目标网关发送第六调节指令;
    所述目标网关响应于所述第六调节指令,按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略确定所述待调整参数的目标取值的步骤;
    所述待定位节点按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,所述待定位节点向所述目标网关发送调整结束指令;
    所述目标网关响应于所述调整结束指令,依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
  21. 一种定位方法,其特征在于,应用如权利要求1-20任意一项所述的确定定位信息的方法确定的环形区域确定节点的位置,包括:
    计算所述预设个数的网关确定的环形区域的交叠区域;
    在所述交叠区域中确定一点作为所述节点的位置。
  22. 一种节点,其特征在于,包括:
    第一获取模块,用于获取进入定位模式的请求;
    第一响应模块,用于响应于所述请求进入定位模式;
    第一交互模块,用于与所述节点周边的网关进行信息交互,并根据交互结果在所述节点周边的网关中确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;
    第一同步模块,用于按照预置同步策略向每个所述目标网关发送调节指令,所述调节指令用于指示所述目标网关对至少一个预设参数的取值进行调节,以确定所述节点所处的以所述目标网关为中心的环形区域,其中,所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
  23. 根据权利要求22所述的节点,其特征在于,所述第一获取模块具体用于:
    获取用户触发生成的进入定位模式的请求;或者,
    接收预设装置发送的进入定位模式的请求。
  24. 根据权利要求22所述的节点,其特征在于,所述第一交互模块具体用于:
    广播第一定位请求消息;
    将发送与所述第一定位请求消息对应的响应消息的网关,确定为待选网关;
    若所述待选网关的个数大于或等于所述预设个数,在所述待选网关中确定预设个数的目标网关;
    若所述待选网关的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述广播第一定位请求消息的步骤。
  25. 根据权利要求22所述的节点,其特征在于,所述第一交互模块具体用于:
    接收所述节点周边的网关发送的第二定位请求信息;
    若接收到的第二定位请求信息的个数大于或等于所述预设个数,在发送所述第二定位请求消息的网关中确定预设个数的目标网关;
    若接收到的第二定位请求信息的个数小于所述预设个数,则与所述节点周边的网关同步调整所述至少一个预设参数的取值,以扩大所述节点周边的网关的信号覆盖距离;返回执行所述接收所述节点周边的网关发送的第二定位请求信息的步骤。
  26. 根据权利要求22所述的节点,其特征在于,所述第一同步模块具体用于:
    在所述至少一个预设参数中选择一个预设参数作为待调整参数;
    按预设调整策略确定所述待调整参数的目标取值;
    向所述目标网关发送携带所述待调整参数的目标取值的第一调节指令,所述第一调节指令用于指示所述目标网关将所述待调整参数的取值调整为所述目标取值,并依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
    将所述待调整参数的取值调整为所述目标取值;
    判断是否能够接收到所述目标网关发射的信号;
    若判断结果为是,返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤;
    若判断结果为否,向所述目标网关发送第二调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值,所述第二调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;在还有未调整的参数的情况下,在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略确定所述待调整参数的目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束消息,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
  27. 根据权利要求22所述的节点,其特征在于,所述第一同步模块具 体用于:
    向所述目标网关发送第三调节指令,以指示所述目标网关按预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按预设调整策略将所述待调整参数的取值调整为目标取值,依据所述至少一个预设参数的取值确定所述目标网关的信号覆盖距离;
    按所述预设选择策略在所述至少一个预设参数中选择一个预设参数作为待调整参数,按所述预设调整策略将所述待调整参数的取值调整为所述目标取值;
    判断是否能够接收到所述目标网关发射的信号;
    若判断结果为是,则向所述目标网关发送第四调节指令,以指示所述目标网关返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤;
    若判断结果为否,向所述目标网关发送第五调节指令,并将所述待调整参数的取值恢复为最后一次调整前的取值;所述第五调节指令用于指示所述目标网关将所述待调整参数的取值恢复为最后一次调整前的取值;
    在还有未调整的参数的情况下,向所述目标网关发送第六调节指令,以指示所述目标网关按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    按所述预设选择策略在所述至少一个预设参数中选择下一个预设参数作为待调整参数,并返回执行所述按所述预设调整策略将所述待调整参数的取值调整为所述目标取值的步骤,在不存在未调整的参数的情况下,向所述目标网关发送调整结束指令,以使所述目标网关依据最后两次确定的覆盖距离,以及所述目标网关的位置确定所述节点所处的以所述目标网关为中心的环形区域。
  28. 根据权利要求22-27任意一项所述的节点,其特征在于,所述至少一个预设参数为如下三个参数中的至少一个:扩频因子,带宽,发射功 率。
  29. 一种网关,其特征在于,包括:
    第二获取模块,用于获取进入定位模式的请求;
    第二响应模块,用于响应于所述请求进入定位模式;
    第二交互模块,用于与进入定位模式的节点进行信息交互,以使所述节点根据交互结果确定预设个数的目标网关,所述预设个数为大于或等于3的正整数;
    第二同步模块,用于若接收到所述节点发送的调节指令,响应于所述调节指令对至少一个预设参数的取值进行调节,以便于确定所述节点所处的以所述网关为中心的环形区域;所述预设参数与网关信号的覆盖距离相关;所确定的环形区域用于确定所述节点所处的位置。
  30. 根据权利要求29所述的网关,其特征在于,所述第二获取模块具体用于:
    接收定位服务器发送的进入定位模式的请求;
    或者,
    接收所述节点发送的进入定位模式的请求。
  31. 根据权利要求29所述的网关,其特征在于,所述第二交互模块具体用于:
    接收所述节点广播的第一定位请求消息;响应于所述第一定位请求消息,向所述节点发送响应消息;
    或者,
    接收定位服务器发送的参数调整请求,响应于所述参数调整请求,对所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖距离。
  32. 根据权利要求29所述的网关,其特征在于,所述第二交互模块具体用于:
    按照预设时序向所述节点发送第二定位请求消息;所述时序为所有进入定位模式的网关向所述节点发送所述第二定位请求消息的顺序;
    或者,
    接收定位服务器发送的参数调整请求;响应于所述参数调整请求,对 所述至少一个预设参数的取值进行调整,以扩大所述网关的信号覆盖范围;按照所述预设时序向所述节点发送所述第二定位请求消息。
  33. 根据权利要求29所述的网关,其特征在于,所述第二同步模块具体用于:
    若接收到所述节点发送的第一调节指令,所述第一调节指令中携带有所述至少一个预设参数中待调整参数的目标取值,则将所述待调整参数的取值调整为所述目标取值;
    依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
    若接收到所述节点发送的第二调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
    若接收到所述节点发送的调整结束消息,依据最后两次确定的覆盖距离,以及所述网关的位置确定所述节点所处的以所述网关为中心的环形区域。
  34. 根据权利要求29所述的网关,其特征在于,所述第二同步模块具体用于:
    若接收到所述节点发送的第三调节指令,则按预设选择策略选择一个预设参数作为待调整参数;按预设调整策略将所述待调整参数的取值调整为目标取值;依据所述至少一个预设参数的取值确定所述网关的信号覆盖距离;
    若接收到所述节点发送的第四调节指令,则返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    若接收到所述节点发送的第五调节指令,则将所述待调整参数的取值恢复为最后一次调整前的取值;
    若接收到所述节点发送的第六调节指令,则按所述预设选择策略选择下一个预设参数作为待调整参数,并返回执行所述按预设调整策略将所述待调整参数的取值调整为目标取值的步骤;
    若接收到所述节点发送的调整结束指令,依据最后两次确定的覆盖距离,以及所述待同步网关的位置确定所述节点所处的以所述网关为中心的环形区域。
  35. 一种物联网系统,其特征在于,包括如权利要求22-28任意一项所述的节点,以及如权利要求29-34任意一项所述的网关,以及定位服务器;所述网关与所述定位服务器之间通过互联网进行通信。
PCT/CN2018/103519 2018-08-31 2018-08-31 定位信息确定方法、定位方法、节点、网关及物联网系统 WO2020042146A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/103519 WO2020042146A1 (zh) 2018-08-31 2018-08-31 定位信息确定方法、定位方法、节点、网关及物联网系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/103519 WO2020042146A1 (zh) 2018-08-31 2018-08-31 定位信息确定方法、定位方法、节点、网关及物联网系统

Publications (1)

Publication Number Publication Date
WO2020042146A1 true WO2020042146A1 (zh) 2020-03-05

Family

ID=69644789

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103519 WO2020042146A1 (zh) 2018-08-31 2018-08-31 定位信息确定方法、定位方法、节点、网关及物联网系统

Country Status (1)

Country Link
WO (1) WO2020042146A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164408A (zh) * 2011-03-16 2011-08-24 河海大学常州校区 一种基于传输延迟的无线传感器网络环形定位方法及其改进方法
CN102711243A (zh) * 2012-06-13 2012-10-03 暨南大学 一种基于rssi改进的apit定位方法
US20140153424A1 (en) * 2012-11-30 2014-06-05 Soongsil University Research Consortium Techno-Park Wireless positioning method and apparatus using wireless sensor network
CN105338466A (zh) * 2014-07-08 2016-02-17 华为软件技术有限公司 位置信息获取方法及设备
CN105635974A (zh) * 2016-03-17 2016-06-01 南京邮电大学 一种基于方向决策的动态路径节点定位方法
CN105828435A (zh) * 2016-05-30 2016-08-03 天津大学 基于接收信号强度优化的距离修正加权质心定位方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164408A (zh) * 2011-03-16 2011-08-24 河海大学常州校区 一种基于传输延迟的无线传感器网络环形定位方法及其改进方法
CN102711243A (zh) * 2012-06-13 2012-10-03 暨南大学 一种基于rssi改进的apit定位方法
US20140153424A1 (en) * 2012-11-30 2014-06-05 Soongsil University Research Consortium Techno-Park Wireless positioning method and apparatus using wireless sensor network
CN105338466A (zh) * 2014-07-08 2016-02-17 华为软件技术有限公司 位置信息获取方法及设备
CN105635974A (zh) * 2016-03-17 2016-06-01 南京邮电大学 一种基于方向决策的动态路径节点定位方法
CN105828435A (zh) * 2016-05-30 2016-08-03 天津大学 基于接收信号强度优化的距离修正加权质心定位方法

Similar Documents

Publication Publication Date Title
US9899873B2 (en) System and method for generating a power receiver identifier in a wireless power network
CN103648181B (zh) 一种无线网络音响设备的无线网络连接方法
RU2658863C9 (ru) Способ связи носимого устройства, система связи и соответствующее устройство
EP3169086B1 (en) Connection method for multimedia playing device, master device, control terminal, and system
WO2019128906A1 (zh) 一种待配网设备接入网络热点设备的方法、装置和系统
CN108141398B (zh) 自主群发起者的智能信道选择
JP6290439B2 (ja) アクセスポイント開始型ネイバー報告要求
US20140141826A1 (en) Systems and methods for implementing multiple band service discovery
JP2015525548A5 (zh)
US20190342687A1 (en) Dynamically Changing Master Audio Playback Device
KR102600894B1 (ko) 전자 장치를 이용한 위치 측정 장치 및 방법
JP2020511908A (ja) 物理デバイス間のブルートゥースネットワーキングの制御方法、装置およびシステム
JP2017500772A (ja) デバイストゥーデバイス同期のための階層構造を構成し、維持するための分散アルゴリズム
US10663555B2 (en) Communication device, communication method, and computer-readable recording medium
WO2011140906A1 (zh) 一种无线传感器网络中设备入网方法及装置
JP6248188B2 (ja) ネットワーク化した再生デバイスの動作モード間での移行
CN105007367A (zh) 一种基于移动终端的查找处理方法及系统
TWI510041B (zh) 基於鄰近度的通信的方法和裝置
US20150181010A1 (en) Local Wireless Link Quality Notification for Wearable Audio Devices
WO2020042146A1 (zh) 定位信息确定方法、定位方法、节点、网关及物联网系统
JP5445542B2 (ja) アクセスポイント及びプログラム
WO2019113733A1 (zh) 切换控制方法、控制终端和无人机
CN110876191B (zh) 定位信息确定方法、定位方法、节点、网关及物联网系统
JP4882774B2 (ja) アクセスポイント及びプログラム
CN111182612B (zh) 一种自组网中节点的入网同步方法及装置

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: 18931786

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18931786

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18931786

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.08.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18931786

Country of ref document: EP

Kind code of ref document: A1