Method and device for determining transmitting power, interphone, equipment and storage medium

文档序号:142822 发布日期:2021-10-22 浏览:33次 中文

阅读说明:本技术 发射功率的确定方法、装置、对讲机、设备及存储介质 (Method and device for determining transmitting power, interphone, equipment and storage medium ) 是由 赵蕊 于 2021-07-26 设计创作,主要内容包括:本公开涉及一种发射功率的确定方法、装置、对讲机、设备及存储介质,其中,所述方法包括:获取第一对讲机的本地路由表,所述本地路由表记录有预设最大发射距离内的至少一个第二对讲机;根据本地路由表,从至少一个第二对讲机中,选取一个作为目标对讲机;获取第一对讲机与目标对讲机之间的距离指示参数;其中,距离指示参数用于表征第一对讲机与目标对讲机之间的实际距离大小;根据距离指示参数确定第一对讲机的最小发射功率;基于最小发射功率,确定第一对讲机向目标对讲机发送通信数据时的发射功率。本公开用以解决现有技术中对讲机在户外探险或紧急救援时,没有基础设施供电,导致待机时长无法有效延长的问题。(The disclosure relates to a method and a device for determining transmission power, an interphone, equipment and a storage medium, wherein the method comprises the following steps: acquiring a local routing list of a first interphone, wherein the local routing list records at least one second interphone within a preset maximum transmitting distance; selecting one of the at least one second interphone as a target interphone according to the local routing table; acquiring a distance indication parameter between a first interphone and a target interphone; the distance indication parameter is used for representing the actual distance between the first interphone and the target interphone; determining the minimum transmitting power of the first interphone according to the distance indicating parameter; and determining the transmitting power of the first interphone when the first interphone transmits the communication data to the target interphone based on the minimum transmitting power. The problem that the standby time cannot be effectively prolonged due to the fact that no infrastructure is powered when an interphone is used for outdoor exploration or emergency rescue in the prior art is solved.)

1. A method for determining transmit power, the method comprising:

acquiring a local routing list of a first interphone, wherein the local routing list records at least one second interphone within a preset maximum transmitting distance;

selecting one of the at least one second interphone as a target interphone according to the local routing table;

acquiring a distance indicating parameter between the first interphone and the target interphone; the distance indicating parameter is used for representing the actual distance between the first interphone and the target interphone;

determining the minimum transmitting power of the first interphone according to the distance indicating parameter;

and determining the transmitting power of the first interphone when the first interphone sends communication data to the target interphone based on the minimum transmitting power.

2. The method for determining the transmission power according to claim 1, wherein the selecting one of the at least one second intercom as the target intercom according to the local routing table comprises:

the local routing table also records the hop count of each second interphone reaching a preset master control interphone;

and comparing the hop count of each second interphone reaching a preset master control interphone, and determining the second interphone corresponding to the minimum hop count as a target interphone.

3. The method for determining the transmission power according to claim 2, wherein the selecting one of the at least one second intercom as the target intercom according to the local routing table comprises:

if there is only one second interphone corresponding to the minimum hop count, taking the second interphone corresponding to the minimum hop count as the target interphone;

and if the number of the second interphones corresponding to the minimum hop count is more than one, selecting the second interphone with the maximum received signal strength indication as the target interphone from the second interphones corresponding to the minimum hop count.

4. The method for determining the transmitting power according to any one of claims 1 to 3, wherein the obtaining of the parameter indicative of the distance between the first intercom and the target intercom includes:

judging that the GPS information of the target interphone is received;

acquiring first position information of the target interphone from the GPS information;

acquiring second position information of the first interphone;

and calculating the actual distance between the first interphone and the target interphone according to the first position information and the second position information, and taking the actual distance as the distance indication parameter.

5. The method for determining the transmission power according to claim 4, wherein the determining the minimum transmission power of the first intercom according to the distance indicating parameter includes:

acquiring a preset maximum transmitting power and a preset maximum transmitting distance of the first interphone;

calculating the ratio of the actual distance to the preset maximum transmitting distance;

calculating the power required to be increased when the first interphone sends communication data to the target interphone under the actual distance according to the relation between the ratio and the power-distance increasing coefficient;

and calculating the sum of the preset maximum transmitting power and the increased power to obtain the minimum transmitting power of the first interphone.

6. The method for determining the transmission power according to claim 4, wherein the determining the minimum transmission power of the first intercom according to the distance indicating parameter includes:

and determining the minimum transmitting power corresponding to the actual distance according to a distance-transmitting power corresponding relation list between the actual distance and the minimum transmitting power.

7. The method for determining the transmitting power according to any one of claims 1 to 3, wherein the obtaining of the parameter indicative of the distance between the first intercom and the target intercom includes:

judging that the GPS information of the target interphone is not received;

reading a received signal strength indication of the target interphone from the local routing table; using the received signal strength indication as the distance indication parameter.

8. The method for determining the transmission power according to claim 7, wherein the determining the minimum transmission power of the first intercom according to the distance indicating parameter includes:

and determining the transmitting power corresponding to the received signal strength according to a received signal strength indication-transmitting power corresponding relation list between the received signal strength indication and the transmitting power, and taking the transmitting power as the minimum transmitting power.

