[go: up one dir, main page]

CN113543022B - Method, device, intercom, equipment and storage medium for determining transmission power - Google Patents

Method, device, intercom, equipment and storage medium for determining transmission power Download PDF

Info

Publication number
CN113543022B
CN113543022B CN202110841292.1A CN202110841292A CN113543022B CN 113543022 B CN113543022 B CN 113543022B CN 202110841292 A CN202110841292 A CN 202110841292A CN 113543022 B CN113543022 B CN 113543022B
Authority
CN
China
Prior art keywords
intercom
transmission power
target
distance
minimum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110841292.1A
Other languages
Chinese (zh)
Other versions
CN113543022A (en
Inventor
赵蕊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huiruisitong Technology Co Ltd
Original Assignee
Guangzhou Huiruisitong Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huiruisitong Technology Co Ltd filed Critical Guangzhou Huiruisitong Technology Co Ltd
Priority to CN202110841292.1A priority Critical patent/CN113543022B/en
Publication of CN113543022A publication Critical patent/CN113543022A/en
Application granted granted Critical
Publication of CN113543022B publication Critical patent/CN113543022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/10Push-to-Talk [PTT] or Push-On-Call services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/90Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/04Transmission power control [TPC]
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/28TPC being performed according to specific parameters using user profile, e.g. mobile speed, priority or network state, e.g. standby, idle or non-transmission
    • H04W52/283Power depending on the position of the mobile
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Emergency Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Public Health (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a method, a device, an interphone, equipment and a storage medium for determining transmission power, wherein the method comprises the following steps: acquiring a local routing table of the first interphone, wherein the local routing table records at least one second interphone within a preset maximum transmitting distance; selecting one from at least one second interphone as a target interphone according to the local routing table; 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; determining the minimum transmitting power of the first interphone according to the distance indicating parameter; and determining the transmitting power when the first interphone transmits communication data to the target interphone based on the minimum transmitting power. The problem that the standby time length cannot be effectively prolonged due to the fact that infrastructure power supply is not available when the interphone is used for outdoor exploration or emergency rescue in the prior art is solved.

Description

发射功率的确定方法、装置、对讲机、设备及存储介质Method, device, intercom, equipment and storage medium for determining transmission power

技术领域Technical Field

本公开涉及无线通信技术领域,尤其涉及一种发射功率的确定方法、装置、对讲机、设备及存储介质。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

对讲机在户外探险或者紧急救援过程中应用十分广泛。对讲机在实际使用时,采用电池进行供电,但是电池的电量是有限的,而且,通常在户外探险或者紧急救援时,没有基础设施能够为其充电。因此,在户外探险或者紧急救援过程中,最大限度的延长待机时间,为救援争取更多时间就显得十分重要。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

在相关技术中,对讲机采用默认的发射功率,该默认的发射功率可以保证目标对讲机在预设距离内均可以实现稳定接收,每次发送通信数据时,均采用该默认的发射功率。发明人发现,如果发送通信数据的对讲机和目标对讲机之间的距离小于预设距离时,即二者距离较近时,实际上以较小发射功率即可保证目标对讲机成功接收到通信数据,如果依然按照默认的发射功率发送通信数据的话,会造成功率的浪费,对于最大限度的延长待机时间,为救援争取更多时间不利。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.

基于上述技术问题,本公开提供了一种发射功率的确定方法、装置、对讲机、设备及存储介质,用以解决现有技术中对讲机在户外探险或紧急救援时,没有基础设施供电,导致待机时长无法有效延长的问题。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.

第一方面,本公开实施例提供了一种发射功率的确定方法,所述方法包括:In a first aspect, an embodiment of the present disclosure provides a method for determining transmit power, the method comprising:

获取第一对讲机的本地路由表,所述本地路由表记录有预设最大发射距离内的至少一个第二对讲机;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, a transmission power when the first intercom sends communication data to the target intercom is determined.

可选的,所述根据所述本地路由表,从所述至少一个第二对讲机中,选取一个作为目标对讲机,包括:Optionally, selecting one as the target intercom from the at least one second 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.

可选的,所述根据所述本地路由表,从所述至少一个第二对讲机中,选取一个作为目标对讲机,包括:Optionally, selecting one as the target intercom from the at least one second 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.

可选的,所述获取所述第一对讲机与所述目标对讲机之间的距离指示参数,包括:Optionally, the obtaining a distance indication parameter between the first intercom and the target intercom includes:

判定接收到所述目标对讲机的GPS信息;Determining that GPS information of the target intercom is received;

从所述GPS信息中,获取所述目标对讲机的第一位置信息;Acquire the first location information of the target intercom from the GPS information;

获取所述第一对讲机的第二位置信息;Acquire second location information of the first intercom;

根据所述第一位置信息和所述第二位置信息,计算所述第一对讲机与所述目标对讲机之间的实际距离,将所述实际距离作为所述距离指示参数。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.

可选的,所述根据所述距离指示参数确定所述第一对讲机的最小发射功率,包括:Optionally, determining the minimum transmission power of the first walkie-talkie 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;

计算所述预设最大发射功率和所述增加的功率之间的和,得到所述第一对讲机的最小发射功率。The sum of the preset maximum transmission power and the increased power is calculated to obtain the minimum transmission power of the first intercom.

可选的,所述根据所述距离指示参数确定所述第一对讲机的最小发射功率,包括:Optionally, determining the minimum transmission power of the first walkie-talkie 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.

可选的,所述获取所述第一对讲机与所述目标对讲机之间的距离指示参数,包括:Optionally, the obtaining a distance indication parameter between the first intercom and the target intercom includes:

判定未接收到所述目标对讲机的GPS信息;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.

可选的,所述根据所述距离指示参数确定所述第一对讲机的最小发射功率,包括:Optionally, determining the minimum transmission power of the first walkie-talkie 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.

可选的,所述基于所述最小发射功率,确定所述第一对讲机向所述目标对讲机发送通信数据时的发射功率,包括:Optionally, determining, based on the minimum transmit power, a transmit power at which the first intercom sends communication data to the target intercom 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.

第二方面,本公开实施例提供了一种对讲机,包括:In a second aspect, an embodiment of the present disclosure provides an intercom, including:

第一获取单元,用于获取本对讲机的本地路由表,所述本地路由表记录有预设最大发射距离内的至少一个第二对讲机;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;

第二确定单元,用于基于所述最小发射功率,确定本对讲机向所述目标对讲机发送通信数据时的发射功率。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.

可选的,所述选取单元,用于在本地路由表中还记录每个所述第二对讲机到达预设主控对讲机的跳数时,比较每个所述第二对讲机到达预设主控对讲机的跳数,将最小跳数对应的所述第二对讲机确定为目标对讲机。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.

可选的,所述选取单元,用于当所述最小跳数对应的第二对讲机有且仅有一个,则将最小跳数对应的第二对讲机作为所述目标对讲机;若所述最小跳数对应的第二对讲机的个数大于一个,则从最小跳数对应的各个第二对讲机中,选取接收信号强度指示最大的第二对讲机作为所述目标对讲机。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.

可选的,所述第二获取单元,用于判定接收到所述目标对讲机的GPS信息;从所述GPS信息中,获取所述目标对讲机的第一位置信息;获取所述本对讲机的第二位置信息;根据所述第一位置信息和所述第二位置信息,计算所述本对讲机与所述目标对讲机之间的实际距离,将所述实际距离作为所述距离指示参数。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.

可选的,所述第一确定单元,用于获取所述本对讲机的预设最大发射功率和预设最大发射距离;计算所述实际距离与所述预设最大发射距离的比值;根据所述比值和功率-距离增长系数之间的关系计算所述本对讲机在所述实际距离下,向所述目标对讲机发送通信数据时所需要增加的功率;计算所述预设最大发射功率和所述增加的功率之间的和,得到所述本对讲机的最小发射功率。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.

可选的,所述第一确定单元,用于根据实际距离与最小发射功率之间的距离-发射功率对应关系列表,确定与所述实际距离对应的所述最小发射功率。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.

可选的,所述第二获取单元,用于判定未接收到所述目标对讲机的GPS信息;从所述本地路由表中,读取所述目标对讲机的接收信号强度指示;将所述接收信号强度指示作为所述距离指示参数。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.

可选的,所述第一确定单元,用于根据接收信号强度指示与发射功率之间的接收信号强度指示-发射功率对应关系列表,确定与所述接收信号强度对应的所述发射功率,将所述发射功率作为所述最小发射功率。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.

可选的,所述第二确定单元,用于将所述最小发射功率作为所述本对讲机向所述目标对讲机发送通信数据时的发射功率;或者,获取基于预设最大发射功率划分的多个发射功率档位;其中,每个发射功率档位对应一个预设发射功率;从各个发射功率档位中,选取预设发射功率大于最小发射功率的发射功率档位作为目标档位,将所述目标档位对应的预设发射功率作为所述本对讲机向所述目标对讲机发送通信数据时的发射功率。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.

第三方面,本公开实施例提供了一种发射功率的确定装置,所述装置包括:In a third aspect, an embodiment of the present disclosure provides a device for determining transmit power, the device comprising:

第一获取模块,用于获取所述第一对讲机的本地路由表,所述本地路由表记录有预设最大发射距离内的至少一个第二对讲机;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;

第二确定模块,用于基于所述最小发射功率,确定所述第一对讲机向所述目标对讲机发送通信数据时的发射功率。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.

第四方面,本公开实施例提供了一种电子设备,包括:处理器、存储器和通信总线,其中,处理器和存储器通过通信总线完成相互间的通信;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;

所述存储器,用于存储计算机程序;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 described in the first aspect.

第五方面,本公开实施例提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的发射功率的确定方法。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.

本公开实施例提供的上述技术方案与现有技术相比具有如下优点:本公开实施例提供的该方法,根据第一对讲机的本地路由表选取目标对讲机进行通信,获取第一对讲机和目标对讲机之间的距离指示参数,根据距离指示参数确定最小发射功率,并基于最小发射功率确定第一对讲机向目标对讲机发送通信数据时的发射功率。发射功率根据第一对讲机和目标对讲机之间的距离指示参数确定,能够根据二者之间的距离指示参数自适应确定最小发射功率,而不是每次按照默认的发射功率发送通信数据,能够有效降低发射功率,从而延长待机时长,为救援争取更多时间。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

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。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 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.

图1为本公开实施例提供的自组网通信系统的示意图;FIG1 is a schematic diagram of an ad hoc network communication system provided by an embodiment of the present disclosure;

图2为本公开实施例提供的一种对讲机的发射功率的确定方法的流程示意图;FIG2 is a flow chart of a method for determining the transmission power of a walkie-talkie provided in an embodiment of the present disclosure;

图3为本公开实施例提供的各节点发送广播令牌进行组网后发送GPS信息的时序图;3 is a timing diagram of each node sending GPS information after sending a broadcast token to form a network according to an embodiment of the present disclosure;

图4为本公开实施例提供的一种对讲机的发射功率的确定装置的结构示意图;FIG4 is 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;

图5为本公开实施例提供的电子设备的结构示意图;FIG5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure;

图6为本公开实施例提供的一种对讲机的结构示意图。FIG6 is a schematic diagram of the structure of an intercom provided in an embodiment of the present disclosure.

具体实施方式DETAILED DESCRIPTION

为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。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.

为了解决现有技术中,在户外探险或者紧急救援时,没有基础设施能够为对讲机充电,导致对讲机待机时间有限,无法为救援争取更多时间的问题,本公开实施例提供了一种对讲机的发射功率的确定方法,该方法适用于自组网通信系统,该自组网通信系统中包括:第一对讲机和至少一个第二对讲机,且第一对讲机和至少一个第二对讲机之间建立自组网通信,每个对讲机均存储有本地路由表。第一对讲机作为发送节点,在发送通信数据时,根据本地路由表,从至少一个第二对讲机中选取一个作为目标对讲机。其中,选取目标对讲机的原则是:选取跳数最小,且接收信号强度指示(RSSI)最大的第二对讲机作为目标对讲机。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.

此外,还需要说明的是,在自组网通信系统中,由于发送通信数据的需要,任何一个对讲机都有可能作为第一对讲机发送通信数据,此时,其他的对讲机均作为第二对讲机,根据第一对讲机的本地路由表,从第二对讲机中,选取一个作为目标对讲机。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.

如图2所示,本公开实施例提供了一种对讲机的发射功率的确定方法,该方法包括:As shown in FIG. 2 , an embodiment of the present disclosure provides a method for determining the transmission power of a walkie-talkie, the method comprising:

S201,获取第一对讲机的本地路由表,本地路由表记录有预设最大发射距离内的至少一个第二对讲机;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;

其中,本地路由表中记录的信息包括:第一对讲机的预设最大发射距离内的第二对讲机,以及第二对讲机到达预设主控对讲机的跳数和第一对讲机接收到第二对讲机发送的通信数据的接收信号强度指示(RSSI)。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.

下面对各个对讲机获取本地路由表的方法做进一步说明。The following is a further description of how each intercom obtains the local routing table.

预先设定多个对讲机中的某一个作为主控节点,其他对讲机作为参与节点,对于主控节点和参与节点的设定可以在写频阶段完成。在具体实现时,预先在需要组队的各个对讲机中设置写频参数,该写频参数包括:源地址、角色、工作频率等。在对讲机上设置写频参数的方式有多种,可通过对讲机写频端、PC端写频或手机APP端写频等等。例如,如表1所示的A-F对讲机对应的写频参数。Pre-set one of the multiple intercoms as the master node, and the other intercoms 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 intercom 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 intercom, which can be done through the intercom frequency writing terminal, PC terminal frequency writing, or mobile phone APP terminal frequency writing, etc. For example, the frequency writing parameters corresponding to intercoms A-F are shown in Table 1.

表1Table 1

例如图1中的对讲机A为主控节点,其他对讲机为参与节点,如图1中的对讲机B~F,将写频参数写入每个对讲机后,对讲机A~F电源启动,启动自组网模式。各个对讲机依次发送广播令牌,例如:对讲机A-F依次以T为周期循环发射广播令牌(心跳波),其中,广播令牌中包括:广播类型、本机地址、几跳到指定对讲机(如:预先规定的主控节点)和目的地址,在广播令牌时,目的地址可以设置为0xFF。某一对讲机发送广播令牌后,该对讲机覆盖范围内的其他对讲机接收到该对讲机的广播令牌后,从中得到伙伴信息(可以根据对讲机设备标识确定)、几跳到某一个对讲机(如:预先规定的主控节点),并获取接收广播令牌时接收信号强度指示RSSI,将得到的上述信息记录在本地路由表中。各个对讲机依次发送广播令牌,以建立各自的本地路由表。For example, the intercom A in Figure 1 is the master node, and the other intercoms are participating nodes, such as the intercoms B~F in Figure 1. After the frequency writing parameters are written to each intercom, the power of intercoms A~F is turned on to start the self-organizing network mode. Each intercom sends a broadcast token in turn, for example: intercoms A-F send broadcast tokens (heartbeat waves) in a cycle of T in turn, where 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 tokens, the destination address can be set to 0xFF. After a certain intercom sends a broadcast token, other intercoms within the coverage range of the intercom receive the broadcast token of the intercom, and obtain 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 a broadcast token in turn to establish its own local routing table.

在具体实现时,以DMR/PDT(即数字移动无线电标准/警用数字集群)协议为基础,可以利用直通模式下60ms一帧两个时隙中的时隙1来发送业务数据(例如:位置信息、语音信息等),而时隙2用于发送广播令牌;将广播令牌与业务数据划分到不同的时隙,相比于现有的通信协议,能够提高信道资源利用率。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.

本公开实施例中,对讲机发送的通信数据(广播令牌)是利用反向信道突发传输的,将现有协议中DMR/PDT标准中的反向信令帧的字节重新定义,传输消息的类型占用反向信令帧中四个比特位,其中,传输消息的类型包括:普通广播令牌以及普通转发请求、紧急转发请求等等,其中,广播令牌主要用于建立自组网和路由更新;普通转发请求主要用于实现业务数据的转发。例如:用0000四个比特位表示广播令牌,0001表示普通转发请求。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.

结合图3,SLOT1为时隙1,SLOT2为时隙2,当A通话时在时隙1发送语音,第1个时隙2的位置发送A的广播令牌,B/C/D处于语音接收状态,在收到A的广播令牌后,锁定时间在第2个时隙2位置发送B的广播令牌,C跟D同样在第三个和第四个位置发送相对应的广播令牌。E收不到A的语音,但收到了C跟D的广播令牌,并且通过令牌里的命令知道C跟D都能与主控A进行通话。此时E在D的广播令牌后错开一帧,也就是下一个SLOT2进行E的广播令牌的发送,并且指示出可以转发到达A。F收到E的广播令牌并且知道E能够通过转发到达A。此时F在E的广播令牌后错开一帧,也就是下一个SLOT2进行F的广播令牌的发送。至此,A、B、C、D、E、F均建立了本地路由表。Combined with 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.

参见表2~4,表2到表4分别为示例性的对讲机A、E、F的本地路由表的展示。各个对讲机建立本地路由表后,当某个对讲机向另一个对讲机发送业务数据时,例如:对讲机F向对讲机A发送业务数据,例如:位置信息,对讲机F发送的业务数据经过E-D转发至对讲机A。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 E-D.

S202,根据本地路由表,从至少一个第二对讲机中,选取一个作为目标对讲机;S202, selecting one as a target intercom from at least one second intercom according to the local routing table;

如上述内容可知,本地路由表中包括:第一对讲机的预设最大发射距离内的第二对讲机(伙伴信息),以及第二对讲机的地址、第二对讲机到达预设主控对讲机的跳数(例如,几跳到A)和第一对讲机接收到第二对讲机发送的通信数据的接收信号强度指示RSSI。具体的,根据本地路由表,从至少一个第二对讲机中,选取一个作为目标对讲机包括:确定本地路由表中的最小跳数;若最小跳数对应的第二对讲机有且仅有一个,则将最小跳数对应的第二对讲机作为目标对讲机;若最小跳数对应的第二对讲机的个数大于一个,则从最小跳数对应的各个第二对讲机中,选取接收信号强度指示RSSI最大的第二对讲机作为目标对讲机。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.

此外,还需要说明的是,在本公开实施例中,目标对讲机根据本地路由表确定,随着数据转发,第一对讲机和目标对讲机均发生变化,并不是某一个固定的对讲机,例如,通过查找本地路由表确定第一对讲机E的目标对讲机为对讲机C,将通信数据转发至对讲机C后,对讲机C此时就成为了第一对讲机,则根据对讲机C的本地路由表确定下一个目标对讲机。另外,对于第一对讲机,随着各对讲机的位置移动,它的目标对讲机也可能不断变化。例如,在某一时刻通过查找本地路由表确定第一对讲机E的目标对讲机为对讲机C,随着各个对讲机位置的移动,第二对讲机C不在处于第一对讲机E的预设最大发射距离内,当第一对讲机E要发送通信数据时,从此时在第一对讲机E的本地路由表中查找选取跳数最小,且接收信号强度指示(RSSI)最大的目标对讲机为对讲机D。因此,本公开实施例所称的第一对讲机、第二对讲机和目标对讲机均可以指代任何一个对讲机。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.

S203,获取第一对讲机与目标对讲机之间的距离指示参数;其中,距离指示参数用于表征第一对讲机与目标对讲机之间的实际距离大小;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;

对于距离指示参数,如果GPS(Global Positioning System,全球定位系统)信号好的话,可以是第一对讲机和目标对讲机之间的实际距离;如果GPS信号不好的话,可以将目标对讲机的接收信号强度指示RSSI作为距离指示参数。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.

S204,根据距离指示参数确定第一对讲机的最小发射功率;S204, determining the minimum transmission power of the first intercom according to the distance indication parameter;

第一种情况,如果GPS信号良好,将第一对讲机和目标对讲机之间的距离作为距离指示参数。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.

各个节点通过SLOT2发送广播令牌建立自组网。各个节点发送完广播令牌后,如果GPS信号好的话,可以依次发送GPS信息,实现网内互感知,各个节点之间可以知晓各自的位置信息。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.

具体的,当GPS信号良好时,判定可以接收到目标对讲机的GPS信息;从GPS信息中,获取目标对讲机的第一位置信息;获取第一对讲机的第二位置信息;根据第一位置信息和第二位置信息,计算第一对讲机与目标对讲机之间的实际距离,将实际距离作为距离指示参数。此时,根据距离指示参数确定第一对讲机的最小发射功率,包括:获取第一对讲机的预设最大发射功率和预设最大发射距离;计算实际距离与预设最大发射距离的比值;根据比值和功率-距离增长系数之间的关系计算第一对讲机在该实际距离下,向目标对讲机发送通信数据时所需要增加的功率;计算预设最大发射功率和增加的功率之间的和,得到第一对讲机的最小发射功率。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.

为了便于理解上述确定最小发射功率的方法,举例说明,以目前市场上主流5W的对讲机在空旷区域能够稳定发射4km的距离为例,其中,该对讲机的预设最大发射功率为5W,即5000mW,预设最大发射距离为4km,即4000m。如果获取到两个节点之间的实际距离是40m,那么该实际距离与预设最大发射距离的比值为1/100,无线电波传送距离每增加1倍,发射功率要增加6dB,那么需要增加的发射功率是20lg(1/100)=-40db;对讲机的发射功率为10lg5000=37dB,则相距40m的两个节点需要的发射功率为37-40=-3dB(0.5mW)。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).

此外,为了计算简单,还可以根据计算得到的实际距离与最小发射功率之间的距离-发射功率对应关系列表,确定与实际距离对应的最小发射功率。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.

在具体实现时,可以预先存储实际距离和最小发射功率之间的距离-发射功率对应关系列表,之后通过查表的方式,确定与实际距离对应的最小发射功率。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.

第二种情况,如果GPS信号不好,将目标对讲机的接收信号强度指示RSSI作为距离指示参数。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.

在具体实现时,若判定未接收到目标对讲机的GPS信息;从本地路由表中,读取目标对讲机的接收信号强度指示;将接收信号强度指示作为距离指示参数。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.

在具体实现时,可以预先存储RSSI和发射功率之间的接收信号强度指示-发射功率对应关系列表,对于RSSI信号,距离越大,RSSI强度越低(灵敏度越低),可以根据RSSI的大小划分不同的发射功率等级,例如,获取对讲机发射功率的最大值,将最大值分为多个等级,每个等级对应一个最小发射功率。例如,对讲机发射功率最大为5W,灵敏度要求-120dB,将5W分为十级,如:-50dB对应的最小发射功率为0.5W,-60dB对应的最小发射功率为1.2W,-120dB对应的最小发射功率为5W。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.

在本公开实施例中,利用自组网本身的GPS信息或者RSSI信息来动态调整发射功率,无需地图信息,更加简单,无论在GPS信号是否良好的情况下,均可以实现动态调整发射功率,能够有效延长待机时间,在户外探险和紧急救援的使用环境下,为救命争取时间。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.

S205,基于最小发射功率,确定第一对讲机向目标对讲机发送通信数据时的发射功率。S205: Based on the minimum transmission power, determine the transmission power of the first intercom when sending communication data to the target intercom.

具体的,可以将最小发射功率作为第一对讲机向目标对讲机发送通信数据时的发射功率;或者,基于预设最大发射功率划分多个发射功率档位,其中,每个发射功率档位对应一个预设发射功率,从中选出目标档位。具体的,从各个发射功率档位中,选取预设发射功率大于最小发射功率的档位作为目标档位,该目标档位对应的预设发射功率即作为第一对讲机向目标对讲机发送通信数据时的发射功率,该方法在确定最小发射功率后,选取大于最小发射功率的某个档位,可以保证通信的稳定性。优选的,选取大于最小发射功率的最低档位作为目标档位,能够在满足发送通信数据的需求的基础上,最大限度降低发射功率,以最大程度延长对讲机的工作时间,为救援争取更多的时间。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.

例如,当确定最小发射功率为0.5mW时为了保证稳定性可以选取1mW发射,发射功率相对于5W,缩小了1/5000,对于对讲机产品来讲,具有决定性的意义。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.

在本公开实施例中,根据第一对讲机的本地路由表选取目标对讲机进行通信,获取第一对讲机和目标对讲机之间的距离指示参数,根据距离指示参数确定最小发射功率,并基于最小发射功率确定第一对讲机向目标对讲机发送通信数据时的发射功率。发射功率根据第一对讲机和目标对讲机之间的距离指示参数确定,能够根据二者之间的距离指示参数自适应确定最小发射功率,而不是每次按照默认的发射功率发送通信数据,能够有效降低发射功率,从而延长待机时长,为救援争取更多时间。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.

基于同一构思,本公开实施例中提供了一种发射功率的确定装置,该装置的具体实施可参见方法实施例部分的描述,重复之处不再赘述,如图4所示,该装置主要包括:Based on the same concept, an apparatus for determining transmit power is provided in an embodiment of the present disclosure. The specific implementation of the apparatus can be found in the description of the method embodiment, and the repeated parts will not be repeated. As shown in FIG. 4, the apparatus mainly includes:

第一获取模块401,用于获取第一对讲机的本地路由表,所述本地路由表记录有预设最大发射距离内的至少一个第二对讲机;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;

选取模块402,用于根据本地路由表,从至少一个第二对讲机中,选取一个作为目标对讲机;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;

第二获取模块403,用于获取第一对讲机与目标对讲机之间的距离指示参数;其中,距离指示参数用于表征第一对讲机与目标对讲机之间的实际距离大小;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;

第一确定模块404,用于根据距离指示参数确定第一对讲机的最小发射功率;A first determination module 404, configured to determine a minimum transmission power of the first intercom according to the distance indication parameter;

第二确定模块405,用于基于最小发射功率,确定第一对讲机向目标对讲机发送通信数据时的发射功率。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.

在一个具体实施例中,选取模块402,用于当所述本地路由表中还记录每个所述第二对讲机到达预设主控对讲机的跳数时,比较每个所述第二对讲机到达预设主控对讲机的跳数,将最小跳数对应的所述第二对讲机确定为目标对讲机。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.

选取模块402,用于若所述最小跳数对应的第二对讲机有且仅有一个,则将最小跳数对应的第二对讲机作为所述目标对讲机;若所述最小跳数对应的第二对讲机的个数大于一个,则从最小跳数对应的各个第二对讲机中,选取接收信号强度指示最大的第二对讲机作为所述目标对讲机。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.

在一个具体实施例中,第二获取模块403,用于判定接收到目标对讲机的GPS信息;从GPS信息中,获取目标对讲机的第一位置信息;获取第一对讲机的第二位置信息;根据第一位置信息和第二位置信息,计算第一对讲机与目标对讲机之间的实际距离,将实际距离作为距离指示参数。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.

第一确定模块404,用于获取第一对讲机的预设最大发射功率和预设最大发射距离;计算实际距离与预设最大发射距离的比值;根据所述比值和功率-距离增长系数之间的关系计算所述第一对讲机在所述实际距离下,向所述目标对讲机发送通信数据时所需要增加的功率;计算预设最大发射功率和增加的功率之间的和,得到第一对讲机的最小发射功率。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.

或者,第一确定模块404,用于根据实际距离与最小发射功率之间的距离-发射功率对应关系列表,确定与所述实际距离对应的所述最小发射功率。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.

在一个具体实施例中,第二获取模块403,用于判定未接收到目标对讲机的GPS信息;从本地路由表中,读取目标对讲机的接收信号强度指示;将接收信号强度指示作为距离指示参数。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.

第一确定模块404,用于根据接收信号强度指示与发射功率之间的接收信号强度指示-发射功率对应关系列表,确定与所述接收信号强度对应的所述发射功率,将所述发射功率作为所述最小发射功率。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.

在一个具体实施例中,第二确定模块405,用于将最小发射功率作为第一对讲机向目标对讲机发送通信数据时的发射功率;或者,获取基于预设最大发射功率划分的多个发射功率档位;其中,每个发射功率档位对应一个预设发射功率;从各个发射功率档位中,选取预设发射功率大于最小发射功率的发射功率档位作为目标档位,将所述目标档位对应的预设发射功率作为第一对讲机向目标对讲机发送通信数据时的发射功率。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.

基于同一构思,本公开实施例中还提供了一种电子设备,如图5所示,该电子设备主要包括:处理器501、存储器502和通信总线503,其中,处理器501和存储器502通过通信总线503完成相互间的通信。其中,存储器502中存储有可被处理器501执行的程序,处理器501执行存储器502中存储的程序,实现如下步骤:Based on the same concept, an electronic device is also provided in an embodiment of the present disclosure, as shown in FIG5 , 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:

获取第一对讲机的本地路由表,所述本地路由表记录有预设最大发射距离内的至少一个第二对讲机;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, according to the local routing table, one of the at least one second intercom as a target intercom;

获取第一对讲机与目标对讲机之间的距离指示参数;其中,距离指示参数用于表征第一对讲机与目标对讲机之间的实际距离大小;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;

根据距离指示参数确定第一对讲机的最小发射功率;Determining the minimum transmission power of the first intercom according to the distance indication parameter;

基于最小发射功率,确定第一对讲机向目标对讲机发送通信数据时的发射功率。Based on the minimum transmission power, the transmission power of the first intercom when sending communication data to the target intercom is determined.

上述电子设备可以是第一对讲机本身。The electronic device mentioned above may be the first intercom itself.

上述电子设备中提到的通信总线503可以是外设部件互连标准(PeripheralComponent Interconnect,简称PCI)总线或扩展工业标准结构(Extended IndustryStandard Architecture,简称EISA)总线等。该通信总线503可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。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, etc. The communication bus 503 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in FIG5 , but it does not mean that there is only one bus or one type of bus.

存储器502可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器501的存储装置。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 .

上述的处理器501可以是通用处理器,包括中央处理器(Central ProcessingUnit,简称CPU)、网络处理器(Network Processor,简称NP)等,还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。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.

基于同一技术构思,本公开实施例还提供了一种对讲机,该对讲机的具体实施可参见方法实施例部分的描述,重复之处不再赘述,如图6所示,该对讲机主要包括:Based on the same technical concept, the embodiment of the present disclosure further 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. As shown in FIG6, the walkie-talkie mainly includes:

第一获取单元601,用于获取本对讲机的本地路由表,所述本地路由表记录有预设最大发射距离内的至少一个第二对讲机;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;

选取单元602,用于根据所述本地路由表,从所述至少一个第二对讲机中,选取一个作为目标对讲机;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;

第二获取单元603,用于获取本对讲机与所述目标对讲机之间的距离指示参数;其中,所述距离指示参数用于表征本对讲机与所述目标对讲机之间的实际距离大小;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;

第一确定单元604,用于根据所述距离指示参数确定本对讲机的最小发射功率;A first determining unit 604 is used to determine the minimum transmission power of the intercom according to the distance indication parameter;

第二确定单元605,用于基于所述最小发射功率,确定本对讲机向所述目标对讲机发送通信数据时的发射功率。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.

本公开实施例所称的本对讲机、第二对讲机和目标对讲机均可以指代任何一个对讲机。The intercom, the second intercom and the target intercom referred to in the embodiments of the present disclosure may refer to any intercom.

在本公开实施例中,发射功率根据本对讲机和目标对讲机之间的距离指示参数确定,能够根据二者之间的距离指示参数自适应确定最小发射功率,而不是每次按照默认的发射功率发送通信数据,能够有效降低发射功率,从而延长待机时长,为救援争取更多时间。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.

可选的,所述选取单元602,用于在本地路由表中还记录每个所述第二对讲机到达预设主控对讲机的跳数时,比较每个所述第二对讲机到达预设主控对讲机的跳数,将最小跳数对应的所述第二对讲机确定为目标对讲机。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.

可选的,所述选取单元602,用于当所述最小跳数对应的第二对讲机有且仅有一个,则将最小跳数对应的第二对讲机作为所述目标对讲机;若所述最小跳数对应的第二对讲机的个数大于一个,则从最小跳数对应的各个第二对讲机中,选取接收信号强度指示最大的第二对讲机作为所述目标对讲机。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.

可选的,所述第二获取单元603,用于判定接收到所述目标对讲机的GPS信息;从所述GPS信息中,获取所述目标对讲机的第一位置信息;获取所述本对讲机的第二位置信息;根据所述第一位置信息和所述第二位置信息,计算所述本对讲机与所述目标对讲机之间的实际距离,将所述实际距离作为所述距离指示参数。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.

可选的,所述第一确定单元604,用于获取所述本对讲机的预设最大发射功率和预设最大发射距离;计算所述实际距离与所述预设最大发射距离的比值;根据所述比值和功率-距离增长系数之间的关系计算所述本对讲机在所述实际距离下,向所述目标对讲机发送通信数据时所需要增加的功率;计算所述预设最大发射功率和所述增加的功率之间的和,得到所述本对讲机的最小发射功率。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.

可选的,所述第一确定单元604,用于根据实际距离与最小发射功率之间的距离-发射功率对应关系列表,确定与所述实际距离对应的所述最小发射功率。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.

可选的,所述第二获取单元603,用于判定未接收到所述目标对讲机的GPS信息;从所述本地路由表中,读取所述目标对讲机的接收信号强度指示;将所述接收信号强度指示作为所述距离指示参数。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.

可选的,所述第一确定单元604,用于根据接收信号强度指示与发射功率之间的接收信号强度指示-发射功率对应关系列表,确定与所述接收信号强度对应的所述发射功率,将所述发射功率作为所述最小发射功率。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.

可选的,所述第二确定单元605,用于将所述最小发射功率作为所述本对讲机向所述目标对讲机发送通信数据时的发射功率;或者,获取基于预设最大发射功率划分的多个发射功率档位;其中,每个发射功率档位对应一个预设发射功率;从各个发射功率档位中,选取预设发射功率大于最小发射功率的发射功率档位作为目标档位,将所述目标档位对应的预设发射功率作为所述本对讲机向所述目标对讲机发送通信数据时的发射功率。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.

在本公开的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上运行时,使得计算机执行上述实施例中所描述的一种发射功率确定方法。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.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本公开实施例所述的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、微波等)方式向另外一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带等)、光介质(例如DVD)或者半导体介质(例如固态硬盘)等。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, computer, server or 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 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.

