Mode switching method and system, electronic equipment and medium

By automatically detecting and switching modes in electronic devices, the problem of mode switching failure is solved, the user experience is improved, and the review and production operation process is simplified.

CN118916221APending Publication Date: 2024-11-08SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925144.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

During the production and testing of electronic devices, the problem of failure of mode switching leads to a degradation of user experience, especially when the power is interrupted or the factory is leaked during the factory mode switching to user mode, the mode switching fails.

Method used

Enter the command acquisition state in factory mode. If the factory debugging command within the preset time range is not received, it will automatically switch to user mode. By detecting the source of the command and the received operation command, it will determine whether to switch mode, and switch on After deleting debug data and updating storage areas.

Benefits of technology

Even if the mode switch fails, the electronic device will automatically switch to user mode, avoiding abnormal user perception, improving user experience, and reducing review workload and boot time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916221A_ABST
    Figure CN118916221A_ABST
Patent Text Reader

Abstract

The invention discloses a mode switching method and system, electronic equipment and a medium, and relates to the technical field of production testing, and the mode switching method comprises the steps that in a factory mode, an instruction obtaining state is entered, and the instruction obtaining state is a state waiting for instruction receiving; in the instruction obtaining state, if it is detected that a factory debugging instruction is not received within a preset time range, the factory mode is switched to a user mode, and the factory debugging instruction is an instruction corresponding to the factory mode. The technical scheme of the invention aims to solve the technical problem of mode switching failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of production test technology, and in particular to a mode switching method, system, electronic device and medium. Background Art

[0002] At present, during the production and testing process of electronic devices, dual modes are usually set in the electronic devices, namely, factory mode and user mode. Among them, the factory mode is used to test the electronic devices, and the user mode is used to serve users after leaving the factory. After completing the test of the electronic device based on the factory mode, it is necessary to switch the electronic device to the user mode based on the factory reset button on the electronic device for user use.

[0003] When an electronic device is not shipped out of the factory, or when the electronic device is powered off during the process of switching from factory mode to user mode, the mode switching will fail, resulting in the problem of mode switching failure. Furthermore, electronic devices with mode switching failure will reduce user experience.

[0004] Therefore, how to solve the problem of mode switching failure to improve user experience is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0005] The main purpose of the present application is to provide a mode switching method, system, electronic device and medium, aiming to solve the technical problem of mode switching failure.

[0006] To achieve the above object, the present application proposes a mode switching method, the method comprising:

[0007] When in factory mode, entering the instruction acquisition state, wherein the instruction acquisition state is a state of waiting to receive instructions;

[0008] When in the instruction acquisition state, if it is detected that no factory debugging instruction is received within a preset time range, the factory mode is switched to the user mode, wherein the factory debugging instruction is an instruction corresponding to the factory mode.

[0009] In one embodiment, the method further comprises:

[0010] Detect whether an operation instruction is received;

[0011] If it is detected that the operation instruction is received, identifying the instruction source of the operation instruction;

[0012] When it is detected that the source of the instruction is a factory remote controller, determining that the operation instruction is a factory debugging instruction;

[0013] When it is detected that the command source is not the factory remote controller, the step of switching from the factory mode to the user mode is executed.

[0014] In one embodiment, the step of identifying the instruction source of the operation instruction includes:

[0015] Extracting an instruction source identification code of the operation instruction;

[0016] Obtaining the identification code corresponding to each commander, and using the identification code that is the same as the command source identification code as the target identification code, wherein the commander is the device that sends the command;

[0017] The commander corresponding to the target identification code is used as the commander source.

[0018] In one embodiment, after the step of switching from the factory mode to the user mode, the method further includes:

[0019] Deleting the debugging data, and determining a first target storage area corresponding to the factory mode code;

[0020] The data in the first target storage area is deleted.

[0021] In one embodiment, the method further comprises:

[0022] If the factory debugging instruction is received within the preset time range, executing the debugging method corresponding to the factory debugging instruction;

[0023] After receiving the factory reset instruction, the step of switching from the factory mode to the user mode is executed.

[0024] In one embodiment, after the step of switching from the factory mode to the user mode, the method further includes:

