A method, device, equipment and storage medium for configuring parameters of an intercom

By monitoring and forwarding configuration messages in the walkie-talkie, and using dynamic configuration tables to realize the parameter configuration of the walkie-talkie, the problem of inconvenient parameter configuration in outdoor environments is solved, and configuration efficiency and anti-interference ability are improved.

CN118764384BActive Publication Date: 2025-04-01SHENZHEN NUOXIN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410915686.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2025-04-01
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

In the prior art, the configuration of intercom parameters is not convenient enough in outdoor environments, especially when it is necessary to respond quickly to changes or flexibly adjust equipment parameters. Centralized management leads to low operational efficiency and slow response speed.

Method used

By monitoring configuration messages, the configuration messages are retained or discarded based on the coordinates, and the remaining number of forwardings, configuration identifiers and configuration information in the retained configuration messages are forwarded to the dynamic configuration table. If the accumulated number exceeds the preset threshold, parameter configuration is performed.

Benefits of technology

It realizes the fast and convenient intercom parameter configuration in an outdoor environment, improves operation efficiency and response speed, and avoids interference from other group signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764384B_ABST
    Figure CN118764384B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of digital information exchange processing technology, and in particular to a method, device, equipment and storage medium for configuring parameters of a walkie-talkie, which continuously monitors configuration messages, decides to retain or discard the configuration message based on coordinates after receiving the configuration message, and forwards the configuration message, and writes it into a locally maintained dynamic configuration table at the same time, controls the number of forwarding times by the remaining forwarding times, controls the retention time of the configuration information in the dynamic configuration table by the life cycle value, and if the cumulative number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold, the walkie-talkie parameters are configured based on the configuration information corresponding to the configuration identifier. Compared with the prior art, the present invention ensures that only the walkie-talkies in the outdoor group are configured by the configuration message that meets the requirements, and will not be interfered by the signals of other groups, so as to achieve the purpose of more conveniently configuring the walkie-talkie parameters in the outdoor environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital information exchange processing, and in particular to a parameter configuration method, device, equipment and storage medium of an intercom. Background Art

[0002] The significance of walkie-talkie parameter configuration is to ensure the effectiveness and efficiency of communication. For example, by correctly setting the frequency and channel, users can ensure stable communication within a specific frequency band and avoid interference with other irrelevant signals. The choice of modulation method affects the transmission quality of the signal, and it can be adjusted for different usage scenarios to optimize the communication effect. The power setting determines the transmission distance and penetration ability of the signal, which is especially important in complex terrain or long-distance communication. CTCSS / DCS coding ensures that only walkie-talkies with the same coding settings can receive signals from each other, effectively avoiding unnecessary interference.

[0003] The current method of configuring two-way radios has a significant drawback, which is the need for centralized and unified configuration. This approach requires that the settings of all devices must be centrally managed and adjusted by the same administrator or system. When acting collectively in the field, this need for centralized management can be inconvenient, especially when it is necessary to respond quickly to changes or flexibly adjust device parameters. In addition, if the number of managers is limited or the outdoor team is in a hurry, centralized management may lead to inefficient operations and slow response speeds.

[0004] Therefore, people need a more convenient solution for configuring intercom parameters in outdoor situations. Summary of the invention

[0005] Therefore, the present invention provides a method, device, equipment and storage medium for configuring parameters of an intercom, so as to solve the problem in the prior art that it is not convenient to configure the parameters of an intercom outdoors.

[0006] The present invention provides a method for configuring parameters of an intercom, comprising:

[0007] Monitoring configuration messages, where the configuration messages include coordinates, remaining forwarding times, a configuration identifier, and configuration information, where the coordinates are the coordinates of the sender, and the configuration identifier is a unique identifier corresponding to the configuration information;

[0008] After receiving the configuration message, decide whether to retain or discard the configuration message based on the coordinates in the configuration message;

[0009] The remaining forwarding times in the reserved configuration message are reduced by one, and a new configuration message is established according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and the new configuration message is forwarded in a broadcast form;

[0010] Assign a life cycle value to the reserved configuration message, and write the configuration identifier and configuration information in the reserved configuration message and the corresponding life cycle value as a table entry into the locally maintained dynamic configuration table;