需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。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.

以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。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 (15)

1.一种发射功率的确定方法,其特征在于,所述方法包括: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: 判定接收到所述目标对讲机的GPS信息;Determining that GPS information of the target intercom is received; 从所述GPS信息中,获取所述目标对讲机的第一位置信息;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.根据权利要求1所述的发射功率的确定方法,其特征在于,所述根据所述本地路由表,从所述至少一个第二对讲机中,选取一个作为目标对讲机,包括: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: 若所述最小跳数对应的第二对讲机有且仅有一个,则将最小跳数对应的第二对讲机作为所述目标对讲机;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.根据权利要求1所述的发射功率的确定方法,其特征在于,所述根据所述距离指示参数确定所述第一对讲机的最小发射功率,包括:3. The method for determining the transmission power according to claim 1, wherein determining the minimum transmission power of the first intercom according to the distance indication parameter comprises: 根据实际距离与最小发射功率之间的距离-发射功率对应关系列表,确定与所述实际距离对应的所述最小发射功率。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.根据权利要求1-2任一项所述的发射功率的确定方法,其特征在于,所述获取所述第一对讲机与所述目标对讲机之间的距离指示参数,包括:4. The method for determining the transmission power according to any one of claims 1 to 2, wherein the step of obtaining the distance indication parameter between the first intercom and the target intercom comprises: 判定未接收到所述目标对讲机的GPS信息;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.根据权利要求4所述的发射功率的确定方法,其特征在于,所述根据所述距离指示参数确定所述第一对讲机的最小发射功率,包括:5. The method for determining the transmission power according to claim 4, wherein determining the minimum transmission power of the first intercom according to the distance indication parameter comprises: 根据接收信号强度指示与发射功率之间的接收信号强度指示-发射功率对应关系列表,确定与所述接收信号强度对应的所述发射功率,将所述发射功率作为所述最小发射功率。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.根据权利要求1-2任一项所述的发射功率的确定方法,其特征在于,所述基于所述最小发射功率,确定所述第一对讲机向所述目标对讲机发送通信数据时的发射功率,包括:6. The method for determining the transmission power according to any one of claims 1 to 2, wherein determining the transmission power when the first interphone sends communication data to the target interphone based on the minimum transmission power comprises: 将所述最小发射功率作为所述第一对讲机向所述目标对讲机发送通信数据时的发射功率;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.一种对讲机,其特征在于,包括:7. A walkie-talkie, comprising: 第一获取单元,用于获取本对讲机的本地路由表,所述本地路由表记录有预设最大发射距离内的至少一个第二对讲机;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: 判定接收到所述目标对讲机的GPS信息;Determining that GPS information of the target intercom is received; 从所述GPS信息中,获取所述目标对讲机的第一位置信息;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; 计算所述预设最大发射功率和所述增加的功率之间的和,得到所述本对讲机的最小发射功率;Calculate 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.根据权利要求7所述的对讲机,其特征在于,所述选取单元,用于当所述最小跳数对应的第二对讲机有且仅有一个,则将最小跳数对应的第二对讲机作为所述目标对讲机;若所述最小跳数对应的第二对讲机的个数大于一个,则从最小跳数对应的各个第二对讲机中,选取接收信号强度指示最大的第二对讲机作为所述目标对讲机。8. The intercom according to claim 7 is characterized in that the selection unit 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, then select the second intercom with the largest received signal strength indication from each second intercom corresponding to the minimum hop number as the target intercom. 9.根据权利要求7所述的对讲机,其特征在于,所述第一确定单元,用于根据实际距离与最小发射功率之间的距离-发射功率对应关系列表,确定与所述实际距离对应的所述最小发射功率。9. The intercom according to claim 7, characterized in that the first determination unit is used to determine the minimum transmission power corresponding to the actual distance according to a distance-transmission power correspondence list between the actual distance and the minimum transmission power. 10.根据权利要求7~8任一项所述的对讲机,其特征在于,所述第二获取单元,用于判定未接收到所述目标对讲机的GPS信息;从所述本地路由表中,读取所述目标对讲机的接收信号强度指示;将所述接收信号强度指示作为所述距离指示参数。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 has not been 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.根据权利要求10所述的对讲机,其特征在于,所述第一确定单元,用于根据接收信号强度指示与发射功率之间的接收信号强度指示-发射功率对应关系列表,确定与所述接收信号强度对应的所述发射功率,将所述发射功率作为所述最小发射功率。11. The intercom according to claim 10 is characterized in that the first determination unit is used to determine the transmission power corresponding to the received signal strength according to a received signal strength indication-transmission power correspondence list between the received signal strength indication and the transmission power, and use the transmission power as the minimum transmission power. 12.根据权利要求7~8任一项所述的对讲机,其特征在于,所述第二确定单元,用于将所述最小发射功率作为所述本对讲机向所述目标对讲机发送通信数据时的发射功率;或者,获取基于预设最大发射功率划分的多个发射功率档位;其中,每个发射功率档位对应一个预设发射功率;从各个发射功率档位中,选取预设发射功率大于最小发射功率的发射功率档位作为目标档位,将所述目标档位对应的预设发射功率作为所述本对讲机向所述目标对讲机发送通信数据时的发射功率。12. The intercom according to any one of claims 7 to 8 is characterized in that the second determination unit is used to use the minimum transmission power as the transmission power when the intercom sends communication data to the target intercom; 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 intercom sends communication data to the target intercom. 13.一种发射功率的确定装置,其特征在于,所述装置包括: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: 判定接收到所述目标对讲机的GPS信息;Determining that GPS information of the target intercom is received; 从所述GPS信息中,获取所述目标对讲机的第一位置信息;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.一种电子设备,其特征在于,包括:处理器、存储器和通信总线,其中,处理器和存储器通过通信总线完成相互间的通信;14. 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; 所述存储器,用于存储计算机程序;The memory is used to store computer programs; 所述处理器,用于执行所述存储器中所存储的程序,实现权利要求1~6任意一项所述的发射功率的确定方法。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.一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1~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.
CN202110841292.1A 2021-07-26 2021-07-26 Method, device, intercom, equipment and storage medium for determining transmission power Active CN113543022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110841292.1A CN113543022B (en) 2021-07-26 2021-07-26 Method, device, intercom, equipment and storage medium for determining transmission power

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110841292.1A CN113543022B (en) 2021-07-26 2021-07-26 Method, device, intercom, equipment and storage medium for determining transmission power

