Disclosure of Invention
The invention aims to provide a wireless access method and device of a microphone, electronic equipment and a storage medium, wherein the process of accessing a video conference system does not need manual operation and has high automation degree.
In order to solve the above technical problem, an embodiment of the present invention provides a wireless access method for a microphone, including: acquiring an access point equipment list, wherein the access point equipment list comprises equipment information of access point equipment capable of providing wireless connection, and each piece of equipment information corresponds to one access point equipment capable of providing wireless connection; determining the priority of each access point device capable of providing wireless connection according to the device information, and sequencing the access point devices corresponding to the device information from high to low according to the priority; sending connection requests to the access point devices corresponding to the device information in sequence according to the sequence until the requested access point devices respond to the connection requests; establishing a wireless connection with an access point device responding to the connection request.
The embodiment of the invention also provides a wireless access method of the microphone, which comprises the following steps: receiving a detection request sent by a terminal to be accessed; determining the self access capacity allowance at the current moment, and responding to the detection request and sending self equipment information to the terminal to be accessed under the condition that the access capacity allowance is not zero; and when receiving a connection request sent by the terminal to be accessed, responding to the connection request and establishing wireless connection with the terminal to be accessed which sends the connection request.
An embodiment of the present invention also provides a microphone apparatus including: the device discovery unit is used for acquiring an access point device list, wherein the access point device list comprises device information of access point devices capable of providing wireless connection, and each device information corresponds to one access point device capable of providing wireless connection; a resource sorting unit, configured to determine, according to the device information, priorities of the access point devices that can provide wireless connection, and sort the access point devices corresponding to the device information in order of priority from high to low; and the equipment connecting unit is used for sequentially sending connection requests to the access point equipment corresponding to the equipment information according to the sequence until the requested access point equipment responds to the connection requests, and establishing wireless connection with the access point equipment responding to the connection requests.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the wireless access method of the microphone.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the wireless access method of the microphone.
Compared with the prior art, the method and the device have the advantages that the microphone to be accessed into the video conference acquires the access point device list, the priority ranking is carried out on the access point devices corresponding to the device information according to the device information, the wireless connection with the access point devices is tried in sequence according to the priority, the process of accessing the video conference system is free of manual operation, and the automation degree is high.
In addition, the obtaining the access point device list includes: acquiring at least one of an access capacity margin, a signal strength, and a device type of each of the access point devices as the device information, and generating the access point device list.
In addition, when the device information is an access capacity margin, the determining the priority of each access point device capable of providing wireless connection according to the device information includes: determining the priority of each access point device according to the access capacity allowance of each access point device; when the device information includes multiple ones of access capacity margin, signal strength, and device type, the determining the priority of each of the access point devices capable of providing wireless connection according to the device information includes: and calculating the priority of each access point device according to the preset weight of each content contained in the device information. In an actual use scene, if the device information is the access capacity allowance, a higher priority can be matched for the access point device with larger access capacity allowance, so that the microphone can preferentially select the access point device with smaller connection burden and initiate a connection request, and the communication effect of the microphone after accessing the access point device is ensured; if the device information includes multiple access capacities, signal strengths, and device types, the influence degree of each parameter in the device information on the communication effect can be comprehensively considered for performing weight configuration, so that the access point device with better communication effect has higher priority, and the microphone can be favorably used for connecting the access point device list with better communication effect and initiating the connection request according to the priority.
In addition, before receiving the detection request sent by the terminal to be accessed, the method further includes: a wireless connection is established with the access point device.
In addition, after the responding to the connection request sent by the terminal to be accessed and establishing the wireless connection with the terminal to be accessed which sends the connection request, the method further includes: and accessing the terminal to be accessed which sends the connection request to the access point equipment. The method and the device have the advantages that the to-be-accessed terminal with the established connection is accessed to the access point device with the established wireless connection, and the connection mode of the to-be-accessed terminal to the access point device is expanded.
In addition, the microphone device further includes: the device discovery processing unit is used for receiving a detection request sent by a terminal to be accessed; the resource management unit is used for determining the access capacity allowance of the terminal at the current moment, responding to the detection request and sending own equipment information to the terminal to be accessed under the condition that the access capacity allowance is not zero; and the message forwarding unit is used for responding to the connection request and establishing wireless connection with the terminal to be accessed, which sends the connection request, when receiving the connection request sent by the terminal to be accessed.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a wireless access method of a microphone, and the core of the embodiment lies in that an access point device list is obtained, wherein the access point device list comprises access point devices capable of providing wireless connection and device information of the access point devices capable of providing wireless connection; determining the priority of each access point device according to the device information of the access point devices, and sequencing the access point devices in the access point device list from high to low according to the priority; sending connection requests to the access point devices in the access point device list in sequence according to the sequence until the requested access point devices respond to the connection requests; and establishing wireless connection with the access point equipment responding to the connection request, so that the automation degree of accessing the wireless microphone to the video conference system and the usability of the microphone are improved. The following describes implementation details of the wireless access method of the microphone according to the present embodiment in detail, and the following is only provided for easy understanding and is not necessary to implement the present embodiment.
Fig. 1 shows a flow diagram of a wireless access method for a microphone in this embodiment:
step 101: the method comprises the steps of obtaining an access point device list, wherein the access point device list comprises device information of access point devices capable of providing wireless connection, and each device information corresponds to one access point device capable of providing wireless connection.
Specifically, the microphone (which may be another type of terminal in an actual application scenario) executing this step is used as a device to be accessed for a video conference to be accessed, and based on a preset wireless communication link layer protocol, including but not limited to WIFI and bluetooth, a detection request is actively initiated on a common channel until the device to be accessed receives responses from all access point devices within a detection range. The access point device may be a microphone or other terminal that has accessed the video conference, and the response includes the current system information of the access point device, and the access point device that has reached the maximum connection number does not respond to the device discovery request.
Step 102: and determining the priority of each access point device capable of providing wireless connection according to the device information, and sequencing the access point devices corresponding to the device information from high to low according to the priority.
Specifically, the device information includes an access capacity margin, and the priority of each access point device is determined according to the access capacity margin of each access point device. In this step, the devices to be accessed perform priority ranking on the access point devices according to the access capacity allowance size of each access point device in the access point device list and the corresponding priority, and the access point devices with larger access capacity allowances have higher priorities.
It should be noted that the device information may also be the signal strength or the device type of the access point device.
Step 103: and sending connection requests to the access point equipment corresponding to the equipment information in sequence according to the sequence until the requested access point equipment responds to the connection requests.
Specifically, the device to be accessed selects the access point device with the highest priority from the access point device list, and directionally sends a device connection request to the access point device, and the access point device receiving the connection request itself determines whether to accept the device to be accessed. If so, respond to its connection request. If the connection request is rejected, feeding back a connection request rejection message, selecting the access point equipment with the next level of priority from the access point equipment list by the microphone receiving the connection request rejection message, and initiating the connection request again. Preferably, in this step, if the device to be accessed is not accepted by any access point device in the access point device list, the microphone to be accessed returns to execute step 101.
Step 104: establishing a wireless connection with an access point device responding to the connection request.
Specifically, the device to be accessed and the access point device may perform resource negotiation, such as selection of a communication channel, and establish a wireless connection after the resource negotiation is completed.
Compared with the prior art, in the embodiment of the invention, the microphone to be accessed into the video conference acquires the access point equipment list, carries out priority sequencing on the access point equipment according to the equipment information, and then tries to establish wireless connection with the access point equipment in sequence according to the priority, so that the automation degree of accessing the wireless microphone into the video conference system and the usability of the microphone are improved.
A second embodiment of the present invention relates to a wireless access method for a microphone. The second embodiment is a further improvement of the first embodiment, and the main improvements are as follows: the acquiring device information of each access point device includes: acquiring at least two of access capacity margin, signal strength and device type of each access point device as the device information; the determining the priority of each access point device capable of providing wireless connection according to the device information includes: and calculating the priority of each access point device according to the preset weight of each content contained in the device information.
As shown in fig. 2, the method for wirelessly accessing a microphone in this embodiment specifically includes:
step 201: the method comprises the steps of obtaining an access point device list, wherein the access point device list comprises device information of access point devices capable of providing wireless connection, and each device information corresponds to one access point device capable of providing wireless connection.
Specifically, the acquiring device information of each access point device includes: acquiring at least one of an access capacity margin, a signal strength, and a device type of each of the access point devices as the device information. In the present embodiment, at least two of the access capacity margin, the signal strength, and the device type of the access point device are used as device information; preferably, the access capacity margin, the signal strength, and the device type are taken as the device information.
Step 202: and calculating the priority of each access point device according to the preset weight of each content contained in the device information, and sequencing the access point devices corresponding to the device information according to the sequence from high priority to low priority.
Specifically, according to each preset weight of each access point device, calculating the priority of each access point device by adopting a weighted average calculation method; preferably, the device information includes an access capacity margin, a signal strength, and a device type, and the priority of each access point device is calculated by using a weighted average calculation method according to the access capacity margin, the signal strength, and a preset weight of the device type.
Step 203: and sending connection requests to the access point equipment corresponding to the equipment information in sequence according to the sequence until the requested access point equipment responds to the connection requests.
Step 204: establishing a wireless connection with an access point device responding to the connection request.
Steps 203 to 204 are substantially the same as steps 103 to 104 in the first embodiment, and are not repeated herein to avoid repetition.
Compared with the first embodiment, the priority order of the access point devices is determined according to the multiple items of device information of the access point devices in the access point device list, so that the microphone to be accessed to the video conference initiates connection requests to the access point devices in the access point device list according to a more reasonable order, and the automation degree of the microphone during wireless access is further improved.
A third embodiment of the present invention relates to a wireless access method for a microphone, including: receiving a detection request sent by a terminal; determining the access capacity allowance of the terminal at the current moment, and responding to the detection request and sending own equipment information to the terminal under the condition that the access capacity allowance is not zero; and when receiving a connection request sent by the terminal, responding to the connection request and establishing wireless connection with the terminal sending the connection request.
Fig. 3 shows a wireless access method of a microphone according to the present embodiment, which specifically includes:
step 301: and receiving a detection request sent by a terminal to be accessed.
Step 302: and judging whether the access capacity allowance of the current moment is zero or not, and if not, entering the step 303.
Step 303: responding the detection request and sending own equipment information to the terminal to be accessed.
Specifically, a detection request sent by another terminal to be accessed is received, the access capacity margin of the terminal at the current moment is detected, and if the access capacity margin is not zero, the detection request is responded, and own equipment information is sent to the microphone to be accessed. The terminal to be accessed may be a microphone or other terminal to be accessed to the video conference.
Step 304: and when receiving a connection request sent by the terminal, responding to the connection request and establishing wireless connection with the terminal to be accessed which sends the connection request.
It should be noted that the wireless access method of the microphone related to the implementation method may also be applied to a microphone or other terminals that are not accessed to the video conference, and at this time, the wireless connection is established with the terminal to be accessed to the video conference by the method, and after the microphone or the terminal executing the method is accessed to the video conference, the connected terminal is accessed to the video conference.
Compared with the prior art, the method and the device receive the detection request of the terminal to be accessed, send the self equipment information to the terminal under the condition that the self access capacity margin is not zero, so that the terminal can perform priority sequencing according to the obtained equipment information of the access point equipment, and establish wireless connection with the terminal when receiving the connection request of the terminal, so that the process that the terminal accesses the video conference system does not need manual operation, and the automation degree is high.
A fourth embodiment of the present invention relates to a wireless access method for a microphone. The fourth embodiment is substantially the same as the first embodiment, and differs from the first embodiment in that the fourth embodiment further includes: receiving a detection request sent by a terminal to be accessed; determining the access capacity allowance of the terminal at the current moment, and responding to the detection request and sending own equipment information to the terminal under the condition that the access capacity allowance is not zero; and when receiving a connection request sent by the terminal, responding to the connection request and establishing wireless connection with the terminal sending the connection request.
As shown in fig. 4, the method for wirelessly accessing a microphone in this embodiment specifically includes:
step 401: the method comprises the steps of obtaining an access point device list, wherein the access point device list comprises device information of access point devices capable of providing wireless connection, and each device information corresponds to one access point device capable of providing wireless connection.
In this step, the access point device may be a microphone or other intelligent terminal.
Step 402: and determining the priority of each access point device capable of providing wireless connection according to the device information, and sequencing the access point devices corresponding to the device information from high to low according to the priority.
Step 403: and sending connection requests to the access point equipment corresponding to the equipment information in sequence according to the sequence until the requested access point equipment responds to the connection requests.
Step 404: establishing a wireless connection with an access point device responding to the connection request.
Steps 402 to 404 are substantially the same as steps 102 to 104 in the first embodiment, and are not repeated herein to avoid repetition.
Step 405: and receiving a detection request sent by a terminal to be accessed.
In this step, the terminal to be accessed may be a microphone or other intelligent terminal to be accessed to the video conference.
Step 406: and judging whether the access capacity allowance of the current time is zero or not, and if not, entering step 407.
Step 407: responding the detection request and sending own equipment information to the terminal to be accessed.
Step 408: and when receiving a connection request sent by the terminal, responding to the connection request and establishing wireless connection with the terminal sending the connection request.
Steps 406 to 408 are substantially the same as steps 302 to 304 in the third embodiment, and are not repeated herein to avoid repetition.
It should be noted that, in this embodiment, the sequence between step 405 to step 408, that is, the step of establishing the wireless connection between the access point device and the microphone or other terminal to be accessed to the video conference, and the step 401 to step 404, that is, the step of serving as the terminal to be accessed to the video conference, is not limited, and in practical applications, step 405 to step 408 may be executed first, and then steps 401 to 404 may be executed.
In a specific example, the wireless access method of the microphone in the present embodiment is applied to a microphone in a video conference system, as shown in fig. 5. The microphone is used as a device to be accessed, and wireless connection is established between the microphone and an access point device (comprising a microphone and a non-microphone terminal) in the video conference system; after the microphone is connected to the video conference system, the microphone serves as an access point device to establish wireless connection with the microphone serving as a device to be accessed.
Compared with the first embodiment, in the embodiment of the invention, the microphone to be accessed to the video conference is also used as the access point device to establish wireless connection with other devices to be accessed, so that the microphone can provide connection service for other devices (such as other microphones) which are not accessed after the microphone is wirelessly accessed to the video conference system, and the connection function of the microphone is expanded.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fifth embodiment of the present invention relates to a microphone device, as shown in fig. 6, including:
a device discovery unit 501, configured to obtain an access point device list, where the access point device list includes device information of access point devices that can provide wireless connectivity, and each device information corresponds to one access point device that can provide wireless connectivity;
a resource sorting unit 502, configured to determine, according to the device information, a priority of each access point device capable of providing wireless connection, and sort the access point devices corresponding to the device information in an order from high priority to low priority;
a device connection unit 503, configured to send connection requests to the access point devices corresponding to the device information in sequence according to the sorting until the requested access point device responds to the connection request.
As shown in fig. 7, the microphone device according to the present embodiment may further include:
a device discovery processing unit 504, configured to receive a detection request sent by a terminal to be accessed.
And a resource management unit 505, configured to determine an access capacity margin of the terminal itself at the current time, and respond to the detection request and send device information of the terminal to be accessed to the terminal when the access capacity margin is not zero.
A message forwarding unit 506, configured to, when receiving a connection request sent by the terminal to be accessed, respond to the connection request and establish a wireless connection with the terminal to be accessed that sends the connection request.
It should be understood that this embodiment is an example of the apparatus corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that, in the present embodiment, each unit is a logical unit, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of a plurality of physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A sixth embodiment of the present invention relates to an electronic device, as shown in fig. 8, including at least one processor 601; and a memory 602 communicatively coupled to the at least one processor 601; the memory 602 stores instructions executable by the at least one processor 601, and the instructions are executed by the at least one processor 601 to enable the at least one processor 601 to execute any of the embodiments of the wireless access method of the microphone.
Where the memory 602 and the processor 601 are coupled by a bus, the bus may comprise any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 601 and the memory 602 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 601 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 601.
The processor 601 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. While memory 602 may be used to store data used by processor 601 in performing operations.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the embodiment of the wireless access method of any microphone.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.