Router built-in antenna tuning method, device, computer equipment and storage medium
Patent Information
- Application Number
- CN202310869874.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-14
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2043-07-14
AI Technical Summary
[0003]本申请实施例提供了一种路由器内置天线调谐方法、装置、计算机设备及存储介质,旨在解决便携式4G路由器无法直接支持外置天线所导致的在特定频段上的信号接收能力较弱以及覆盖的频段范围较窄的问题,以实现通过天线调谐系统实现不同频段下的最优天线匹配,可以改善信号覆盖范围和稳定性,提升用户的网络连接体验
[0008]本申请实施例提供了一种路由器内置天线调谐方法、装置、计算机设备及存储介质。其中,方法包括获取网络通信模块的网络状态信息,根据网络状态信息启动并连接网络处理模块;获取网络处理模块的频段需求信息,根据频段需求信息启动并连接天线调谐模块;获取天线调谐模块内多个连接端口的端口状态信息,根据端口状态信息启动连接端口所对应的信号天线;获取信号天线的频段配置信息,根据频段配置信息以及频段需求信息进行天线组合配置并生成天线组合信息;获取天线组合信息所对应信号天线的连接信号,以使信号天线通过连接信号所对应的连接端口与网络处理模块连接。本申请实施例所公开的路由器内置天线调谐方法通过不同频段下的最优天线,以改善信号覆盖范围和稳定性,从而提升用户的网络连接体验。
Smart Images