Publications (2)

Publication Number Publication Date
CN113543022A CN113543022A (en) 2021-10-22
CN113543022B true CN113543022B (en) 2024-11-05

Family

ID=78120757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110841292.1A Active CN113543022B (en) 2021-07-26 2021-07-26 Method, device, intercom, equipment and storage medium for determining transmission power

Country Status (1)

Country Link
CN (1) CN113543022B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117061995B (en) * 2023-10-13 2023-12-15 福建森海克斯电子科技有限公司 Position sharing system and communication method based on interphone ad hoc network
CN118400698B (en) * 2024-06-25 2024-08-30 泉州市创新电子科技有限公司 Communication risk monitoring method of interphone and interphone

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222912A (en) * 2017-06-08 2017-09-29 西安蜂语信息科技有限公司 A kind of method of adjust automatically transmission power, apparatus and system
CN113064951A (en) * 2021-04-20 2021-07-02 中国工商银行股份有限公司 Data synchronization method and device based on block chain

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562861B (en) * 2009-05-15 2011-04-13 重庆邮电大学 Cross-layer and bi-directional routing method based on hop number and energy in wireless sensor network
KR20140060095A (en) * 2012-11-09 2014-05-19 삼성전자주식회사 Method and apparatus for setting a routing path in wireless communication system
CN105657656B (en) * 2016-01-06 2019-04-05 Oppo广东移动通信有限公司 A kind of transmission power adjustment method and user equipment
CN106953656B (en) * 2017-03-30 2019-02-22 广东工业大学 A method and device for an intelligent terminal to control a walkie-talkie for information transmission
KR101901999B1 (en) * 2018-02-02 2018-09-27 엘아이지넥스원 주식회사 Apparatus for Transmitting/Receiving Data Packet Using Dual Security Means in Digital Walkie-Talkie for Small Combat Operation and Method thereof
CN109587754B (en) * 2018-12-18 2021-08-31 深圳Tcl新技术有限公司 Network equipment node selection method and device and computer readable storage medium
CN109526046B (en) * 2019-01-07 2021-10-29 福建科立讯通信有限公司 Digital interphone transmitting power optimization adjustment system and method
CN110493137A (en) * 2019-09-12 2019-11-22 苏州浪潮智能科技有限公司 A kind of Tiered broadcast method, apparatus and system based on fixed route network
CN117098161B (en) * 2023-10-18 2024-01-05 西安蜂语信息科技有限公司 Data transmission method, device, network equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222912A (en) * 2017-06-08 2017-09-29 西安蜂语信息科技有限公司 A kind of method of adjust automatically transmission power, apparatus and system
CN113064951A (en) * 2021-04-20 2021-07-02 中国工商银行股份有限公司 Data synchronization method and device based on block chain