9. The method for determining the transmission power according to any one of claims 1 to 3, wherein the determining the transmission power when the first interphone sends the communication data to the target interphone based on the minimum transmission power comprises:

the minimum transmitting power is used as the transmitting power when the first interphone sends communication data to the target interphone;

or acquiring a plurality of transmission power gears divided based on the preset maximum transmission power; each transmission power gear corresponds to a preset transmission power; selecting a transmission power gear with preset transmission power larger than minimum transmission power from all transmission power gears as a target gear, and using the preset transmission power corresponding to the target gear as the transmission power when the first interphone sends communication data to the target interphone.

10. An intercom, comprising:

the system comprises a first acquisition unit, a second acquisition unit and a first transmission unit, wherein the first acquisition unit is used for acquiring a local routing list of the interphone, and the local routing list records at least one second interphone within a preset maximum transmission distance;

the selecting unit is used for selecting one of the at least one second interphone as a target interphone according to the local routing table;

the second acquisition unit is used for acquiring a distance indication parameter between the interphone and the target interphone; the distance indicating parameter is used for representing the actual distance between the interphone and the target interphone;

the first determining unit is used for determining the minimum transmitting power of the interphone according to the distance indicating parameter;

and the second determining unit is used for determining the transmitting power when the interphone sends the communication data to the target interphone based on the minimum transmitting power.

11. The interphone of claim 10, wherein the selecting unit is configured to compare hop counts of each second interphone reaching a preset master interphone when the local routing table further records hop counts of each second interphone reaching the preset master interphone, and determine the second interphone corresponding to the minimum hop count as the target interphone.

12. The intercom of claim 11, wherein the selecting unit is configured to, when there is one or only one second intercom corresponding to the minimum hop count, take the second intercom corresponding to the minimum hop count as the target intercom; and if the number of the second interphones corresponding to the minimum hop count is more than one, selecting the second interphone with the maximum received signal strength indication as the target interphone from the second interphones corresponding to the minimum hop count.

13. The interphone according to any one of claims 10 to 12, wherein the second obtaining unit is configured to determine that the GPS information of the target interphone is received; acquiring first position information of the target interphone from the GPS information; acquiring second position information of the interphone; and calculating the actual distance between the interphone and the target interphone according to the first position information and the second position information, and taking the actual distance as the distance indication parameter.

14. The interphone according to claim 13, wherein the first determining unit is configured to obtain a preset maximum transmitting power and a preset maximum transmitting distance of the interphone; calculating the ratio of the actual distance to the preset maximum transmitting distance; calculating the power required to be increased when the interphone sends communication data to the target interphone under the actual distance according to the relation between the ratio and the power-distance increasing coefficient; and calculating the sum of the preset maximum transmitting power and the increased power to obtain the minimum transmitting power of the interphone.

15. The interphone according to claim 13, wherein the first determining unit is configured to determine the minimum transmitting power corresponding to the actual distance according to a distance-transmitting power correspondence list between the actual distance and the minimum transmitting power.

16. The interphone according to any one of claims 10 to 12, wherein the second obtaining unit is configured to determine that the GPS information of the target interphone is not received; reading a received signal strength indication of the target interphone from the local routing table; using the received signal strength indication as the distance indication parameter.

17. The intercom of claim 16, wherein the first determining unit is configured to determine the transmitting power corresponding to the received signal strength according to a received signal strength indication-transmitting power correspondence list between the received signal strength indication and the transmitting power, and use the transmitting power as the minimum transmitting power.

18. The interphone according to any of the claims 10 to 12, wherein the second determining unit is configured to use the minimum transmitting power as a transmitting power when the interphone transmits communication data to the target interphone; or acquiring a plurality of transmission power gears divided based on the preset maximum transmission power; each transmission power gear corresponds to a preset transmission power; selecting a transmission power gear with preset transmission power larger than minimum transmission power from all transmission power gears as a target gear, and using the preset transmission power corresponding to the target gear as the transmission power when the interphone sends communication data to the target interphone.

19. An apparatus for determining transmit power, the apparatus comprising:

the first obtaining module is used for obtaining a local routing table of the first interphone, and the local routing table records at least one second interphone within a preset maximum transmitting distance;

the selecting module is used for selecting one of the at least one second interphone as a target interphone according to the local routing table;

the second acquisition module is used for acquiring a distance indication parameter between the first interphone and the target interphone; the distance indicating parameter is used for representing the actual distance between the first interphone and the target interphone;

the first determining module is used for determining the minimum transmitting power of the first interphone according to the distance indicating parameter;

and the second determining module is used for determining the transmitting power when the first interphone sends the communication data to the target interphone based on the minimum transmitting power.

20. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;

the memory for storing a computer program;

the processor is used for executing the program stored in the memory and implementing the method for determining the transmission power as claimed in any one of claims 1 to 9.

21. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the method for determining transmit power of any of claims 1-9.

Technical Field

The present disclosure relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for determining transmit power, an intercom, a device, and a storage medium.

Background