[0025] If the code corresponding to the user mode is received, the storage space corresponding to the user mode is used as the second target storage space, and the code is written into the second target storage area.

[0026] In one embodiment, after the step of switching from the factory mode to the user mode, the method further includes:

[0027] Output the boot menu to prompt for configuration information;

[0028] After receiving the configuration information, parameter configuration is performed according to the configuration information.

[0029] In addition, to achieve the above purpose, the present application also proposes a mode switching system, the mode switching system comprising:

[0030] An acquisition module, used to enter an instruction acquisition state when in factory mode, wherein the instruction acquisition state is a state of waiting to receive instructions;

[0031] The switching module is used to switch from the factory mode to the user mode when in the instruction acquisition state, if it is detected that no factory debugging instruction is received within a preset time range, wherein the factory debugging instruction is an instruction corresponding to the factory mode.

[0032] In addition, to achieve the above objectives, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the mode switching method described above.

[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the mode switching method described above are implemented.

[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the mode switching method described above are implemented.

[0035] In the present application, when in the factory mode, the instruction acquisition state is entered, wherein the instruction acquisition state is a state of waiting to receive instructions, which can facilitate the reception of instructions to determine whether mode switching is required; then when in the instruction acquisition state, if it is detected that no factory debugging instructions are received within a preset time range, the factory mode is switched to the user mode, wherein the factory debugging instructions are instructions corresponding to the factory mode, and it can be determined that the factory mode does not need to be maintained without receiving the factory debugging instructions, thereby switching from the factory mode to the user mode.

[0036] In this way, even if the mode switching fails, the electronic device will automatically switch to the user mode due to the failure to receive the factory debugging instruction, thereby solving the problem of mode switching failure without the user noticing any abnormality, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0039] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the mode switching method of the present application;

[0040] Figure 2 This is a flow chart of a specific embodiment of the mode switching method of the present application;

[0041] Figure 3 This is another flowchart of a specific embodiment of the mode switching method of the present application;

[0042] Figure 4 This is a schematic diagram of the module structure of the mode switching system of an embodiment of the present application;

[0043] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the mode switching method in the embodiment of the present application.

[0044] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0046] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0047] The main solution of the embodiment of the present application is: when in factory mode, enter the instruction acquisition state, wherein the instruction acquisition state is a state of waiting to receive instructions; when in the instruction acquisition state, if it is detected that no factory debugging instructions are received within a preset time range, switch from the factory mode to the user mode, wherein the factory debugging instructions are instructions corresponding to the factory mode.

[0048] Taking the electronic device as a television as an example, in the prior art, the traditional factory mode of the television is to add factory-related detection functions to the user system, such as relevant factory remote control shortcut keys and relevant automated serial port instructions are integrated into the user system. This method has the problem that when the user function changes, even if the factory-related functions have not changed, it must be re-evaluated, which increases the workload of the review, and the long startup time is inconvenient for production operations. Therefore, most manufacturers have currently introduced a dual system mode. That is, the factory system is cut out on the user system to obtain the factory mode and the user mode. In the factory mode, only the relevant functions required for production testing are loaded. After the test is completed, the mode can be switched at the last startup station of the production to ensure that the factory mode is switched to the user mode. If the switch fails, it will affect the user experience and lead to user complaints.

[0049] In order to solve the problem of mode switching failure, the present application proposes a mode switching method.

[0050] It should be noted that the execution subject of this embodiment may be an electronic device with data processing, network communication and program running functions, such as a computer, a television, etc. The following takes a television as an example to illustrate this embodiment and the following embodiments.

[0051] Based on this, the embodiment of the present application provides a mode switching method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the mode switching method of the present application.

[0052] In this embodiment, the mode switching method includes steps S10 to S20:

[0053] Step S10, when in factory mode, entering the instruction acquisition state, wherein the instruction acquisition state is a state of waiting to receive instructions;

[0054] It is understandable that after the TV is powered on, the TV will start in the mode before the power is turned off. That is, if the mode of the TV before the power is turned off is the factory mode, then after the TV is powered on, it will automatically start in the factory mode; if the mode of the TV before the power is turned off is the user mode, then after the TV is powered on, it will automatically start in the user mode.

