WiFi communication component updating method, system and terminal
By optimizing the configuration files and communication mechanism of WiFi HAL service, the complexity of WiFi communication components in configuration and management and low communication efficiency are solved, and a more efficient and stable WiFi communication component operation and user operation experience are achieved.
Patent Information
- Application Number
- CN202411115536.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-12
AI Technical Summary
The existing WiFi communication components are complex in configuration and management, with high difficulty in user use, high risk of errors, difficult to update and maintain, and the communication efficiency between the WiFi management process and the WiFi HAL service process is low, resulting in difficult to meet data transmission speed and connection stability. User requirements.
By applying for the identifier of the WiFi HAL service, creating target attribute files and system configuration files, configuring client and server files, optimizing communication between the WiFi management process and the WiFi HAL service process, and loading the communication system to update the WiFi communication components.
It simplifies the configuration and maintenance process of WiFi communication components, improves operating efficiency and stability, reduces the complexity of user operations and the risk of errors, and improves data transmission speed and connection stability.
Smart Images

Figure CN118945057A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a WiFi communication component updating method, system, terminal and computer-readable storage medium. Background Art
[0002] WiFi technology, as a wireless communication technology widely used in various scenarios such as homes, offices, and public places, provides users with a convenient way to access the network. With the popularization of smart devices and the development of the Internet of Things (IoT), the importance of WiFi technology has become increasingly prominent.
[0003] However, existing WiFi communication components are complex to configure and manage. Users need to have a certain technical background to configure them correctly. When configuring the WiFi HAL service, multiple files need to be manually edited and a series of complex operations need to be performed, which increases the difficulty of use and the risk of errors for users. There are certain difficulties in updating and maintenance. In addition, the communication efficiency between the WiFi management process and the WiFi HAL service process is low, resulting in data transmission speed and connection stability that are difficult to meet user needs.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a WiFi communication component update method, system, terminal and computer-readable storage medium, aiming to solve the technical problems in the prior art that WiFi communication components are relatively complex in configuration and management, difficult for users to use and have high risk of errors, have certain difficulties in updating and maintenance, and the communication efficiency between the WiFi management process and the WiFi HAL service process is low, resulting in data transmission speed and connection stability that are difficult to meet user needs.
[0006] To achieve the above object, the present invention provides a WiFi communication component update method, the WiFi communication component update method comprising the following steps:
[0007] Apply for the identifier of the WiFi HAL service and create a target property file based on the identifier;
[0008] Modify the system configuration file of the WiFi HAL service to obtain the target system configuration file;
[0009] Create and configure client files, and manage the communication between the WiFi management process and the WiFi HAL service process according to the client files;
[0010] Create and configure a server-side file, and process the request of the WiFi management process according to the server-side file;
[0011] The target attribute file, the target system configuration file, the client file and the server file are loaded into the communication system and the WiFi communication component is updated.
[0012] Optionally, in the WiFi communication component updating method, the identifier for applying for WiFi HAL service specifically includes:
[0013] Call the interface function in the system capability manager;
[0014] Apply for an identifier of the WiFi HAL service according to the interface function, and set an ID value for the identifier.
[0015] Optionally, in the WiFi communication component updating method, the step of creating a target attribute file according to the identifier specifically includes:
[0016] Create a property file based on the preset template;
[0017] The properties of the WiFi HAL service are defined in the property file, and the identifier is written into the property file to obtain a target property file.
[0018] Optionally, in the WiFi communication component updating method, the step of modifying the system configuration file of the WiFi HAL service to obtain the target system configuration file specifically includes:
[0019] Read the system configuration file of the current WiFi HAL service;
[0020] Modify the WiFi HAL service entry in the system configuration file, save the modified system configuration file, and obtain the target system configuration file;
[0021] According to the target system configuration file, the service configuration of the WiFi HAL service is modified to the SA service configuration.
[0022] Optionally, the method for updating a WiFi communication component, wherein the creating and configuring a client file, and managing the communication between the WiFi management process and the WiFi HAL service process according to the client file, specifically includes:
[0023] Create a client file in the WiFi management directory, and define a request sending interface and a receiving response interface in the client file;
[0024] According to the request sending interface and the receiving response interface, a communication interface and a communication protocol are defined in the client file, and the communication between the WiFi management process and the WiFi HAL service process is managed according to the communication interface and the communication protocol.
[0025] Optionally, in the WiFi communication component update method, the step of creating and configuring a server file, and processing a request of the WiFi management process according to the server file, specifically includes:
[0026] Create a server file in the WiFi HAL directory, and define a request receiving interface and a sending response interface in the server file;
[0027] According to the request receiving interface and the sending response interface, a message processing function is defined in the server file, and a WiFi management process request is received according to the message processing function.
[0028] Optionally, the method for updating a WiFi communication component, wherein the step of loading the target attribute file, the target system configuration file, the client file, and the server file into the communication system and updating the WiFi communication component specifically includes:
[0029] Copy the target attribute file, the target system configuration file, the client file and the server file to the corresponding directories of the communication system respectively, and overwrite the files with the same names;
[0030] Restart the WiFi HAL service through the service management tool, verify the startup log of the WiFi HAL service, and test the functionality of the updated WiFi communication component.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a WiFi communication component update system, wherein the WiFi communication component update system comprises:
[0032] A target attribute creation module, used to apply for an identifier of a WiFi HAL service and create a target attribute file according to the identifier;
[0033] A system configuration modification module, used to modify the system configuration file of the WiFi HAL service to obtain a target system configuration file;
[0034] A client file creation module, used to create and configure client files, and manage the communication between the WiFi management process and the WiFi HAL service process according to the client files;
[0035] A server file creation module, used to create and configure a server file, and process the request of the WiFi management process according to the server file;
[0036] The communication component update module is used to load the target attribute file, the target system configuration file, the client file and the server file into the communication system and update the WiFi communication component.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a WiFi communication component update program stored in the memory and executable on the processor, and when the WiFi communication component update program is executed by the processor, the steps of the WiFi communication component update method described above are implemented.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a WiFi communication component update program, and when the WiFi communication component update program is executed by a processor, the steps of a WiFi communication component update method as described above are implemented.
[0039] In the present invention, an identifier of a WiFi HAL service is applied, and a target attribute file is created according to the identifier; a system configuration file of the WiFi HAL service is modified to obtain a target system configuration file; a client file is created and configured, and the communication between the WiFi management process and the WiFi HAL service process is managed according to the client file; a server file is created and configured, and a request of the WiFi management process is processed according to the server file; the target attribute file, the target system configuration file, the client file and the server file are loaded into the communication system and the WiFi communication component is updated. The present invention improves the operating efficiency and stability of the WiFi communication component by optimizing the configuration file and the communication mechanism of the WiFi HAL service, simplifies the configuration and maintenance process, and facilitates the management operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flow chart of a preferred embodiment of a WiFi communication component updating method of the present invention;
[0041] Figure 2 It is a schematic diagram of the principle of a preferred embodiment of a WiFi communication component update system of the present invention;
[0042] Figure 3 Schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] A WiFi communication component updating method according to a preferred embodiment of the present invention is as follows: Figure 1 As shown, the WiFi communication component update method includes the following steps:
[0045] Step S10: Apply for an identifier of the WiFi HAL service, and create a target attribute file according to the identifier.
[0046] Specifically, first apply for the identifier of the WiFi HAL service, which is used to uniquely identify the WiFi HAL service to ensure the uniqueness and identifiability of the service in the system. The System Capability Manager is a component responsible for managing system resources and services. The System Capability Manager provides multiple API interface functions. By calling the function interface provided by it, including the interface function for applying for an identifier, you can apply to the system for a unique WiFi HAL service identifier, which is used to configure and manage the WiFi HAL service. As an example, the function interface requestHalServiceIdentifier() can be used to apply for the identifier of the WiFi Hal service. Setting an ID value for the identifier is a step to ensure its uniqueness. The ID value is usually a number or string that is unique within the system to ensure that each WiFi HAL service has a unique identifier.
[0047] Further, the creating a target attribute file according to the identifier specifically includes:
[0048] Create a properties file based on a preset template.
[0049] The properties of the WiFi HAL service are defined in the property file, and the identifier is written into the property file to obtain a target property file.
[0050] Specifically, the property file contains detailed properties and configurations of the WiFi HAL service, which are associated through identifiers to ensure the correct configuration and operation of the WiFi HAL service in the system. Use the preset property file template in the system to create a new property file, which contains the basic file structure and necessary configuration items. The preset template is used to create a property file to ensure the standardization and consistency of the property file. The preset template provides the basic structure and default configuration items of the file, which is convenient for creating a standardized property file. As an example, the template file can contain basic information fields of the WiFi HAL service, such as service name, version, dependencies, etc. Define the specific properties of the WiFi HAL service in the newly created property file, write the identifier of the previously applied WiFi HAL service into the property file, so that the property file can uniquely identify and associate with a specific WiFi HAL service, save the modified property file to the specified directory, and obtain the target property file.
[0051] Step S20: modify the system configuration file of the WiFi HAL service to obtain a target system configuration file.
[0052] The system configuration file is used to configure various operating parameters of the WiFi HAL service in the system. By modifying the system configuration file, you can ensure that the WiFi HAL service can run according to the expected configuration. This step requires reading the current system configuration file, making corresponding modifications, and saving it as the target system configuration file.
[0053] Further, the modifying the system configuration file of the WiFi HAL service to obtain the target system configuration file specifically includes:
[0054] Read the system configuration file of the current WiFi HAL service.
[0055] The WiFi HAL service entry in the system configuration file is modified, and the modified system configuration file is saved to obtain a target system configuration file.
[0056] According to the target system configuration file, the service configuration of the WiFi HAL service is modified to the SA service configuration.
[0057] Specifically, the system configuration file contains the configuration items of each service in the system. The current WiFi HAL service configuration file is found and opened from the system configuration directory. The system configuration file used to configure the WiFi HAL service in the current system is opened and read. All contents in the file are read and parsed into an operable data structure (such as JSON or XML). The configuration items of the WiFi HAL service are found and modified. These modifications may include updating the service path, adjusting the configuration parameters, etc. After the modification is completed, the updated system configuration file is saved to obtain the target system configuration file. By finding and modifying the configuration items of the WiFi HAL service, it is ensured that its configuration meets the new requirements. The modified target configuration file will be used for subsequent service updates and management.
[0058] According to the modified target system configuration file, adjust the configuration of the WiFi HAL service to the SA (Situation Awareness) service, update the configuration in the system capability manager, ensure that the WiFi HAL service is identified as the SA service, reload the system configuration file to make the new configuration effective. The WiFi HAL service is configured as a SA service to enhance its functions and permissions in the system so that it can better serve the overall operation of the system to ensure that it can operate normally as part of the system.
[0059] Step S30: Create and configure a client file, and manage the communication between the WiFi management process and the WiFiHAL service process according to the client file.
[0060] The client file is used to manage the communication between the WiFi management process and the WiFi HAL service process. This file defines the request sending interface and the receiving response interface, through which the WiFi management process can exchange data with the WiFi HAL service process.
[0061] Further, the creating and configuring the client file and managing the communication between the WiFi management process and the WiFi HAL service process according to the client file specifically includes:
[0062] Create a client file in the WiFi management directory, and define a request sending interface and a response receiving interface in the client file.
[0063] According to the request sending interface and the receiving response interface, a communication interface and a communication protocol are defined in the client file, and the communication between the WiFi management process and the WiFi HAL service process is managed according to the communication interface and the communication protocol.
[0064] Specifically, a client file is created and configured in a specified WiFi management directory, and a request sending interface and a receiving response interface are defined. The request sending interface is used for the WiFi management process to send control instructions and request data, and the receiving response interface is used for the WiFi management process to receive responses and feedback information from the WiFi HAL service. According to the defined request sending interface and receiving response interface, a specific communication interface and communication protocol are further defined in the client file. The communication interface may include a communication path, a transmission method, etc. The communication protocol is used to standardize the communication behavior between the WiFi management process and the WiFiHAL service process, including the data format of the communication, the transmission method and error handling, etc. By establishing an effective communication mechanism, it can be ensured that the WiFi management process and the WiFi HAL service can communicate in a standardized and reliable manner, and the control and management of the WiFi HAL service by the WiFi management process can be realized.
[0065] Step S40: Create and configure a server file, and process the request of the WiFi management process according to the server file.
[0066] The server file is used to process requests sent by the WiFi management process. This file defines the request receiving interface and the sending response interface, through which the WiFi HAL service process can receive and process requests from the WiFi management process.
[0067] Further, the creating and configuring the server file, and processing the request of the WiFi management process according to the server file, specifically includes:
[0068] Create a server file in the WiFi HAL directory, and define a request receiving interface and a sending response interface in the server file;
[0069] According to the request receiving interface and the sending response interface, a message processing function is defined in the server file, and a WiFi management process request is received according to the message processing function.
[0070] Specifically, a new server file is created in the specified WiFi HAL directory for configuring and managing communication with the WiFi management process. A request receiving interface and a sending response interface are defined in the server file. The request receiving interface is used to receive control instructions and request data sent by the WiFi management process. The sending response interface is used for the WiFi HAL service process to send responses and feedback information to the WiFi management process, so that the WiFi HAL service process can receive requests from the WiFi management process and send responses.
[0071] According to the defined request receiving interface and sending response interface, the message processing function is further defined in the server file, and the specific request processing logic is implemented in the message processing function, including parsing the request, performing the corresponding operation, generating the response data, etc., to process the request sent by the WiFi management process and generate the response. First, the request data from the WiFi management process is received through the request receiving interface, and then the message processing function is used to parse and process the received request, perform the corresponding operation, and send the processing result back to the WiFi management process in the form of a response through the sending response interface. By receiving requests, processing requests and sending responses, it is ensured that the WiFi HAL service process can effectively communicate and control the WiFi management process.
[0072] Step S50: loading the target attribute file, the target system configuration file, the client file and the server file into the communication system and updating the WiFi communication component.
[0073] After completing the above steps, the last step of the WiFi communication component update method is to load the generated target property file, target system configuration file, client file and server file into the communication system and update the WiFi communication component. This step ensures that all configuration files and service files are correctly applied, restarts the WiFi HAL service to make the configuration effective, ensures that the updated WiFi communication component can work properly, and verifies its function through actual testing, thereby realizing the update of the WiFi communication component.
[0074] Further, the target attribute file, the target system configuration file, the client file and the server file are loaded into the communication system and the WiFi communication component is updated, specifically including:
[0075] The target attribute file, the target system configuration file, the client file and the server file are copied to the corresponding directories of the communication system respectively, and overwrite files with the same name.
[0076] Restart the WiFi HAL service through the service management tool, verify the startup log of the WiFi HAL service, and test the functionality of the updated WiFi communication component.
[0077] Specifically, determine the target path of each file in the communication system, including the specific directory location of the target attribute file, the target system configuration file, the client file, and the server file, and copy the generated target files to the corresponding directories respectively, ensuring that the files with the same name are overwritten. By copying the files and overwriting the old files, ensure that the new configuration files and service files can be recognized and applied by the system. In order to make the newly copied configuration files effective. Restart the WiFi HAL service by using the system's service management tool (such as systemctl) to ensure that the WiFi HAL service reloads the configuration file and starts normally, and then check the startup log of the WiFi HAL service through the log tool (such as journalctl) to confirm whether the service startup is successful. Verify that the startup log of the WiFi HAL service is to ensure that the service is successfully started without errors. By checking the log, potential problems can be discovered and solved in time. Finally, perform functional testing on the updated WiFi communication component, run a series of predefined test cases, verify the various functions of the WiFi communication component, and check whether the updated WiFi communication component meets the expected performance indicators, including connection speed, stability, etc., to ensure that the updated WiFi component can work as expected and meet performance requirements.
[0078] Furthermore, if Figure 2 As shown, based on the above WiFi communication component update method, the present invention also provides a WiFi communication component update system, wherein the WiFi communication component update system includes:
[0079] A target attribute creation module 51 is used to apply for an identifier of a WiFi HAL service and create a target attribute file according to the identifier;
[0080] The system configuration modification module 52 is used to modify the system configuration file of the WiFi HAL service to obtain a target system configuration file;
[0081] A client file creation module 53, used to create and configure a client file, and manage the communication between the WiFi management process and the WiFi HAL service process according to the client file;
[0082] A server file creation module 54, used to create and configure a server file, and process the request of the WiFi management process according to the server file;
[0083] The communication component update module 55 is used to load the target attribute file, the target system configuration file, the client file and the server file into the communication system and update the WiFi communication component.
[0084] Furthermore, if Figure 3As shown, based on the above WiFi communication component updating method and system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 3 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0085] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a WiFi communication component update program 40 is stored on the memory 20, and the WiFi communication component update program 40 can be executed by the processor 10, thereby realizing a WiFi communication component update method in the present application.
[0086] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the WiFi communication component update method.
[0087] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0088] In one embodiment, when the processor 10 executes the WiFi communication component update program 40 in the memory 20, the following steps are implemented:
[0089] Apply for the identifier of the WiFi HAL service and create a target property file based on the identifier;
[0090] Modify the system configuration file of the WiFi HAL service to obtain the target system configuration file;
[0091] Create and configure client files, and manage the communication between the WiFi management process and the WiFi HAL service process according to the client files;
[0092] Create and configure a server-side file, and process the request of the WiFi management process according to the server-side file;
[0093] The target attribute file, the target system configuration file, the client file and the server file are loaded into the communication system and the WiFi communication component is updated.
[0094] The identifier for applying for WiFi HAL service specifically includes:
[0095] Call the interface function in the system capability manager;
[0096] Apply for an identifier of the WiFi HAL service according to the interface function, and set an ID value for the identifier.
[0097] The step of creating a target attribute file according to the identifier specifically includes:
[0098] Create a property file based on the preset template;
[0099] The properties of the WiFi HAL service are defined in the property file, and the identifier is written into the property file to obtain a target property file.
[0100] The step of modifying the system configuration file of the WiFi HAL service to obtain the target system configuration file specifically includes:
[0101] Read the system configuration file of the current WiFi HAL service;
[0102] Modify the WiFi HAL service entry in the system configuration file, save the modified system configuration file, and obtain the target system configuration file;
[0103] According to the target system configuration file, the service configuration of the WiFi HAL service is modified to the SA service configuration.
[0104] The creating and configuring the client file and managing the communication between the WiFi management process and the WiFi HAL service process according to the client file specifically include:
[0105] Create a client file in the WiFi management directory, and define a request sending interface and a receiving response interface in the client file;
[0106] According to the request sending interface and the receiving response interface, a communication interface and a communication protocol are defined in the client file, and the communication between the WiFi management process and the WiFi HAL service process is managed according to the communication interface and the communication protocol.
[0107] The creating and configuring the server file and processing the request of the WiFi management process according to the server file specifically includes:
[0108] Create a server file in the WiFi HAL directory, and define a request receiving interface and a sending response interface in the server file;
[0109] According to the request receiving interface and the sending response interface, a message processing function is defined in the server file, and a WiFi management process request is received according to the message processing function.
[0110] The step of loading the target attribute file, the target system configuration file, the client file, and the server file into the communication system and updating the WiFi communication component specifically includes:
[0111] Copy the target attribute file, the target system configuration file, the client file and the server file to the corresponding directories of the communication system respectively, and overwrite the files with the same names;
[0112] Restart the WiFi HAL service through the service management tool, verify the startup log of the WiFi HAL service, and test the functionality of the updated WiFi communication component.
[0113] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a WiFi communication component update program, and when the WiFi communication component update program is executed by a processor, the steps of the WiFi communication component update method described above are implemented.
[0114] In summary, the present invention provides a method, system, terminal and computer-readable storage medium for updating a WiFi communication component, the method comprising: applying for an identifier of a WiFi HAL service, and creating a target attribute file according to the identifier; modifying a system configuration file of the WiFi HAL service to obtain a target system configuration file; creating and configuring a client file, managing the communication between a WiFi management process and a WiFi HAL service process according to the client file; creating and configuring a server file, processing a request of the WiFi management process according to the server file; loading the target attribute file, the target system configuration file, the client file and the server file into the communication system and updating the WiFi communication component. The present invention improves the operating efficiency and stability of the WiFi communication component by optimizing the configuration file and the communication mechanism of the WiFi HAL service, simplifies the configuration and maintenance process, and facilitates management operations.
[0115] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0116] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0117] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A WiFi communication component update method, characterized in that: The WiFi communication component updating method comprises: Apply for the identifier of the WiFi HAL service and create a target property file based on the identifier; Modify the system configuration file of the WiFi HAL service to obtain the target system configuration file; Create and configure client files, and manage the communication between the WiFi management process and the WiFi HAL service process according to the client files; Create and configure a server-side file, and process the request of the WiFi management process according to the server-side file; The target attribute file, the target system configuration file, the client file and the server file are loaded into the communication system and the WiFi communication component is updated.
2. The WiFi communication component updating method according to claim 1, characterized in that: The identifier for applying for WiFi HAL service specifically includes: Call the interface function in the system capability manager; Apply for an identifier of the WiFi HAL service according to the interface function, and set an ID value for the identifier.
3. The WiFi communication component updating method according to claim 1, characterized in that: The step of creating a target attribute file according to the identifier specifically includes: Create a property file based on the preset template; The properties of the WiFi HAL service are defined in the property file, and the identifier is written into the property file to obtain a target property file.
4. The WiFi communication component updating method according to claim 1, characterized in that: The modifying of the system configuration file of the WiFi HAL service to obtain the target system configuration file specifically includes: Read the system configuration file of the current WiFi HAL service; Modify the WiFi HAL service entry in the system configuration file, save the modified system configuration file, and obtain the target system configuration file; According to the target system configuration file, the service configuration of the WiFi HAL service is modified to the SA service configuration.
5. The WiFi communication component updating method according to claim 1, characterized in that: The creating and configuring the client file, and managing the communication between the WiFi management process and the WiFi HAL service process according to the client file, specifically includes: Create a client file in the WiFi management directory, and define a request sending interface and a receiving response interface in the client file; According to the request sending interface and the receiving response interface, a communication interface and a communication protocol are defined in the client file, and the communication between the WiFi management process and the WiFi HAL service process is managed according to the communication interface and the communication protocol.
6. The WiFi communication component updating method according to claim 1, characterized in that: The creating and configuring the server file, and processing the request of the WiFi management process according to the server file, specifically includes: Create a server file in the WiFi HAL directory, and define a request receiving interface and a sending response interface in the server file; According to the request receiving interface and the sending response interface, a message processing function is defined in the server file, and a WiFi management process request is received according to the message processing function.
7. The WiFi communication component updating method according to claim 1, characterized in that: The step of loading the target attribute file, the target system configuration file, the client file, and the server file into the communication system and updating the WiFi communication component specifically includes: Copy the target attribute file, the target system configuration file, the client file and the server file to the corresponding directories of the communication system respectively, and overwrite the files with the same names; Restart the WiFi HAL service through the service management tool, verify the startup log of the WiFi HAL service, and test the functionality of the updated WiFi communication component.
8. A WiFi communication component update system, characterized in that: The WiFi communication component update system includes: A target attribute creation module, used to apply for an identifier of a WiFi HAL service and create a target attribute file according to the identifier; A system configuration modification module, used to modify the system configuration file of the WiFi HAL service to obtain a target system configuration file; A client file creation module, used to create and configure client files, and manage the communication between the WiFi management process and the WiFi HAL service process according to the client files; A server file creation module, used to create and configure a server file, and process the request of the WiFi management process according to the server file; The communication component update module is used to load the target attribute file, the target system configuration file, the client file and the server file into the communication system and update the WiFi communication component.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a WiFi communication component update program stored in the memory and executable on the processor. When the WiFi communication component update program is executed by the processor, the steps of the WiFi communication component update method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a WiFi communication component update program, and when the WiFi communication component update program is executed by a processor, the steps of the WiFi communication component update method according to any one of claims 1 to 7 are implemented.