The interphone is widely applied to outdoor exploration or emergency rescue. In actual use, the interphone is powered by a battery, but the electric quantity of the battery is limited, and no infrastructure can charge the interphone during outdoor exploration or emergency rescue. Therefore, in the outdoor exploration or emergency rescue process, the standby time is prolonged to the maximum extent, and more time is won for rescue.

Disclosure of Invention

In the related art, the interphone adopts the default transmitting power, the default transmitting power can ensure that the target interphone can stably receive within the preset distance, and the default transmitting power is adopted when the target interphone sends communication data each time. The inventor finds that if the distance between the interphone sending the communication data and the target interphone is smaller than the preset distance, namely the distance between the interphone and the target interphone is close to the preset distance, the target interphone can be guaranteed to successfully receive the communication data by using smaller transmitting power actually, if the communication data are still sent according to the default transmitting power, the power waste is caused, and more time is not favored for rescue to prolong the standby time to the maximum extent.

Based on the technical problem, the present disclosure provides a method and an apparatus for determining a transmission power, an intercom, a device and a storage medium, so as to solve the problem that the standby time cannot be effectively prolonged because no infrastructure is powered when the intercom in the prior art is in outdoor exploration or emergency rescue.

In a first aspect, an embodiment of the present disclosure provides a method for determining transmit power, where the method includes:

acquiring a local routing list of a first interphone, wherein the local routing list records at least one second interphone within a preset maximum transmitting distance;

selecting one of the at least one second interphone as a target interphone according to the local routing table;

acquiring a distance indicating parameter between the first interphone and the target interphone; the distance indicating parameter is used for representing the actual distance between the first interphone and the target interphone;

determining the minimum transmitting power of the first interphone according to the distance indicating parameter;

and determining the transmitting power of the first interphone when the first interphone sends communication data to the target interphone based on the minimum transmitting power.

Optionally, the selecting one of the at least one second intercom as a target intercom according to the local routing table includes:

the local routing table also records the hop count of each second interphone reaching a preset master control interphone;

and comparing the hop count of each second interphone reaching a preset master control interphone, and determining the second interphone corresponding to the minimum hop count as a target interphone.

Optionally, the selecting one of the at least one second intercom as a target intercom according to the local routing table includes:

if there is only one second interphone corresponding to the minimum hop count, taking the second interphone corresponding to the minimum hop count as the target interphone;

and if the number of the second interphones corresponding to the minimum hop count is more than one, selecting the second interphone with the maximum received signal strength indication as the target interphone from the second interphones corresponding to the minimum hop count.

Optionally, the obtaining of the distance indication parameter between the first interphone and the target interphone includes:

judging that the GPS information of the target interphone is received;

acquiring first position information of the target interphone from the GPS information;

acquiring second position information of the first interphone;

and calculating the actual distance between the first interphone and the target interphone according to the first position information and the second position information, and taking the actual distance as the distance indication parameter.

Optionally, the determining the minimum transmitting power of the first intercom according to the distance indicating parameter includes:

acquiring a preset maximum transmitting power and a preset maximum transmitting distance of the first interphone;

calculating the ratio of the actual distance to the preset maximum transmitting distance;

calculating the power required to be increased when the first interphone sends communication data to the target interphone under the actual distance according to the relation between the ratio and the power-distance increasing coefficient;

and calculating the sum of the preset maximum transmitting power and the increased power to obtain the minimum transmitting power of the first interphone.

Optionally, the determining the minimum transmitting power of the first intercom according to the distance indicating parameter includes:

and determining the minimum transmitting power corresponding to the actual distance according to a distance-transmitting power corresponding relation list between the actual distance and the minimum transmitting power.

Optionally, the obtaining of the distance indication parameter between the first interphone and the target interphone includes:

judging that the GPS information of the target interphone is not received;

reading a received signal strength indication of the target interphone from the local routing table; using the received signal strength indication as the distance indication parameter.

Optionally, the determining the minimum transmitting power of the first intercom according to the distance indicating parameter includes:

and determining the transmitting power corresponding to the received signal strength according to a received signal strength indication-transmitting power corresponding relation list between the received signal strength indication and the transmitting power, and taking the transmitting power as the minimum transmitting power.

Optionally, the determining, based on the minimum transmission power, the transmission power when the first intercom sends communication data to the target intercom includes:

the minimum transmitting power is used as the transmitting power when the first interphone sends communication data to the target interphone;

or acquiring a plurality of transmission power gears divided based on the preset maximum transmission power; each transmission power gear corresponds to a preset transmission power; selecting a transmission power gear with preset transmission power larger than minimum transmission power from all transmission power gears as a target gear, and using the preset transmission power corresponding to the target gear as the transmission power when the first interphone sends communication data to the target interphone.

In a second aspect, an embodiment of the present disclosure provides an intercom, including:

the system comprises a first acquisition unit, a second acquisition unit and a first transmission unit, wherein the first acquisition unit is used for acquiring a local routing list of the interphone, and the local routing list records at least one second interphone within a preset maximum transmission distance;

the selecting unit is used for selecting one of the at least one second interphone as a target interphone according to the local routing table;