[0011] Reduce the lifetime value of each entry in the dynamic configuration table and delete entries whose lifetime value reaches zero;

[0012] If the cumulative number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold, the intercom parameter configuration is performed based on the configuration information corresponding to the configuration identifier.

[0013] The present invention also provides a preferred solution: after receiving the configuration message, deciding whether to retain or discard the configuration message based on the coordinates in the configuration message, including:

[0014] Based on the coordinates in the configuration message, calculate the distance between the sender and the host;

[0015] If the distance between the sender and the local machine is less than the preset distance threshold, the configuration message is retained;

[0016] If the distance between the sender and the local machine is greater than the preset distance threshold, the configuration message is discarded;

[0017] In addition, the remaining forwarding times in the reserved configuration message are reduced by one, and a new configuration message is established according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and the new configuration message is forwarded in a broadcast form, including:

[0018] Get the coordinates of the machine;

[0019] Decrease the remaining forwarding times in the retained configuration message by one;

[0020] A new configuration message is created based on the coordinates of the local machine, the remaining forwarding times in the retained configuration message minus one, the configuration identifier, and the configuration information;

[0021] The new configuration message is forwarded by broadcasting.

[0022] The present invention also provides a preferred solution:

[0023] Obtain target activity plan information;

[0024] Initialize the preset distance threshold according to the target activity plan information;

[0025] Initialize the remaining forwarding times according to the target activity plan information;

[0026] Initialize the preset quantity threshold according to the target activity plan information;

[0027] The target activity plan information includes the area of ​​the activity area, the length of the travel route, and the estimated number of rest times; according to the target activity plan information, the preset distance threshold is initialized, including:

[0028] The preset distance threshold is determined by the following formula:

[0029]

[0030] Among them, T d is the preset distance threshold, s is the area of ​​the activity area, l is the length of the travel route, n is the estimated number of rest times, e is a natural constant, A is the preset unit adjustment coefficient, and w1, w2, w3 and w4 are different preset weights.

[0031] The present invention also provides a preferred solution: the target activity plan information also includes the number of team members, and the remaining forwarding times is greater than the number of team members.

[0032] The present invention also provides a preferred solution: initializing a preset quantity threshold according to target activity plan information, including:

[0033] The preset quantity threshold is determined by the following formula:

[0034]

[0035] Among them, T n is the preset quantity threshold, T0 is the initial preset hyperparameter, n p is the number of team members, k is the preset adjustment coefficient, c1 and c2 are different preset scaling coefficients.

[0036] The present invention also provides a preferred solution: the table entry in the dynamic configuration table includes a life cycle value field, a configuration identifier field and an information pointer field, wherein the life cycle value field is used to store the life cycle value of the configuration message corresponding to the table entry, the configuration identifier field is used to save the configuration identifier of the configuration message corresponding to the table entry, and the information pointer field is used to store the storage location of the configuration information of the configuration message corresponding to the table entry.

[0037] The present invention also provides a preferred solution: assigning a life cycle value to a reserved configuration message, and writing the configuration identifier and configuration information in the reserved configuration message and the corresponding life cycle value as a table entry into a locally maintained dynamic configuration table, including:

[0038] Obtaining a target storage location, writing the configuration information in the retained configuration message into the target storage location, and establishing a target information pointer of the target storage location;

[0039] Assign a life cycle value to the retained configuration message to obtain a target life cycle value;

[0040] Writing the target life cycle, the target configuration identifier and the target information pointer as a table entry into a locally maintained dynamic configuration table, wherein the target configuration identifier is the configuration identifier in the reserved configuration message;

[0041] In the dynamic configuration table, the contents of the information pointer fields corresponding to the entries whose contents of the configuration identifier fields are identical to the target configuration identifier are all updated to the target information pointers.

[0042] The present invention also provides a parameter configuration device for an intercom, comprising:

[0043] A monitoring module, used to monitor a configuration message, wherein the configuration message includes coordinates, remaining forwarding times, a configuration identifier, and configuration information, wherein the coordinates are the coordinates of the sender, and the configuration identifier is a unique identifier corresponding to the configuration information;