[0055] In this embodiment, after the television is started, it will enter a state of waiting to receive a command so as to execute the preset steps corresponding to the command.

[0056] Step S20, when in the instruction acquisition state, if it is detected that no factory debugging instruction is received within a preset time range, switching from the factory mode to the user mode, wherein the factory debugging instruction is an instruction corresponding to the factory mode.

[0057] It should be noted that the preset time range refers to a preset time limit for receiving external instructions. For example, the preset time range may be 30 seconds, which is not limited in this application.

[0058] In this embodiment, if the instruction corresponding to the factory mode is received within the preset time range, it can be determined that the factory test is still required, so there is no need to switch the mode. If the instruction corresponding to the factory mode is not received within the preset time range, it can be determined that the device has been shipped, so the factory mode can be switched to the user mode.

[0059] It is understandable that in the present application, for electronic devices that have been leaked and whose mode switching fails, it can be determined whether the electronic device needs to switch modes by judging whether a factory debugging instruction is received within a preset time period. Thus, when the electronic device is in factory mode and has not been shipped, the electronic device will receive a factory debugging instruction and will not switch modes; when the electronic device has been shipped, the mode conversion will be performed because the factory debugging instruction cannot be received.

[0060] For example, both the factory remote control and the user remote control are devices that can control the TV, wherein the command output by the factory remote control is a factory debugging command, and the command output by the user remote control is a non-factory debugging command. Therefore, if a command transmitted by the factory remote control is received, the mode switching will not be performed, and if a command output by the user remote control is received, or if no command is received within a preset time range, the mode will be switched to the user mode.

[0061] In a feasible implementation manner, the mode switching method further includes:

[0062] Step S100, detecting whether an operation instruction is received;

[0063] Step S200, if it is detected that the operation instruction is received, then identifying the instruction source of the operation instruction;

[0064] It should be noted that the instruction source refers to the sender of the instruction.

[0065] It is understandable that since the premise of mode switching is that no factory debugging instruction is received, even if an operation instruction is received, it is necessary to identify the instruction source of the operation instruction.

[0066] It should be noted that the codes of instructions sent by different senders are usually different. Therefore, in a feasible implementation, the instruction source of the operation instruction can be identified by the code of the operation instruction.

[0067] Step S300, when it is detected that the instruction source is a factory remote controller, determining that the operation instruction is a factory debugging instruction;

[0068] Step S400, when it is detected that the command source is not the factory remote controller, executing the step of switching from the factory mode to the user mode.

[0069] It should be noted that the factory remote control refers to an electronic device that remotely controls and monitors various electronic devices in a factory environment.

[0070] It is understandable that if an operation instruction is received within a preset time range, it is necessary to determine whether the operation instruction is a factory debugging instruction. Under the premise that only the instruction output by the factory remote control is a factory debugging instruction, it is possible to identify whether the sender of the operation instruction is a factory remote control. If it is detected that the sender of the operation instruction is a factory remote control, it can be determined that the operation instruction is a factory debugging instruction. If it is detected that the sender of the operation instruction is not a factory remote control, it can be determined that the operation instruction is not a factory debugging instruction, and thus, the step of mode switching can be performed.

[0071] In this embodiment, the present application can accurately identify the timing of mode switching by detecting whether an operation instruction is received and whether the operation instruction is a factory debugging instruction, so that the mode switching can be performed to solve the problem of mode switching failure without the user noticing any abnormality.

[0072] In a feasible implementation manner, the above step S200 further includes:

[0073] Step S2001, extracting the instruction source identification code of the operation instruction;

[0074] It should be noted that the instruction source identification code refers to the number that represents the source of the instruction.

[0075] In a feasible implementation manner, the numerical value corresponding to the preset signal bit in the operation instruction may be used as the number of the instruction source.

[0076] Step S2002, obtaining the identification code corresponding to each commander, and taking the identification code that is the same as the instruction source identification code as the target identification code, wherein the commander is the device that sends the instruction;

