Bluetooth module control method, system and device of wireless network access point and medium
Through the interactive process between the AP device and the AC device, the standardized control and operation information management of the Bluetooth module of wireless AP is realized, which solves the problem of limited functions of the Bluetooth module and improves the reliability and stability of the Bluetooth module.
Patent Information
- Application Number
- CN202510054725.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-04-15
AI Technical Summary
Due to the influence of the specifications, transmission power, number and type of Bluetooth terminals of different Bluetooth chips, the Bluetooth module function implementation of wireless AP is limited.
Through the interactive process between the AP device and the AC device, the standardized, orderly control and effective management of the Bluetooth module in the AP device is realized. The specific steps include determining whether the AP device is online through the TCP message after powering on, receiving and executing the operation commands issued by the AC device, and determining whether the reply message has been received after completing the operation, and sending the relevant message to the AC device through the TCP message.
It realizes standardized control of the Bluetooth module functions of the wireless network access point and effective management of operation information, improving the reliability and stability of the Bluetooth module in the wireless network environment.
Smart Images

Figure CN119835626A_ABST
Abstract
Description
Technical Field
[0001] The present application generally relates to the field of communication technology, and specifically to a method, system, device and medium for controlling a Bluetooth module of a wireless network access point. Background Art
[0002] Bluetooth technology is a wireless communication technology that supports devices to communicate within a short distance and is widely used between external devices such as mobile phones, wireless headsets, and laptops. Bluetooth technology uses a decentralized network structure and fast frequency hopping and short packet technology to support point-to-point and point-to-multipoint communication. It works in the globally common 2.4GHz ISM frequency band and has the characteristics of low cost, low power consumption, and high flexibility. These characteristics of Bluetooth technology make it an ideal choice for integrating Bluetooth functions into wireless APs.
[0003] With the growing demand for interconnection between wireless devices, wireless network access points (APs), as the core devices of wireless networks, have Bluetooth modules. However, due to the influence of different Bluetooth chip specifications, transmission power, number of connected Bluetooth terminals, and types of connected Bluetooth terminals, the functions of wireless AP's Bluetooth modules are limited. Summary of the invention
[0004] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a method, system, device and medium for controlling a Bluetooth module of a wireless network access point that optimizes the management and use of the Bluetooth module.
[0005] In a first aspect, the present application provides a method for controlling a Bluetooth module of a wireless network access point, comprising the following steps: Power on the AP device, and determine whether the AP device is online on the AC device through a TCP message and is managed by the AC device; If yes, the AP device starts the Bluetooth process and determines whether an operation command sent by the AC device through a TCP message is received; the operation command is a scan command, a connect command or a disconnect command; If yes, the Bluetooth process of the AP device calls the Bluetooth module to execute the operation instruction; After completing the operation instruction, the AP device determines whether a first reply message is received; If yes, the AP device encapsulates the Bluetooth process message and sends it to the AC device via a TCP message; The AC device determines whether the second reply message is received, and if so, the AC device stores the AP device encapsulated Bluetooth process message.
[0006] According to the technical solution provided in the embodiment of the present application, the method further includes the following steps: If the operation command sent by the AC device through the TCP message is not received, the Bluetooth process of the AP device performs a preset timed scanning operation.
[0007] According to the technical solution provided in the embodiment of the present application, determining whether the AP device is online on the AC device through a TCP message specifically includes the following steps: When the AP device is powered on, the AP device sends a TCP connection request to the AC device; the TCP connection request includes at least: a MAC address and a device model; When the AC device receives the TCP connection request and successfully establishes a connection, the AC device monitors whether the AP device sends status information regularly; If yes, it is determined that the AP device is online on the AC device through a TCP message; if no, it is determined that the AP device is offline.
[0008] According to the technical solution provided in the embodiment of the present application, the method further includes the following steps: After the AP device encapsulates the Bluetooth process message and sends it to the AC device through a TCP message, the timer of the AC device starts timing; If the AC device has not received the second reply message when the timing duration of the timer reaches the preset duration, a prompt message is fed back to the AP device; the prompt message is used to prompt the AP device to resend the second reply message.
[0009] According to the technical solution provided in the embodiment of the present application, the method further includes the following steps: If the AP device does not receive the first reply message, re-operation information is fed back to the AP device; the re-operation information is used to prompt the Bluetooth process of the AP device to call the Bluetooth module to re-execute the operation instruction.
[0010] According to the technical solution provided in the embodiment of the present application, after the AP device fails to receive the first reply message and before feeding back the re-operation information to the AP device, the following steps are also included: Determine whether the Bluetooth module is working normally. If the Bluetooth module is faulty, trigger the backup Bluetooth module activation program of the AP device, or send a fault alarm to the AP device; the fault alarm is used to prompt the user to replace the currently faulty Bluetooth module; If the Bluetooth module works normally, re-operation information is fed back to the AP device.
[0011] According to the technical solution provided in the embodiment of the present application, the method further includes the following steps: The AC device monitors the firmware version information of the AP device in real time. If the latest firmware version information is detected and the corresponding AP device is online on the AC device, the AC device pushes the latest firmware version information to the AP device and monitors the upgrade process; When the upgrade is completed, the AC device performs a function test on the AP device and sends an upgrade success message when the test passes; the function test at least includes a signal strength test, a throughput test, and a Bluetooth function integrity check.
[0012] In a second aspect, the present application provides a Bluetooth module control system of a wireless network access point, which is used to implement the Bluetooth module control method of the wireless network access point. The system includes: AP equipment and AC equipment; the AP equipment includes: a Bluetooth module and a control module; the AC equipment includes: a command issuing module, a message judging module and an information storage module; The Bluetooth module is used to execute operation instructions, and the control module is used to process communication and operation control with the AC device; The command issuing module is used to issue an operation command, the message judging module is used to judge whether a second reply message is received, and the information storage module is used to store the AP device encapsulated Bluetooth process message.
[0013] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the Bluetooth module control method of the wireless network access point as described above when executing the computer program.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the Bluetooth module control method of the wireless network access point as described above are implemented.
[0015] It can be seen from the above technical solution that the present application has at least the following beneficial effects: The present application provides a method for controlling a Bluetooth module of a wireless network access point, which includes: powering on an AP device, and determining whether the AP device is online on an AC device through a TCP message and managed by the AC device; if so, the AP device starts a Bluetooth process, and determines whether an operation command sent by the AC device through a TCP message is received; the operation command is a scan command, a connection command, or a disconnection command; if so, the Bluetooth process of the AP device calls a Bluetooth module to execute the operation instruction; after completing the operation instruction, the AP device determines whether a first reply message is received; if so, the AP device encapsulates a Bluetooth process message and sends it to the AC device through a TCP message; the AC device determines whether a second reply message is received, and if so, the AC device stores the AP device encapsulated Bluetooth process message.
[0016] This application realizes relatively standardized and orderly control of the Bluetooth module in the AP device and effective management of operation information through the interaction process between the AP device and the AC device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Other features, objects and advantages of the present application will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings.
[0018] Figure 1 The present invention is a flow chart of a method for controlling a Bluetooth module of a wireless network access point.
[0019] Figure 2 A flowchart for determining whether an AP device is online on an AC device through a TCP message.
[0020] Figure 3 This is a schematic diagram of the structure of the Bluetooth module control system of the wireless network access point.
[0021] Figure 4 A schematic diagram of the structure of an electronic device.
[0022] Numbers in the figure: 1, AP device; 2, AC device; 3, Bluetooth module; 4, control module; 5, command issuing module; 6, message judgment module; 7, information storage module; 500, electronic device; 501, CPU; 502, ROM; 503, RAM; 504, bus; 505, I / O interface; 506, input part; 507, output part; 508, storage part; 509, communication part; 510, drive; 511, removable medium. DETAILED DESCRIPTION
[0023] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0025] In order to make the Bluetooth module control method of the wireless network access point provided by the embodiment of the present application clearer and easier to understand, the method is introduced below in conjunction with the accompanying drawings. Figure 1 As shown, the figure is a flow chart of a method for controlling a Bluetooth module of a wireless network access point provided by an embodiment of the present application, the method comprising: S10: Power on the AP device and determine whether the AP device is online on the AC device through a TCP message and is managed by the AC device.
[0026] It should be noted that AP devices are wireless network access points (AP) devices, and AC devices are wireless access controllers (AC) devices; TCP messages refer to Transmission Control Protocol messages, which are an important part of the TCP / IP protocol family and are responsible for providing reliable data transmission services. Through the three-way handshake process, the TCP protocol can ensure the reliability of data transmission and is widely used in various network applications.
[0027] First, power on the AP device, and then determine whether the AP device can go online on the AC device through TCP messages and whether it can be managed by the AC device. Only when this prerequisite is met can the subsequent process proceed. This step is to establish an effective management and control association between the AP device and the AC device.
[0028] Specifically, powering on the AP device is like pressing the power button on a computer, which is a basic operation to start the AP device and enter the working state. After powering on, the various hardware components inside the device begin to initialize, and the relevant software systems, programs, etc. also gradually start to run, preparing for subsequent network communication and other functions. After the AP device is powered on, it needs to establish an effective connection with the AC device (access controller device), that is, to determine whether it can successfully go online on the AC device through TCP messages. The AP device must send corresponding information to the AC device according to the established rules, try to establish a connection, let the AC device know its existence and be able to manage it. Only when the AP device successfully goes online on the AC device in this way, it means that it is officially included in the management and control system of the AC device, and subsequent management operations such as Bluetooth modules have a basis for implementation. If it cannot go online or is not managed by the AC device, then a series of subsequent functional operations for the AP device cannot be carried out normally.
[0029] Among them, Figure 2 As shown, judging whether the AP device is online on the AC device through a TCP message specifically includes the following steps: S11. After the AP device is powered on, the AP device sends a TCP connection request to the AC device. The TCP connection request includes at least: a MAC address and a device model.
[0030] Here, the AP device is powered on, indicating that the AP device enters a working ready state. At this time, the AP device will actively send a TCP connection request to the AC device. The TCP connection request will at least include the AP device's own MAC address and device model.
[0031] The MAC address is a unique identifier for each network device. When there are multiple AP devices in the network, the AC device can distinguish their respective connection requests by using different MAC addresses, and there will be no confusion. The device model allows the AC device to know in advance what functional features, hardware configuration, and communication protocol standards the AP device has. Different device models often differ in performance, supported functions, etc. After the AC device understands the model, it can reasonably arrange the subsequent control method of the AP device based on its characteristics.
[0032] S12: When the AC device receives the TCP connection request and successfully establishes a connection, the AC device monitors whether the AP device sends status information regularly.
[0033] Here, when the AC device receives the TCP connection request sent by the AP device, the first thing it needs to do is to complete the connection establishment process with the AP device in accordance with the TCP protocol specification to ensure stable and reliable data transmission between the two parties.
[0034] For example, by regularly receiving status information from AP devices, AC devices can understand the operating status of AP devices in real time, such as the current power status of AP devices, whether various functional modules (such as Bluetooth modules, wireless communication modules, etc.) are working properly, whether there are abnormal network connections or hardware failures, etc. If the Bluetooth module of the AP device overheats or other abnormal conditions, it can send relevant status information to the AC device so that the AC device can know in time and take corresponding measures, which may be to adjust the working parameters of the Bluetooth module or prompt the operation and maintenance personnel to perform maintenance.
[0035] S13. If yes, it is determined that the AP device is online on the AC device through a TCP message; if no, it is determined that the AP device is offline.
[0036] Here, if the AC device detects that the AP device can indeed send status information regularly as required, it means that the communication link between the AP device and the AC device is unobstructed, and the AP device not only successfully establishes a connection with the AC device, but also can continuously and stably exchange information with the AC device and report its own operation status to it. In this case, it can be determined that the AP device is online on the AC device through TCP messages; if the AC device finds that the AP device does not send status information regularly as required after waiting for a period of time, it means that there may be a problem with the connection between them, which may be a network failure that causes data transmission to be interrupted, or the AP device itself may have a serious failure and cannot work normally or send information; in this case, it is determined that the AP device is offline.
[0037] S20: If yes, the AP device starts the Bluetooth process and determines whether an operation command sent by the AC device through a TCP message is received; the operation command is a scan command, a connect command or a disconnect command.
[0038] It should be noted that, when it is determined in step S10 that the AP device has successfully gone online on the AC device through a TCP message and has been managed, the AP device will start its own Bluetooth process. After the Bluetooth process is started, the corresponding Bluetooth function-related software modules, drivers, etc. start working to prepare for subsequent specific Bluetooth operations, such as preparing to scan surrounding Bluetooth devices and connect to other Bluetooth devices.
[0039] Among them, the scan command is used to instruct the Bluetooth module of the AP device to search for information of surrounding Bluetooth devices, the connection command is used to establish a connection between the Bluetooth module of the AP device and a specified Bluetooth device, and the disconnection command is used to disconnect the Bluetooth module of the AP device from an existing Bluetooth device.
[0040] S30: If yes, the Bluetooth process of the AP device calls the Bluetooth module to execute the operation instruction.
[0041] If it is determined that the AP device has received an operation command sent by the AC device, the AP device will decide how to call the Bluetooth module to perform a corresponding action in the next step according to the specific command received.
[0042] For example, if a scan command is received, the Bluetooth process will instruct the Bluetooth module to start the scan mode, allowing it to search for nearby discoverable Bluetooth devices and collect their relevant information, such as device names, MAC addresses, etc.; if a connection command is received, the Bluetooth process will guide the Bluetooth module to perform a series of operations to pair and establish a connection with the specified Bluetooth device; and if a disconnect command is received, the Bluetooth process will drive the Bluetooth module to disconnect the currently established Bluetooth connection and end the association with the corresponding Bluetooth device, so as to accurately complete the specific Bluetooth function operations according to the requirements of the AC device.
[0043] S40: After completing the operation instruction, the AP device determines whether the first reply message is received.
[0044] It should be noted that after the Bluetooth module of the AP device completes the corresponding action according to the operation instruction received in step S30, such as successfully scanning the surrounding Bluetooth devices, successfully connecting or disconnecting the specified Bluetooth device, the AP device will not end the entire process immediately, but needs to wait and determine whether it can receive the first reply message. Here, the first reply message is usually a feedback message from other devices or systems associated with it for the result of this operation, which can be a response content related to confirmation that the operation has been completed, whether the operation is successful, etc. By determining whether the first reply message is received, the AP device can know whether the execution of the operation instruction is recognized or whether some abnormal conditions have occurred, and then decide whether to continue to perform information feedback and other operations in the future.
[0045] S50: If yes, the AP device encapsulates the Bluetooth process message and sends it to the AC device via a TCP message.
[0046] It should be noted that if in step S40, the AP device determines that the first reply message has been received, indicating that the execution of this Bluetooth operation has preliminary feedback confirmation, at this time, the AP device will encapsulate and process some messages related to this Bluetooth process. Here, the encapsulated message at least contains the specific execution of the Bluetooth operation, such as which Bluetooth devices have been scanned, and which Bluetooth device is connected or disconnected. Then, the AP device will send the encapsulated message to the AC device through a TCP message, so that the AC device can understand the specific progress and results of this Bluetooth operation, which is convenient for the AC device to grasp the overall Bluetooth device management situation and make subsequent decisions.
[0047] S60: The AC device determines whether the second reply message is received. If yes, the AC device stores the AP device encapsulated Bluetooth process message.
[0048] It should be noted that after the AC device sends an operation command to the AP device and waits for feedback from the AP device, it also needs to confirm whether it has received the corresponding reply message, that is, the second reply message. Here, the second reply message corresponds to a reception confirmation link after the TCP message containing the Bluetooth process message sent by the AP device has passed through the network transmission and other links. If the AC device determines that it has indeed received the second reply message, it means that it has successfully obtained the message about the Bluetooth process fed back by the AP device. At this time, the AC device will store these Bluetooth process messages encapsulated by the AP device, so that it can be easily queried and statistically analyzed for the Bluetooth operation status of different AP devices in the future, and it is also convenient to troubleshoot some possible problems, or formulate more reasonable Bluetooth device management strategies based on these historical messages, so as to achieve more effective management and control of the Bluetooth module in the entire wireless network access point.
[0049] This application realizes relatively standardized and orderly control of the Bluetooth module in the AP device and effective management of operation information through the interaction process between the AP device and the AC device.
[0050] Furthermore, the method further comprises the following steps: If the operation command sent by the AC device through the TCP message is not received, the Bluetooth process of the AP device performs a preset timed scanning operation.
[0051] It should be noted that after the AP device starts the Bluetooth process, it normally waits to receive the operation command sent by the AC device through the TCP message, so as to accurately control the Bluetooth module to perform the corresponding action according to the instructions of the AC device. When the operation command sent by the AC device is not received, in order to allow the Bluetooth module to still play a certain role and maintain a certain working state, the Bluetooth process of the AP device will start the preset timed scanning operation. Here, the preset timed scanning operation is realized by configuring the relevant parameters in the Bluetooth process of the AP device in advance. According to the preset time interval, such as every few minutes (the specific duration can be adjusted according to the actual application scenario and requirements), the Bluetooth process will command the Bluetooth module to actively scan the surrounding Bluetooth devices. Through such a timed scan, on the one hand, the information of the surrounding Bluetooth devices can be continuously updated, and data such as the name, MAC address, and signal strength of the Bluetooth devices can be collected. Even if the AC device subsequently sends a connection or other operation command, the AP device can perform the corresponding action more quickly and accurately based on the information that has been scanned; on the other hand, the information obtained by the timed scan can also be recorded as a basic data for network operation and maintenance personnel to analyze the distribution pattern and usage frequency of surrounding Bluetooth devices, which helps to optimize the layout and management strategy of Bluetooth-related functions in the entire wireless network environment.
[0052] In the above situation, the preset timed scanning operation is started to ensure that the Bluetooth module can continue to play a certain role when encountering process abnormalities, maintain its functionality and data collection capabilities in the wireless network environment, and reduce the adverse effects on the overall Bluetooth function caused by abnormalities in some links.
[0053] Furthermore, the method further comprises the following steps: After the AP device encapsulates the Bluetooth process message and sends it to the AC device through a TCP packet, the timer of the AC device starts counting; If the AC device does not receive the second reply message when the timer reaches the preset time, a prompt message is fed back to the AP device; the prompt message is used to prompt the AP device to resend the second reply message.
[0054] It should be noted that when the AC device receives the TCP message containing the Bluetooth process message sent by the AP device, it will start a timer at the same time. The timer plays the role of time monitoring, in order to measure whether the entire information feedback reception process is carried out smoothly according to the expected time. In the network communication environment, although the transmission of data follows the corresponding protocol specifications, due to various uncertain factors, such as network congestion, temporary device freezes, etc., it may cause the data to not be timely and completely obtained by the receiver. The purpose of setting a timer and starting the timing is to be able to set a reasonable time range for the AC device to receive the second reply message, so as to determine whether the entire communication process is normal.
[0055] For example, in a complex wireless network environment of a large office, many AP devices and AC devices frequently interact with each other, and the network load is heavy. When an AP device sends a Bluetooth process message to an AC device, it may be delayed due to a large amount of other data transmission in the network. By starting the timer, you can accurately control the timeliness of the message transmission, and then determine whether corresponding countermeasures need to be taken to ensure smooth communication and accurate reception of information.
[0056] As the timer of the AC device continues to count, when the timing reaches the preset time, it is determined whether the second reply message has been received; if the AC device does not receive the second reply message when the timer reaches the preset time, it means that there is a high probability of a problem in the information transmission process, which may be a failure of a node in the network, resulting in message loss or excessive delay beyond the normal acceptable range. In order to allow the information interaction to continue normally, the AC device will feedback prompt information to the AP device; by allowing the AP device to send the message again, an additional opportunity for data transmission is added, thereby overcoming the network failures, transmission errors and other problems that may have occurred before, so that the AC device can finally receive a complete and accurate second reply message, thereby ensuring the smooth completion of the information feedback link in the entire Bluetooth module control process, ensuring that the AC device can accurately store the Bluetooth process messages encapsulated by the AP device, and maintain effective management and monitoring of the Bluetooth module in the entire wireless network access point.
[0057] Furthermore, the method further comprises the following steps: If the AP device does not receive the first reply message, re-operation information is fed back to the AP device; the re-operation information is used to prompt the Bluetooth process of the AP device to call the Bluetooth module to re-execute the operation instruction.
[0058] It should be noted that when the AP device does not receive the first reply message, it means that the feedback information that should have been sent back after the Bluetooth operation is completed is missing; it may be caused by a variety of reasons, such as packet loss during network transmission, which prevents the reply message from reaching the AP device smoothly; or a temporary failure of the related device or system interacting with it, which makes it unable to send feedback information normally. Regardless of the reason, without the first reply message, the AP device cannot know for sure whether the operation instruction executed this time has achieved the expected effect, and the integrity and accuracy of the entire Bluetooth operation process cannot be effectively confirmed.
[0059] In order to deal with the above situation, ensure that the Bluetooth module control process can continue to proceed smoothly and ensure the accuracy of the operation as much as possible, the re-operation information will be fed back to the AP device, prompting the AP device's Bluetooth process to call the Bluetooth module to re-execute the operation instruction; on the one hand, you can try to complete the original operation content again, increase the opportunity to obtain effective feedback, and it is possible that temporary problems such as network packet loss encountered during the first execution of the operation can be avoided during the second execution, so that the corresponding feedback message can be returned normally, allowing the entire process to continue; on the other hand, re-operation is also equivalent to a verification of the previous operation. If no reply message can be received after multiple executions, it can prompt the operation and maintenance personnel to further check whether there is a fault in the Bluetooth module itself, or there are more serious and persistent problems in the network environment, etc., so as to timely discover and solve potential hidden dangers and ensure the normal and stable operation of the Bluetooth function in the wireless network access point.
[0060] This method ensures that the entire Bluetooth module control process has error correction capabilities and continuity, which helps to improve the reliability and stability of Bluetooth functions in wireless network environments.
[0061] In addition, after the AP device does not receive the first reply message, before feeding back the re-operation information to the AP device, the following steps are also included: Determine whether the Bluetooth module is working properly. If the Bluetooth module is faulty, trigger the backup Bluetooth module activation program of the AP device, or send a fault alarm to the AP device; the fault alarm is used to prompt the user to replace the currently faulty Bluetooth module; If the Bluetooth module works normally, the re-operation information will be fed back to the AP device.
[0062] Among them, when the AP device does not receive the first reply message, it may be because the Bluetooth module itself has a fault, resulting in the operation being executed but not actually completed correctly, or an abnormal situation occurred during the execution process, making it impossible to generate or send back the subsequent reply message normally. Therefore, in order to accurately determine the problem, it is necessary to first check whether the Bluetooth module is working properly.
[0063] For example, the AP device can check the hardware part of the Bluetooth module through the built-in self-test program to check whether the Bluetooth chip is operating normally, whether the related circuit connection is stable, whether the power supply is normal, etc. At the same time, the software level of the Bluetooth module will also be tested, such as checking whether the driver is loaded normally, whether there are software conflicts or program crashes that cause it to not work properly.
[0064] If the Bluetooth module is found to be faulty through the above methods, in order to minimize the impact on the Bluetooth function of the wireless network access point and ensure that related services can continue, the backup Bluetooth module activation program of the AP device will be triggered. It should be noted that many AP devices are often equipped with backup Bluetooth modules to improve system reliability and fault tolerance. When the main Bluetooth module fails, enabling the backup Bluetooth module can seamlessly continue to perform the corresponding Bluetooth operations, so that functions such as scanning surrounding Bluetooth devices and connecting with other Bluetooth devices will not be interrupted.
[0065] In addition to enabling the backup Bluetooth module, a fault alarm will be sent to the AP device so that the relevant operation and maintenance personnel can be informed of the problem with the Bluetooth module in a timely manner so that they can arrange for personnel to perform repairs or replacement operations as soon as possible, fundamentally solving the hidden dangers of Bluetooth module failures and ensuring the long-term stable and reliable operation of the Bluetooth function of the entire wireless network access point.
[0066] If the Bluetooth module is judged to be working normally through the above method, it means that the failure to receive the first reply message is not caused by the problem of the Bluetooth module itself, but is likely caused by other external factors, such as packet loss in the network transmission link, temporary interruption of the communication link, etc. In this case, in order to allow the entire Bluetooth module control process to continue to move forward, the re-operation information will be fed back to the AP device, so that the Bluetooth process of the AP device calls the Bluetooth module to re-execute the operation instruction, thereby increasing the chance of obtaining effective feedback, hoping that the first reply message can be successfully received by re-executing the operation, thereby ensuring that the subsequent accurate Bluetooth process message feedback to the AC device and other related processes can be carried out smoothly, maintaining the consistency and accuracy of the entire Bluetooth function control process.
[0067] Furthermore, the method further comprises the following steps: The AC device monitors the firmware version information of the AP device in real time. If the latest firmware version information is detected and the corresponding AP device is online on the AC device, the AC device pushes the latest firmware version information to the AP device and monitors the upgrade process; When the upgrade is completed, the AC device performs a functional test on the AP device and sends an upgrade success message when the test passes; the functional test at least includes a signal strength test, a throughput test, and a Bluetooth function integrity check.
[0068] It should be noted that the AC device periodically sends query requests to each AP device it manages through a specific communication protocol and mechanism to obtain relevant identification information such as the firmware version number currently running on the AP device; the AC device can clearly know the firmware status of each AP device and whether it needs to be updated or upgraded.
[0069] When the AC device finds the latest firmware version information during continuous monitoring, it means that new, improved and optimized firmware is available for the AP device. At this time, it is necessary to confirm whether the corresponding AP device is online on the AC device, that is, whether a stable and effective connection has been established between the AP device and the AC device, and whether it is in a state that the AC device can control. When the AP device is successfully online on the AC device, the AC device has the basic conditions to push information to it and direct it to perform subsequent operations. If the AP device is not online, effective data transmission cannot be carried out, and there is no way to carry out work related to firmware upgrades.
[0070] If the latest firmware version information is detected and the corresponding AP device is online on the AC device, the AC device will actively push the latest firmware version information to the AP device. Here, the latest firmware version information can be pushed to the AP device through network transmission, and the relevant data of the new firmware, such as the installation package of the new firmware, version description, upgrade guide, etc., will be sent to the AP device according to the established communication protocol.
[0071] In addition, the AC device will monitor the upgrade process throughout. If there is a network interruption, data transmission error, or AP device hardware failure during the upgrade process, the AP device may not be able to complete the upgrade normally, or even become "bricked" (i.e., the device cannot be used normally). Therefore, the AC device will closely monitor the AP device's data reception, firmware installation, restart, and other upgrade links, and grasp the upgrade progress and abnormal prompts in real time, so that appropriate measures can be taken in time to intervene when problems occur, ensuring that the upgrade can be completed smoothly.
[0072] After the AP device completes the firmware upgrade, it still needs to be verified because during the upgrade process, due to various unforeseen factors, such as partial data writing errors, minor compatibility issues with the original hardware, etc., some functions may not be improved as expected, and even new functional abnormalities may occur. Therefore, the AC device needs to perform functional testing on the AP device and confirm whether the upgrade has truly achieved the expected results through actual testing. For example, signal strength testing, throughput testing, Bluetooth function integrity checking, etc. These testing and inspection methods are conventional means and will not be described in detail here.
[0073] When the AC device completes the above-mentioned function tests and the test results meet the expected standards, it means that the current firmware upgrade is successful and the AP device has successfully acquired various optimized and improved functions brought by the new firmware. At this time, the AC device will send an upgrade success message, which means that the AP device can continue to be put into use normally and provide users with better wireless network and Bluetooth-related services.
[0074] The present application also provides a Bluetooth module control system for a wireless network access point, which is used to implement the Bluetooth module control method for the wireless network access point. Figure 3 As shown, the system includes: AP device 1 and AC device 2; AP device 1 includes: Bluetooth module 3 and control module 4; AC device 2 includes: command issuing module 5, message judgment module 6 and information storage module 7; The Bluetooth module 3 is used to execute operation instructions, and the control module 4 is used to process the communication and operation control with the AC device 2; The command issuing module 5 is used to issue an operation command, the message judging module 6 is used to judge whether the second reply message is received, and the information storing module 7 is used to store the Bluetooth process message encapsulated by the AP device 1 .
[0075] The present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the Bluetooth module control method of the wireless network access point as described above are implemented.
[0076] In this embodiment, if Figure 4As shown, electronic device 500 includes CPU (central processing unit) 501, which can perform various appropriate actions and processes according to the program stored in ROM (read only memory) 502 or the program loaded from the storage part into RAM (random access memory) 503. In RAM503, various programs and data required for system operation are also stored. CPU501, ROM502 and RAM503 are connected to each other through bus 504. I / O (input / output) interface 505 is also connected to bus 504.
[0077] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0078] In particular, according to an embodiment of the present invention, the above reference process diagram Figure 1 The described process can be implemented as a computer software program. For example, the present invention includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0079] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM) 503, a read-only memory (ROM) 502, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0080] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0081] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves. The units or modules described may also be arranged in a processor, for example, they may be described as: a processor includes a first generation module, an acquisition module, a search module, a second generation module, and a merging module. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves, for example, the acquisition module may also be described as "an acquisition module for acquiring multiple instances to be detected in the basic table."
[0082] The present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the Bluetooth module control method of the wireless network access point as described above.
[0083] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.
Claims
1. A method for controlling a Bluetooth module of a wireless network access point, characterized in that: The following steps are involved: Power on the AP device, and determine whether the AP device is online on the AC device through a TCP message and is managed by the AC device; If yes, the AP device starts the Bluetooth process and determines whether an operation command sent by the AC device through a TCP message is received; the operation command is a scan command, a connect command or a disconnect command; If yes, the Bluetooth process of the AP device calls the Bluetooth module to execute the operation instruction; After completing the operation instruction, the AP device determines whether a first reply message is received; If yes, the AP device encapsulates the Bluetooth process message and sends it to the AC device via a TCP message; The AC device determines whether the second reply message is received, and if so, the AC device stores the AP device encapsulated Bluetooth process message.
2. The method for controlling a Bluetooth module of a wireless network access point according to claim 1, characterized in that: The method further comprises the following steps: If the operation command sent by the AC device through the TCP message is not received, the Bluetooth process of the AP device performs a preset timed scanning operation.
3. The method for controlling a Bluetooth module of a wireless network access point according to claim 1, characterized in that: Determining whether the AP device is online on the AC device through a TCP message specifically includes the following steps: When the AP device is powered on, the AP device sends a TCP connection request to the AC device; the TCP connection request includes at least: a MAC address and a device model; When the AC device receives the TCP connection request and successfully establishes a connection, the AC device monitors whether the AP device sends status information regularly; If yes, it is determined that the AP device is online on the AC device through a TCP message; if no, it is determined that the AP device is offline.
4. The method for controlling a Bluetooth module of a wireless network access point according to claim 1, characterized in that: The method further comprises the following steps: After the AP device encapsulates the Bluetooth process message and sends it to the AC device through a TCP message, the timer of the AC device starts timing; If the AC device has not received the second reply message when the timing duration of the timer reaches the preset duration, a prompt message is fed back to the AP device; the prompt message is used to prompt the AP device to resend the second reply message.
5. The method for controlling a Bluetooth module of a wireless network access point according to claim 1, characterized in that: The method further comprises the following steps: If the AP device does not receive the first reply message, re-operation information is fed back to the AP device; the re-operation information is used to prompt the Bluetooth process of the AP device to call the Bluetooth module to re-execute the operation instruction.
6. The method for controlling a Bluetooth module of a wireless network access point according to claim 5, characterized in that: After the AP device fails to receive the first reply message and before feeding back re-operation information to the AP device, the following steps are also included: Determine whether the Bluetooth module is working normally. If the Bluetooth module is faulty, trigger the backup Bluetooth module activation program of the AP device, or send a fault alarm to the AP device; the fault alarm is used to prompt the user to replace the currently faulty Bluetooth module; If the Bluetooth module works normally, re-operation information is fed back to the AP device.
7. The method for controlling a Bluetooth module of a wireless network access point according to claim 1, characterized in that: The method further comprises the following steps: The AC device monitors the firmware version information of the AP device in real time. If the latest firmware version information is detected and the corresponding AP device is online on the AC device, the AC device pushes the latest firmware version information to the AP device and monitors the upgrade process; When the upgrade is completed, the AC device performs a function test on the AP device and sends an upgrade success message when the test passes; the function test at least includes a signal strength test, a throughput test, and a Bluetooth function integrity check.
8. A Bluetooth module control system for a wireless network access point, used to implement the Bluetooth module control method for a wireless network access point according to any one of claims 1 to 7, characterized in that: The system comprises: An AP device (1) and an AC device (2); the AP device (1) comprises: a Bluetooth module (3) and a control module (4); the AC device (2) comprises: a command issuing module (5), a message judging module (6) and an information storage module (7); The Bluetooth module (3) is used to execute operating instructions, and the control module (4) is used to process communication and operation control with the AC device (2); The command issuing module (5) is used to issue an operation command, the message judging module (6) is used to judge whether a second reply message is received, and the information storage module (7) is used to store the encapsulated Bluetooth process message of the AP device (1).
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for controlling a Bluetooth module of a wireless network access point according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for controlling a Bluetooth module of a wireless network access point according to any one of claims 1 to 7 are implemented.