Figure CN116760487B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication equipment control technology, and in particular to a method, apparatus, computer device and storage medium for tuning a router's built-in antenna. Background Technology
[0002] A router is a network device used to transmit data packets and connect multiple networks in a computer network. It forwards data packets from a source network to a target network, enabling communication and connectivity between different networks. Currently, portable 4G routers typically feature a rounded design for portability. However, this design prevents the use of external antennas like traditional routers. Traditionally, this problem was solved by sacrificing some frequency bands. However, by employing an antenna tuning system, more antenna matching options are now available, allowing the antenna to operate on more frequency bands without an external antenna, further improving product performance. An antenna tuning system is a technology that adjusts and optimizes the antenna circuitry to achieve better matching performance across multiple frequency bands. It changes the antenna's operating frequency range by adjusting the values of components such as inductors and capacitors, thus adapting to more frequency bands. The advantage of this system is that it provides wider frequency coverage and enhanced signal reception while maintaining a clean design. With an antenna tuning system, portable 4G routers can achieve better performance without an external antenna. By optimizing antenna design, the product's flexibility and versatility are improved, enabling it to support more frequency bands and network standards, providing a more stable and high-speed network connection. For users, this means a better user experience and more reliable network connectivity in different network environments. By employing an antenna tuning system, portable 4G routers can have a more streamlined design while maintaining better signal reception performance. This allows users to enjoy wider frequency band support and stronger network performance, meeting their daily needs. However, portable 4G routers currently have some technical limitations. One is the inability to use external antennas like conventional routers, resulting in limited frequency band coverage. Additionally, users may encounter unstable signals, especially when connecting to different carriers' networks. These problems mainly stem from the design and technical limitations of portable 4G routers. In pursuit of portability and aesthetics, these routers typically feature a rounded design, making it impossible to directly support external antennas, resulting in a narrower frequency band coverage range. Summary of the Invention
[0003] This application provides a router built-in antenna tuning method, apparatus, computer device, and storage medium, aiming to solve the problem that portable 4G routers cannot directly support external antennas, resulting in weak signal reception capabilities and narrow frequency coverage in specific frequency bands. The goal is to achieve optimal antenna matching in different frequency bands through an antenna tuning system, thereby improving signal coverage and stability and enhancing the user's network connection experience.
[0004] In a first aspect, embodiments of this application provide a router built-in antenna tuning method, applied to an antenna tuning device of a router, including: acquiring network status information of a network communication module; starting and connecting a network processing module based on the network status information; acquiring frequency band requirement information of the network processing module; starting and connecting an antenna tuning module based on the frequency band requirement information; acquiring port status information of multiple connection ports within the antenna tuning module; starting the signal antenna corresponding to the connection port based on the port status information; acquiring frequency band configuration information of the signal antenna; configuring antenna combinations and generating antenna combination information based on the frequency band configuration information and frequency band requirement information; and acquiring the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna is connected to the network processing module through the connection port corresponding to the connection signal.
[0005] Secondly, embodiments of this application also provide a router-embedded antenna tuning device, including a first module startup unit for acquiring network status information of a network communication module, and starting and connecting to a network processing module based on the network status information; a second module startup unit for acquiring frequency band requirement information of the network processing module, and starting and connecting to an antenna tuning module based on the frequency band requirement information; an antenna startup unit for acquiring port status information of multiple connection ports within the antenna tuning module, and starting the signal antenna corresponding to the connection port based on the port status information; an antenna combination unit for acquiring frequency band configuration information of the signal antenna, configuring the antenna combination based on the frequency band configuration information and the frequency band requirement information, and generating antenna combination information; and a communication unit for acquiring the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna is connected to the network processing module through the connection port corresponding to the connection signal.
[0006] Thirdly, embodiments of this application also provide a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method.
[0007] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, can implement the above-described method.
[0008] This application provides a router built-in antenna tuning method, apparatus, computer device, and storage medium. The method includes: acquiring network status information of a network communication module; starting and connecting a network processing module based on the network status information; acquiring frequency band requirement information of the network processing module; starting and connecting an antenna tuning module based on the frequency band requirement information; acquiring port status information of multiple connection ports within the antenna tuning module; starting the signal antenna corresponding to the connection port based on the port status information; acquiring frequency band configuration information of the signal antenna; configuring antenna combinations and generating antenna combination information based on the frequency band configuration information and frequency band requirement information; and acquiring the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna connects to the network processing module through the connection port corresponding to the connection signal. The router built-in antenna tuning method disclosed in this application improves signal coverage and stability by using optimal antennas in different frequency bands, thereby enhancing the user's network connection experience. Attached Figure Description
[0009] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A flowchart illustrating the router built-in antenna tuning method provided in this application embodiment;
[0011] Figure 2 A schematic diagram of a sub-process of the router built-in antenna tuning method provided in an embodiment of this application;
[0012] Figure 3 This is another schematic diagram of a sub-process of the router built-in antenna tuning method provided in the embodiments of this application;
[0013] Figure 4 This is another sub-process diagram of the router built-in antenna tuning method provided in the embodiments of this application;
[0014] Figure 5 A further sub-process diagram of the router built-in antenna tuning method provided in the embodiments of this application;
[0015] Figure 6 A schematic diagram of another sub-process of the router built-in antenna tuning method provided in the embodiments of this application;
[0016] Figure 7 A schematic block diagram of a router built-in antenna tuning device provided in an embodiment of this application;
[0017] Figure 8A schematic block diagram of a computer device provided in an embodiment of this application. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0020] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0021] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0022] This application provides a method, apparatus, computer device, and storage medium for tuning the built-in antenna of a router.
[0023] The subject executing the router built-in antenna tuning method can be the router built-in antenna tuning device provided in the embodiments of this application, or a computer device that integrates the router built-in antenna tuning device. The router built-in antenna tuning device can be implemented in hardware or software. The computer device can be a terminal or a server. The terminal can be a smartphone, tablet computer, handheld computer, or laptop computer, etc.
[0024] Figure 1 This is a flowchart illustrating the router built-in antenna tuning method provided in an embodiment of this application. Figure 1 As shown, the method includes the following steps S110-150.
[0025] S110. Obtain the network status information of the network communication module, and start and connect to the network processing module based on the network status information.
[0026] Specifically, this method first requires obtaining the network status information of the network communication module and then starting and connecting the network processing module based on this information. A commonly used 4G module is responsible for communication between the router and the external network. A 4G module includes a network interface and related hardware devices, drivers, or protocol stacks. The current status information of the network communication module is obtained by accessing its interface or a status query function. This information may include connection status, network type (such as Wi-Fi or Ethernet), IP address, subnet mask, gateway, etc. Based on the obtained network status information, the connection status and availability of the network communication module are determined. For example, it checks whether the connection to the network has been successfully completed and whether the signal strength is stable. If the network communication module is connected and available, the network processing module is started. This module uses a communication chip with network information and signal processing capabilities to handle tasks related to network communication, such as data transmission, routing, and packet forwarding. Finally, a connection is established between the network processing module and the network communication module to ensure that they can interact and collaborate.
[0027] like Figure 2 As shown, step S110 further includes steps S111-S113:
[0028] S111. Obtain the network configuration parameters of the network communication module and store them in a preset database.
[0029] Specifically, first, determine the structure and fields of the database storing network configuration parameters. Create a table with appropriate fields, such as module name, IP address, subnet mask, gateway, DNS server, etc. Obtain network configuration parameters from the network communication module using appropriate interfaces or functions. Parameters include IP address, subnet mask, gateway, etc. Establish a connection to the preset database using an appropriate database connection library or driver. Insert the obtained network configuration parameters into the corresponding tables in the preset database. Ensure that each parameter corresponds to the correct field. Check if the insertion operation was successful and handle errors as needed. Close the database connection: Once the data insertion operation is complete, close the connection to the database and release resources.
[0030] S112. Generate network connection parameters based on network configuration parameters and store them in a preset database.
[0031] Specifically, first, determine the structure and fields of the database storing network connection parameters. Create a table with appropriate fields, such as module name, connection type, IP address, port number, etc. Obtain network configuration parameters from the network communication module using appropriate interfaces or functions. These parameters may include IP address, subnet mask, gateway, etc. Using the obtained network configuration parameters, generate corresponding network connection parameters, such as IP address, port number, etc., according to the required connection type and protocol. Establish a connection to the preset database using an appropriate database connection library or driver. Insert the generated network connection parameters into the corresponding tables in the preset database. Ensure that each parameter corresponds to the correct field. Check if the insertion operation was successful and handle errors as needed. Once the data insertion operation is complete, close the connection to the database and release resources.
[0032] S113. Generate a processing module start signal based on network connection parameters to start the network processing module.
[0033] Specifically, network connection parameters are retrieved from a pre-defined database using appropriate database queries. These parameters may include connection type, IP address, port number, etc. Using the retrieved network connection parameters, a corresponding startup signal is generated based on the required processing module type and protocol. For example, for a specific network processing module, a data structure containing the parameters needed to start the module can be generated. The generated startup signal is then passed to the network processing module to activate and start it. The specific startup method depends on the design and implementation of the network processing module and may involve function calls, message passing, etc. The success of the network processing module startup is checked, and error handling is performed as needed.
[0034] S120. Obtain the frequency band requirement information of the network processing module, and start and connect the antenna tuning module according to the frequency band requirement information.
[0035] Specifically, frequency band requirement information is obtained from the network processing module. This information may include the required frequency band range, bandwidth requirements, etc. The network communication module is a communication chip capable of using network signals, and it connects to the 4G module (which acts as the network communication module) via a USB interface. A connection to a preset database is established using an appropriate database connection library or driver. A database query is performed to retrieve information about the antenna tuning module related to frequency band tuning. As needed, module availability, frequency band support range, configuration parameters, etc., can be queried. Based on the frequency band requirement information from the network processing module and the support capabilities of the antenna tuning module, a suitable antenna tuning module is selected. The selected antenna tuning module is started using the corresponding startup command or interface. The frequency band requirement information is ensured to be transmitted to the antenna tuning module. The connection of the antenna tuning module is checked, and error handling is performed as needed.
[0036] like Figure 3 As shown, step S120 further includes steps S121-S123:
[0037] S121. Obtain the frequency band range information of the network processing module and store it in a preset database.
[0038] Specifically, ensure the network processing module has appropriate interfaces or methods to provide frequency band range information to external systems. Establish a connection to a pre-defined database using a suitable database connection library or driver. Create a table in the pre-defined database to store the frequency band range information. This table should contain appropriate columns to store relevant attributes of the frequency band range, such as start frequency and end frequency. Call the appropriate interface or method from the network processing module to retrieve the frequency band range information. Using the database connection, insert the retrieved frequency band range information into the pre-defined database table. Ensure that the attributes of each frequency band range are stored in the corresponding database columns. Check if the frequency band range information has been successfully inserted into the database and handle errors as needed.
[0039] S122. Determine whether the frequency band requirement corresponding to the frequency band requirement information falls within the frequency band conditions corresponding to the frequency band range information. If the frequency band requirement corresponding to the frequency band requirement information falls within the frequency band conditions corresponding to the frequency band range information, generate a tuning module start signal and execute step S123.
[0040] Specifically, the process involves determining whether the frequency band requirement information falls within the frequency band conditions corresponding to the frequency band range information, and generating a startup signal for the tuning module based on the result. This requires retrieving the frequency band requirement information from the network processing module, including the required frequency band range and bandwidth requirements. A database query operation is used to retrieve the database table storing the frequency band range information and obtain the corresponding frequency band range conditions. The frequency band requirement information is compared with the frequency band range conditions to determine if the frequency band requirement falls within the frequency band range. For example, it can be determined whether the starting frequency of the frequency band requirement is greater than or equal to the starting frequency of the frequency band range, and whether the ending frequency is less than or equal to the ending frequency of the frequency band range. If the frequency band requirement falls within the frequency band range conditions, a startup signal for the tuning module is generated. This can be a Boolean value or other required signal to trigger the tuning module's startup. Based on the generated startup signal, the corresponding method or interface is called to start the tuning module. Finally, it is ensured that the frequency band requirement information is transmitted to the tuning module.
[0041] S123. Start the antenna tuning module according to the tuning module start signal, so that the network processing module and the antenna tuning module can complete the connection according to the start signal.
[0042] Specifically, the process involves receiving a startup signal generated by the tuning module. The received startup signal is then checked to ensure it indicates that the tuning module needs to be started. Based on the received startup signal, the appropriate method or interface is invoked to start the antenna tuning module. This may involve sending a startup command to the antenna tuning module via the control interface or triggering the internal startup mechanism of the antenna tuning module. A certain amount of time is waited to ensure that the antenna tuning module completes startup and establishes a connection with the network processing module. An appropriate waiting time can be set according to the specific scenario. During this period, the connection status can be monitored or other necessary operations can be performed to confirm that the connection has been successfully established. Test data or commands can be sent to the network processing module to verify that the connection between it and the antenna tuning module is working properly. This ensures that the network processing module and the antenna tuning module can communicate and transmit data normally.
[0043] S130. Obtain the port status information of multiple connection ports in the antenna tuning module, and start the signal antenna corresponding to the connection port according to the port status information.
[0044] Specifically, a multi-port antenna tuning switch is used as the antenna tuning module. One end of the antenna tuning switch has multiple ports that connect to multiple pins of the communication chip, which serves as the network processing module. The other end serves as the antenna input, transmitting signals to the signal antenna. To obtain the port status information of multiple connection ports within the antenna tuning module and to activate the corresponding signal antenna based on this information, the port status information is obtained by calling appropriate methods or interfaces. This information may include port numbers, connection statuses, etc. The obtained port status information is parsed to obtain the status of each connection port. The availability of a port can be determined based on the identifier field or other parameters in the port status information. For a connection port that is available, the corresponding method or interface is called based on the port number or other identifiers to activate the signal antenna corresponding to that port. This may include sending a start command to the signal antenna or triggering the signal antenna's internal activation mechanism. A certain period of time is waited to ensure that the signal antenna has been successfully activated and a connection to the connection port has been established. During this period, the connection status can be monitored or other necessary operations can be performed to confirm that the connection has been successfully established. You can verify that the connection between the antenna and the signal antenna is working properly by sending test data or commands to the connection port. This ensures that the signal antenna can receive and transmit signals correctly.
[0045] In another embodiment, such as Figure 4 As shown, execution step S130 further includes execution steps S131-S134:
[0046] S131. Identify multiple connection ports within the antenna tuning module based on port status information and arrange the port numbers accordingly.
[0047] Specifically, multiple connection ports within the antenna tuning module are identified and numbered based on their port status information. This is achieved by calling appropriate methods or interfaces to obtain the port status information of these ports. This information may include port numbers and connection statuses. The obtained port status information is then parsed to extract the port numbers. Based on these port numbers, the ports are sorted to determine their order. A suitable sorting algorithm (e.g., bubble sort, quicksort) is used to sort the port numbers. The resulting list of sorted port numbers can be arranged in ascending order or any other desired order. (The process repeats itself here.)
[0048] S132. Obtain the port number of the multiple identified connection ports.
[0049] Specifically, after parsing the port status information and sorting the port numbers, a sorted list of port numbers can be obtained. Assuming the port status information is a list containing multiple dictionaries, each containing a port number and a connection status field, the port number field can be extracted and sorted. Finally, the sorted port numbers are printed.
[0050] S133. Generate port status information based on port number.
[0051] Specifically, to generate port status information based on port numbers, define a port number list: define a list containing multiple port numbers that will be used to generate port status information. Generate port status information: iterate through the port number list and generate corresponding port status information for each port number. You can set fields such as connection status for each port status information according to actual needs. You can choose to print the generated port status information or perform other processing as needed. Print the generated port status information line by line.
[0052] S134. Generate an antenna start signal based on the port status information to start the signal antenna corresponding to the connection port.
[0053] Specifically, an antenna activation signal needs to be generated based on the port status information to activate the signal antenna corresponding to the connected port. This involves obtaining port status information containing multiple connected ports, ensuring that the information includes necessary fields such as port number and connection status. The port status information list is traversed, and operations are performed on each connected port. For each connected port, its connection status is determined. Based on the connection status, it is decided whether an antenna activation signal needs to be generated. For example, a conditional statement can be used to determine if the connection status is "connected." For ports with a "connected" status, the corresponding antenna activation signal is generated based on the port number. The specific antenna activation signal format and generation method may vary depending on the actual situation; a suitable method should be selected to generate the antenna activation signal as needed. Based on the generated antenna activation signal, the signal antenna corresponding to the connected port is activated. The specific activation method may involve hardware devices and communication protocols, requiring appropriate handling based on the actual situation.
[0054] S140. Obtain the frequency band configuration information of the signal antenna, configure the antenna combination according to the frequency band configuration information and frequency band requirement information, and generate antenna combination information.
[0055] Specifically, this involves obtaining the frequency band configuration information of the signal antennas, configuring antenna combinations based on the frequency band configuration information and frequency band requirement information, and generating antenna combination information. The frequency band configuration information of the signal antennas is obtained from a reliable source, ensuring that the information includes necessary fields such as antenna number and corresponding frequency band configuration. A data structure or list containing frequency band requirements is defined, ensuring that each frequency band requirement includes a frequency band number and other necessary requirement fields. The list of frequency band requirement information is traversed, and operations are performed on each frequency band requirement. For each frequency band requirement, a matching antenna is searched in the signal antenna's frequency band configuration information, ensuring that the frequency band requirement matches the antenna's frequency band configuration. The matching antennas and frequency band requirement information are combined to form the antenna combination information.
[0056] like Figure 5 As shown, after executing step S140, steps S141-S144 are further executed:
[0057] S141. Obtain the current frequency band configuration parameters of each signal antenna.
[0058] Specifically, to obtain the current frequency band configuration parameters of each signal antenna, it is necessary to refer to the relevant device documentation or perform actual query operations. Obtain a list or identifier of all signal antennas, ensuring that each antenna has a unique identifier. Iterate through the list of signal antennas and operate on each antenna. For each signal antenna, use its identifier to perform a query operation to obtain the current frequency band configuration parameters. For example, this can be done by calling specific API interfaces, querying relevant databases, or calling device commands. Based on the query results, output the current frequency band configuration parameters of each signal antenna. The specific output format and method can be adjusted and optimized as needed.
[0059] S142. Generate the frequency band configuration information of the corresponding signal antenna based on the current frequency band configuration parameters of each signal antenna.
[0060] Specifically, the process involves generating frequency band configuration information for each signal antenna based on its current frequency band configuration parameters. This requires obtaining these parameters using appropriate methods, including querying device documentation, API interfaces, databases, or other relevant information sources. The obtained current frequency band configuration parameters are then parsed into a suitable data structure for subsequent processing. This could be a dictionary, list, or custom class, depending on the requirements and programming environment. Based on the parsed current frequency band configuration parameters, the corresponding frequency band configuration information for the signal antenna is generated. A new data structure can be defined as needed, containing an identifier for each signal antenna and its corresponding frequency band configuration information. The generated frequency band configuration information is then output for further use or display. A suitable output method can be selected as needed, such as printing to the console, writing to a file, or returning it to the caller. The process can generate corresponding frequency band configuration information for each signal antenna based on its current frequency band configuration parameters. Please adjust accordingly based on the actual situation and data structure.
[0061] S143. Determine if the current frequency band configuration parameters of each signal antenna match the frequency band requirement information. If the current frequency band configuration parameters of the signal antenna match the frequency band requirement information, mark the port number of the connection port of the corresponding signal antenna and execute step S144.
[0062] Specifically, it's necessary to determine whether the current frequency band configuration parameters of each signal antenna match the frequency band requirement information, mark the connection port number of the corresponding signal antenna, and obtain the frequency band requirement information, including the required frequency band range, bandwidth requirements, modulation method, etc. To obtain the current frequency band configuration parameters of each signal antenna, refer to the previously mentioned method. Iterate through each signal antenna and its corresponding frequency band configuration parameters, performing a matching judgment. Determine whether the frequency band requirement information and the current frequency band configuration parameters of the signal antenna match. Specific matching conditions will depend on the requirements, such as whether the frequency band range is consistent, whether the bandwidth meets the requirements, etc. If the current frequency band configuration parameters of the signal antenna match the frequency band requirement information, mark the port number of the signal antenna's connection port. It's possible to determine whether the current frequency band configuration parameters of each signal antenna match the frequency band requirement information and mark the connection port number of the corresponding signal antenna. Please make corresponding adjustments based on the actual situation and matching conditions.
[0063] S144. Select the connection port of the signal antenna according to the marked port number and generate antenna combination information based on the port number.
[0064] Specifically, the connection ports for signal antennas are selected based on the marked port numbers, and antenna combination information based on these port numbers is generated. The marked port numbers are the results of the previous matching condition determination and marking. The corresponding signal antenna connection ports are selected based on the port numbers to generate antenna combination information. The specific selection method depends on the actual requirements and system architecture. Antenna combination information based on port numbers is generated based on the selected signal antenna connection ports. The required information can be a list containing an identifier for each signal antenna and its corresponding connection port number. The connection ports for signal antennas can be selected based on the marked port numbers, and antenna combination information based on these port numbers can be generated. Please adjust accordingly based on the actual situation and data structure.
[0065] S150. Obtain the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna can be connected to the network processing module through the connection port corresponding to the connection signal.
[0066] Specifically, the process involves obtaining the connection signals of the signal antennas corresponding to the antenna combination information, and connecting them to the network processing module through the connection ports corresponding to these connection signals. The connection port information for each signal antenna is then obtained from the antenna combination information. Based on this information, the connection signal corresponding to each connection port is determined. This typically requires referring to the system design or network architecture specifications to identify the name or identifier corresponding to the connection signal. Based on the name or identifier of the connection signal, the signal antenna is connected to the network processing module through the corresponding connection port. The connection signals are then obtained from the antenna combination information and connected to the network processing module through the connection ports corresponding to these connection signals. Please make appropriate adjustments based on the actual situation and system requirements.
[0067] like Figure 6 As shown, step S150 includes sub-step S151:
[0068] S151. Generate a connection signal based on the port number and configuration parameters of the signal antenna corresponding to the antenna combination information.
[0069] Specifically, connection signals are generated based on the port numbers and configuration parameters of the signal antennas corresponding to the antenna combination information. The port number and corresponding configuration parameters of each signal antenna are obtained. A corresponding connection signal is generated based on the configuration parameters of each signal antenna. Adjustments are made according to the actual situation and signal processing requirements; the specific method of generating connection signals should be implemented according to the actual system requirements and signal specifications.
[0070] In another embodiment of the present invention, step S152 is further performed after step S151:
[0071] S152. Determine whether the connection port corresponding to the connection signal is in the started state. If the connection port is in the started state, connect the connection port to the network processing module according to the connection signal.
[0072] Specifically, it is necessary to determine whether the connection port corresponding to the connection signal is in an enabled state, and based on the result, connect the connection port to the network processing module. The status information of the corresponding connection port is obtained based on the connection signal to determine whether it is in an enabled state. If the connection port is in an enabled state, then the connection port is connected to the network processing module.
[0073] In summary, the router built-in antenna tuning method disclosed in this application is used for the selection, configuration, and signal transmission / reception optimization of the router's built-in antennas. A 4G module serves as the network communication module used in the method, and a communication chip with network communication processing capabilities is connected to the 4G module via USB as the network processing module. An antenna tuning switch is installed inside the router for signal antenna communication connection. First, the system obtains the status information of the router's internal network communication module according to the antenna tuning method, including whether it is connected to the network and the stability of the network connection. Based on the network status information, the system starts and connects the corresponding network processing module to process data received from the network and transmit data. The system obtains the frequency band requirements of the network processing module, i.e., which frequency bands are needed for communication and data transmission. Based on the frequency band requirements, the system starts and connects the antenna tuning module. The antenna tuning module adjusts and optimizes the antenna's operating state to meet the needs of network communication. The system obtains the status information of multiple connection ports within the antenna tuning module, including port availability and connection stability. Based on the port status information, the system starts the corresponding signal antenna for each connection port. Each signal antenna is responsible for receiving and transmitting signals in a specific frequency band. The system acquires the frequency band configuration information of each signal antenna, specifying which frequency bands the antenna is configured to receive and transmit signals in. Based on this information, the system performs antenna combination configuration to ensure compliance with network communication requirements. According to the antenna combination configuration, the system generates corresponding antenna combination information describing how to combine multiple antennas. Based on this information, the system establishes connections between the signal antennas and the network processing module via the corresponding connection ports for data transmission and communication. This router-integrated antenna tuning method dynamically adjusts the antenna's operating state based on network status, frequency band requirements, and antenna configuration to optimize network communication quality and stability. An antenna tuning system with an antenna tuning switch is installed inside the portable 4G router to achieve optimal antenna matching for different frequency bands. The main chip connects to the antenna tuning switch's CTL1, CTL2, and CTL3 via three GPIO pins and communicates with the 4G module via a USB interface to read the current operating frequency band. Then, the main chip uses algorithms to control the matching of six antennas, matching the antennas to their corresponding operating frequency bands to achieve optimal antenna matching design. This antenna tuning system can automatically adjust the antenna configuration after real-time monitoring and identification of the 4G module's operating frequency band to obtain the best signal reception performance. Through dynamic antenna matching, users can achieve more stable and efficient network connections in different frequency bands and network environments. This technical approach can, to some extent, solve the problems of limited frequency band coverage and unstable signals in portable 4G routers. By combining software and hardware, intelligent control and optimization of the antennas are achieved, improving router performance and user experience.
[0074] Figure 7 This is a schematic block diagram of a router built-in antenna tuning device 100 provided in an embodiment of this application. Figure 7 As shown, corresponding to the above-described router built-in antenna tuning method, this application also provides a router built-in antenna tuning device. This router built-in antenna tuning device includes a unit for performing the above-described router built-in antenna tuning method, and the device can be configured in a desktop computer, tablet computer, laptop computer, or other terminal. Specifically, please refer to... Figure 7 The router's built-in antenna tuning device includes a first module startup unit 110, a second module startup unit 120, an antenna startup unit 130, an antenna combination unit 140, and a communication unit 150.
[0075] The first module startup unit 110 is used to obtain the network status information of the network communication module, and start and connect to the network processing module according to the network status information.
[0076] The second module, 120, is used to obtain the frequency band requirement information of the network processing module, and to start and connect the antenna tuning module according to the frequency band requirement information.
[0077] The antenna activation unit 130 is used to acquire port status information of multiple connection ports within the antenna tuning module and activate the signal antenna corresponding to the connection port based on the port status information.
[0078] Antenna assembly unit 140 is used to acquire frequency band configuration information of signal antennas, configure antenna assembly based on frequency band configuration information and frequency band requirement information, and generate antenna assembly information.
[0079] The communication unit 150 is used to acquire the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna can be connected to the network processing module through the connection port corresponding to the connection signal.
[0080] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned router built-in antenna tuning device and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0081] The aforementioned router's built-in antenna tuning device can be implemented as a computer program, which can, for example... Figure 8 It runs on the computer device shown.
[0082] Please see Figure 8 , Figure 8This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.
[0083] See Figure 8 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.
[0084] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a router built-in antenna tuning method.
[0085] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0086] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a router built-in antenna tuning method.
[0087] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0088] The processor 502 is used to run the computer program 5032 stored in the memory to perform the following steps: establishing a network library, command library, database, and simulation runtime library according to the connection test rules in the preset router test model; acquiring connection signals from the network library and command library to connect the test device and the router under test; acquiring the router's startup log information and operation log information and storing them in the database; performing anomaly detection on the startup log information and operation log information based on the simulation runtime library according to the operation verification rules in the router test model, and obtaining anomaly detection results; generating anomaly detection logs based on the database according to the anomaly detection results; generating device connection commands based on the anomaly detection logs and sending them to the network library and command library to generate the next connection signal.
[0089] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0090] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0091] Therefore, this application also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the following steps:
[0092] Based on the connection test rules in the preset router test model, establish a network library, command library, database, and simulation runtime library; acquire connection signals from the network library and command library to connect the test device and the router under test; acquire the router's startup log information and operation log information and store them in the database; perform anomaly detection on the startup log information and operation log information based on the simulation runtime library according to the operation verification rules in the router test model, and obtain anomaly detection results; generate anomaly detection logs based on the database based on the anomaly detection results; generate device connection commands based on the anomaly detection logs and send them to the network library and command library to generate the next connection signal.
[0093] The storage medium can be any computer-readable storage medium that can store program code, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0094] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.
[0095] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0096] The steps in the methods of this application embodiment can be adjusted, merged, or deleted according to actual needs. The units in the apparatus of this application embodiment can be merged, divided, or deleted according to actual needs. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0097] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application.
[0098] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for tuning a built-in antenna in a router, applied to an antenna tuning device for a router, characterized in that, include: Obtain network status information from the network communication module, and start and connect to the network processing module based on the network status information; Obtain the frequency band requirement information of the network processing module, and start and connect the antenna tuning module according to the frequency band requirement information; Obtain port status information of multiple connection ports within the antenna tuning module, and activate the signal antenna corresponding to the connection port based on the port status information; Obtain the frequency band configuration information of the signal antenna, configure the antenna combination according to the frequency band configuration information and the frequency band requirement information, and generate antenna combination information; Obtain the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna is connected to the network processing module through the connection port corresponding to the connection signal; The step of obtaining the frequency band configuration information of the signal antenna, configuring the antenna combination based on the frequency band configuration information and the frequency band requirement information, and generating antenna combination information includes: Obtain the current frequency band configuration parameters of each of the aforementioned signal antennas; Generate the frequency band configuration information of the corresponding signal antenna based on the current frequency band configuration parameters of each signal antenna; Determine whether the current frequency band configuration parameters of each signal antenna match the frequency band requirement information; If the current frequency band configuration parameters of the signal antenna match the frequency band requirement information, then mark the port number of the connection port of the corresponding signal antenna; The connection ports of the signal antennas are selected according to the marked port numbers, and antenna combination information based on the port numbers is generated.
2. The router built-in antenna tuning method according to claim 1, characterized in that, The step of obtaining network status information from the network communication module and starting and connecting to the network processing module based on the network status information includes: Obtain the network configuration parameters of the network communication module and store them in a preset database; Network connection parameters are generated based on the network configuration parameters and stored in a preset database; A processing module start signal is generated based on the network connection parameters to start the network processing module.
3. The router built-in antenna tuning method according to claim 2, characterized in that, The step of obtaining the frequency band requirement information of the network processing module and starting and connecting the antenna tuning module according to the frequency band requirement information further includes: The frequency band range information of the network processing module is obtained and stored in a preset database; Determine whether the frequency band demand corresponding to the frequency band demand information falls within the frequency band conditions corresponding to the frequency band range information; If the frequency band requirement corresponding to the frequency band requirement information falls within the frequency band condition corresponding to the frequency band range information, a tuning module start signal is generated. The antenna tuning module is activated according to the tuning module activation signal, so that the network processing module and the antenna tuning module are connected according to the activation signal.
4. The router built-in antenna tuning method according to claim 3, characterized in that, The step of acquiring port status information of multiple connection ports within the antenna tuning module and activating the signal antenna corresponding to the connection port based on the port status information includes: Based on the port status information, identify multiple connection ports within the antenna tuning module and arrange them by port number; Obtain the port number of the identified multiple connection ports; Generate port status information based on the port number; An antenna activation signal is generated based on the port status information to activate the signal antenna corresponding to the connection port.
5. The router built-in antenna tuning method according to claim 4, characterized in that, The step of obtaining the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna is connected to the network processing module through the connection port corresponding to the connection signal, includes: The connection signal is generated based on the port number and configuration parameters of the signal antenna corresponding to the antenna combination information.
6. The router built-in antenna tuning method according to claim 5, characterized in that, The step of obtaining the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna is connected to the network processing module through the connection port corresponding to the connection signal, further includes: Determine whether the connection port corresponding to the connection signal is in an enabled state; If the connection port is in an activated state, then the connection port is connected to the network processing module according to the connection signal.
7. A router's built-in antenna tuning device, characterized in that, The router's built-in antenna tuning device includes the following units for performing the router's built-in antenna tuning method as described in any one of claims 1-6: The first module startup unit is used to obtain the network status information of the network communication module, and start and connect to the network processing module according to the network status information. The second module startup unit is used to obtain the frequency band requirement information of the network processing module, and start and connect the antenna tuning module according to the frequency band requirement information; The antenna activation unit is used to acquire port status information of multiple connection ports within the antenna tuning module, and activate the signal antenna corresponding to the connection port according to the port status information. An antenna combination unit is used to acquire the frequency band configuration information of the signal antenna, configure the antenna combination according to the frequency band configuration information and the frequency band requirement information, and generate antenna combination information. The communication unit is used to acquire the connection signal of the signal antenna corresponding to the antenna combination information, so that the signal antenna can be connected to the network processing module through the connection port corresponding to the connection signal.
8. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which includes program instructions that, when executed by a processor, can implement the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Antenna module equipment and antenna debugging method based on antenna module equipment
CN116387822A