[0077] It should be noted that the factory remote controller and the user remote controller are also commanders. In a feasible implementation, different identification codes may be preset for different commanders.

[0078] Step S2003: taking the instruction device corresponding to the target identification code as the instruction source.

[0079] In this embodiment, after extracting the instruction source identification code, the instruction source identification code can be compared with the identification codes corresponding to each instruction device. If an identification code consistent with the instruction source identification code is not detected in each identification code, it indicates that the instruction source identification code is illegal and the mode switching is not performed. If an identification code consistent with the instruction source identification code is detected in each identification code, the identification code identical to the instruction source identification code is used as the target identification code, and the instruction device corresponding to the target identification code is used as the instruction source.

[0080] As an example, when the identification code of the factory remote controller is 01, the identification code of the user remote controller is 02, and the instruction source identification code is 02, the user remote controller is the instruction source of the operation instruction. Thus, the mode switching step can be performed.

[0081] It should be noted that in the above example of identifying the source of the instruction by the coding format, since the instruction devices with the same coding format are not necessarily the same instruction device, there is a risk that an illegal instruction device operates the electronic device. In this embodiment, the application can realize the binding between the electronic device and the specific instruction device based on the one-to-one correspondence between the instruction source identification code and the instruction source, thereby avoiding the problem of an illegal instruction device operating the electronic device.

[0082] In a feasible implementation manner, the method further includes:

[0083] Step S500, if the factory debugging instruction is received within the preset time range, executing the debugging method corresponding to the factory debugging instruction;

[0084] It should be noted that the debugging method refers to a pre-set method for debugging the functions of an electronic device.

[0085] Step S600, after receiving the factory reset instruction, executing the step of switching from the factory mode to the user mode.

[0086] It should be noted that the factory reset instruction refers to an instruction output based on the factory reset key. For example, after debugging is completed, when it is detected that the user presses the factory reset key, it can be determined that the factory reset instruction has been received.

[0087] As an example, if the TV in factory mode receives an operation instruction from a factory remote control within 30 seconds, the debugging method corresponding to the operation instruction can be executed based on the received operation instruction, such as entering a debugging page. Then, after receiving a factory reset instruction, the mode is switched.

[0088] In this embodiment, the present application enters the debugging state upon receiving the factory debugging instruction, so that the adjustment state can be entered more quickly, thereby reducing the time required for debugging.

[0089] In the present application, when in the factory mode, the instruction acquisition state is entered, wherein the instruction acquisition state is a state of waiting to receive instructions, which can facilitate the reception of instructions to determine whether mode switching is required; then when in the instruction acquisition state, if it is detected that no factory debugging instructions are received within a preset time range, the factory mode is switched to the user mode, wherein the factory debugging instructions are instructions corresponding to the factory mode, and it can be determined that the factory mode does not need to be maintained without receiving the factory debugging instructions, thereby switching from the factory mode to the user mode.

[0090] In this way, even if the mode switching fails, the electronic device will automatically switch to the user mode due to the failure to receive the factory debugging instruction, thereby solving the problem of mode switching failure without the user noticing any abnormality, thereby improving the user experience.

[0091] Based on the above-mentioned first embodiment of the mode switching method of the present application, a second embodiment of the mode switching method of the present application is proposed.

[0092] In this embodiment, after the above step S20, the method further includes:

[0093] Step S30, deleting the debugging data and determining the first target storage area corresponding to the factory mode code;

[0094] It should be noted that the debugging data refers to the data generated during the debugging process. The first target storage area refers to the storage area corresponding to the factory mode code.

[0095] In a feasible implementation, two partitions can be divided in the Flash (a storage chip) of the electronic device, which are used to store factory mode codes and user mode codes respectively. In addition, the startup logo in factory mode can be stored in the storage space for storing factory mode codes, and the startup logo in user mode can be stored in the storage space for storing user mode codes. Among them, the startup logos in different modes are different. For example, the startup logo in factory mode has an F in the lower left corner, so that it is easy to output the startup logo so that the debugger can distinguish the current mode. In addition, the above-mentioned factory mode code refers to the code related to the factory mode, and similarly, the user mode code refers to the code related to the user mode.