[0044] A decision module, configured to, after receiving a configuration message, decide whether to retain or discard the configuration message based on the coordinates in the configuration message;

[0045] A forwarding module, used to reduce the remaining forwarding times in the reserved configuration message by one, and to establish a new configuration message according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and to forward the new configuration message in a broadcast form;

[0046] An update module, used to assign a life cycle value to the reserved configuration message, and write the configuration identifier and configuration information in the reserved configuration message and the corresponding life cycle value as a table entry into a locally maintained dynamic configuration table;

[0047] A maintenance module, used to reduce the life cycle value of each table item in the dynamic configuration table and delete the table items whose life cycle value reaches zero;

[0048] The configuration module is used to configure the parameters of the intercom based on the configuration information corresponding to the configuration identifier if the cumulative number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold.

[0049] The present invention also provides an electronic device, comprising:

[0050] Memory and processor;

[0051] The memory is used to store a program, and the processor is used to execute the steps in any one of the above-mentioned methods for configuring the parameters of the intercom when executing the program.

[0052] The present invention also provides a computer-readable storage medium for storing a computer-readable program or instruction. When the program or instruction is executed by a processor, the steps in any of the above-mentioned walkie-talkie parameter configuration methods can be implemented.

[0053] The beneficial effects of adopting the above embodiment are:

[0054] The present invention provides a parameter configuration method, device, equipment and storage medium for an intercom, which continuously monitors a configuration message, decides to retain or discard the configuration message based on the coordinates in the configuration message after receiving the configuration message, and forwards the remaining forwarding times, configuration identifier and configuration information in the retained configuration message, and writes the configuration identifier and configuration information in the retained configuration message into a locally maintained dynamic configuration table, controls the forwarding times of each configuration information by the remaining forwarding times, controls the retention time of each configuration information in the dynamic configuration table by the life cycle value, and performs intercom parameter configuration based on the configuration information corresponding to the configuration identifier if the accumulated number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold. Compared with the prior art, the present invention draws on the characteristics of flooding message forwarding in the network to forward configuration messages for configuring walkie-talkies. When a configuration message is generated and sent, all walkie-talkies in an outdoor activity group will continuously forward configuration messages that meet the coordinate requirements. This allows the information in the configuration messages that meet the coordinate requirements to be quickly accumulated in the dynamic configuration table of each walkie-talkie, quickly reaching a preset number threshold for configuration, while those configuration messages that do not meet the coordinate requirements will not be accumulated. This ensures that only the walkie-talkies in the outdoor group will be configured by the configuration messages that meet the requirements, and will not be interfered by the signals of other groups, thereby achieving the purpose of more conveniently configuring walkie-talkie parameters outdoors. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A method flow chart of an embodiment of a parameter configuration method for an intercom provided by the present invention;

[0056] Figure 2 A schematic diagram of forwarding a configuration message in the present invention;

[0057] Figure 3 A method flow chart of an embodiment of a parameter configuration device for an intercom provided by the present invention;

[0058] Figure 4 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Combination Figure 1 As shown, a specific embodiment of the present invention discloses a parameter configuration method of an intercom, including:

[0061] S101, monitoring a configuration message, where the configuration message includes coordinates, remaining forwarding times, a configuration identifier, and configuration information, wherein the coordinates are the coordinates of the sender, and the configuration identifier is a unique identifier corresponding to the configuration information;

[0062] S102: after receiving the configuration message, decide whether to retain or discard the configuration message based on the coordinates in the configuration message;

[0063] S103, reducing the remaining forwarding times in the reserved configuration message by one, establishing a new configuration message according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and forwarding the new configuration message in a broadcast form;

[0064] S104, assigning a life cycle value to the reserved configuration message, and writing the configuration identifier and configuration information in the reserved configuration message and the corresponding life cycle value as a table entry into a locally maintained dynamic configuration table;

[0065] S105, reducing the life cycle value of each entry in the dynamic configuration table, and deleting the entries whose life cycle value reaches zero;

[0066] S106: If the cumulative number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold, perform walkie-talkie parameter configuration based on the configuration information corresponding to the configuration identifier.

