Method, device, intercom, equipment and storage medium for determining transmission power
By dynamically adjusting the transmission power of the walkie-talkie and selecting the target walkie-talkie based on the local routing table and signal strength, the problem of short standby time of the walkie-talkie in outdoor adventure or emergency rescue is solved, and the standby time of the walkie-talkie is extended, providing more time for rescue .
Patent Information
- Application Number
- CN202110841292.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-26
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-07-26
AI Technical Summary
During outdoor adventures or emergency rescue, the lack of infrastructure results in limited standby time for intercom, which cannot be effectively extended, affecting the rescue efficiency.
By obtaining the local routing table, select the target intercom with the closest distance and the highest signal strength, determine the minimum transmission power based on the actual distance, and dynamically adjust the transmission power to extend the standby time.
It effectively reduces the transmission power, extends the standby time of the walkie-talkie, and buys more time for emergency rescue.
Smart Images

Figure CN113543022B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of wireless communication technology, and in particular to a method, device, walkie-talkie, equipment and storage medium for determining transmission power. Background Art
[0002] Walkie-talkies are widely used in outdoor adventures or emergency rescues. In actual use, walkie-talkies are powered by batteries, but the battery power is limited, and there is usually no infrastructure to charge them during outdoor adventures or emergency rescues. Therefore, during outdoor adventures or emergency rescues, it is very important to maximize the standby time to buy more time for rescue. Summary of the invention
[0003] In the related art, the intercom uses a default transmission power, which can ensure that the target intercom can achieve stable reception within a preset distance. Each time communication data is sent, the default transmission power is used. The inventor found that if the distance between the intercom sending communication data and the target intercom is less than the preset distance, that is, when the distance between the two is close, a smaller transmission power can actually ensure that the target intercom successfully receives the communication data. If the communication data is still sent according to the default transmission power, it will cause a waste of power, which is not conducive to maximizing the standby time and gaining more time for rescue.
[0004] Based on the above technical problems, the present disclosure provides a method, device, walkie-talkie, equipment and storage medium for determining transmission power, so as to solve the problem in the prior art that the standby time of the walkie-talkie cannot be effectively extended due to the lack of infrastructure power supply during outdoor adventures or emergency rescue.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for determining transmit power, the method comprising:
[0006] Acquire a local routing table of the first intercom, wherein the local routing table records at least one second intercom within a preset maximum transmission distance;
[0007] Selecting one of the at least one second intercom as a target intercom according to the local routing table;
[0008] Acquire a distance indication parameter between the first intercom and the target intercom; wherein the distance indication parameter is used to characterize the actual distance between the first intercom and the target intercom;
[0009] Determining a minimum transmission power of the first intercom according to the distance indication parameter;
[0010] Based on the minimum transmission power, a transmission power when the first intercom sends communication data to the target intercom is determined.
[0011] Optionally, selecting one as the target intercom from the at least one second intercom according to the local routing table includes:
[0012] The local routing table also records the number of hops from each of the second intercoms to the preset master intercom;
[0013] The number of hops from each of the second intercoms to the preset master intercom is compared, and the second intercom corresponding to the minimum number of hops is determined as the target intercom.
[0014] Optionally, selecting one as the target intercom from the at least one second intercom according to the local routing table includes:
[0015] If there is only one second intercom corresponding to the minimum number of hops, the second intercom corresponding to the minimum number of hops is used as the target intercom;
[0016] If the number of second intercoms corresponding to the minimum number of hops is greater than one, a second intercom with the largest received signal strength indicator is selected from the second intercoms corresponding to the minimum number of hops as the target intercom.
[0017] Optionally, the obtaining a distance indication parameter between the first intercom and the target intercom includes:
[0018] Determining that GPS information of the target intercom is received;
[0019] Acquire the first location information of the target intercom from the GPS information;
[0020] Acquire second location information of the first intercom;
[0021] The actual distance between the first intercom and the target intercom is calculated according to the first location information and the second location information, and the actual distance is used as the distance indication parameter.
[0022] Optionally, determining the minimum transmission power of the first walkie-talkie according to the distance indication parameter includes:
[0023] Obtaining a preset maximum transmission power and a preset maximum transmission distance of the first intercom;
[0024] Calculating a ratio of the actual distance to the preset maximum transmission distance;
[0025] Calculating the power required to be increased when the first intercom sends communication data to the target intercom at the actual distance according to the relationship between the ratio and the power-distance growth coefficient;
[0026] The sum of the preset maximum transmission power and the increased power is calculated to obtain the minimum transmission power of the first intercom.
[0027] Optionally, determining the minimum transmission power of the first walkie-talkie according to the distance indication parameter includes:
[0028] The minimum transmit power corresponding to the actual distance is determined according to a distance-transmit power correspondence list between the actual distance and the minimum transmit power.
[0029] Optionally, the obtaining a distance indication parameter between the first intercom and the target intercom includes:
[0030] Determining that the GPS information of the target intercom is not received;
[0031] The received signal strength indication of the target intercom is read from the local routing table; and the received signal strength indication is used as the distance indication parameter.
[0032] Optionally, determining the minimum transmission power of the first walkie-talkie according to the distance indication parameter includes:
[0033] According to a received signal strength indication-transmit power correspondence list between received signal strength indication and transmit power, the transmit power corresponding to the received signal strength is determined, and the transmit power is used as the minimum transmit power.
[0034] Optionally, determining, based on the minimum transmit power, a transmit power at which the first intercom sends communication data to the target intercom includes:
[0035] Using the minimum transmission power as the transmission power when the first intercom sends communication data to the target intercom;
[0036] Alternatively, obtain multiple transmission power gears divided based on a preset maximum transmission power; wherein each transmission power gear corresponds to a preset transmission power; from each transmission power gear, select a transmission power gear whose preset transmission power is greater than the minimum transmission power as the target gear, and use the preset transmission power corresponding to the target gear as the transmission power when the first walkie-talkie sends communication data to the target walkie-talkie.
[0037] In a second aspect, an embodiment of the present disclosure provides an intercom, including:
[0038] A first acquisition unit, used to acquire a local routing table of the intercom, wherein the local routing table records at least one second intercom within a preset maximum transmission distance;
[0039] A selection unit, configured to select one of the at least one second intercom as a target intercom according to the local routing table;
[0040] A second acquisition unit is used to acquire a distance indication parameter between the intercom and the target intercom; wherein the distance indication parameter is used to characterize the actual distance between the intercom and the target intercom;
[0041] A first determining unit, configured to determine a minimum transmission power of the intercom according to the distance indication parameter;
[0042] The second determining unit is used to determine the transmission power when the intercom sends communication data to the target intercom based on the minimum transmission power.
[0043] Optionally, the selection unit is used to record the number of hops from each second intercom to the preset master intercom in the local routing table, compare the number of hops from each second intercom to the preset master intercom, and determine the second intercom corresponding to the minimum number of hops as the target intercom.
[0044] Optionally, the selection unit is used to select the second walkie-talkie corresponding to the minimum hop number as the target walkie-talkie when there is only one second walkie-talkie corresponding to the minimum hop number; if the number of second walkie-talkies corresponding to the minimum hop number is greater than one, select the second walkie-talkie with the largest received signal strength indication as the target walkie-talkie from the second walkie-talkies corresponding to the minimum hop number.
[0045] Optionally, the second acquisition unit is used to determine the received GPS information of the target walkie-talkie; obtain the first location information of the target walkie-talkie from the GPS information; obtain the second location information of the current walkie-talkie; calculate the actual distance between the current walkie-talkie and the target walkie-talkie based on the first location information and the second location information, and use the actual distance as the distance indication parameter.
[0046] Optionally, the first determination unit is used to obtain the preset maximum transmission power and the preset maximum transmission distance of the walkie-talkie; calculate the ratio of the actual distance to the preset maximum transmission distance; calculate the additional power required for the walkie-talkie to send communication data to the target walkie-talkie at the actual distance based on the relationship between the ratio and the power-distance growth coefficient; calculate the sum of the preset maximum transmission power and the increased power to obtain the minimum transmission power of the walkie-talkie.
[0047] Optionally, the first determining unit is used to determine the minimum transmit power corresponding to the actual distance according to a distance-transmit power correspondence list between the actual distance and the minimum transmit power.
[0048] Optionally, the second acquisition unit is used to determine that the GPS information of the target walkie-talkie is not received; read the received signal strength indication of the target walkie-talkie from the local routing table; and use the received signal strength indication as the distance indication parameter.
[0049] Optionally, the first determination unit is used to determine the transmit power corresponding to the received signal strength according to a received signal strength indication-transmit power correspondence list between the received signal strength indication and the transmit power, and use the transmit power as the minimum transmit power.
[0050] Optionally, the second determination unit is used to use the minimum transmission power as the transmission power when the present walkie-talkie sends communication data to the target walkie-talkie; or, obtain multiple transmission power gears divided based on a preset maximum transmission power; wherein each transmission power gear corresponds to a preset transmission power; from each transmission power gear, select a transmission power gear in which the preset transmission power is greater than the minimum transmission power as the target gear, and use the preset transmission power corresponding to the target gear as the transmission power when the present walkie-talkie sends communication data to the target walkie-talkie.
[0051] In a third aspect, an embodiment of the present disclosure provides a device for determining transmit power, the device comprising:
[0052] A first acquisition module, used to acquire a local routing table of the first intercom, wherein the local routing table records at least one second intercom within a preset maximum transmission distance;
[0053] A selection module, configured to select one of the at least one second intercom as a target intercom according to the local routing table;
[0054] A second acquisition module, used to acquire a distance indication parameter between the first intercom and the target intercom; wherein the distance indication parameter is used to characterize the actual distance between the first intercom and the target intercom;
[0055] A first determining module, configured to determine a minimum transmission power of the first intercom according to the distance indication parameter;
[0056] The second determination module is used to determine the transmission power when the first intercom sends communication data to the target intercom based on the minimum transmission power.
[0057] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;
[0058] The memory is used to store computer programs;
[0059] The processor is used to execute the program stored in the memory to implement the method for determining the transmission power described in the first aspect.
[0060] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for determining the transmission power described in the first aspect.
[0061] The above technical solution provided by the embodiment of the present disclosure has the following advantages over the prior art: the method provided by the embodiment of the present disclosure selects a target intercom for communication according to the local routing table of the first intercom, obtains the distance indication parameter between the first intercom and the target intercom, determines the minimum transmission power according to the distance indication parameter, and determines the transmission power when the first intercom sends communication data to the target intercom based on the minimum transmission power. The transmission power is determined according to the distance indication parameter between the first intercom and the target intercom, and the minimum transmission power can be adaptively determined according to the distance indication parameter between the two, instead of sending communication data according to the default transmission power each time, which can effectively reduce the transmission power, thereby extending the standby time and buying more time for rescue. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0064] Figure 1 A schematic diagram of a self-organizing network communication system provided by an embodiment of the present disclosure;
[0065] Figure 2 A flowchart of a method for determining the transmission power of a walkie-talkie provided in an embodiment of the present disclosure;
[0066] Figure 3 A timing diagram of each node sending a broadcast token to form a network and then sending GPS information according to an embodiment of the present disclosure;
[0067] Figure 4 A schematic diagram of the structure of a device for determining the transmission power of a walkie-talkie provided in an embodiment of the present disclosure;
[0068] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure;
[0069] Figure 6 A schematic diagram of the structure of an intercom provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0071] In order to solve the problem in the prior art that there is no infrastructure to charge the walkie-talkie during outdoor adventures or emergency rescue, resulting in limited standby time of the walkie-talkie and inability to buy more time for rescue, the embodiment of the present disclosure provides a method for determining the transmission power of a walkie-talkie, which is applicable to a self-organizing network communication system, the self-organizing network communication system comprising: a first walkie-talkie and at least one second walkie-talkie, and a self-organizing network communication is established between the first walkie-talkie and the at least one second walkie-talkie, and each walkie-talkie stores a local routing table. The first walkie-talkie acts as a sending node, and when sending communication data, selects one from at least one second walkie-talkie as a target walkie-talkie according to the local routing table. Among them, the principle of selecting the target walkie-talkie is: select the second walkie-talkie with the smallest hop count and the largest received signal strength indication (RSSI) as the target walkie-talkie.
[0072] In addition, it should be noted that in a self-organizing network communication system, due to the need to send communication data, any walkie-talkie may send communication data as the first walkie-talkie. At this time, the other walkie-talkies all act as the second walkie-talkies, and according to the local routing table of the first walkie-talkie, one is selected from the second walkie-talkies as the target walkie-talkie.
[0073] like Figure 2 As shown, the embodiment of the present disclosure provides a method for determining the transmission power of a walkie-talkie, the method comprising:
[0074] S201, obtaining a local routing table of the first intercom, where the local routing table records at least one second intercom within a preset maximum transmission distance;
[0075] The information recorded in the local routing table includes: the second intercom within the preset maximum transmission distance of the first intercom, the number of hops from the second intercom to the preset master intercom, and the received signal strength indication (RSSI) of the communication data sent by the second intercom received by the first intercom.
[0076] The following is a further description of how each intercom obtains the local routing table.
[0077] Pre-set one of the multiple walkie-talkies as the master node, and the other walkie-talkies as participating nodes. The settings of the master node and participating nodes can be completed in the frequency writing stage. In the specific implementation, the frequency writing parameters are pre-set in each walkie-talkie that needs to be teamed. The frequency writing parameters include: source address, role, working frequency, etc. There are many ways to set the frequency writing parameters on the walkie-talkie, which can be done through the walkie-talkie frequency writing terminal, PC terminal frequency writing, or mobile phone APP terminal frequency writing, etc. For example, the frequency writing parameters corresponding to the AF walkie-talkie are shown in Table 1.
[0078] Table 1
[0079]
[0080] For example Figure 1 The intercom A in the example is the master node, and the other intercoms are participating nodes. Figure 1 For the intercom B~F in the network, after writing the frequency writing parameters to each intercom, the power of intercom A~F is turned on to start the self-organizing network mode. Each intercom sends the broadcast token in turn. For example, intercom AF sends the broadcast token (heartbeat wave) in a cycle of T in turn. The broadcast token includes: broadcast type, local address, number of hops to the specified intercom (such as: pre-specified master node) and destination address. When broadcasting the token, the destination address can be set to 0xFF. After a certain intercom sends the broadcast token, other intercoms within the coverage area of the intercom receive the broadcast token of the intercom, and obtain the partner information (which can be determined according to the intercom device identification), number of hops to a certain intercom (such as: pre-specified master node), and obtain the received signal strength indication RSSI when receiving the broadcast token, and record the above information in the local routing table. Each intercom sends the broadcast token in turn to establish its own local routing table.
[0081] In the specific implementation, based on the DMR / PDT (Digital Mobile Radio Standard / Police Digital Trunking) protocol, time slot 1 of the two time slots in a 60ms frame in the direct mode can be used to send business data (for example: location information, voice information, etc.), while time slot 2 is used to send broadcast tokens; dividing the broadcast token and business data into different time slots can improve channel resource utilization compared to existing communication protocols.
[0082] In the disclosed embodiment, the communication data (broadcast token) sent by the intercom is transmitted in a reverse channel burst, and the bytes of the reverse signaling frame in the DMR / PDT standard in the existing protocol are redefined. The type of the transmission message occupies four bits in the reverse signaling frame, wherein the type of the transmission message includes: ordinary broadcast tokens and ordinary forwarding requests, emergency forwarding requests, etc., wherein the broadcast token is mainly used to establish an ad hoc network and route update; the ordinary forwarding request is mainly used to realize the forwarding of service data. For example: the four bits of 0000 represent the broadcast token, and 0001 represents the ordinary forwarding request.
[0083] Combination Figure 3 , SLOT1 is time slot 1, SLOT2 is time slot 2. When A is talking, he sends voice in time slot 1, and sends A's broadcast token at the position of the first time slot 2. B / C / D is in the voice receiving state. After receiving A's broadcast token, they lock the time and send B's broadcast token at the position of the second time slot 2. C and D also send corresponding broadcast tokens at the third and fourth positions. E cannot receive A's voice, but receives C and D's broadcast tokens, and knows from the commands in the token that C and D can talk to the master A. At this time, E staggers one frame after D's broadcast token, that is, sends E's broadcast token in the next SLOT2, and indicates that it can be forwarded to A. F receives E's broadcast token and knows that E can reach A through forwarding. At this time, F staggers one frame after E's broadcast token, that is, sends F's broadcast token in the next SLOT2. So far, A, B, C, D, E, and F have all established local routing tables.
[0084]
[0085] See Tables 2 to 4, which are respectively exemplary displays of local routing tables of intercoms A, E, and F. After each intercom establishes a local routing table, when a certain intercom sends service data to another intercom, for example, intercom F sends service data to intercom A, such as location information, the service data sent by intercom F is forwarded to intercom A via ED.
[0086] S202, selecting one as a target intercom from at least one second intercom according to the local routing table;
[0087] As can be seen from the above content, the local routing table includes: the second intercom (partner information) within the preset maximum transmission distance of the first intercom, as well as the address of the second intercom, the number of hops from the second intercom to the preset master intercom (for example, how many hops to A), and the received signal strength indication RSSI of the communication data sent by the second intercom received by the first intercom. Specifically, according to the local routing table, selecting one as the target intercom from at least one second intercom includes: determining the minimum hop number in the local routing table; if there is only one second intercom corresponding to the minimum hop number, the second intercom corresponding to the minimum hop number is used as the target intercom; if the number of second intercoms corresponding to the minimum hop number is greater than one, then from each second intercom corresponding to the minimum hop number, the second intercom with the largest received signal strength indication RSSI is selected as the target intercom.
[0088] In addition, it should be noted that in the embodiment of the present disclosure, the target intercom is determined according to the local routing table. As the data is forwarded, the first intercom and the target intercom both change, and are not a fixed intercom. For example, by searching the local routing table, it is determined that the target intercom of the first intercom E is intercom C. After the communication data is forwarded to intercom C, intercom C becomes the first intercom at this time, and the next target intercom is determined according to the local routing table of intercom C. In addition, for the first intercom, as the positions of each intercom move, its target intercom may also change continuously. For example, at a certain moment, by searching the local routing table, it is determined that the target intercom of the first intercom E is intercom C. As the positions of each intercom move, the second intercom C is no longer within the preset maximum transmission distance of the first intercom E. When the first intercom E wants to send communication data, the target intercom with the smallest number of hops and the largest received signal strength indicator (RSSI) is selected from the local routing table of the first intercom E at this time as intercom D. Therefore, the first intercom, the second intercom, and the target intercom referred to in the embodiment of the present disclosure may refer to any intercom.
[0089] S203, obtaining a distance indication parameter between the first intercom and the target intercom; wherein the distance indication parameter is used to represent the actual distance between the first intercom and the target intercom;
[0090] For the distance indication parameter, if the GPS (Global Positioning System) signal is good, it can be the actual distance between the first intercom and the target intercom; if the GPS signal is not good, the received signal strength indication RSSI of the target intercom can be used as the distance indication parameter.
[0091] S204, determining the minimum transmission power of the first intercom according to the distance indication parameter;
[0092] In the first case, if the GPS signal is good, the distance between the first intercom and the target intercom is used as the distance indication parameter.
[0093] Each node sends a broadcast token through SLOT2 to establish an ad hoc network. After each node sends the broadcast token, if the GPS signal is good, it can send GPS information in turn to achieve mutual perception within the network, and each node can know its own location information.
[0094] Specifically, when the GPS signal is good, it is determined that the GPS information of the target intercom can be received; the first location information of the target intercom is obtained from the GPS information; the second location information of the first intercom is obtained; the actual distance between the first intercom and the target intercom is calculated based on the first location information and the second location information, and the actual distance is used as the distance indication parameter. At this time, the minimum transmission power of the first intercom is determined according to the distance indication parameter, including: obtaining the preset maximum transmission power and the preset maximum transmission distance of the first intercom; calculating the ratio of the actual distance to the preset maximum transmission distance; calculating the power required to increase when the first intercom sends communication data to the target intercom at the actual distance based on the relationship between the ratio and the power-distance growth coefficient; calculating the sum of the preset maximum transmission power and the increased power to obtain the minimum transmission power of the first intercom.
[0095] In order to facilitate understanding of the above method of determining the minimum transmission power, an example is given, where the mainstream 5W walkie-talkie on the market can stably transmit a distance of 4km in an open area. The preset maximum transmission power of the walkie-talkie is 5W, that is, 5000mW, and the preset maximum transmission distance is 4km, that is, 4000m. If the actual distance between the two nodes is 40m, then the ratio of the actual distance to the preset maximum transmission distance is 1 / 100. For every doubling of the radio wave transmission distance, the transmission power needs to increase by 6dB. The transmission power that needs to be increased is 20lg(1 / 100)=-40db; the transmission power of the walkie-talkie is 10lg5000=37dB, so the transmission power required for the two nodes 40m apart is 37-40=-3dB (0.5mW).
[0096] In addition, in order to simplify the calculation, the minimum transmission power corresponding to the actual distance may be determined according to a distance-transmission power correspondence list between the calculated actual distance and the minimum transmission power.
[0097] In a specific implementation, a distance-transmission power correspondence list between the actual distance and the minimum transmission power may be pre-stored, and then the minimum transmission power corresponding to the actual distance may be determined by looking up the table.
[0098] In the second case, if the GPS signal is not good, the received signal strength indication RSSI of the target walkie-talkie is used as the distance indication parameter.
[0099] In a specific implementation, if it is determined that the GPS information of the target intercom is not received, the received signal strength indication of the target intercom is read from the local routing table; and the received signal strength indication is used as the distance indication parameter.
[0100] In specific implementation, a list of correspondences between RSSI and transmit power can be pre-stored. For RSSI signals, the greater the distance, the lower the RSSI strength (the lower the sensitivity). Different transmit power levels can be divided according to the size of RSSI. For example, the maximum transmit power of a walkie-talkie is obtained, and the maximum value is divided into multiple levels, each level corresponding to a minimum transmit power. For example, the maximum transmit power of a walkie-talkie is 5W, and the sensitivity requirement is -120dB. 5W is divided into ten levels, such as: the minimum transmit power corresponding to -50dB is 0.5W, the minimum transmit power corresponding to -60dB is 1.2W, and the minimum transmit power corresponding to -120dB is 5W.
[0101] In the disclosed embodiment, the GPS information or RSSI information of the ad hoc network itself is used to dynamically adjust the transmission power. No map information is required, which is simpler. Regardless of whether the GPS signal is good or not, the transmission power can be dynamically adjusted, which can effectively extend the standby time and buy time for saving lives in outdoor adventures and emergency rescue environments.
[0102] S205: Based on the minimum transmission power, determine the transmission power of the first intercom when sending communication data to the target intercom.
[0103] Specifically, the minimum transmission power can be used as the transmission power when the first intercom sends communication data to the target intercom; or, based on the preset maximum transmission power, a plurality of transmission power gears are divided, wherein each transmission power gear corresponds to a preset transmission power, and the target gear is selected from them. Specifically, from each transmission power gear, a gear with a preset transmission power greater than the minimum transmission power is selected as the target gear, and the preset transmission power corresponding to the target gear is used as the transmission power when the first intercom sends communication data to the target intercom. After determining the minimum transmission power, this method selects a gear greater than the minimum transmission power to ensure the stability of communication. Preferably, the lowest gear greater than the minimum transmission power is selected as the target gear, which can minimize the transmission power on the basis of meeting the demand for sending communication data, so as to maximize the working time of the intercom and buy more time for rescue.
[0104] For example, when the minimum transmission power is determined to be 0.5mW, 1mW transmission can be selected to ensure stability. The transmission power is reduced by 1 / 5000 compared to 5W, which is of decisive significance for walkie-talkie products.
[0105] In the disclosed embodiment, a target intercom is selected for communication according to the local routing table of the first intercom, a distance indication parameter between the first intercom and the target intercom is obtained, a minimum transmission power is determined according to the distance indication parameter, and a transmission power when the first intercom sends communication data to the target intercom is determined based on the minimum transmission power. The transmission power is determined according to the distance indication parameter between the first intercom and the target intercom, and the minimum transmission power can be adaptively determined according to the distance indication parameter between the two, instead of sending communication data according to the default transmission power each time, which can effectively reduce the transmission power, thereby extending the standby time and buying more time for rescue.
[0106] Based on the same concept, an embodiment of the present disclosure provides a device for determining transmit power. The specific implementation of the device can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Figure 4 As shown, the device mainly includes:
[0107] A first acquisition module 401 is used to acquire a local routing table of the first intercom, wherein the local routing table records at least one second intercom within a preset maximum transmission distance;
[0108] A selection module 402, configured to select one of the at least one second intercom as a target intercom according to a local routing table;
[0109] The second acquisition module 403 is used to acquire a distance indication parameter between the first intercom and the target intercom; wherein the distance indication parameter is used to represent the actual distance between the first intercom and the target intercom;
[0110] A first determination module 404, configured to determine a minimum transmission power of the first intercom according to the distance indication parameter;
[0111] The second determination module 405 is used to determine the transmission power when the first interphone sends communication data to the target interphone based on the minimum transmission power.
[0112] In a specific embodiment, the selection module 402 is used to compare the number of hops from each second intercom to the preset master intercom when the local routing table also records the number of hops from each second intercom to the preset master intercom, and determine the second intercom corresponding to the minimum number of hops as the target intercom.
[0113] The selection module 402 is used for selecting the second intercom corresponding to the minimum hop number as the target intercom if there is only one second intercom corresponding to the minimum hop number; if the number of second intercoms corresponding to the minimum hop number is greater than one, selecting the second intercom with the largest received signal strength indication from the second intercoms corresponding to the minimum hop number as the target intercom.
[0114] In a specific embodiment, the second acquisition module 403 is used to determine the GPS information received from the target walkie-talkie; obtain the first location information of the target walkie-talkie from the GPS information; obtain the second location information of the first walkie-talkie; calculate the actual distance between the first walkie-talkie and the target walkie-talkie based on the first location information and the second location information, and use the actual distance as the distance indication parameter.
[0115] The first determination module 404 is used to obtain the preset maximum transmission power and the preset maximum transmission distance of the first walkie-talkie; calculate the ratio of the actual distance to the preset maximum transmission distance; calculate the power required to increase when the first walkie-talkie sends communication data to the target walkie-talkie at the actual distance based on the relationship between the ratio and the power-distance growth coefficient; calculate the sum of the preset maximum transmission power and the increased power to obtain the minimum transmission power of the first walkie-talkie.
[0116] Alternatively, the first determining module 404 is configured to determine the minimum transmit power corresponding to the actual distance according to a distance-transmit power correspondence list between the actual distance and the minimum transmit power.
[0117] In a specific embodiment, the second acquisition module 403 is used to determine that the GPS information of the target intercom is not received; read the received signal strength indication of the target intercom from the local routing table; and use the received signal strength indication as a distance indication parameter.
[0118] The first determination module 404 is configured to determine the transmit power corresponding to the received signal strength according to a received signal strength indication-transmit power correspondence list between the received signal strength indication and the transmit power, and use the transmit power as the minimum transmit power.
[0119] In a specific embodiment, the second determination module 405 is used to use the minimum transmission power as the transmission power when the first walkie-talkie sends communication data to the target walkie-talkie; or, obtain multiple transmission power gears divided based on the preset maximum transmission power; wherein each transmission power gear corresponds to a preset transmission power; from each transmission power gear, select a transmission power gear whose preset transmission power is greater than the minimum transmission power as the target gear, and use the preset transmission power corresponding to the target gear as the transmission power when the first walkie-talkie sends communication data to the target walkie-talkie.
[0120] Based on the same concept, an electronic device is also provided in the embodiment of the present disclosure, such as Figure 5 As shown, the electronic device mainly includes: a processor 501, a memory 502 and a communication bus 503, wherein the processor 501 and the memory 502 communicate with each other through the communication bus 503. The memory 502 stores a program executable by the processor 501, and the processor 501 executes the program stored in the memory 502 to implement the following steps:
[0121] Acquire a local routing table of the first intercom, wherein the local routing table records at least one second intercom within a preset maximum transmission distance;
[0122] selecting, according to the local routing table, one of the at least one second intercom as a target intercom;
[0123] Obtaining a distance indication parameter between the first intercom and the target intercom; wherein the distance indication parameter is used to characterize the actual distance between the first intercom and the target intercom;
[0124] Determining the minimum transmission power of the first intercom according to the distance indication parameter;
[0125] Based on the minimum transmission power, the transmission power of the first intercom when sending communication data to the target intercom is determined.
[0126] The electronic device mentioned above may be the first intercom itself.
[0127] The communication bus 503 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 503 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0128] The memory 502 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor 501 .
[0129] The above-mentioned processor 501 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0130] Based on the same technical concept, the embodiment of the present disclosure also provides a walkie-talkie. The specific implementation of the walkie-talkie can refer to the description of the method embodiment part, and the repeated parts will not be repeated. Figure 6 As shown, the intercom mainly includes:
[0131] A first acquisition unit 601 is used to acquire a local routing table of the intercom, where the local routing table records at least one second intercom within a preset maximum transmission distance;
[0132] A selection unit 602 is used to select one of the at least one second intercom as a target intercom according to the local routing table;
[0133] The second acquisition unit 603 is used to acquire a distance indication parameter between the intercom and the target intercom; wherein the distance indication parameter is used to represent the actual distance between the intercom and the target intercom;
[0134] A first determining unit 604 is used to determine the minimum transmission power of the intercom according to the distance indication parameter;
[0135] The second determining unit 605 is configured to determine, based on the minimum transmit power, the transmit power at which the intercom sends communication data to the target intercom.
[0136] The intercom, the second intercom and the target intercom referred to in the embodiments of the present disclosure may refer to any intercom.
[0137] In the disclosed embodiment, the transmission power is determined according to the distance indication parameter between the present walkie-talkie and the target walkie-talkie. The minimum transmission power can be adaptively determined according to the distance indication parameter between the two, instead of sending communication data according to the default transmission power each time. The transmission power can be effectively reduced, thereby extending the standby time and buying more time for rescue.
[0138] Optionally, the selection unit 602 is used to record the number of hops from each second intercom to the preset master intercom in the local routing table, compare the number of hops from each second intercom to the preset master intercom, and determine the second intercom corresponding to the minimum number of hops as the target intercom.
[0139] Optionally, the selection unit 602 is used to select the second intercom corresponding to the minimum hop number as the target intercom when there is only one second intercom corresponding to the minimum hop number; if the number of second intercoms corresponding to the minimum hop number is greater than one, select the second intercom with the largest received signal strength indication as the target intercom from the second intercoms corresponding to the minimum hop number.
[0140] Optionally, the second acquisition unit 603 is used to determine the received GPS information of the target walkie-talkie; obtain the first location information of the target walkie-talkie from the GPS information; obtain the second location information of the current walkie-talkie; calculate the actual distance between the current walkie-talkie and the target walkie-talkie based on the first location information and the second location information, and use the actual distance as the distance indication parameter.
[0141] Optionally, the first determination unit 604 is used to obtain the preset maximum transmission power and the preset maximum transmission distance of the walkie-talkie; calculate the ratio of the actual distance to the preset maximum transmission distance; calculate the additional power required for the walkie-talkie to send communication data to the target walkie-talkie at the actual distance based on the relationship between the ratio and the power-distance growth coefficient; calculate the sum of the preset maximum transmission power and the increased power to obtain the minimum transmission power of the walkie-talkie.
[0142] Optionally, the first determining unit 604 is configured to determine the minimum transmit power corresponding to the actual distance according to a distance-transmit power correspondence list between the actual distance and the minimum transmit power.
[0143] Optionally, the second acquisition unit 603 is used to determine that the GPS information of the target walkie-talkie is not received; read the received signal strength indication of the target walkie-talkie from the local routing table; and use the received signal strength indication as the distance indication parameter.
[0144] Optionally, the first determination unit 604 is used to determine the transmit power corresponding to the received signal strength according to a received signal strength indication-transmit power correspondence list between the received signal strength indication and the transmit power, and use the transmit power as the minimum transmit power.
[0145] Optionally, the second determination unit 605 is used to use the minimum transmission power as the transmission power when the present walkie-talkie sends communication data to the target walkie-talkie; or, obtain multiple transmission power gears divided based on a preset maximum transmission power; wherein each transmission power gear corresponds to a preset transmission power; from each transmission power gear, select a transmission power gear whose preset transmission power is greater than the minimum transmission power as the target gear, and use the preset transmission power corresponding to the target gear as the transmission power when the present walkie-talkie sends communication data to the target walkie-talkie.
[0146] In another embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes a method for determining transmission power described in the above embodiment.
[0147] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape, etc.), an optical medium (such as a DVD) or a semiconductor medium (such as a solid-state hard disk), etc.
[0148] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0149] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for determining transmission power, characterized in that: The method comprises: Acquire a local routing table of the first intercom, wherein the local routing table records at least one second intercom within a preset maximum transmission distance; Selecting one of the at least one second intercom as a target intercom according to the local routing table; Acquire a distance indication parameter between the first intercom and the target intercom; wherein the distance indication parameter is used to characterize the actual distance between the first intercom and the target intercom; Determining a minimum transmission power of the first intercom according to the distance indication parameter; Based on the minimum transmission power, determining the transmission power when the first intercom sends communication data to the target intercom; The obtaining of the distance indication parameter between the first intercom and the target intercom includes: Determining that GPS information of the target intercom is received; Acquire the first location information of the target intercom from the GPS information; Acquire second location information of the first intercom; Calculate the actual distance between the first intercom and the target intercom according to the first location information and the second location information, and use the actual distance as the distance indication parameter; The determining the minimum transmission power of the first intercom according to the distance indication parameter includes: Obtaining a preset maximum transmission power and a preset maximum transmission distance of the first intercom; Calculating a ratio of the actual distance to the preset maximum transmission distance; Calculating the power required to be increased when the first intercom sends communication data to the target intercom at the actual distance according to the relationship between the ratio and the power-distance growth coefficient; Calculating the sum of the preset maximum transmission power and the increased power to obtain the minimum transmission power of the first intercom; The step of selecting one of the at least one second intercom as the target intercom according to the local routing table includes: The local routing table also records the number of hops from each of the second intercoms to the preset master intercom; The number of hops from each of the second intercoms to the preset master intercom is compared, and the second intercom corresponding to the minimum number of hops is determined as the target intercom.
2. The method for determining the transmission power according to claim 1, characterized in that: The step of selecting one of the at least one second intercom as the target intercom according to the local routing table includes: If there is only one second intercom corresponding to the minimum number of hops, the second intercom corresponding to the minimum number of hops is used as the target intercom; If the number of second intercoms corresponding to the minimum number of hops is greater than one, a second intercom with the largest received signal strength indicator is selected from the second intercoms corresponding to the minimum number of hops as the target intercom.
3. The method for determining the transmission power according to claim 1, characterized in that: The determining the minimum transmission power of the first intercom according to the distance indication parameter includes: The minimum transmit power corresponding to the actual distance is determined according to a distance-transmit power correspondence list between the actual distance and the minimum transmit power.
4. The method for determining the transmission power according to any one of claims 1 to 2, characterized in that: The obtaining of the distance indication parameter between the first intercom and the target intercom includes: Determining that the GPS information of the target intercom is not received; The received signal strength indication of the target intercom is read from the local routing table; and the received signal strength indication is used as the distance indication parameter.
5. The method for determining the transmission power according to claim 4, characterized in that: The determining the minimum transmission power of the first intercom according to the distance indication parameter includes: According to a received signal strength indication-transmit power correspondence list between received signal strength indication and transmit power, the transmit power corresponding to the received signal strength is determined, and the transmit power is used as the minimum transmit power.
6. The method for determining the transmission power according to any one of claims 1 to 2, characterized in that: The determining, based on the minimum transmission power, the transmission power when the first interphone sends communication data to the target interphone includes: Using the minimum transmission power as the transmission power when the first intercom sends communication data to the target intercom; Alternatively, obtain multiple transmission power gears divided based on a preset maximum transmission power; wherein each transmission power gear corresponds to a preset transmission power; from each transmission power gear, select a transmission power gear whose preset transmission power is greater than the minimum transmission power as the target gear, and use the preset transmission power corresponding to the target gear as the transmission power when the first walkie-talkie sends communication data to the target walkie-talkie.
7. A walkie-talkie, characterized in that: include: A first acquisition unit, used to acquire a local routing table of the intercom, wherein the local routing table records at least one second intercom within a preset maximum transmission distance; A selection unit, configured to select one of the at least one second intercom as a target intercom according to the local routing table; A second acquisition unit is used to acquire a distance indication parameter between the intercom and the target intercom; wherein the distance indication parameter is used to characterize the actual distance between the intercom and the target intercom; A first determining unit, configured to determine a minimum transmission power of the intercom according to the distance indication parameter; A second determining unit, configured to determine, based on the minimum transmit power, a transmit power when the intercom sends communication data to the target intercom; The obtaining of the distance indication parameter between the intercom and the target intercom includes: Determining that GPS information of the target intercom is received; Acquire the first location information of the target intercom from the GPS information; Obtaining second location information of the intercom; Calculate the actual distance between the present intercom and the target intercom according to the first location information and the second location information, and use the actual distance as the distance indication parameter; The determining the minimum transmission power of the intercom according to the distance indication parameter includes: Obtaining the preset maximum transmission power and the preset maximum transmission distance of the walkie-talkie; Calculating a ratio of the actual distance to the preset maximum transmission distance; Calculating the power required to be increased when the intercom sends communication data to the target intercom at the actual distance according to the relationship between the ratio and the power-distance growth coefficient; Calculating the sum of the preset maximum transmission power and the increased power to obtain the minimum transmission power of the intercom; The selection unit is used to compare the number of hops from each second intercom to the preset master intercom when the number of hops from each second intercom to the preset master intercom is also recorded in the local routing table, and the second intercom corresponding to the minimum number of hops is determined as the target intercom.
8. The intercom according to claim 7, characterized in that: The selection unit is used for selecting the second intercom corresponding to the minimum hop number as the target intercom when there is only one second intercom corresponding to the minimum hop number; if the number of second intercoms corresponding to the minimum hop number is greater than one, selecting the second intercom with the largest received signal strength indication from the second intercoms corresponding to the minimum hop number as the target intercom.
9. The intercom according to claim 7, characterized in that: The first determining unit is used to determine the minimum transmit power corresponding to the actual distance according to a distance-transmit power correspondence list between the actual distance and the minimum transmit power.
10. The intercom according to any one of claims 7 to 8, characterized in that: The second acquisition unit is used to determine that the GPS information of the target intercom is not received; read the received signal strength indication of the target intercom from the local routing table; and use the received signal strength indication as the distance indication parameter.
11. The intercom according to claim 10, characterized in that: The first determination unit is used to determine the transmit power corresponding to the received signal strength according to a received signal strength indication-transmit power correspondence list between the received signal strength indication and the transmit power, and use the transmit power as the minimum transmit power.
12. The intercom according to any one of claims 7 to 8, characterized in that: The second determination unit is used to use the minimum transmission power as the transmission power when the present intercom sends communication data to the target intercom; or, obtain a plurality of transmission power gears divided based on a preset maximum transmission power; wherein each transmission power gear corresponds to a preset transmission power; from each transmission power gear, select a transmission power gear whose preset transmission power is greater than the minimum transmission power as the target gear, and use the preset transmission power corresponding to the target gear as the transmission power when the present intercom sends communication data to the target intercom.
13. A device for determining transmission power, characterized in that: The device comprises: A first acquisition module, used to acquire a local routing table of the first intercom, wherein the local routing table records at least one second intercom within a preset maximum transmission distance; A selection module, configured to select one of the at least one second intercom as a target intercom according to the local routing table; A second acquisition module, used to acquire a distance indication parameter between the first intercom and the target intercom; wherein the distance indication parameter is used to characterize the actual distance between the first intercom and the target intercom; A first determining module, configured to determine a minimum transmission power of the first intercom according to the distance indication parameter; A second determination module is used to determine the transmission power when the first intercom sends communication data to the target intercom based on the minimum transmission power; The obtaining of the distance indication parameter between the first intercom and the target intercom includes: Determining that GPS information of the target intercom is received; Acquire the first location information of the target intercom from the GPS information; Acquire second location information of the first intercom; Calculate the actual distance between the first intercom and the target intercom according to the first location information and the second location information, and use the actual distance as the distance indication parameter; The determining the minimum transmission power of the first intercom according to the distance indication parameter includes: Obtaining a preset maximum transmission power and a preset maximum transmission distance of the first intercom; Calculating a ratio of the actual distance to the preset maximum transmission distance; Calculating the power required to be increased when the first intercom sends communication data to the target intercom at the actual distance according to the relationship between the ratio and the power-distance growth coefficient; Calculating the sum of the preset maximum transmission power and the increased power to obtain the minimum transmission power of the first intercom; The step of selecting one of the at least one second intercom as the target intercom according to the local routing table includes: The local routing table also records the number of hops from each of the second intercoms to the preset master intercom; The number of hops from each of the second intercoms to the preset master intercom is compared, and the second intercom corresponding to the minimum number of hops is determined as the target intercom.
14. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the method for determining the transmission power according to any one of claims 1 to 6.
15. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for determining the transmission power according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Cross-layer and bi-directional routing method based on hop number and energy in wireless sensor network
CN101562861A
Transmission power adjustment method and user equipment
CN105657656A
Method and device for controlling interphone to transmit information by means of intelligent terminal
CN106953656A
Method, device and system of adjusting transmit power automatically
CN107222912A
Digital interphone transmitting power optimization and adjustment system and method
CN109526046A