[0096] Step S40: deleting the data in the first target storage area.

[0097] In this embodiment, after debugging is completed, the data generated during the debugging process can be deleted, thereby clearing the factory mode. Specifically, the storage space where the factory mode code is located can be determined, and the data in the storage space can be deleted, thereby avoiding the problem of the user accidentally switching to the factory mode again.

[0098] In a feasible implementation manner, after the above step S20, the method further includes:

[0099] Step S50: If the code corresponding to the user mode is received, the storage space corresponding to the user mode is used as the second target storage space, and the code is written into the second target storage area.

[0100] It should be noted that the second target storage space refers to the storage space corresponding to the user mode.

[0101] It is understandable that the electronic device has partitioned and stored the factory mode code and the user mode code. Therefore, in the user mode, if the code corresponding to the user mode is received, it indicates that the code in the user mode has been updated. Therefore, the updated user mode code can be written into the storage space corresponding to the user mode to update the relevant functions in the user mode.

[0102] Similarly, if during the debugging process, the code for factory mode update is received, the code for factory mode update can be written into the storage space corresponding to the factory mode, thereby updating the function corresponding to the factory mode.

[0103] Compared with the traditional method of coupling the factory mode and user mode codes in the same storage space, the present application can update the codes in a targeted manner when there are code updates through code partitioning. Thus, when reviewing the updated codes, the workload of review can be reduced.

[0104] In a feasible implementation manner, after the above step S20, the method further includes:

[0105] Step S60, outputting a boot menu to prompt input of configuration information;

[0106] It should be noted that the guide menu refers to a menu page used to guide the user to input information.

[0107] Step S70: After receiving the configuration information, perform parameter configuration according to the configuration information.

[0108] It should be noted that the configuration information refers to parameter values ​​used to configure the electronic device.

[0109] It is understandable that after switching from factory mode to user mode, a boot menu may be output on the electronic device, and then the user may output configuration information. Then, after receiving the configuration information, various parameters of the electronic device may be configured according to the parameter values.

[0110] In this embodiment, after entering the user mode, the present application guides the user to configure parameters, so that the electronic device that meets the user's personalized requirements can be configured, thereby improving the user's usage experience.

[0111] Furthermore, based on the first embodiment and the second embodiment of the mode switching method of the present application, a specific embodiment of the mode switching method of the present application is proposed.

[0112] In this embodiment, the startup logo in factory mode is preset to be slightly different from the startup logo in user mode, so that the debugging personnel can distinguish the current mode of the TV through the startup logo; after detecting that the factory reset button has been pressed, the TV clears the factory detection traces (deletes the debugging data), and switches the mode and restarts at the same time. After restarting, the debugging personnel sees the startup logo of the user mode to ensure that the user mode switch has been completed. At this time, the power can be turned off. The whole process takes about 12 seconds, which not only meets the production rhythm but also ensures that the TV has been accurately switched to user mode.

[0113] Please refer to Figure 2 In order to avoid the small probability of leakage due to the commissioning personnel's operating errors, this application can perform the following steps:

[0114] In factory mode, a boot menu pops up by default to prompt the user to press the OK button to perform relevant system settings. If it is detected that the OK button on the user's remote control is pressed, the mode is automatically switched. After the switch is completed, the system settings pop up to guide the user to perform relevant settings for the first power-on. If no button is pressed within 30 seconds in factory mode, the mode is automatically switched to ensure that it switches to user mode. If any button on the factory remote control is pressed within 30 seconds in factory mode, it means that production is currently being carried out in the factory. The software does not switch modes and exits the pop-up prompt. Relevant shortcut key operations can be performed normally in production. Therefore, the present application can complete the system switch without letting the user perceive the abnormality, and it does not affect the relevant quick detection of production.