Also Published As

Publication number Publication date
CN113543022A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN108882228B (en) Wireless grid network establishing method, device and system of electronic equipment system
WO2023005128A1 (en) Node adding method, walkie talkie, system, and storage medium
CN106416207B (en) Managing connections of user equipment
US9204390B2 (en) Energy-saving mobile node control method using wireless multi-interfaces
CN110650408B (en) Earphone, anti-lost method, anti-lost system and computer readable storage medium
CN104717603B (en) A kind of Bluetooth Low Energy networking simultaneously supports the method and system of convenient interconnection
CN113543022B (en) Method, device, intercom, equipment and storage medium for determining transmission power
US20130067056A1 (en) Providing communication path information in a hybrid communication network
CN109982305A (en) Communication means, communication system and the relevant device of wearable device
WO2023272981A1 (en) Narrowband communication method, walkie-talkie, device, storage medium, and ad hoc networking system
TW201906356A (en) Method, apparatus, and system for configuring measurement gap, network access equipment, and terminal
US9591616B2 (en) Data transmission
JP5784831B2 (en) Device and method for communication of management information in an ad hoc wireless network
US7715395B2 (en) System and method for expanding the range of a mesh network
WO2022252917A1 (en) Method and apparatus for establishing bluetooth link, and bluetooth chip and device
CN104918302B (en) Method for constructing wireless grid network and wireless sound box
CN107949030A (en) A control method and device for accessing multi-band channels
WO2022222299A1 (en) Communication method for wifi device, and device and computer-readable storage medium
US8194567B2 (en) System and method for establishing a wireless mesh network using multiple frequency bands
CN113133092B (en) Energy-saving control method and related equipment
JP6356239B2 (en) Maximum withdrawal period
US12302429B2 (en) Method of transmitting ACK signal in wireless communication system and electronic device
CN117395769A (en) Information transmission methods and related equipment
US8879422B2 (en) Fairness provision via controlling a transmission opportunity window in a wireless mesh network
CN115551124A (en) A networking method, device, equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant