Service management method, device and equipment and readable storage medium
By adjusting the service status of the communication module through mode switching, the problem of needing to re-burn the software in the existing technology is solved, realizing flexible control of the communication module service and improving the convenience of production and application.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-18
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, the service status control and management of communication modules requires re-programming the software, which is inflexible and cannot enable services to be started and stopped at will.
By switching modes, the module receives mode adjustment commands, parses the target mode, adjusts the service status of the communication module according to the target mode, and restarts the module to enter the target mode.
The communication module functions or services can be turned on and off without downloading new software, which improves flexibility and facilitates production, transportation, testing and application.
Smart Images

Figure CN115328559B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a service management method and device, equipment and a readable storage medium. BACKGROUND
[0002] For a communication module, if a user needs to disable or enable some functions, the user can only achieve this by re-burning the corresponding software. In addition, if a new service is added to the modem software in the communication module, it is also impossible to achieve the on-off of the service. It is relatively troublesome to control / manage the service state of the communication module by burning, and the flexibility is poor.
[0003] To sum up, how to effectively solve the problems of service state control and management of the communication module is a technical problem that needs to be solved by the technical personnel in the field at present. SUMMARY
[0004] The purpose of the present application is to provide a service management method and device, equipment and a readable storage medium, which can realize the opening and closing of the functions or services of the communication module through mode switching, without the need to re-download software.
[0005] To solve the above technical problems, the present application provides the following technical solutions:
[0006] A service management method applied to a communication module, comprising:
[0007] receiving a mode adjustment command and parsing the mode adjustment command to obtain a target mode;
[0008] adjusting the states of each service in the communication module according to the service state corresponding to the target mode;
[0009] After completing the service state adjustment, restarting the communication module to make the communication module enter the target mode.
[0010] Preferably, the method further comprises:
[0011] receiving a mode query command;
[0012] reading and feeding back the current mode from the non-volatile storage medium of the communication module.
[0013] Preferably, after obtaining the target mode and before adjusting the states of each service in the communication module according to the service state corresponding to the target mode, the method further comprises:
[0014] obtaining the current mode of the communication module;
[0015] judging whether the current mode is consistent with the target mode;
[0016] If no, performing a step of adjusting the states of the services in the communication module according to the service states corresponding to the target mode;
[0017] If yes, feeding back the current mode.
[0018] Preferably, the receiving the mode adjustment command comprises:
[0019] The mode adjustment command is received when the host to which the communication module belongs is in a sleep or shutdown state.
[0020] Preferably, the method further comprises:
[0021] receiving a debugging command;
[0022] opening a log recording service and a debugging service of the communication module;
[0023] restarting the communication module after the debugging is completed.
[0024] Preferably, the adjusting the states of the services in the communication module according to the service states corresponding to the target mode comprises:
[0025] if the target mode is a factory test mode, only starting a test service of the communication module;
[0026] if the target mode is a transportation mode, shutting down all services of the communication module;
[0027] if the target mode is a service mode, starting all IOT services in the communication module.
[0028] A service management method applied to an embedded controller, comprising:
[0029] determining a current target mode;
[0030] generating a mode adjustment command corresponding to the target mode;
[0031] sending the mode adjustment command to a communication module, so that the communication module performs the steps of the service management method as described above.
[0032] A service management device, comprising:
[0033] a command receiving and analyzing unit configured to receive a mode adjustment command and analyze the mode adjustment command to obtain a target mode;
[0034] a command executing unit configured to adjust the states of the services in the communication module according to the service states corresponding to the target mode;
[0035] A mode taking effect unit is configured to restart the communication module and make the communication module enter the target mode after completing the service state adjustment.
[0036] An electronic device comprises:
[0037] A memory is configured to store a computer program.
[0038] A processor is configured to implement the steps of the service management method when executing the computer program.
[0039] A readable storage medium has a computer program stored thereon, and the computer program is configured to implement the steps of the service management method when executed by a processor.
[0040] The method provided by the embodiments of the present application is applied to a communication module, and the method comprises the following steps: receiving a mode adjustment command and parsing the mode adjustment command to obtain a target mode; adjusting the states of services in the communication module according to the service states corresponding to the target mode; restarting the communication module and making the communication module enter the target mode after completing the service state adjustment.
[0041] In the present application, the services of the communication module are patterned, that is, the states of the corresponding services are set to be turned on or turned off in different modes. Specifically, when the communication module receives a mode adjustment command, the mode adjustment command is parsed, and then a target mode is obtained. Then, the states of the services in the communication module are adjusted according to the service states corresponding to the target mode. After completing the service state adjustment, the communication module is restarted, so that the communication module enters the target mode. As can be seen, in the present application, when the service states of the communication module need to be adjusted, only the corresponding mode adjustment command needs to be sent to the communication module, and there is no need to burn or download software, which is beneficial to production, transportation, testing and application.
[0042] Correspondingly, the embodiments of the present application further provide another service management method, a service management device, equipment and a readable storage medium corresponding to the above service management method, which have the above technical effects, and details are not described herein. BRIEF DESCRIPTION OF DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the embodiments or the related art description will be briefly introduced. Obviously, the drawings in the following description only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor on the basis of these drawings.
[0044] Figure 1 An implementation flowchart of a service management method in the embodiments of the present application;
[0045] Figure 2 An implementation diagram of a service management method in an embodiment of the present application;
[0046] Figure 3 A specific implementation flowchart of a service management method in an embodiment of the present application;
[0047] Figure 4 A setting flowchart of a debugging function in the present application;
[0048] Figure 5 A structure diagram of a service management apparatus in an embodiment of the present application;
[0049] Figure 6 A structure diagram of an electronic device in an embodiment of the present application;
[0050] Figure 7 A specific structure diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the personnel in the technical field better understand the present application, the present application will be further described in detail below in combination with the drawings and specific embodiments. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0052] For the convenience of understanding, the related terms involved in the present application are explained as follows:
[0053] PC: Personal Computer, personal computer, notebook computer in the present application;
[0054] WWAN: Wireless Wide Area Network, wireless wide area network;
[0055] MBB: Mobile Broadband, mobile broadband;
[0056] IoT: Internet of Things, Internet of Things;
[0057] BIOS: Basic Input Output System, Basic Input Output System;
[0058] EC: Embedded Controller, embedded controller;
[0059] Diag: Diagnostic, debugging;
[0060] IoT Service: IoT related services, including IoT data connection manager, location service (Geofence, LBS), eSIM profile update service;
[0061] IoT mode Manger: MBB & IoT mode management and SIM switching management, including OS state detection, mode switching, SIM / eSIM switching, eSIM profile activation / deactivation, MBIM filter synchronization.
[0062] Please refer to Figure 1 , Figure 1 A flowchart of a service management method in an embodiment of the present application, the method can be applied to a communication module, and the method comprises the following steps:
[0063] S101, receiving a mode adjustment command, and parsing the mode adjustment command to obtain a target mode.
[0064] The communication module can be a 5G communication module, a 4G communication module, a 3G communication module, and the like.
[0065] For example, the main structure of one kind of communication module is as shown in Figure 2 , which includes modem software, PCIeDriver (PCIe driver), SIO (super input output chip), EC Driver and PCIoT other feature. Among them, Modem, modulation and demodulation, commonly known as cat, can translate the digital signal of computer into pulse signal that can be transmitted along the ordinary telephone line, and the pulse signal can be received by another modem at the other end of the line and translated into language that the computer can understand; PCIe, peripheral component interconnect express, a high-speed serial computer expansion bus standard; EC Driver is the EC driver in the embedded controller; PC: Personal Computer, personal computer, refers to a notebook computer in this paper; Internet of Things, Internet of Things. The PC connected to the communication module through I2C can be specific to PC, wherein the BMIN interface, the UDE transmission protocol and the BIOS can refer to the related description, and will not be explained one by one here. Figure 2 The rightmost function / service connected with ECDriver corresponds to the management object of the communication module, that is, this part is a partial enlarged schematic view of the EC Driver, and the specific implementation and process of the functions / services in it can refer to the related scheme, which will not be explained one by one here.
[0066] The communication module can receive a mode adjustment command from a PC or other external device. Specifically, the communication module can be connected to the PC via a transmission bus such as an I2C bus to receive a mode adjustment command sent by the PC. Of course, the communication module can also be connected to other external devices to receive a mode adjustment command sent by the external devices.
[0067] After receiving the mode adjustment command, the mode adjustment command can be parsed to obtain a target mode. The target mode is the mode that the communication module needs to enter. In this application, the opening state of each service corresponding to different modes can be different, that is, different service opening states correspond to different modes. That is, the service state of each service is standardized by mode.
[0068] The format of the mode adjustment command can be any command format that can be parsed by the communication module. In this application, the control instruction corresponding to the embedded controller is referred to as an EC command for ease of understanding.
[0069] In one specific embodiment of the present application, step S101 of receiving the mode adjustment command can include receiving the mode adjustment command when the host to which the communication module belongs is in a sleep or shutdown state. That is, when the host is in an S4 or S5 state, the communication module can also operate normally and receive the mode adjustment command. The EC can be integrated on the mainboard of the PC (hereinafter referred to as the host); the host and the EC in the communication module are connected through a standard I2C synchronous serial bus and interact with data in accordance with the standard I2C protocol. That is, the EC is independent of PC management, and when the PC is in an S4 / S5 state, the EC can also work normally and restart the module in accordance with the power-on sequence of the module, which means that even in the S4 / S5 state, the module can work normally and respond to various commands triggered by the EC, thereby realizing mode adjustment of the communication module in the shutdown state. In addition, the host can be located after shutdown to prevent theft, and the communication module can be awakened in the shutdown state.
[0070] In one specific embodiment of the present application, please refer to Figure 3 , Figure 3 The specific implementation flowchart of the service management method in the embodiment of the present application is as follows: after obtaining the target mode, before adjusting the state of each service in the communication module according to the service state corresponding to the target mode, the following steps can also be performed:
[0071] Step 1, obtaining the current mode of the communication module;
[0072] Step 2, determining whether the current mode is consistent with the target mode;
[0073] Step three, if no, performing the service state corresponding to the target mode, corresponding to the step of adjusting the state of each service in the communication module;
[0074] Step four, if yes, feedback the current mode.
[0075] For the convenience of description, the above four steps will be described together.
[0076] Specifically, the current mode can be determined by reading the non-volatile memory in the communication module. Then, it is judged whether the current mode is consistent with the target mode. If consistent, no mode adjustment is needed, and the current mode can be directly fed back to the device sending the mode adjustment instruction; if not consistent, it indicates that mode adjustment is needed, at which time step S102 is entered.
[0077] S102, according to the service state corresponding to the target mode, corresponding to the adjustment of the state of each service in the communication module.
[0078] In the target mode, the corresponding state of each service is specified, so according to the service state corresponding to the target mode, the state of each service in the communication module can be adjusted.
[0079] For the service state in the communication module, it is divided into on or disabled. There are multiple services in the image module. Therefore, different modes can be set for different states of different services. Of course, in actual application, the number of modes can correspond to the number of services, and when there are N services, the number of modes can be up to 2 N Of course, in actual application, some service state combinations are meaningless, so mode selection can be made according to the actual scene.
[0080] In a specific embodiment of the present application, step S102 adjusts the state of each service in the communication module according to the service state corresponding to the target mode, including:
[0081] Scenario 1: If the target mode is the factory test mode, only the test service of the communication module is turned on;
[0082] Scenario 2: If the target mode is the transportation mode, all services of the communication module are turned off;
[0083] Scenario 3: If the target mode is the service mode, all IOT services in the communication module are turned on.
[0084] That is, according to different scene requirements, the target mode is different, and the starting state of the corresponding service is also different. The target mode can be specifically a factory test mode, a transport mode and a service mode (IoT Service mode). In the factory test mode, only the test service is started, and other services are closed; in the transport mode, all services of the communication module are closed; in the service mode, all IOT services in the communication module are started.
[0085] That is, when in the factory test scene, the target mode corresponds to the factory test mode, at this time only the service related to the test is started; in the transport scene, the target mode corresponds to the transport mode, at this time all services are closed; in the service mode, all IOT services are started. That is, according to the actual scene situation, a specific mode is selected as the target mode.
[0086] Specifically, the host can perform scene recognition to generate a mode adjustment command matched with the current scene. That is, in a specific embodiment of the present application, the mode adjustment command received in step S101 can specifically include: receiving a mode adjustment command matched with the current scene.
[0087] The state of each service of the communication module can be stored in the non-volatile memory of the communication module, so that when the service state is adjusted, the state of each service can be obtained by reading the non-volatile memory of the image module, and then the state is compared with the service state corresponding to the target mode, and the services that are different are adjusted. For example, when the target mode is the transport mode, the transport mode corresponds to closing all services, so only the services in the open state are determined by reading the service state in the non-volatile memory of the communication module, and then they are closed.
[0088] S103, after completing the service state adjustment, restarting the communication module to make the communication module enter the target mode.
[0089] After completing the service state adjustment, the communication module can be restarted, so that the restarted communication module enters the target mode.
[0090] The method provided by the embodiment of the present application is applied to the communication module, including: receiving a mode adjustment command and analyzing the mode adjustment command to obtain a target mode; adjusting the state of each service in the communication module according to the service state corresponding to the target mode; after completing the service state adjustment, restarting the communication module to make the communication module enter the target mode.
[0091] In the present application, the services of the communication module are patterned, that is, in different modes, the corresponding services are set to be opened or closed. Specifically, when the communication module receives a mode adjustment command, the mode adjustment command is parsed, and then the target mode is obtained. Then, according to the service state corresponding to the target mode, the services in the communication module are adjusted, and after the service state adjustment is completed, the communication module is restarted, so that the communication module enters the target mode. As can be seen, in the present application, when the service state of the communication module needs to be adjusted, only the corresponding mode adjustment command needs to be sent to the communication module, and there is no need to burn or download software, which is beneficial to production, transportation, testing and application.
[0092] It should be noted that based on the above embodiment, the present application embodiment also provides a corresponding improvement scheme. The preferred / improved embodiments involve the same steps or corresponding steps between the above embodiments, which can be mutually referred to, and the corresponding beneficial effects can also be mutually referred to. In the preferred / improved embodiments of the present application, they will not be described one by one.
[0093] In a specific embodiment of the present application, the current mode of the communication module can also be queried. The specific implementation process includes:
[0094] Step one, receiving a mode query command;
[0095] Step two, reading and feeding back the current mode from the non-volatile storage medium of the communication module.
[0096] The mode query command and the mode adjustment command can be generated and issued by the same device, or they can correspond to different devices, and the present application does not limit this.
[0097] The current mode corresponding identifier can be stored in the non-volatile memory, and by reading the identifier, the specific current mode can be known and then fed back. Based on the mapping relationship between the mode and the service state, after the current mode is known, the state of each service of the current communication module can be understood.
[0098] In a specific embodiment of the present application, when debugging is needed, the communication module can be directly debugged based on the debugging command. The specific implementation process includes:
[0099] Step one, receiving a debugging command;
[0100] Step two, opening the log recording service and the debugging service of the communication module;
[0101] Step three, restarting the communication module after debugging is completed.
[0102] The debugging command and the mode adjustment command can be from the same or different devices. After the communication module receives the debugging command, the logging service and the debugging service of the communication module can be directly opened. After the logging service and the debugging service are opened, the communication module can be debugged. After the debugging is completed, since the mode change processing is not performed, by restarting the communication module, the communication module can automatically close the logging service and the debugging service, and enter the mode state before debugging. The debugging operation process can be greatly simplified.
[0103] For example, refer to Figure 4 , Figure 4 A flowchart of a setting process of a debugging function in the application is shown in FIG. 1. The EC sends a received command to an EC driver. The EC driver can analyze the EC command to obtain an operation content. If the operation content corresponds to obtaining a current debugging function state, the NVM (Non-Volatile Memory) is directly read and fed back to the host. If the operation content is to set the debugging function, the NVM is read to obtain the current state of the debugging function. If the current state is the target state, the current state is returned. Otherwise, it is determined whether the Diag function is enabled. If yes, the NVM is set to open the Logging function and the debugging function. If no, it is determined whether the current mode is the factory mode. If yes, only the logging switch is closed. If no, the NVM is set to close the Logging function and the debugging function. After the NVM setting and the debugging are completed, the communication module is restarted.
[0104] In order to facilitate those skilled in the art to understand and implement the service management method provided in the application, the service management method will be described in detail below with reference to specific application scenarios.
[0105] Taking the communication module as L860 R+PC-IoT or FM350 PC-IoT for example, the specific implementation of the service management method includes the following steps.
[0106] In the first step, the wireless communication module of the L860 R+PC-IoT or the FM350 PC-IoT is integrated into the PC. Whether the PC is in a normal working state or enters the S4 / S5 state, the L860 R+ module and the EC on the PC always remain in a working state and interact through the EC protocol.
[0107] In the second step, the communication module and the EC interact according to the standard EC protocol. The PC sends a command to the communication module through the EC. The EC driver on the module analyzes the EC command to obtain the current operation type (switching mode / enable, disable diag function).
[0108] Third step, if the current operation is the setting mode, first judge whether the current mode is consistent with the mode to be set;
[0109] <1> If the current mode is consistent with the mode to be set, return directly;
[0110] <2> If not, modify the corresponding function state (enable or disable) according to the mode to be set, and then restart the module.
[0111] Fourth step, if the current operation is the reading mode, directly read the current mode and return.
[0112] Fifth step, if the current operation is to start the Diagnostic function, enable the Logging and debug functions while keeping the current mode; after the debugging is completed, the module is restarted to automatically close the Diagnostic function.
[0113] Therefore, through the change of the mode, the effect of the function or service being used as long as it is started can be achieved without relying on the re-downloading of the software, which is convenient for testing and production and improves the user experience.
[0114] Corresponding to the above method embodiment, the embodiment of the application also provides a service management method. The service management method described below can be mutually corresponding and referred to the service management method described above. The method can be applied to an embedded controller, and the method comprises:
[0115] Step one, determine the current target mode;
[0116] Step two, generate a mode adjustment command corresponding to the target mode;
[0117] Step three, send the mode adjustment command to the communication module, so that the communication module executes the steps of the service management method described in the above embodiment.
[0118] The method can also be applied to a device capable of determining the current target mode and capable of communicating with the communication module, such as a host.
[0119] The above three steps are described below taking the embedded controller as an example.
[0120] The embedded controller can obtain the current target mode from the host, such as the transportation mode, the test mode or the service mode.
[0121] Then, a mode adjustment command corresponding to the target mode is generated. Then, the mode adjustment command is sent to the communication module. After receiving the mode adjustment command, the communication module can execute the steps of the service management method as shown in Figure 1 Thus, the service mode control of the communication module is realized.
[0122] Further, the embedded controller can be independently arranged outside the host, that is, in the host-off state, the embedded controller can still run and perform the above three steps, thereby realizing the mode control of the service state of the image module in the host-off state.
[0123] Corresponding to the above method embodiment, the embodiment of the application further provides a service management device. The service management device described below can be correspondingly referred to the service management method described above.
[0124] Referring to Figure 5 A service management device is shown, which comprises the following modules:
[0125] The command receiving and analyzing unit 101 is configured to receive a mode adjustment command and analyze the mode adjustment command to obtain a target mode.
[0126] The command executing unit 102 is configured to adjust the states of various services in the communication module according to the service state corresponding to the target mode.
[0127] The mode taking effect unit 103 is configured to restart the communication module after completing the adjustment of the service state, so that the communication module enters the target mode.
[0128] The device provided by the embodiment of the application receives a mode adjustment command and analyzes the mode adjustment command to obtain a target mode, adjusts the states of various services in the communication module according to the service state corresponding to the target mode, and restarts the communication module after completing the adjustment of the service state, so that the communication module enters the target mode.
[0129] In the application, the services of the communication module are mode-controlled, that is, in different modes, the corresponding services are set to be turned on or turned off. Specifically, when the communication module receives a mode adjustment command, the mode adjustment command is analyzed to obtain a target mode. Then, the states of various services in the communication module are adjusted according to the service state corresponding to the target mode. After completing the adjustment of the service state, the communication module is restarted, so that the communication module enters the target mode. As can be seen, in the application, when the service state of the communication module needs to be adjusted, only the corresponding mode adjustment command needs to be sent to the communication module, and there is no need to burn or download software, which is beneficial to production, transportation, testing and application.
[0130] In one specific embodiment of the application, the device further comprises:
[0131] The query unit is configured to receive a mode query command.
[0132] The current mode is read from the non-volatile storage medium of the communication module and fed back.
[0133] In an embodiment of the present application, the device further comprises:
[0134] a mode comparison unit, configured to, after obtaining the target mode, acquire a current mode of the communication module before adjusting the states of the services in the communication module according to the service states corresponding to the target mode;
[0135] determine whether the current mode is consistent with the target mode;
[0136] if yes, feed back the current mode.
[0137] if no, trigger the command execution unit to execute the step of adjusting the states of the services in the communication module according to the service states corresponding to the target mode;
[0138] In an embodiment of the present application, the command receiving and analyzing unit is specifically configured to receive the mode adjustment command matched with the current scene.
[0139] In an embodiment of the present application, the command receiving and analyzing unit is specifically configured to receive the mode adjustment command when the host to which the communication module belongs is in a sleep or shutdown state.
[0140] In an embodiment of the present application, the device further comprises:
[0141] a debugging unit, configured to receive a debugging command;
[0142] open a log recording service and a debugging service of the communication module;
[0143] restart the communication module after the debugging is completed.
[0144] In an embodiment of the present application, the command execution unit 102 is specifically configured to, if the target mode is a factory test mode, only start a test service of the communication module.
[0145] if the target mode is a transportation mode, close all services of the communication module;
[0146] if the target mode is a service mode, start all IOT services in the communication module.
[0147] Corresponding to the above method embodiments, the embodiments of the present application further provide an electronic device. The electronic device described below can be mutually referred to the service management method described above.
[0148] Referring to Figure 6 , the electronic device comprises:
[0149] a memory 332, configured to store a computer program;
[0150] The processor 322 is configured to execute the computer program to implement the steps of the service management method according to the above method embodiments.
[0151] Specifically, refer to Figure 7 , Figure 7 A specific structural schematic diagram of an electronic device is provided for the embodiment, and the electronic device can have great differences due to different configurations or performances, and can include one or more than one processor (central processing unit, CPU) 322 (for example, one or more than one processor) and a memory 332, and the memory 332 stores one or more than one computer application program 342 or data 344. The memory 332 can be temporary storage or persistent storage. The program stored in the memory 332 can include one or more than one module (not shown in the figure), and each module can include a series of instruction operations in the data processing device. Further, the central processing unit 322 can be configured to communicate with the memory 332 and execute the series of instruction operations in the memory 332 on the electronic device 301.
[0152] The electronic device 301 can further include one or more than one power supply 326, one or more than one wired or wireless network interface 350, one or more than one input and output interface 358, and / or one or more than one operating system 341.
[0153] The steps in the service management method described above can be implemented by the structure of the electronic device.
[0154] Corresponding to the above method embodiments, the embodiment of the present application further provides a readable storage medium, and the readable storage medium described below can be correspondingly referred to the service management method described above.
[0155] A readable storage medium, and the readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the service management method according to the above method embodiments.
[0156] The readable storage medium can be specifically a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and various readable storage media that can store program codes.
[0157] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both, and the general description of the components and steps of each example has been described above in order to clarify the interchangeability of hardware and software. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
Claims
1. A service management method characterized by comprising: The application is applied to a communication module, comprising: receiving a mode adjustment command and parsing the mode adjustment command to obtain a target mode; correspondingly adjusting the states of various services in the communication module according to the service state corresponding to the target mode; after completing the adjustment of the service state, restarting the communication module so that the communication module enters the target mode; wherein the step of correspondingly adjusting the states of various services in the communication module according to the service state corresponding to the target mode comprises: if the target mode is a factory test mode, only starting a test service of the communication module; if the target mode is a transportation mode, closing all services of the communication module; if the target mode is a service mode, starting all IOT services in the communication module. The EC is integrated on a mainboard of a host computer; the host computer and the EC in the communication module are connected through a standard I2C synchronous serial bus and perform data interaction according to a standard I2C protocol; and the EC is an embedded controller in the communication module.
2. The service management method according to claim 1, characterized by, Further comprising: receiving a mode query command; reading and feeding back a current mode from a nonvolatile storage medium of the communication module.
3. The service management method according to claim 1, characterized by, After obtaining the target mode, before correspondingly adjusting the states of various services in the communication module according to the service state corresponding to the target mode, further comprising: obtaining a current mode of the communication module; judging whether the current mode is consistent with the target mode; if not, performing the step of correspondingly adjusting the states of various services in the communication module according to the service state corresponding to the target mode; if yes, feeding back the current mode.
4. The service management method according to claim 1, characterized by, The step of receiving the mode adjustment command comprises: receiving the mode adjustment command when the host computer to which the communication module belongs is in a sleep or shutdown state.
5. The service management method according to claim 1, characterized by, Further comprising: receiving a debugging command; opening a log recording service and a debugging service of the communication module; after debugging is completed, restarting the communication module.
6. A service management method characterized by comprising: The application is applied to an embedded controller, comprising: determining a current target mode; generating a mode adjustment command corresponding to the target mode; sending the mode adjustment command to the communication module so that the communication module performs the steps of the service management method according to any one of claims 1 to 5.
7. A service management apparatus characterized by comprising: comprising: a command receiving and parsing unit configured to receive a mode adjustment command and parse the mode adjustment command to obtain a target mode; a command execution unit configured to correspondingly adjust the states of various services in the communication module according to the service state corresponding to the target mode; a mode taking effect unit configured to restart the communication module so that the communication module enters the target mode after completing the adjustment of the service state; wherein the command execution unit is specifically configured to, if the target mode is a factory test mode, only start a test service of the communication module; if the target mode is a transportation mode, close all services of the communication module; and if the target mode is a service mode, start all IOT services in the communication module. The EC is integrated on the mainboard of the host computer; the host computer and the EC in the communication module are connected through a standard I2C synchronous serial bus and data interaction is conducted according to a standard I2C protocol; and the EC is an embedded controller in the communication module.
8. An electronic device, comprising: The application relates to a service management method and device. The memory is used for storing a computer program; the processor is used for executing the computer program to realize the steps of the service management method according to any one of claims 1 to 5 or the steps of the service management method according to claim 6. The computer program is stored on the readable storage medium and is executed by the processor to realize the steps of the service management method according to any one of claims 1 to 5 or the steps of the service management method according to claim 6.
9. A readable storage medium, characterized by,
Citation Information
Patent Citations
Wireless network signal control method, and wireless network device
CN108924966A