[0067] The above process is executed by the same intercom device, and the device executing the above process is referred to as "this device" in the present invention. It should be noted that the execution order between steps S104 and S105, and between S105 and S106 of the above process can be flexibly interchanged or executed simultaneously.

[0068] The configuration message in the above process refers to the authoritative instruction information that is initially set and determined by the leader of the outdoor team and sent by the leader's device. The configuration message contains information that instructs the team to configure parameters. For example, when hiking outdoors, the leader can set the appropriate transmission power according to the current terrain, the activity range of the group and the terrain conditions. Lower power can be used in open areas to extend battery life, while higher power may be required in complex terrain or long-distance communication. The specific format of the configuration information can be flexibly set according to the actual model of the walkie-talkie and the type of communication technology. The walkie-talkie can configure the parameters according to the configuration information, and for some simple non-intelligent walkie-talkies, the configuration information can also be displayed on the screen for the user to configure.

[0069] Compared with the prior art, the present invention draws on the characteristics of flooding message forwarding in the network to forward configuration messages for configuring walkie-talkies. When a configuration message is generated and sent, all walkie-talkies in an outdoor activity group will successively and continuously forward (forming data flooding in the user group) configuration messages that meet the coordinate requirements. This allows the information in the configuration messages that meet the coordinate requirements to be quickly accumulated in the dynamic configuration table of each walkie-talkie, quickly reaching a preset number threshold for configuration, while those configuration messages that do not meet the coordinate requirements will not be accumulated. This ensures that only the walkie-talkies in the outdoor group will be configured by the configuration messages that meet the requirements, and will not be interfered by the signals of other groups, thereby achieving the purpose of more conveniently configuring walkie-talkie parameters in the outdoors.

[0070] Furthermore, in the above step S102, it can be decided whether to discard the configuration message based on the area where the coordinates in the sent configuration message are located. For example, it can be chosen to only retain the configuration message sent by the command center and forward the original message (the coordinates in the message remain unchanged), while discarding the configuration messages sent from other areas.

[0071] The present invention further provides a preferred implementation mode, in which the above step S102, after receiving the configuration message, determines whether to retain or discard the configuration message based on the coordinates in the configuration message, specifically includes:

[0072] Based on the coordinates in the configuration message, calculate the distance between the sender and the host;

[0073] If the distance between the sender and the local machine is less than the preset distance threshold, the configuration message is retained;

[0074] If the distance between the sender and the local machine is greater than the preset distance threshold, the configuration message is discarded;

[0075] The significance of the above design is that, in practice, the distance over which walkie-talkies send data is usually long. In order to more accurately control the forwarding of messages, only the configuration messages sent by senders with a closer distance are retained, while the configuration messages sent from a longer distance are discarded. This is to ensure that the configuration messages can only be flooded among the teams doing the same outdoor activities. Figure 2 As shown, the information sent by other team members will be discarded, and the configuration message will be continuously forwarded within the range of the outdoor team, thereby ensuring the accuracy of data forwarding and greatly improving the anti-interference ability of the entire configuration method.

[0076] Further, in order to cooperate with the above improvement, in this embodiment, step S103, reducing the remaining forwarding times in the reserved configuration message by one, and establishing a new configuration message according to the remaining forwarding times, configuration identifier and configuration information in the reserved configuration message and forwarding the new configuration message in a broadcast form, specifically includes:

[0077] Get the coordinates of the machine;

[0078] Decrease the remaining forwarding times in the retained configuration message by one;

[0079] A new configuration message is created based on the coordinates of the local machine, the remaining forwarding times in the retained configuration message minus one, the configuration identifier, and the configuration information;

[0080] The new configuration message is forwarded by broadcasting.

[0081] The above process combines the local message to generate a new configuration message during forwarding, ensuring the validity of the forwarded configuration message, thereby ensuring the accuracy of the data configuration.

[0082] Furthermore, in a preferred embodiment, the table entry in the dynamic configuration table includes a life cycle value field, a configuration identifier field and an information pointer field, wherein the life cycle value field is used to store the life cycle value of the configuration message corresponding to the table entry, the configuration identifier field is used to save the configuration identifier of the configuration message corresponding to the table entry, and the information pointer field is used to store the storage location of the configuration information of the configuration message corresponding to the table entry.