the second acquisition unit is used for acquiring a distance indication parameter between the interphone and the target interphone; the distance indicating parameter is used for representing the actual distance between the interphone and the target interphone;

the first determining unit is used for determining the minimum transmitting power of the interphone according to the distance indicating parameter;

and the second determining unit is used for determining the transmitting power when the interphone sends the communication data to the target interphone based on the minimum transmitting power.

Optionally, the selecting unit is configured to, when the local routing table further records the hop count of each second intercom reaching a preset main control intercom, compare the hop count of each second intercom reaching the preset main control intercom, and determine the second intercom corresponding to the minimum hop count as the target intercom.

Optionally, the selecting unit is configured to, when there is only one second interphone corresponding to the minimum hop count, use the second interphone corresponding to the minimum hop count as the target interphone; and if the number of the second interphones corresponding to the minimum hop count is more than one, selecting the second interphone with the maximum received signal strength indication as the target interphone from the second interphones corresponding to the minimum hop count.

Optionally, the second obtaining unit is configured to determine that the GPS information of the target intercom is received; acquiring first position information of the target interphone from the GPS information; acquiring second position information of the interphone; and calculating the actual distance between the interphone and the target interphone according to the first position information and the second position information, and taking the actual distance as the distance indication parameter.

Optionally, the first determining unit is configured to obtain a preset maximum transmitting power and a preset maximum transmitting distance of the intercom; calculating the ratio of the actual distance to the preset maximum transmitting distance; calculating the power required to be increased when the interphone sends communication data to the target interphone under the actual distance according to the relation between the ratio and the power-distance increasing coefficient; and calculating the sum of the preset maximum transmitting power and the increased power to obtain the minimum transmitting power of the interphone.

Optionally, the first determining unit 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.

Optionally, the second obtaining unit is configured to determine that the GPS information of the target intercom is not received; reading a received signal strength indication of the target interphone from the local routing table; using the received signal strength indication as the distance indication parameter.

Optionally, the first determining unit is configured to determine, according to a received signal strength indicator-transmission power correspondence list between a received signal strength indicator and transmission power, the transmission power corresponding to the received signal strength, and use the transmission power as the minimum transmission power.

Optionally, the second determining unit is configured to use the minimum transmitting power as the transmitting power when the local interphone sends the communication data to the target interphone; or acquiring a plurality of transmission power gears divided based on the preset maximum transmission power; each transmission power gear corresponds to a preset transmission power; selecting a transmission power gear with preset transmission power larger than minimum transmission power from all transmission power gears as a target gear, and using the preset transmission power corresponding to the target gear as the transmission power when the interphone sends communication data to the target interphone.

In a third aspect, an embodiment of the present disclosure provides an apparatus for determining transmit power, where the apparatus includes:

the first obtaining module is used for obtaining a local routing table of the first interphone, and the local routing table records at least one second interphone within a preset maximum transmitting distance;

the selecting module is used for selecting one of the at least one second interphone as a target interphone according to the local routing table;

the second acquisition module is used for acquiring a distance indication parameter between the first interphone and the target interphone; the distance indicating parameter is used for representing the actual distance between the first interphone and the target interphone;

the first determining module is used for determining the minimum transmitting power of the first interphone according to the distance indicating parameter;

and the second determining module is used for determining the transmitting power when the first interphone sends the communication data to the target interphone based on the minimum transmitting power.

In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;

the memory for storing a computer program;

the processor is configured to execute the program stored in the memory to implement the method for determining the transmission power according to the first aspect.

In a fifth aspect, the present disclosure provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the method for determining the transmission power according to the first aspect.

Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages: according to the method provided by the embodiment of the disclosure, a target interphone is selected to communicate according to a local routing table of the first interphone, a distance indicating parameter between the first interphone and the target interphone is obtained, the minimum transmitting power is determined according to the distance indicating parameter, and the transmitting power when the first interphone sends communication data to the target interphone is determined based on the minimum transmitting power. The transmitting power is determined according to the distance indicating parameter between the first interphone and the target interphone, the minimum transmitting power can be determined in a self-adaptive mode according to the distance indicating parameter between the first interphone and the target interphone, communication data are not transmitted according to the default transmitting power every time, the transmitting power can be effectively reduced, the standby time length is prolonged, and more time is won for rescue.

Drawings

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.

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the related art, the drawings used in the description of the embodiments or the related art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.

Fig. 1 is a schematic diagram of an ad hoc network communication system provided by an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of a method for determining a transmitting power of an intercom according to an embodiment of the present disclosure;

fig. 3 is a timing diagram of sending GPS information after each node sends a broadcast token for networking according to the embodiment of the present disclosure;

fig. 4 is a schematic structural diagram of a device for determining the transmitting power of an intercom according to an embodiment of the present disclosure;

fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;

fig. 6 is a schematic structural diagram of an intercom provided in the embodiment of the present disclosure.

Detailed Description

To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some embodiments of the present disclosure, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.

