CN111654832A - Method, device and system for determining transmitting power of sensor and sensor equipment - Google Patents
Method, device and system for determining transmitting power of sensor and sensor equipment Download PDFInfo
- Publication number
- CN111654832A CN111654832A CN202010477503.3A CN202010477503A CN111654832A CN 111654832 A CN111654832 A CN 111654832A CN 202010477503 A CN202010477503 A CN 202010477503A CN 111654832 A CN111654832 A CN 111654832A
- Authority
- CN
- China
- Prior art keywords
- sensor
- relay device
- power
- identifier
- echo signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/38—Services specially adapted for particular environments, situations or purposes for collecting sensor information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/30—TPC using constraints in the total amount of available transmission power
- H04W52/36—TPC using constraints in the total amount of available transmission power with a discrete range or set of values, e.g. step size, ramping or offsets
- H04W52/367—Power values between minimum and maximum limits, e.g. dynamic range
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application relates to a method, a device, a system, a sensor device and a storage medium for determining the transmitting power of a sensor, comprising the following steps: sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device returns an echo signal carrying the identifier after receiving the signal; if an echo signal which is returned by the relay device and carries an identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack; acquiring a difference value between target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of a sensor, sending a signal to a relay device by using the new target power until an echo signal which is returned by the relay device and carries an identifier is not received, and taking a preset data stack as a target data stack; and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack. The method reduces the energy consumption of the sensor during operation, and ensures that the sensor equipment can operate stably and continuously with lower transmitting power all the time.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, a sensor device, and a storage medium for determining a transmission power of a sensor.
Background
In the process of digital power grid construction, sensors become infrastructures for constructing power internet of things, such as small and micro intelligent sensors.
The intelligent sensor supplies energy to the intelligent sensor by collecting the electromagnetic field energy of the lead, and the communication power consumption of the intelligent sensor is required to be as low as possible due to the fact that the current of the lead fluctuates along with the load and the energy taking power of the electromagnetic field is large or small.
In practical use, in order to achieve communication stability, the intelligent sensor generally adopts a constant high-power bluetooth signal transmitting mode to communicate with the relay device, which is very energy-inefficient and may cause data loss due to insufficient electric energy for the intelligent sensor to maintain operation; therefore, a method for determining the bluetooth transmission power of the smart sensor is still lacking, so that the smart sensor operates at a lower power to ensure stable and continuous operation of the smart sensor.
Disclosure of Invention
In view of the above, it is necessary to provide a transmission power determination method, apparatus, sensor device and storage medium for a sensor, which can make the sensor operate stably and continuously at a low power at all times.
A method of transmit power determination for a sensor, the method comprising:
sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
if an echo signal which is returned by the relay device and carries the identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack;
acquiring a difference value between the target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of the sensor, sending the signal to the relay device by using the new target power until an echo signal which is returned by the relay device and carries the identifier is not received, and taking the preset data stack as a target data stack;
and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack.
In one embodiment, the determining the transmission power of the sensor according to the power value corresponding to the element in the target data stack includes:
acquiring a power value corresponding to a stack top element in the target data stack as an initial transmitting power of the sensor;
sending a signal carrying the identifier to the relay device at the initial transmission power;
and if an echo signal carrying the identifier returned by the relay device is received, determining the initial transmitting power as the transmitting power of the sensor.
In one embodiment, after sending the signal carrying the identifier to the relay device at the initial transmission power, the method further includes:
if the echo signal carrying the identifier returned by the relay device is not received, acquiring a power value corresponding to a new stack top element in the target data stack as the initial transmitting power of the sensor, and determining that the initial transmitting power is the transmitting power of the sensor until the echo signal carrying the identifier returned by the relay device is received.
In one embodiment, before sending the signal carrying the identifier to the relay device at the target transmission power of the sensor, the method further includes:
receiving a transmission power determination instruction sent by the relay device;
and responding to the transmission power determination instruction, acquiring a maximum transmission power value of the sensor, and taking the maximum transmission power value as a target transmission power of the sensor.
In one embodiment, the not receiving the echo signal carrying the identifier returned by the relay device further includes:
if the received echo signal returned by the relay device does not carry the identifier, determining that the echo signal which carries the identifier and is returned by the relay device is not received;
or;
and if the echo signal which is returned by the relay device and carries the identifier is not received within the preset time, determining that the echo signal which is returned by the relay device and carries the identifier is not received.
In one embodiment, the receiving, within a preset time, an echo signal carrying the identifier and returned by the relay device includes:
recording the time for sending the signal carrying the identifier to the relay device as initial time;
acquiring a difference value between the current time and the initial time as interval time;
and if the interval time is greater than or equal to the preset time, determining that the echo signal carrying the identifier returned by the relay device is not received within the preset time.
An apparatus for transmit power determination of a sensor, the apparatus comprising:
the signal sending module is used for sending a signal carrying the identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
a first power determining module, configured to store, as an element, a power value corresponding to the target transmit power to a preset data stack if an echo signal carrying the identifier and returned by the relay device is received;
a second power determining module, configured to obtain a difference between the target transmit power and a preset power threshold, use the difference as a new target transmit power of the sensor, send the signal to the relay device with the new target power, and use the preset data stack as a target data stack until an echo signal carrying the identifier and returned by the relay device is not received;
and the transmission power determining module is used for determining the transmission power of the sensor according to the power value corresponding to the element in the target data stack.
A transmission power determination system of a sensor comprises the sensor and a relay device; the sensor is in communication connection with the relay device;
the sensor is used for executing the steps of the transmitting power determining method of the sensor;
and the relay device is used for returning an echo signal carrying the identifier to the sensor after receiving the signal carrying the identifier.
A sensor device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
if an echo signal which is returned by the relay device and carries the identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack;
acquiring a difference value between the target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of the sensor, sending the signal to the relay device by using the new target power until an echo signal which is returned by the relay device and carries the identifier is not received, and taking the preset data stack as a target data stack;
and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
if an echo signal which is returned by the relay device and carries the identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack;
acquiring a difference value between the target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of the sensor, sending the signal to the relay device by using the new target power until an echo signal which is returned by the relay device and carries the identifier is not received, and taking the preset data stack as a target data stack;
and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack.
The method, the device, the system, the sensor equipment and the storage medium for determining the transmitting power of the sensor comprise the following steps: sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal; if an echo signal which is returned by the relay device and carries an identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack; acquiring a difference value between target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of a sensor, sending a signal to a relay device by using the new target power until an echo signal which is returned by the relay device and carries an identifier is not received, and taking a preset data stack as a target data stack; and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack. According to the method, the sensor interacts with the relay device for multiple times to determine the lowest sensor transmitting power required by communication with the relay device, so that the energy consumption of the sensor during operation is reduced as much as possible, meanwhile, the transmitting power can be flexibly adapted according to field conditions, and the sensor equipment can be ensured to operate stably and continuously with lower transmitting power all the time.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of a method for determining transmit power of a sensor;
FIG. 2 is a schematic flow chart of a method for determining transmit power of a sensor in one embodiment;
FIG. 3 is a schematic flow chart of the step of determining the transmit power of the sensor in one embodiment;
FIG. 4 is a flow diagram illustrating the steps in response to a transmit power determination command in one embodiment;
fig. 5 is a schematic flow chart illustrating a step of not receiving an echo signal with an identifier returned by the relay device within a preset time period in one embodiment;
FIG. 6 is a block diagram showing the structure of a transmission power determining apparatus of a sensor in one embodiment;
fig. 7 is an internal structural view of a sensor device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for determining the transmitting power of the sensor can be applied to the application environment shown in fig. 1. Wherein the sensor 11 is in communication connection with the relay device 12. The sensor 11 sends a signal carrying an identifier to the relay device 12 with the target transmission power of the sensor 11; the relay device 12 is configured to return an echo signal carrying the identifier after receiving the signal; if the sensor 11 receives an echo signal carrying an identifier and returned by the relay device 12, storing a power value corresponding to the target transmitting power as an element in a preset data stack; the sensor 11 obtains a difference value between the target transmitting power and a preset power threshold value, the difference value is used as a new target transmitting power of the sensor 11, the new target transmitting power is used for sending a signal to the relay device 12, and a preset data stack is used as a target data stack until an echo signal which is returned by the relay device 12 and carries an identifier is not received; the sensor 11 determines the transmission power of the sensor 11 according to the power value corresponding to the element in the target data stack.
The sensors 11 may be, but not limited to, various force-sensitive sensors, position sensors, energy consumption sensors, magnetic-sensitive sensors, speed sensors, radiation sensors, thermal-sensitive sensors, and other various communication systems or sensor types for various purposes, and the relay device 12 may have a communication system consistent with the selected sensor 11 to implement a communication relay function.
In one embodiment, as shown in fig. 2, a method for determining the transmission power of a sensor is provided, which is described by taking the method as an example applied to the sensor 11 in fig. 1, and includes the following steps:
The identifier may be an identifier of a specification, a model, a code, or the like of the sensor itself, or an identifier generated by the sensor and capable of being mutually verified with the relay device, for example, a string of digital sequences generated according to a certain coding rule. The target transmitting power is the transmitting power adopted by the sensor for sending the signal carrying the identifier to the relay device. The relay device can amplify and retransmit signals transmitted by the sensor, so that signal attenuation caused by overlong cable lines of the network segment is avoided, and the reliability of signal transmission of the sensor is effectively improved.
Specifically, after the selected transmitting power of the sensor is used as the target transmitting power, a signal is sent to the relay device by the target transmitting power, and the signal carries an identifier capable of identifying the sensor; after receiving the signal carrying the identifier, the relay device can respond according to the content of the received signal and send the signal to the sensor in the form of an echo signal, wherein the echo signal also carries the identifier.
Preferably, the identifiers carried in the signals sent by the sensor and the relay device to the other party may also be different, for example, the identifier a is carried in the signal sent by the sensor, the echo signal carrying the identifier B is returned by the relay device, and the sensor can recognize that the echo signal is the echo signal carrying the identifier a sent by the sensor according to the echo signal carrying the identifier B.
In the step, the sensor sends the signal carrying the identification to the relay device, so that the receiving condition of the relay device on the signals sent under different target powers can be determined through the identification in the received echo signal, the power range capable of communicating with the relay device is determined, and the sensor equipment is ensured to stably and continuously operate at lower transmitting power all the time.
And step 22, if an echo signal carrying the identifier returned by the relay device is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack.
The preset data stack is stack structure data generated by the sensor, and can store the transmission power data in a stack form.
Specifically, if the sensor receives an echo signal carrying an identifier returned by the relay device, it indicates that the sensor can normally communicate with the relay device by using the target transmitting power, and the sent signal can be normally received by the relay device; the target transmit power is thus saved to a preset data stack.
The stack structure data has the characteristic of first entering and then exiting, and the data stored in the stack is taken out later, so that the target transmitting power is stored in a preset data stack for storage when the situation that whether the target transmitting power is the optimal transmitting power is uncertain. Therefore, the larger transmitting power value is arranged at the bottom of the preset data stack, the smaller transmitting power value is arranged at the top of the preset data stack, the smaller transmitting power value at the top of the preset data stack can be preferentially called when the transmitting power is determined, the energy consumption of the sensor during operation is reduced as much as possible, meanwhile, the flexible adaptation of the transmitting power can be carried out according to the field conditions, and the sensor equipment can be ensured to operate stably and continuously with the lower transmitting power all the time.
And step 23, acquiring a difference value between the target transmitting power and a preset power threshold value, taking the difference value as a new target transmitting power of the sensor, sending a signal to the relay device by using the new target power until an echo signal which is returned by the relay device and carries the identifier is not received, and taking a preset data stack as a target data stack.
Specifically, the difference between the target transmission power and the preset power threshold is obtained to enable the new target transmission power to approach the minimum value of the transmission power which can be communicated by the sensor and the relay device as soon as possible, and therefore a loop structure is introduced to perform decremental calculation on the target transmission power by using the preset power threshold.
For example, the target transmission power is 100, and the preset power threshold is 5, the new target transmission power is 100-5 to 95, the new target transmission power is obtained again, that is, 95-5 to 90, and so on until the echo signal carrying the identifier returned by the relay device is not received.
It should be noted that the preset power threshold may be set to be an unfixed value, for example, the target transmission power is 100, the preset power threshold is 5, the new target power value after several communications is 50, and when the new target power value obtained again is 45, the echo signal with the identifier returned by the relay device is not received, which indicates that the target power value of 45 cannot support normal communications between the sensor and the relay device. Therefore, the state that the target power value is 50 can be returned, and the preset power threshold value is a value smaller than 5 and is taken as the preset power threshold value; for example, if the preset power threshold is adjusted to be 1, the new target power value is 49, and so on, until the new target power value is 47, the echo signal can be received, and the echo signal carrying the identifier returned by the relay device is not received when the new target power value is 46, that is, when the new target power of the available sensor is the minimum value 47.
Through similar adjustment of the preset power threshold, the value of the target transmitting power can be reduced quickly in the early stage, the minimum value of the transmitting power capable of communicating with the relay device is approached as much as possible in the later stage, the transmitting power determining efficiency of the sensor is improved, and the energy consumption of the sensor during operation is reduced as much as possible.
Taking the preset data stack as the target data stack means that the sensor has found the minimum value of the transmission power that can communicate with the relay device, and available stack structure data, that is, the optimal transmission power stack, is obtained, so that taking the preset data stack as the target data stack can be regarded as putting the preset data stack into use.
For example, the target transmission power is 100, the preset power threshold is 5, and the preset power threshold when the new target transmission power is less than 45 is 1; then it is known that the new target transmit power employed when no echo signal carrying the identification returned by the relay device is received is 40 and the minimum value of transmit power available to communicate with the relay device is 41. Then the preset data stack stores data from top to bottom at this time in the order 41, 42, 43, 44, 45, 50, 55,..., 95, 100; the preset data stack is also a target data stack, and when in use, a call is popped from a value 41 corresponding to a stack top element.
The difference value of the target transmitting power and the preset power threshold value is obtained in the step, so that the value of the new target transmitting power is quickly reduced, the lowest sensor transmitting power required by communication with the relay device is determined, the energy consumption of the sensor during operation is reduced as much as possible, meanwhile, the transmitting power can be flexibly adapted according to field conditions, and the sensor equipment is guaranteed to stably and continuously operate at lower transmitting power all the time.
And 24, determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack.
Specifically, after the sensor obtains the target data stack, the transmission power of the sensor can be determined according to elements in the target data stack. Due to the particularity of the stack structure, each pop-up is the transmitting power value corresponding to the stack top element of the target data stack, and the stack top element is the minimum value of the transmitting power which is finally stored during the determination of the stack structure data and can be communicated with the relay device, so that the lowest transmitting power of the sensor required by the communication with the relay device is determined, the energy consumption of the sensor during the operation is reduced as much as possible, meanwhile, the flexible adaptation of the transmitting power can be performed according to the field condition, and the sensor equipment is ensured to operate stably and continuously with lower transmitting power all the time.
The method for determining the transmitting power of the sensor comprises the following steps: sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal; if an echo signal which is returned by the relay device and carries an identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack; acquiring a difference value between target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of a sensor, sending a signal to a relay device by using the new target power until an echo signal which is returned by the relay device and carries an identifier is not received, and taking a preset data stack as a target data stack; and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack. According to the method, the sensor interacts with the relay device for multiple times to determine the lowest sensor transmitting power required by communication with the relay device, so that the energy consumption of the sensor during operation is reduced as much as possible, meanwhile, the transmitting power can be flexibly adapted according to field conditions, and the sensor equipment can be ensured to operate stably and continuously with lower transmitting power all the time.
In one embodiment, as shown in fig. 3, the step 24 of determining the transmission power of the sensor according to the power value corresponding to the element in the target data stack includes:
and step 33, if the echo signal carrying the identifier returned by the relay device is received, determining that the initial transmitting power is the transmitting power of the sensor.
Specifically, the present embodiment may be understood as an availability verification process performed on the determined transmission power of the sensor after the transmission power of the sensor is determined.
And taking the power value corresponding to the stack top element in the target data stack as the initial transmitting power of the sensor, wherein if the power value can receive an echo signal which is returned by the relay device and carries the identifier, the power value corresponding to the stack top element is used for normal communication with the relay device, and the initial transmitting power is determined as the transmitting power of the sensor.
In the embodiment, the power value corresponding to the stack top element in the target data stack is obtained and used as the initial transmitting power of the sensor to perform availability detection on the target data stack, so that the transmitting power of the sensor is ensured to be simultaneously available on the basis of low transmission power, and the sensor equipment is ensured to operate stably and continuously with low transmission power all the time.
In an embodiment, the step 32, after sending the signal carrying the identifier to the relay apparatus at the initial transmission power, further includes:
and if the echo signal carrying the identifier returned by the relay device is not received, acquiring a power value corresponding to a new stack top element in the target data stack as the initial transmitting power of the sensor, and determining the initial transmitting power as the transmitting power of the sensor until the echo signal carrying the identifier returned by the relay device is received.
Specifically, a new stack top element may be obtained by popping the target data stack; for example, the top element and the following elements are 41, 43, 45, and 47 in sequence, the current top element 41 is popped up first, when it is detected that the echo signal with the identifier returned by the relay device is not received with 41 as the initial transmission power, which indicates that 41 is not available, 41 is discarded, the top element 43 of the target data stack is popped up again, and so on, until the echo signal with the identifier returned by the relay device can be received with the power value corresponding to the popped new top element as the initial transmission power, the initial transmission power is determined as the transmission power of the sensor.
The determination of the transmitting power of the sensor can be performed again after the new stack top element in the target data stack is acquired for a preset number of times.
The relay device can also be set to generate alarm information after not receiving the signal sent by the sensor within the preset time, the alarm information carries the identifier of the sensor which is not in contact with the user, the generated alarm information is sent to the preset terminal equipment, and the personnel corresponding to the terminal equipment are reminded to check the sensor.
The sensor detects the availability of a target data stack through communication with the relay device, if the availability of the target data stack is unavailable, the transmitting power of the sensor can be increased through reacquiring the stack top element until the reliable communication with the relay device is generated, the lowest transmitting power required by the communication with the relay device is determined through the interaction of signals carrying the identification with the relay device for multiple times through the sensor, the energy consumption of the sensor during the operation is reduced as much as possible, meanwhile, the flexible adaptation of the transmitting power can be carried out according to the field condition, and the stable and continuous operation of the sensor equipment with lower transmitting power is guaranteed all the time.
In one embodiment, as shown in fig. 4, before the step 21 of sending the signal carrying the identifier to the relay device with the target transmission power of the sensor, the method further includes:
and step 42, responding to the transmission power determination instruction, acquiring a maximum transmission power value of the sensor, and taking the maximum transmission power value as the target transmission power of the sensor.
Specifically, when a transmitting module in the relay device is initially connected with the sensor, the transmitting module of the relay device sends a transmitting power determining instruction, and the sensor starts a transmitting power determining process of the sensor after receiving the transmitting power determining instruction.
Firstly, reading the maximum transmitting power value of a sensor by the sensor; the maximum transmission power value here may also be a rated power value of the sensor, and the rated power value is usually required to be able to fully communicate when the sensor leaves the factory, so that the maximum transmission power value may be calculated in a descending manner from the rated power value. Then, the sensor uses the maximum transmission power value of the sensor as the target transmission power of the sensor, that is, a signal carrying an identifier is sent to the relay device by using the target transmission power of the sensor, and the flow of the transmission power determination method of the sensor is started.
The implementation sensor can flexibly start the transmitting power determining process according to the instruction by corresponding to the transmitting power determining instruction sent by the relay device; meanwhile, the maximum transmitting power value of the sensor is used as the target transmitting power of the sensor, the characteristic of stack structure data is utilized, the minimum transmitting power of the sensor required by communication with the relay device is determined, the energy consumption of the sensor during operation is reduced as much as possible, flexible adaptation of the transmitting power can be carried out according to field conditions, and the sensor equipment is guaranteed to operate stably and continuously with lower transmitting power all the time.
In one embodiment, the receiving of the echo signal carrying the identifier returned by the relay device includes: and if the received echo signal returned by the relay device does not carry the identifier, determining that the echo signal which carries the identifier and is returned by the relay device is not received.
In another embodiment, the receiving no echo signal carrying the identifier returned by the relay device includes: and if the echo signal with the identifier returned by the relay device is not received within the preset time, determining that the echo signal with the identifier returned by the relay device is not received.
Specifically, the sensor does not receive the echo signal carrying the identifier returned by the relay device, and the situation includes that nothing is received, and the situation includes that the echo signal is received but the identifier is not carried.
In the first situation, the received echo signal returned by the relay device does not carry an identifier; the non-carried identity may be further classified as an identity whose identification information is incorrect and not corresponding to the sensor. First, the incorrect identification information may be that when the signal carrying the identification is transmitted to the relay device, the power is weak, the relay device does not receive the signal content completely, and the identification in the returned signal is missed, for example, the identification is originally 123456789, and the power value is too weak, which results in the identification being 1234789 in the signal received by the relay device. Secondly, the identifier carried in the received echo signal is not of the sensor, which indirectly indicates that the relay device does not receive the signal sent by the sensor, so that the sensor can capture the echo signal sent by the relay device to other sensors.
In the second situation, the echo signal which is returned by the relay device and carries the identifier is not received within the preset time; under the condition that the relay device works normally, the transmitting power is too low in the condition that the echo signal is not received within the preset time, and the relay device does not receive the signal; or the signal with lower transmitting power has slower transmission speed and can be sent to the relay device for a longer time.
In both cases, the description is made of the situation where the echo signal carrying the identifier returned by the relay device is not received. Under the condition that the relay device works normally, the situation can be determined that the echo signal which is returned by the relay device and carries the identifier is not received, and the reasons are that the transmitting power adopted by the sensor at present is low; and then, the transmitting power can be acquired again until the echo signal which is returned by the relay device and carries the identifier is received, so that the sensor equipment can be ensured to stably and continuously operate at lower transmitting power all the time.
In one embodiment, as shown in fig. 5, the receiving, within a preset time, of an echo signal carrying an identifier returned by a relay device includes:
and step 53, if the interval time is greater than or equal to the preset time, determining that the echo signal with the identifier returned by the relay device is not received within the preset time.
Specifically, the time that the sensor sends out the signal carrying the identifier to the relay device is taken as a starting point to start calculating the time, and if the time interval is greater than the preset time after reaching a certain time interval, it can be determined that the echo signal carrying the identifier returned by the relay device is not received within the preset time.
In this embodiment, the time for sending the signal is taken as a timing starting point and a time interval is recorded, and if the time interval exceeds a preset time interval, it is determined that the echo signal carrying the identifier returned by the relay device is not received. By setting the interval time, the transmitting power which cannot be successfully communicated and the transmitting power with poor communication quality are eliminated, and the sensor equipment is ensured to stably and continuously operate at lower transmitting power all the time.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a transmission power determining apparatus of a sensor, including:
a signal sending module 61, configured to send a signal carrying an identifier to the relay device with the target transmission power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
the first power determining module 62 is configured to, if an echo signal carrying an identifier and returned by the relay device is received, store a power value corresponding to the target transmit power as an element in a preset data stack;
a second power determining module 63, configured to obtain a difference between a target transmitting power and a preset power threshold, use the difference as a new target transmitting power of the sensor, send a signal to the relay device with the new target power, and use a preset data stack as a target data stack until an echo signal with an identifier returned by the relay device is not received;
and a transmission power determining module 64, configured to determine the transmission power of the sensor according to the power value corresponding to the element in the target data stack.
In one embodiment, the transmission power determining module 64 is further configured to obtain a power value corresponding to a top element in the target data stack as the initial transmission power of the sensor; sending a signal carrying an identifier to the relay device by using the initial transmitting power; and if an echo signal carrying the identifier returned by the relay device is received, determining that the initial transmitting power is the transmitting power of the sensor.
In an embodiment, the transmission power determining module 64 is further configured to, if an echo signal carrying the identifier and returned by the relay device is not received, obtain a power value corresponding to a new stack top element in the target data stack as the initial transmission power of the sensor, and determine that the initial transmission power is the transmission power of the sensor until the echo signal carrying the identifier and returned by the relay device is received.
In one embodiment, the transmission power determining device of the sensor further comprises a transmission power determining instruction response module, configured to receive a transmission power determining instruction sent by the relay device; in response to the transmission power determination instruction, a maximum transmission power value of the sensor is acquired, and the maximum transmission power value is taken as a target transmission power of the sensor.
In one embodiment, the first power determining module 62 is further configured to determine that the echo signal returned by the relay device and carrying the identifier is not received if the received echo signal returned by the relay device does not carry the identifier.
In one embodiment, the first power determining module 62 is further configured to determine that the echo signal carrying the identifier returned by the relay device is not received if the echo signal carrying the identifier returned by the relay device is not received within a preset time.
In one embodiment, the first power determination module 62 is further configured to record a time when the signal carrying the identifier is sent to the relay device as an initial time; acquiring a difference value between the current time and the initial time as interval time; and if the interval time is greater than or equal to the preset time, determining that the echo signal carrying the identifier returned by the relay device is not received within the preset time.
For specific limitations of the transmission power determining apparatus of the sensor, reference may be made to the above limitations of the transmission power determining method of the sensor, which are not described herein again. The various modules in the transmit power determination apparatus of the sensor described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the sensor device, and can also be stored in a memory in the sensor device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a sensor device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 7. The sensor device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the sensor device is used to provide computational and control capabilities. The memory of the sensor device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the sensor device is used to store the transmit power determination data of the sensor. The network interface of the sensor device is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a method of transmission power determination for a sensor.
It will be understood by those skilled in the art that the structure shown in fig. 7 is a block diagram of only a portion of the structure relevant to the present teachings and does not constitute a limitation on the sensor device to which the present teachings are applied, and that a particular sensor device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a sensor device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
if an echo signal which is returned by the relay device and carries an identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack;
acquiring a difference value between target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of a sensor, sending a signal to a relay device by using the new target power until an echo signal which is returned by the relay device and carries an identifier is not received, and taking a preset data stack as a target data stack;
and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a power value corresponding to a stack top element in a target data stack, and using the power value as initial transmitting power of a sensor; sending a signal carrying an identifier to the relay device by using the initial transmitting power; and if an echo signal carrying the identifier returned by the relay device is received, determining that the initial transmitting power is the transmitting power of the sensor.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the echo signal carrying the identifier returned by the relay device is not received, acquiring a power value corresponding to a new stack top element in the target data stack as the initial transmitting power of the sensor, and determining the initial transmitting power as the transmitting power of the sensor until the echo signal carrying the identifier returned by the relay device is received.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a transmission power determination instruction sent by a relay device; in response to the transmission power determination instruction, a maximum transmission power value of the sensor is acquired, and the maximum transmission power value is taken as a target transmission power of the sensor.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the received echo signal returned by the relay device does not carry the identifier, determining that the echo signal which carries the identifier and is returned by the relay device is not received.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the echo signal with the identifier returned by the relay device is not received within the preset time, determining that the echo signal with the identifier returned by the relay device is not received.
In one embodiment, the processor, when executing the computer program, further performs the steps of: recording the time for sending the signal carrying the identifier to the relay device as initial time; acquiring a difference value between the current time and the initial time as interval time; and if the interval time is greater than or equal to the preset time, determining that the echo signal carrying the identifier returned by the relay device is not received within the preset time.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
if an echo signal which is returned by the relay device and carries an identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack;
acquiring a difference value between target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of a sensor, sending a signal to a relay device by using the new target power until an echo signal which is returned by the relay device and carries an identifier is not received, and taking a preset data stack as a target data stack;
and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a power value corresponding to a stack top element in a target data stack, and using the power value as initial transmitting power of a sensor; sending a signal carrying an identifier to the relay device by using the initial transmitting power; and if an echo signal carrying the identifier returned by the relay device is received, determining that the initial transmitting power is the transmitting power of the sensor.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the echo signal carrying the identifier returned by the relay device is not received, acquiring a power value corresponding to a new stack top element in the target data stack as the initial transmitting power of the sensor, and determining the initial transmitting power as the transmitting power of the sensor until the echo signal carrying the identifier returned by the relay device is received.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a transmission power determination instruction sent by a relay device; in response to the transmission power determination instruction, a maximum transmission power value of the sensor is acquired, and the maximum transmission power value is taken as a target transmission power of the sensor.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the received echo signal returned by the relay device does not carry the identifier, determining that the echo signal which carries the identifier and is returned by the relay device is not received.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the echo signal with the identifier returned by the relay device is not received within the preset time, determining that the echo signal with the identifier returned by the relay device is not received.
In one embodiment, the computer program when executed by the processor further performs the steps of: recording the time for sending the signal carrying the identifier to the relay device as initial time; acquiring a difference value between the current time and the initial time as interval time; and if the interval time is greater than or equal to the preset time, determining that the echo signal carrying the identifier returned by the relay device is not received within the preset time.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for determining transmit power of a sensor, the method comprising:
sending a signal carrying an identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
if an echo signal which is returned by the relay device and carries the identifier is received, storing a power value corresponding to the target transmitting power as an element in a preset data stack;
acquiring a difference value between the target transmitting power and a preset power threshold value, taking the difference value as new target transmitting power of the sensor, sending the signal to the relay device by using the new target power until an echo signal which is returned by the relay device and carries the identifier is not received, and taking the preset data stack as a target data stack;
and determining the transmitting power of the sensor according to the power value corresponding to the element in the target data stack.
2. The method of claim 1, wherein determining the transmit power of the sensor according to the power value corresponding to the element in the target data stack comprises:
acquiring a power value corresponding to a stack top element in the target data stack as an initial transmitting power of the sensor;
sending a signal carrying the identifier to the relay device at the initial transmission power;
and if an echo signal carrying the identifier returned by the relay device is received, determining the initial transmitting power as the transmitting power of the sensor.
3. The method of claim 2, further comprising, after transmitting a signal carrying the identity to the relay device at the initial transmit power:
if the echo signal carrying the identifier returned by the relay device is not received, acquiring a power value corresponding to a new stack top element in the target data stack as the initial transmitting power of the sensor, and determining that the initial transmitting power is the transmitting power of the sensor until the echo signal carrying the identifier returned by the relay device is received.
4. The method of claim 1, further comprising, prior to transmitting the signal carrying the identity to the relay device at the target transmit power of the sensor:
receiving a transmission power determination instruction sent by the relay device;
and responding to the transmission power determination instruction, acquiring a maximum transmission power value of the sensor, and taking the maximum transmission power value as a target transmission power of the sensor.
5. The method according to any one of claims 1-4, wherein the receiving of the echo signal carrying the identifier returned by the relay device further comprises:
if the received echo signal returned by the relay device does not carry the identifier, determining that the echo signal which carries the identifier and is returned by the relay device is not received;
or;
and if the echo signal which is returned by the relay device and carries the identifier is not received within the preset time, determining that the echo signal which is returned by the relay device and carries the identifier is not received.
6. The method according to claim 5, wherein the receiving of the echo signal carrying the identifier returned by the relay device within a preset time includes:
recording the time for sending the signal carrying the identifier to the relay device as initial time;
acquiring a difference value between the current time and the initial time as interval time;
and if the interval time is greater than or equal to the preset time, determining that the echo signal carrying the identifier returned by the relay device is not received within the preset time.
7. An apparatus for determining a transmit power of a sensor, the apparatus comprising:
the signal sending module is used for sending a signal carrying the identifier to the relay device by using the target transmitting power of the sensor; the relay device is used for returning an echo signal carrying the identifier after receiving the signal;
a first power determining module, configured to store, as an element, a power value corresponding to the target transmit power to a preset data stack if an echo signal carrying the identifier and returned by the relay device is received;
a second power determining module, configured to obtain a difference between the target transmit power and a preset power threshold, use the difference as a new target transmit power of the sensor, send the signal to the relay device with the new target power, and use the preset data stack as a target data stack until an echo signal carrying the identifier and returned by the relay device is not received;
and the transmission power determining module is used for determining the transmission power of the sensor according to the power value corresponding to the element in the target data stack.
8. A transmission power determination system of a sensor comprises the sensor and a relay device; the sensor is in communication connection with the relay device;
the sensor for performing the steps of the method of determining the transmit power of a sensor according to any one of claims 1 to 6;
and the relay device is used for returning an echo signal carrying the identifier to the sensor after receiving the signal carrying the identifier.
9. A sensor device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010477503.3A CN111654832A (en) | 2020-05-29 | 2020-05-29 | Method, device and system for determining transmitting power of sensor and sensor equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010477503.3A CN111654832A (en) | 2020-05-29 | 2020-05-29 | Method, device and system for determining transmitting power of sensor and sensor equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111654832A true CN111654832A (en) | 2020-09-11 |
Family
ID=72349786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010477503.3A Pending CN111654832A (en) | 2020-05-29 | 2020-05-29 | Method, device and system for determining transmitting power of sensor and sensor equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111654832A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023116687A1 (en) * | 2021-12-22 | 2023-06-29 | 维沃移动通信有限公司 | Transmission power determination method and apparatus, and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102781080A (en) * | 2012-07-05 | 2012-11-14 | 上海大学 | Power self-adaptive method of network access and operation of nodes of wireless sensor network |
CN103379608A (en) * | 2013-04-07 | 2013-10-30 | 东南大学 | Method for configuring multilevel transmitting power in wireless sensor network |
US20150138014A1 (en) * | 2013-04-01 | 2015-05-21 | Fitbit, Inc. | Portable biometric monitoring devices having location sensors |
CN106879059A (en) * | 2017-02-22 | 2017-06-20 | 新华三技术有限公司 | A kind of transmission power adjustment method and device |
CN110997488A (en) * | 2017-07-28 | 2020-04-10 | 高通股份有限公司 | System and method for dynamically controlling parameters for processing sensor output data |
-
2020
- 2020-05-29 CN CN202010477503.3A patent/CN111654832A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102781080A (en) * | 2012-07-05 | 2012-11-14 | 上海大学 | Power self-adaptive method of network access and operation of nodes of wireless sensor network |
US20150138014A1 (en) * | 2013-04-01 | 2015-05-21 | Fitbit, Inc. | Portable biometric monitoring devices having location sensors |
CN103379608A (en) * | 2013-04-07 | 2013-10-30 | 东南大学 | Method for configuring multilevel transmitting power in wireless sensor network |
CN106879059A (en) * | 2017-02-22 | 2017-06-20 | 新华三技术有限公司 | A kind of transmission power adjustment method and device |
CN110997488A (en) * | 2017-07-28 | 2020-04-10 | 高通股份有限公司 | System and method for dynamically controlling parameters for processing sensor output data |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023116687A1 (en) * | 2021-12-22 | 2023-06-29 | 维沃移动通信有限公司 | Transmission power determination method and apparatus, and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20050071511A1 (en) | Self-activating network connection system and method | |
CN108153696B (en) | Embedded system serial port module matching method, device, medium and computer equipment | |
CN108351707B (en) | Man-machine interaction method and device, terminal equipment and computer readable storage medium | |
EP4274190A1 (en) | Smart device control method and apparatus, electronic device, and computer readable medium | |
CN110618889A (en) | Service availability detection method and device, computer equipment and storage medium | |
CN111462507A (en) | Signal data processing method, system, computer device and storage medium | |
CN111654832A (en) | Method, device and system for determining transmitting power of sensor and sensor equipment | |
CN112769652A (en) | Node service monitoring method, device, equipment and medium | |
CN114330722A (en) | Inference implementation method, network, electronic device and storage medium | |
CN107580711B (en) | RFID transponder, RFID transponder device and method for communication between an RFID transponder and a reading device | |
CN103685669A (en) | Short message processing method and terminal | |
CN116501465A (en) | Automatic driving task execution method and device, electronic equipment and storage medium | |
CN116488852A (en) | AIGC-based network security servo system | |
CN112667334B (en) | Configuration method and device of equipment control information, electronic equipment and storage medium | |
CN105988835B (en) | Software upgrading method and terminal | |
CN110795267B (en) | Hierarchical automatic recovery method and related equipment | |
CN112887161B (en) | Mobile network detection method and device | |
CN113504879A (en) | Data storage method and intelligent household appliance | |
CN114825669A (en) | Foreign matter detection method, parameter setting method and device and wireless charging receiving equipment | |
CN114446290A (en) | Device response method, device, computer device and storage medium | |
CN112910732A (en) | Method and equipment for resetting edge computing server | |
CN111860954A (en) | Vehicle loss of contact prediction method and device, computer equipment and storage medium | |
CN111813510A (en) | Method, device and system for uploading data by intelligent equipment | |
CN113852444B (en) | RF wireless wake-up method | |
CN111142422A (en) | Sensor information processing method for ios system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province Applicant after: Southern Power Grid Digital Grid Research Institute Co.,Ltd. Address before: Room 1301, Chengtou building, No. 106, Fengze East Road, Nansha District, Guangzhou City, Guangdong Province Applicant before: Southern Power Grid Digital Grid Research Institute Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200911 |