[0083] The advantage of the above design is that pointers are used instead of actual data writing to maintain the small size of the dynamic configuration table, thereby improving the speed of traversing the dynamic configuration table and searching for data in the dynamic configuration table, making it more suitable for computing devices such as walkie-talkies with fewer hardware resources and a slightly simpler structure.

[0084] Further, in a preferred embodiment, the above step S104, assigning a life cycle value to the reserved configuration message, and writing the configuration identifier and configuration information in the reserved configuration message and the corresponding life cycle value as a table entry into the locally maintained dynamic configuration table, specifically includes:

[0085] Obtaining a target storage location, writing the configuration information in the retained configuration message into the target storage location, and establishing a target information pointer of the target storage location;

[0086] Assign a life cycle value to the retained configuration message to obtain a target life cycle value;

[0087] Writing the target life cycle, the target configuration identifier and the target information pointer as a table entry into a locally maintained dynamic configuration table, wherein the target configuration identifier is the configuration identifier in the reserved configuration message;

[0088] In the dynamic configuration table, the contents of the information pointer fields corresponding to the entries whose contents of the configuration identifier fields are the same as the target configuration identifier are all updated to the target information pointers.

[0089] The main difference between the above process and the ordinary writing process is that each time a configuration message is received, the configuration information will be rewritten, and all information pointers in the dynamic configuration table will be updated, so that the pointers in the dynamic configuration table always point to the latest written data. On the one hand, the above design ensures that the configuration information pointed to by the information pointer is always the latest and most effective. On the other hand, the above design also greatly simplifies the logic design of the entire configuration method, that is, the old storage area where the configuration information has been written can be directly overwritten, and the relevant engineers no longer need to design the mutual exclusion characteristics of data reading and writing, and no longer need to design programs related to deleting old data, which greatly improves the development cost of the entire configuration method while maintaining the operating efficiency of the algorithm.

[0090] Furthermore, in a preferred embodiment, the life cycle value in the above step S105 can be an optimal time value set manually or obtained based on experiments, and it continuously decreases with the clock in the dynamic configuration table, for example, 1 unit of the life cycle value is reduced for each clock unit, or the life cycle value is reduced by 1 unit each time the dynamic configuration table is updated.

[0091] The present invention also provides a preferred embodiment. In this embodiment, the parameter configuration method of the above walkie-talkie further includes:

[0092] Obtain target activity plan information;

[0093] Initialize the preset distance threshold according to the target activity plan information;

[0094] Initialize the remaining forwarding times according to the target activity plan information;

[0095] Initialize the preset quantity threshold according to the target activity plan information.

[0096] The above process can be carried out before using the walkie-talkie during outdoor activities, and the preset distance threshold, remaining forwarding times and preset quantity threshold can be designed specifically to achieve better use results.

[0097] The target activity plan information includes the area of ​​the activity area, the length of the travel route, and the estimated number of rest times; according to the target activity plan information, the preset distance threshold is initialized, including:

[0098] The preset distance threshold is determined by the following formula:

[0099]

[0100] Among them, T d is the preset distance threshold, s is the area of ​​the activity area, l is the length of the route, n is the estimated number of rest times, e is a natural constant, A is the preset unit adjustment coefficient, w1, w2, w3 and w4 are different preset weights respectively. The preset unit adjustment coefficient is used for unit conversion, which, like the preset weights, can be obtained according to actual experiments and is a hyperparameter.

[0101] The area of ​​the activity area is the total area of ​​the area where the activity is to be carried out (for example, the total area of ​​a mountain), the length of the route is the total distance expected to be traveled in the activity area (for example, the total distance of a hiking trail), and the estimated number of rest stops is the number of rest stops expected during the journey.