[0115] Furthermore, the present application can achieve the following effects: the operation is simple, and the corresponding operation can be performed by directly pressing the factory reset button of the factory remote control. The reset time is short. When the factory mode switch is completed and the user mode boot logo appears after restarting, the power can be turned off immediately, and the time can be controlled within 12 seconds; if an unexpected power outage occurs during the reset process, or the factory mode switch fails due to personnel negligence, the TV will automatically pop up the boot menu after the next power-on prompting to press the OK key to perform system settings. When the user presses the OK key, the TV automatically switches to user mode, and restarts after the switch is completed, and the boot boot menu pops up to guide the user to complete the relevant settings required for the first boot. The factory mode switch is completed without the user's abnormal perception; at the same time, if it is in factory production, you can see the pop-up prompt menu, and you only need to press any factory remote control button to exit the menu, which does not affect the relevant quick detection of production. When only the user mode code changes, there is no need to review the factory mode repeatedly; similarly, when only the factory mode code changes, the user system does not need to review repeatedly, which can reduce the number of software reviews.

[0116] In addition, please refer to Figure 3 . It is understandable that in the process of manufacturing electronic products, it is necessary to upgrade the software with factory mode partitions in the software burning package production link, and ensure that the burning package provided to production automatically enters the factory mode after powering on. Then, during factory production, the TV automatically enters the factory mode after turning on, and a boot menu pops up, prompting you to press the OK button to set up the system. Then the debugger presses any factory remote control shortcut key or sends a related automated detection command, and the TV automatically exits the boot menu and enters the relevant quick detection items according to the operation. After the detection is completed, you can press the factory reset button of the factory remote control, so that after the TV receives the factory reset button, it clears the factory detection traces, switches to factory mode and restarts. The debugger can turn off the power after seeing the user mode startup logo, and the time consumption can be controlled within 12 seconds. Thus, this application not only meets the production rhythm but also ensures that the factory equipment has been accurately switched to user mode.

[0117] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the mode switching method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0118] This application also provides a mode switching system, please refer to Figure 4 , the mode switching system comprises:

[0119] The acquisition module 10 is used to enter the instruction acquisition state when in the factory mode, wherein the instruction acquisition state is a state of waiting to receive instructions;

[0120] The switching module 20 is used to switch from the factory mode to the user mode when in the instruction acquisition state, if it is detected that no factory debugging instruction is received within a preset time range, wherein the factory debugging instruction is an instruction corresponding to the factory mode.

[0121] In one embodiment, the mode switching system comprises:

[0122] A detection module, used to detect whether an operation instruction is received;

[0123] an identification module, configured to identify a source of the operation instruction if it is detected that the operation instruction has been received;

[0124] An instruction judging module, for judging that the operation instruction is a factory debugging instruction when it is detected that the instruction source is a factory remote controller;

[0125] The non-factory command switching module is used to execute the step of switching from the factory mode to the user mode when it is detected that the command source is not the factory remote controller.

[0126] In one embodiment, the identification module is further used for:

[0127] Extracting an instruction source identification code of the operation instruction;

[0128] Obtaining the identification code corresponding to each commander, and using the identification code that is the same as the command source identification code as the target identification code, wherein the commander is the device that sends the command;

[0129] The commander corresponding to the target identification code is used as the commander source.

[0130] In one embodiment, the mode switching system further includes:

[0131] A first storage area determination module, used for deleting the debugging data and determining a first target storage area corresponding to the factory mode code;

[0132] A data deleting module is used to delete the data in the first target storage area.

[0133] In one embodiment, the mode switching system further includes:

[0134] A factory test module, configured to execute a debugging method corresponding to the factory debugging instruction if the factory debugging instruction is received within the preset time range;

[0135] The reset switching module is used to execute the step of switching from the factory mode to the user mode after receiving the factory reset instruction.

[0136] In one embodiment, the mode switching system further includes:

[0137] The code updating module is configured to, if receiving the code corresponding to the user mode, use the storage space corresponding to the user mode as the second target storage space and write the code into the second target storage area.

[0138] In one embodiment, the mode switching system further includes:

[0139] The menu output module is used to output the boot menu to prompt the user to input configuration information;

[0140] A configuration module is used to perform parameter configuration according to the configuration information after receiving the configuration information.