In order to solve the problems that in the prior art, no infrastructure can charge the interphone during outdoor exploration or emergency rescue, so that the standby time of the interphone is limited and more time cannot be won for rescue, the embodiment of the disclosure provides a method for determining the transmitting power of the interphone, which is suitable for an ad hoc network communication system, wherein the ad hoc network communication system comprises: the first interphone and the at least one second interphone establish ad hoc network communication, and each interphone stores a local routing table. And the first interphone is used as a sending node, and when the first interphone sends the communication data, one of the at least one second interphone is selected as a target interphone according to the local routing table. The principle of selecting the target interphone is as follows: and selecting the second interphone with the minimum hop count and the maximum Received Signal Strength Indicator (RSSI) as the target interphone.

In addition, in the ad hoc network communication system, any one of the interphones may transmit communication data as a first interphone due to the need to transmit communication data, and at this time, the other interphones are all used as second interphones, and one of the second interphones is selected as a target interphone according to the local routing table of the first interphone.

As shown in fig. 2, an embodiment of the present disclosure provides a method for determining a transmission power of an intercom, where the method includes:

s201, obtaining a local routing list of a first interphone, wherein the local routing list records at least one second interphone within a preset maximum transmitting distance;

wherein, the information recorded in the local routing table includes: the second interphone is within the preset maximum transmission distance of the first interphone, the hop count of the second interphone reaching the preset main control interphone and the Received Signal Strength Indicator (RSSI) of the first interphone receiving the communication data sent by the second interphone.

The method for each intercom to obtain the local routing table is further explained below.

One of the plurality of interphones is preset to be used as a main control node, the other interphones are used as participating nodes, and the setting of the main control node and the participating nodes can be completed in a frequency writing stage. During specific implementation, a write frequency parameter is set in each interphone needing to be grouped in advance, and the write frequency parameter comprises: source address, role, operating frequency, etc. The modes of setting the frequency writing parameters on the interphone are various, and the frequency can be written through the interphone frequency writing end, the PC end or the mobile phone APP end, and the like. For example, the write frequency parameters corresponding to the a-F walkie-talkie shown in table 1.

TABLE 1

For example, the interphone a in fig. 1 is a master control node, the other interphones are participating nodes, such as the interphones B to F in fig. 1, and after the write-frequency parameters are written into each of the interphones, the power supplies of the interphones a to F are started, and the ad hoc network mode is started. Each intercom transmits in turn a broadcast token, for example: the interphone A-F circularly transmits a broadcast token (heartbeat wave) by taking T as a period in sequence, wherein the broadcast token comprises: broadcast type, native address, a few hops to a designated intercom (e.g., a pre-defined master node) and a destination address, which may be set to 0xFF when the token is broadcast. After a certain interphone sends a broadcast token, other interphones in the coverage range of the interphone receive the broadcast token of the interphone, obtain partner information (which can be determined according to the identification of the interphone equipment) from the broadcast token, jump to a certain interphone (such as a preset main control node), obtain the received signal strength indication RSSI when the broadcast token is received, and record the obtained information in a local routing table. And each interphone sequentially sends the broadcast token to establish a local routing table of each interphone.

In a specific implementation, based on the DMR/PDT (i.e., digital mobile radio standard/police digital trunking) protocol, the service data (e.g., location information, voice information, etc.) may be transmitted using slot1 of two slots of a 60ms frame in the pass-through mode, while slot2 is used for transmitting the broadcast token; the broadcast token and the service data are divided into different time slots, and compared with the existing communication protocol, the channel resource utilization rate can be improved.

In the embodiment of the present disclosure, communication data (broadcast token) sent by the intercom is burst-transmitted by using a reverse channel, a byte of a reverse signaling frame in a DMR/PDT standard in an existing protocol is redefined, and a type of a transmission message occupies four bits in the reverse signaling frame, where the type of the transmission message includes: the method comprises the following steps of (1) a common broadcast token, a common forwarding request, an emergency forwarding request and the like, wherein the broadcast token is mainly used for establishing an ad hoc network and updating a route; the ordinary forwarding request is mainly used for forwarding service data. For example: the broadcast token is represented by four bits 0000 and the ordinary forward request is represented by 0001.

Referring to fig. 3, SLOT1 is SLOT1, SLOT2 is SLOT2, when a calls, voice is transmitted in SLOT1, the broadcast token of a is transmitted at the position of the 1 st SLOT2, B/C/D is in a voice receiving state, after the broadcast token of a is received, the broadcast token of B is transmitted at the position of the 2 nd SLOT2 at the locking time, and C and D transmit corresponding broadcast tokens at the third and fourth positions. E can not receive the voice of A, but receives the broadcast token of C and D, and knows that C and D can communicate with the master control A through the command in the token. At this time, E staggers one frame after the broadcast token of D, i.e. the next SLOT2 makes the transmission of the broadcast token of E and indicates that the arrival a can be forwarded. F receives the broadcast token of E and knows that E can reach a by forwarding. In this case, F is shifted by one frame after the broadcast token of E, that is, the next SLOT2 transmits the broadcast token of F. To this end, A, B, C, D, E, F has established a local routing table.

Referring to tables 2-4, tables 2-4 are illustrations of local routing tables for an exemplary intercom A, E, F, respectively. After each interphone establishes the local routing table, when a certain interphone sends service data to another interphone, for example: the intercom F sends the traffic data to the intercom a, for example: and the position information and the service data sent by the interphone F are forwarded to the interphone A through the E-D.