[0102] The significance of the above formula is that before carrying out outdoor activities, a more appropriate preset distance threshold is obtained according to the actual situation. The larger the area of ​​the activity area, the more dispersed the team of the outdoor activity team may be. At this time, the preset distance threshold should be appropriately increased. The same is true for the length of the route. The more estimated rest times, the more likely the team will gather. At this time, the preset distance threshold can be lowered to improve accuracy. At the same time, the last term of the above formula further uses the ratio of the route length and the estimated rest times to correct the preset distance threshold. The ratio of the route length and the estimated rest times represents relative data, that is, under the same number of rest times, the longer the route length, the longer the interval between gatherings. At this time, the preset distance threshold should be increased. The above design makes the parameter configuration method of this walkie-talkie more flexible.

[0103] Furthermore, in a preferred embodiment, the target activity plan information also includes the number of team members, and the remaining forwarding times are greater than the number of team members. The significance of this limitation is to ensure that in extreme cases (for example, in a harsh environment, each intercom only forwards the configuration message once and is only received by one device), the configuration message sent by the team leader can be received by everyone in the team.

[0104] Further, in a preferred embodiment, the above step of initializing the preset quantity threshold according to the target activity plan information specifically includes:

[0105] The preset quantity threshold is determined by the following formula:

[0106]

[0107] Among them, T n is the preset quantity threshold, T0 is the initial preset hyperparameter, n p is the number of team members, k is the preset adjustment coefficient, c1 and c2 are different preset scaling coefficients.

[0108] The initial preset hyperparameter can be understood as a default universal quantity threshold. The above process corrects the initial preset hyperparameter through the k value to obtain a more appropriate preset quantity threshold. The brackets in the above formula will get a value between -1 and 1 to adjust the K value. The meaning of the above formula is that the larger the preset distance threshold, the smaller the possibility of retaining the configuration message. At this time, the preset quantity threshold can be appropriately reduced to ensure the validity of the configuration message. The more people in the team, the higher the frequency of forwarding configuration messages. At this time, the preset quantity threshold can also be appropriately reduced to increase the configuration speed.

[0109] Combination Figure 3 As shown, the present invention also provides a parameter configuration system for an intercom, comprising:

[0110] A monitoring module 310 is used to monitor a configuration message, where the configuration message includes coordinates, remaining forwarding times, a configuration identifier, and configuration information, wherein the coordinates are the coordinates of the sender, and the configuration identifier is a unique identifier corresponding to the configuration information;

[0111] A decision module 320, configured to, after receiving a configuration message, decide whether to retain or discard the configuration message based on the coordinates in the configuration message;

[0112] The forwarding module 330 is used to reduce the remaining forwarding times in the reserved configuration message by one, and to establish a new configuration message according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and to forward the new configuration message in a broadcast form;

[0113] An updating module 340 is used to assign a life cycle value to the reserved configuration message, and write the configuration identifier and configuration information in the reserved configuration message and the corresponding life cycle value as a table entry into a locally maintained dynamic configuration table;

[0114] A maintenance module 350, configured to reduce the life cycle value of each entry in the dynamic configuration table and delete the entries whose life cycle value reaches zero;

[0115] The configuration module 360 ​​is used to configure the intercom parameters based on the configuration information corresponding to the configuration identifier if the accumulated number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold.

[0116] It should be noted here that the corresponding system provided in the above embodiments can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents in the above method embodiments, which will not be repeated here.

[0117] refer to Figure 4 , shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. In this embodiment, the electronic device includes:

[0118] Memory 410 and processor 420;

[0119] The memory 410 is used to store programs, and the processor 420 is used to execute the parameter configuration method of the intercom in the above embodiment when executing the program.

[0120] This embodiment further provides a computer-readable storage medium on which a parameter configuration program of an intercom is stored. When the parameter configuration program of the intercom is executed by a processor, the steps in the above embodiment can be implemented.