[0141] The mode switching system provided by the present application adopts the mode switching method in the above embodiment, which can solve the technical problem of the failure of mode switching of electronic equipment. Compared with the prior art, the beneficial effects of the mode switching system provided by the present application are the same as the beneficial effects of the mode switching method provided by the above embodiment, and other technical features of the mode switching system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0142] The present application provides an electronic device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the mode switching method in the above-mentioned embodiment 1.

[0143] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic devices in the embodiments of the present application may include but are not limited to mobile terminals such as laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0144] like Figure 5As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0145] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0146] The electronic device provided by the present application adopts the mode switching method in the above embodiment, which can solve the technical problem of the failure of mode switching of the electronic device. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the mode switching method provided by the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0147] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0149] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the mode switching method in the above-mentioned embodiment.

[0150] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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), a read-only memory (ROM), 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 this embodiment, the 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, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0151] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0152] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: when in factory mode, enters an instruction acquisition state, wherein the instruction acquisition state is a state of waiting to receive instructions; when in the instruction acquisition state, if it is detected that no factory debugging instructions are received within a preset time range, the factory mode is switched to the user mode, wherein the factory debugging instructions are instructions corresponding to the factory mode.

[0153] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0154] 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 application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / 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.

[0155] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0156] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned mode switching method, and can solve the technical problem of the failure of mode switching of electronic devices. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the mode switching method provided by the above-mentioned embodiment, and will not be repeated here.

[0157] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned mode switching method when executed by a processor.

[0158] The computer program product provided by the present application can solve the technical problem of failure of mode switching of electronic devices. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the mode switching method provided by the above embodiment, which will not be repeated here.

[0159] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A mode switching method, characterized in that: The mode switching method is applied to an electronic device, and the mode switching method includes: When in factory mode, entering the instruction acquisition state, wherein the instruction acquisition state is a state of waiting to receive instructions; When in the instruction acquisition state, if it is detected that no factory debugging instruction is received within a preset time range, the factory mode is switched to the user mode, wherein the factory debugging instruction is an instruction corresponding to the factory mode.

2. The mode switching method according to claim 1, characterized in that: The method further comprises: Detect whether an operation instruction is received; If it is detected that the operation instruction is received, identifying the instruction source of the operation instruction; When it is detected that the source of the instruction is a factory remote controller, determining that the operation instruction is a factory debugging instruction; When it is detected that the command source is not the factory remote controller, the step of switching from the factory mode to the user mode is executed.

3. The mode switching method according to claim 2, characterized in that: The step of identifying the instruction source of the operation instruction includes: Extracting an instruction source identification code of the operation instruction; Obtaining the identification code corresponding to each commander, and using the identification code that is the same as the command source identification code as the target identification code, wherein the commander is the device that sends the command; The commander corresponding to the target identification code is used as the commander source.

4. The mode switching method according to claim 1, characterized in that: After the step of switching from the factory mode to the user mode, the method further includes: Deleting the debugging data, and determining a first target storage area corresponding to the factory mode code; The data in the first target storage area is deleted.

5. The mode switching method according to claim 1, characterized in that: The method further comprises: If the factory debugging instruction is received within the preset time range, executing the debugging method corresponding to the factory debugging instruction; After receiving the factory reset instruction, the step of switching from the factory mode to the user mode is executed.

6. The mode switching method according to claim 1, characterized in that: After the step of switching from the factory mode to the user mode, the method further includes: If the code corresponding to the user mode is received, the storage space corresponding to the user mode is used as the second target storage space, and the code is written into the second target storage area.

7. The mode switching method according to claim 1, characterized in that: After the step of switching from the factory mode to the user mode, the method further includes: Output the boot menu to prompt for configuration information; After receiving the configuration information, parameter configuration is performed according to the configuration information.

8. A mode switching system, characterized in that: The mode switching system comprises: An acquisition module, used to enter an instruction acquisition state when in factory mode, wherein the instruction acquisition state is a state of waiting to receive instructions; The switching module is used to switch from the factory mode to the user mode when in the instruction acquisition state, if it is detected that no factory debugging instruction is received within a preset time range, wherein the factory debugging instruction is an instruction corresponding to the factory mode.

9. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the mode switching method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the mode switching method according to any one of claims 1 to 7 are implemented.