S202, selecting one of at least one second interphone as a target interphone according to the local routing table;

as can be seen from the above, the local routing table includes: the second interphone (partner information) within the preset maximum transmission distance of the first interphone, the address of the second interphone, the hop count (for example, several hops to a) of the second interphone reaching the preset master interphone, and the received signal strength indication RSSI of the first interphone receiving the communication data sent by the second interphone. Specifically, selecting one of the at least one second interphone as a target interphone according to the local routing table includes: determining a minimum hop count in a local routing table; if there is only one second interphone corresponding to the minimum hop count, taking the second interphone corresponding to the minimum hop count as a target interphone; and if the number of the second interphones corresponding to the minimum hop count is more than one, selecting the second interphone with the maximum received signal strength indicator RSSI from the second interphones corresponding to the minimum hop count as the target interphone.

In addition, it should be noted that, in the embodiment of the present disclosure, the target intercom determines according to the local routing table, and both the first intercom and the target intercom change with the data forwarding, but not a fixed intercom, for example, after the target intercom of the first intercom E is determined to be the intercom C by looking up the local routing table, and the intercom C becomes the first intercom at this time after the communication data is forwarded to the intercom C, the next target intercom is determined according to the local routing table of the intercom C. In addition, for the first intercom, its target intercom may also be constantly changing as the position of each intercom moves. For example, the target intercom of the first intercom E is determined to be the intercom C by looking up the local routing table at a certain time, the second intercom C is not within the preset maximum transmission distance of the first intercom E along with the movement of the position of each intercom, and when the first intercom E is to transmit communication data, the target intercom with the minimum selected hop count and the maximum Received Signal Strength Indicator (RSSI) is looked up in the local routing table of the first intercom E at this time to be the intercom D. Therefore, the first interphone, the second interphone and the target interphone referred to in the embodiments of the present disclosure may refer to any interphone.

S203, acquiring a distance indication parameter between the first interphone and the target interphone; the distance indication parameter is used for representing the actual distance between the first interphone and the target interphone;

as for the distance indicating parameter, if a GPS (Global Positioning System) signal is good, it may be an 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 interphone can be used as the distance indication parameter.

S204, determining the minimum transmitting power of the first interphone according to the distance indicating parameter;

in the first case, if the GPS signal is good, the distance between the first interphone and the target interphone is taken as the distance indicating parameter.

Each node sends a broadcast token through the SLOT2 to establish an ad hoc network. After each node sends the broadcast token, if the GPS signal is good, the GPS information can be sent in sequence, the mutual sensing in the network is realized, and the respective position information can be known among the nodes.

Specifically, when the GPS signal is good, the GPS information of the target interphone can be received; acquiring first position information of a target interphone from the GPS information; acquiring second position information of the first interphone; and calculating the actual distance between the first interphone and the target interphone according to the first position information and the second position information, and taking the actual distance as a distance indication parameter. At this time, determining the minimum transmission power of the first intercom according to the distance indicating parameter includes: acquiring a preset maximum transmitting power and a preset maximum transmitting distance of a first interphone; calculating the ratio of the actual distance to the preset maximum transmitting distance; calculating the power required to be increased when the first interphone sends communication data to the target interphone at the actual distance according to the relation between the ratio and the power-distance increasing coefficient; and calculating the sum of the preset maximum transmitting power and the increased power to obtain the minimum transmitting power of the first interphone.

To facilitate understanding of the above method for determining the minimum transmission power, for example, an interphone currently in the market with 5W can stably transmit for a distance of 4km in an open area, wherein the preset maximum transmission power of the interphone is 5W, i.e. 5000mW, and the preset maximum transmission distance is 4km, i.e. 4000 m. If the actual distance between two acquired nodes is 40m, the ratio of the actual distance to the preset maximum transmission distance is 1/100, and the transmission power is increased by 6dB when the radio wave transmission distance is increased by 1 time, the transmission power required to be increased is 20lg (1/100) = -40 dB; the transmission power of the interphone is 10lg5000=37dB, and the transmission power required by two nodes which are 40m away is 37-40= -3dB (0.5 mW).

In addition, for simple calculation, the minimum transmission power corresponding to the actual distance may be determined according to the distance-transmission power correspondence list between the actual distance and the minimum transmission power obtained by calculation.

In specific implementation, a distance-transmission power correspondence list between the actual distance and the minimum transmission power may be stored in advance, and then the minimum transmission power corresponding to the actual distance may be determined by table lookup.

In the second case, if the GPS signal is not good, the RSSI, which is the received signal strength indication of the target intercom, is used as the distance indication parameter.

During specific implementation, if the GPS information of the target interphone is judged not to be received; reading a received signal strength indication of a target interphone from a local routing table; the received signal strength indication is taken as a distance indication parameter.

In a specific implementation, a received signal strength indication-transmission power correspondence list between the RSSI and the transmission power may be stored in advance, and for the RSSI signal, the greater the distance, the lower the RSSI strength (the lower the sensitivity), the different transmission power levels may be divided according to the RSSI size, for example, the maximum value of the transmission power of the intercom is obtained, the maximum value is divided into a plurality of levels, and each level corresponds to a minimum transmission power. For example, the maximum transmitting power of the interphone is 5W, the sensitivity is required to be-120 dB, and 5W is divided into ten grades, such as: minimum transmit power of 0.5W for 50dB, 1.2W for 60dB, and 5W for 120 dB.

In the embodiment of the disclosure, the transmitting power is dynamically adjusted by using the GPS information or RSSI information of the ad hoc network, map information is not needed, the method is simpler, the transmitting power can be dynamically adjusted no matter whether the GPS signal is good or not, the standby time can be effectively prolonged, and the time is strived for rescuing in the use environment of outdoor exploration and emergency rescue.

S205, based on the minimum transmitting power, determining the transmitting power when the first interphone sends the communication data to the target interphone.

Specifically, the minimum transmission power may be used as the transmission power when the first intercom transmits the communication data to the target intercom; or dividing a plurality of transmission power gears based on the preset maximum transmission power, wherein each transmission power gear corresponds to one preset transmission power, and selecting a target gear from the preset transmission power. Specifically, a gear with preset transmitting power larger than the minimum transmitting power is selected from all transmitting power gears to serve as a target gear, the preset transmitting power corresponding to the target gear serves as the transmitting power when the first interphone sends communication data to the target interphone, and after the minimum transmitting power is determined, a certain gear larger than the minimum transmitting power is selected, so that the stability of communication can be guaranteed. Preferably, the lowest gear which is larger than the minimum transmitting power is selected as the target gear, so that the transmitting power can be reduced to the maximum extent on the basis of meeting the requirement of transmitting communication data, the working time of the interphone is prolonged to the maximum extent, and more time is strived for rescue.

For example, when the minimum transmission power is determined to be 0.5mW, a transmission of 1mW may be selected for stability, the transmission power being reduced 1/5000 relative to 5W, which is of decisive significance for intercom products.

In the embodiment of the disclosure, a target interphone is selected for communication according to a local routing table of the first interphone, a distance indicating parameter between the first interphone and the target interphone is obtained, the minimum transmitting power is determined according to the distance indicating parameter, and the transmitting power when the first interphone sends communication data to the target interphone is determined based on the minimum transmitting power. The transmitting power is determined according to the distance indicating parameter between the first interphone and the target interphone, the minimum transmitting power can be determined in a self-adaptive mode according to the distance indicating parameter between the first interphone and the target interphone, communication data are not transmitted according to the default transmitting power every time, the transmitting power can be effectively reduced, the standby time length is prolonged, and more time is won for rescue.

Based on the same concept, the present disclosure provides a device for determining transmit power, where specific implementation of the device may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 4, the device mainly includes:

a first obtaining module 401, configured to obtain a local routing table of a first intercom, where the local routing table records at least one second intercom within a preset maximum transmission distance;

a selecting module 402, configured to select one of the at least one second intercom as a target intercom according to the local routing table;

a second obtaining module 403, configured to obtain a distance indication parameter between the first intercom and the target intercom; the distance indication parameter is used for representing the actual distance between the first interphone and the target interphone;

a first determining module 404, configured to determine a minimum transmit power of the first intercom according to the distance indicating parameter;

the second determining module 405 is configured to determine, based on the minimum transmit power, transmit power when the first intercom sends communication data to the target intercom.

In a specific embodiment, the selecting module 402 is configured to, when the local routing table further records the hop count of each second intercom reaching a preset main control intercom, compare the hop count of each second intercom reaching the preset main control intercom, and determine the second intercom corresponding to the minimum hop count as the target intercom.

A selecting module 402, configured to, if there is one or only one second intercom corresponding to the minimum hop count, take the second intercom corresponding to the minimum hop count as the target intercom; and if the number of the second interphones corresponding to the minimum hop count is more than one, selecting the second interphone with the maximum received signal strength indication as the target interphone from the second interphones corresponding to the minimum hop count.

In a specific embodiment, the second obtaining module 403 is configured to determine that GPS information of the target intercom is received; acquiring first position information of a target interphone from the GPS information; acquiring second position information of the first interphone; and calculating the actual distance between the first interphone and the target interphone according to the first position information and the second position information, and taking the actual distance as a distance indication parameter.

A first determining module 404, configured to obtain a preset maximum transmitting power and a preset maximum transmitting distance of the first intercom; calculating the ratio of the actual distance to the preset maximum transmitting distance; calculating the power required to be increased when the first interphone sends communication data to the target interphone under the actual distance according to the relation between the ratio and the power-distance increasing coefficient; and calculating the sum of the preset maximum transmitting power and the increased power to obtain the minimum transmitting power of the first interphone.

Or, 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.

In a specific embodiment, the second obtaining module 403 is configured to determine that the GPS information of the target intercom is not received; reading a received signal strength indication of a target interphone from a local routing table; the received signal strength indication is taken as a distance indication parameter.

A first determining module 404, configured to determine, according to a received signal strength indicator-transmission power correspondence list between a received signal strength indicator and transmission power, the transmission power corresponding to the received signal strength, and use the transmission power as the minimum transmission power.

In a specific embodiment, the second determining module 405 is configured to use the minimum transmission power as the transmission power when the first intercom transmits the communication data to the target intercom; or acquiring a plurality of transmission power gears divided based on the preset maximum transmission power; each transmission power gear corresponds to a preset transmission power; selecting a transmission power gear with preset transmission power larger than the minimum transmission power from all transmission power gears as a target gear, and using the preset transmission power corresponding to the target gear as the transmission power when the first interphone sends communication data to the target interphone.

Based on the same concept, an embodiment of the present disclosure further provides an electronic device, as shown in fig. 5, 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, so as to implement the following steps:

acquiring a local routing list of a first interphone, wherein the local routing list records at least one second interphone within a preset maximum transmitting distance;

selecting one of the at least one second interphone as a target interphone according to the local routing table;

acquiring a distance indication parameter between a first interphone and a target interphone; the distance indication parameter is used for representing the actual distance between the first interphone and the target interphone;

determining the minimum transmitting power of the first interphone according to the distance indicating parameter;

and determining the transmitting power of the first interphone when the first interphone transmits the communication data to the target interphone based on the minimum transmitting power.

The electronic device may be the first intercom itself.

The communication bus 503 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 503 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.

The Memory 502 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the aforementioned processor 501.

The Processor 501 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may 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 gates or transistor logic devices, and discrete hardware components.

Based on the same technical concept, embodiments of the present disclosure further provide an intercom, the specific implementation of the intercom may refer to the description of the method embodiment, and repeated parts are not repeated, as shown in fig. 6, the intercom mainly includes:

a first obtaining unit 601, configured to obtain a local routing table of a local intercom, where the local routing table records at least one second intercom within a preset maximum transmission distance;

a selecting unit 602, configured to select one of the at least one second intercom as a target intercom according to the local routing table;

a second obtaining unit 603, configured to obtain a distance indication parameter between the local interphone and the target interphone; the distance indicating parameter is used for representing the actual distance between the interphone and the target interphone;

a first determining unit 604, configured to determine a minimum transmitting power of the intercom according to the distance indicating parameter;

a second determining unit 605, configured to determine, based on the minimum transmit power, transmit power when the local interphone sends communication data to the target interphone.

The interphone, the second interphone and the target interphone named in the embodiment of the disclosure can refer to any interphone.

In the embodiment of the disclosure, the transmitting power is determined according to the distance indicating parameter between the interphone and the target interphone, the minimum transmitting power can be determined in a self-adaptive manner according to the distance indicating parameter between the interphone and the target interphone, instead of sending communication data according to the default transmitting power every time, the transmitting power can be effectively reduced, so that the standby time is prolonged, and more time is strived for rescue.

Optionally, the selecting unit 602 is configured to, when the hop count of each second intercom reaching a preset main control intercom is further recorded in the local routing table, compare the hop count of each second intercom reaching the preset main control intercom, and determine the second intercom corresponding to the minimum hop count as the target intercom.

Optionally, the selecting unit 602 is configured to, when there is only one second intercom corresponding to the minimum hop count, use the second intercom corresponding to the minimum hop count as the target intercom; and if the number of the second interphones corresponding to the minimum hop count is more than one, selecting the second interphone with the maximum received signal strength indication as the target interphone from the second interphones corresponding to the minimum hop count.

Optionally, the second obtaining unit 603 is configured to determine that the GPS information of the target intercom is received; acquiring first position information of the target interphone from the GPS information; acquiring second position information of the interphone; and calculating the actual distance between the interphone and the target interphone according to the first position information and the second position information, and taking the actual distance as the distance indication parameter.

Optionally, the first determining unit 604 is configured to obtain a preset maximum transmitting power and a preset maximum transmitting distance of the intercom; calculating the ratio of the actual distance to the preset maximum transmitting distance; calculating the power required to be increased when the interphone sends communication data to the target interphone under the actual distance according to the relation between the ratio and the power-distance increasing coefficient; and calculating the sum of the preset maximum transmitting power and the increased power to obtain the minimum transmitting power of the interphone.

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.

Optionally, the second obtaining unit 603 is configured to determine that the GPS information of the target intercom is not received; reading a received signal strength indication of the target interphone from the local routing table; using the received signal strength indication as the distance indication parameter.

Optionally, the first determining unit 604 is configured to determine, according to a received signal strength indicator-transmission power correspondence list between a received signal strength indicator and transmission power, the transmission power corresponding to the received signal strength, and use the transmission power as the minimum transmission power.

Optionally, the second determining unit 605 is configured to use the minimum transmitting power as the transmitting power when the local interphone sends communication data to the target interphone; or acquiring a plurality of transmission power gears divided based on the preset maximum transmission power; each transmission power gear corresponds to a preset transmission power; selecting a transmission power gear with preset transmission power larger than minimum transmission power from all transmission power gears as a target gear, and using the preset transmission power corresponding to the target gear as the transmission power when the interphone sends communication data to the target interphone.

In yet another embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute a transmission power determination method described in the above-described embodiment.

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the disclosure to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). 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, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.

It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种定位方法及通信装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类