[0121] The present invention provides a parameter configuration method, device, equipment and storage medium for an intercom, which continuously monitors a configuration message, decides to retain or discard the configuration message based on the coordinates in the configuration message after receiving the configuration message, and forwards the remaining forwarding times, configuration identifier and configuration information in the retained configuration message, and writes the configuration identifier and configuration information in the retained configuration message into a locally maintained dynamic configuration table, controls the forwarding times of each configuration information by the remaining forwarding times, controls the retention time of each configuration information in the dynamic configuration table by the life cycle value, and performs intercom parameter configuration based on the configuration information corresponding to the configuration identifier if the accumulated number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold. Compared with the prior art, the present invention draws on the characteristics of flooding message forwarding in the network to forward configuration messages for configuring walkie-talkies. When a configuration message is generated and sent, all walkie-talkies in an outdoor activity group will continuously forward configuration messages that meet the coordinate requirements. This allows the information in the configuration messages that meet the coordinate requirements to be quickly accumulated in the dynamic configuration table of each walkie-talkie, quickly reaching a preset number threshold for configuration, while those configuration messages that do not meet the coordinate requirements will not be accumulated. This ensures that only the walkie-talkies in the outdoor group will be configured by the configuration messages that meet the requirements, and will not be interfered by the signals of other groups, thereby achieving the purpose of more conveniently configuring walkie-talkie parameters outdoors.

[0122] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0123] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one 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 disclosed herein.

Claims

1. A method for configuring parameters of an intercom, characterized in that: include: Monitoring configuration messages, where the configuration messages include coordinates, remaining forwarding times, a configuration identifier, and configuration information, where the coordinates are the coordinates of the sender, and the configuration identifier is a unique identifier corresponding to the configuration information; After receiving the configuration message, decide whether to retain or discard the configuration message based on the coordinates in the configuration message; The remaining forwarding times in the reserved configuration message are reduced by one, and a new configuration message is established according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and the new configuration message is forwarded in a broadcast form; Assign a life cycle value to the reserved configuration message, and write the configuration identifier and configuration information in the reserved configuration message and the corresponding life cycle value as a table entry into the locally maintained dynamic configuration table; Reduce the lifetime value of each entry in the dynamic configuration table and delete entries whose lifetime value reaches zero; If the cumulative number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold, the intercom parameters are configured based on the configuration information corresponding to the configuration identifier; After receiving the configuration message, deciding whether to retain or discard the configuration message based on the coordinates in the configuration message includes: Obtain target activity plan information; Initialize the preset distance threshold according to the target activity plan information; Initialize the remaining forwarding times according to the target activity plan information; Initialize the preset quantity threshold according to the target activity plan information; Based on the coordinates in the configuration message, calculate the distance between the sender and the host; If the distance between the sender and the local machine is less than the preset distance threshold, the configuration message is retained; If the distance between the sender and the local machine is greater than the preset distance threshold, the configuration message is discarded; In addition, the remaining forwarding times in the reserved configuration message are reduced by one, and a new configuration message is established according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and the new configuration message is forwarded in a broadcast form, including: Get the coordinates of the machine; Decrease the remaining forwarding times in the retained configuration message by one; A new configuration message is created based on the coordinates of the local machine, the remaining forwarding times in the retained configuration message minus one, the configuration identifier, and the configuration information; Forward new configuration messages by broadcasting; Among them, the target activity plan information includes the area of ​​the activity area, the length of the travel route, the estimated number of rest times and the number of team members, and the remaining number of forwarding times is greater than the number of team members; Among them, according to the target activity plan information, the preset distance threshold is initialized, including: The preset distance threshold is determined by the following formula: ; in, is the preset distance threshold, is the area of ​​the activity zone, is the length of the travel route, To estimate the number of breaks, is a natural constant, is the preset unit adjustment factor, , , and They are different preset weights respectively; Among them, according to the target activity plan information, the preset quantity threshold is initialized, including: The preset quantity threshold is determined by the following formula: ; in, is the preset quantity threshold, is the initial preset hyperparameter, For the team size, is the preset adjustment factor, and Different preset zoom factors respectively.

2. The method for configuring parameters of an intercom according to claim 1, characterized in that: The table entry in the dynamic configuration table includes a life cycle value field, a configuration identifier field and an information pointer field, wherein the life cycle value field is used to store the life cycle value of the configuration message corresponding to the table entry, the configuration identifier field is used to save the configuration identifier of the configuration message corresponding to the table entry, and the information pointer field is used to store the storage location of the configuration information of the configuration message corresponding to the table entry.

3. The parameter configuration method of an intercom according to claim 2, characterized in that: Assign a lifecycle value to the reserved configuration message, and write the configuration identifier and configuration information in the reserved configuration message and the corresponding lifecycle value as a table entry into the locally maintained dynamic configuration table, including: Obtaining a target storage location, writing the configuration information in the retained configuration message into the target storage location, and establishing a target information pointer of the target storage location; Assign a life cycle value to the retained configuration message to obtain a target life cycle value; Writing the target life cycle, the target configuration identifier and the target information pointer as a table entry into a locally maintained dynamic configuration table, wherein the target configuration identifier is the configuration identifier in the reserved configuration message; In the dynamic configuration table, the contents of the information pointer fields corresponding to the entries whose contents of the configuration identifier fields are identical to the target configuration identifier are all updated to the target information pointers.

4. A parameter configuration device for an intercom, characterized in that: include: A monitoring module, used to monitor a configuration message, wherein the configuration message includes coordinates, remaining forwarding times, a configuration identifier, and configuration information, wherein the coordinates are the coordinates of the sender, and the configuration identifier is a unique identifier corresponding to the configuration information; A decision module, configured to, after receiving a configuration message, decide whether to retain or discard the configuration message based on the coordinates in the configuration message; A forwarding module, used to reduce the remaining forwarding times in the reserved configuration message by one, and to establish a new configuration message according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and to forward the new configuration message in a broadcast form; An update module, used to assign a life cycle value to the reserved configuration message, and write the configuration identifier and configuration information in the reserved configuration message and the corresponding life cycle value as a table entry into a locally maintained dynamic configuration table; A maintenance module, used to reduce the life cycle value of each table item in the dynamic configuration table and delete the table items whose life cycle value reaches zero; A configuration module, configured to configure intercom parameters based on configuration information corresponding to the configuration identifier if the cumulative number of entries with the same configuration identifier in the dynamic configuration table exceeds a preset number threshold; After receiving the configuration message, deciding whether to retain or discard the configuration message based on the coordinates in the configuration message includes: Obtain target activity plan information; Initialize the preset distance threshold according to the target activity plan information; Initialize the remaining forwarding times according to the target activity plan information; Initialize the preset quantity threshold according to the target activity plan information; Based on the coordinates in the configuration message, calculate the distance between the sender and the host; If the distance between the sender and the local machine is less than the preset distance threshold, the configuration message is retained; If the distance between the sender and the local machine is greater than the preset distance threshold, the configuration message is discarded; In addition, the remaining forwarding times in the reserved configuration message are reduced by one, and a new configuration message is established according to the remaining forwarding times, the configuration identifier and the configuration information in the reserved configuration message, and the new configuration message is forwarded in a broadcast form, including: Get the coordinates of the machine; Decrease the remaining forwarding times in the retained configuration message by one; A new configuration message is created based on the coordinates of the local machine, the remaining forwarding times in the retained configuration message minus one, the configuration identifier, and the configuration information; Forward new configuration messages by broadcasting; Among them, the target activity plan information includes the area of ​​the activity area, the length of the travel route, the estimated number of rest times and the number of team members, and the remaining number of forwarding times is greater than the number of team members; Among them, according to the target activity plan information, the preset distance threshold is initialized, including: The preset distance threshold is determined by the following formula: ; in, is the preset distance threshold, is the area of ​​the activity zone, is the length of the travel route, To estimate the number of breaks, is a natural constant, is the preset unit adjustment factor, , , and They are different preset weights respectively; Among them, according to the target activity plan information, the preset quantity threshold is initialized, including: The preset quantity threshold is determined by the following formula: ; in, is the preset quantity threshold, is the initial preset hyperparameter, For the team size, is the preset adjustment factor, and Different preset zoom factors respectively.

5. An electronic device, characterized in that: include: Memory and processor; The memory is used to store a program, and the processor is used to execute the steps in the parameter configuration method of the intercom according to any one of claims 1 to 3 when executing the program.

6. A computer-readable storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the parameter configuration method of the intercom described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Interphone parameter configuration method and device

    CN107959924A

  • Interphone configuration method and interphone configuration device

    CN108156026A