Work mode switching method, apparatus, device, system, and medium
Patent Information
- Application Number
- CN202610984244.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-02
- Publication Date
- 2026-10-16
AI Technical Summary
[0003]然而,相关技术中磁吸供电系统通常仅作为简单电源接口使用,缺乏对供电状态的深入分析与利用,设备在不同使用场景下仍需依赖手动切换工作模式,或仅依据单一条件(如是否连接电源)进行简单状态切换,无法充分利用供电过程中的电气参数,难以满足复杂场景下的智能化控制需求
[0015] One beneficial effect of this disclosure is that it can achieve intelligent identification and automatic switching of device working modes by real-time monitoring and feature extraction of power supply status data during the magnetic power supply process. This expands the magnetic connection from a simple power supply means to a status identification carrier. The device working mode can be automatically adjusted according to different power supply states without manual operation by the user, reducing system complexity and improving the automation level and user experience of the device.
Smart Images

Figure CN122932071A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of adaptive control technology, and more specifically, to a method, apparatus, device, system, and medium for switching operating modes. Background Technology
[0002] With the widespread application of magnetic connection technology in consumer electronics and automotive devices, magnets are not only used for structural fixation, but are also gradually taking on power supply functions.
[0003] However, in related technologies, magnetic power supply systems are usually used only as simple power interfaces, lacking in-depth analysis and utilization of power supply status. The equipment still needs to manually switch working modes in different usage scenarios, or simply switch states based on a single condition (such as whether or not the power is connected). It cannot make full use of the electrical parameters in the power supply process and is difficult to meet the intelligent control needs in complex scenarios. Summary of the Invention
[0004] One objective of this disclosure is to provide a new technical solution for switching working modes.
[0005] According to a first aspect of the present disclosure, a method for switching operating modes is provided, applied to an electronic device, wherein the electronic device and a power supply device are connected by magnetic attraction, the method comprising: Obtain the power supply status data of the power supply equipment; Extract power supply characteristic information from the power supply status data; The current power supply status is identified based on the power supply characteristic information; Determine the device operating mode corresponding to the current power supply status, and switch to the device operating mode.
[0006] Optionally, extracting power supply feature information from the power supply status data includes: The power supply status data is processed by signal conditioning to obtain the target power supply status data; Extract power supply characteristic information from the target power supply status data; The power supply characteristic information includes at least one of the following: current fluctuation amplitude, voltage stability, transient rate of change, high-frequency fluctuation characteristics, and connection duration.
[0007] Optionally, identifying the current power supply status based on the power supply characteristic information includes: Search the established power supply status feature library for standard power supply feature information that matches the power supply feature information; The power supply status corresponding to the matched standard power supply feature information is determined as the current power supply status.
[0008] Optionally, determining the target device operating mode corresponding to the current power supply state includes: Obtain the set mapping data; wherein the set mapping data reflects the correspondence between different power supply states and their corresponding device operating modes; Based on the mapping data and the current power supply status, the device operating mode corresponding to the current power supply status is obtained.
[0009] Optionally, after switching to the device's operating mode, the method further includes: Acquire user manual intervention behavior data regarding the device's operating mode; wherein, the manual intervention behavior data includes operating modes manually switched by the user; Based on the manual intervention behavior data, user habit feature information is generated; wherein, the user habit feature information reflects the user's preferred working mode under any power supply condition; Based on the user habit feature information, update the correspondence between power supply status and working mode in the mapping data.
[0010] Optionally, the method further includes: Obtain abnormal fluctuation characteristic information from the power supply status data; wherein, the abnormal fluctuation characteristic information includes at least one of the following: voltage drop amplitude, voltage spike amplitude, power supply discontinuity frequency, and current fluctuation peak value; When the abnormal fluctuation characteristic information meets the preset abnormal conditions, the electronic device is controlled to enter a safe mode; wherein the abnormal conditions include at least one of the following: the voltage drop amplitude exceeds a first preset threshold, the voltage spike amplitude exceeds a second preset threshold, the power supply discontinuity frequency exceeds a third preset threshold, and the current fluctuation peak value exceeds a fourth preset threshold.
[0011] According to a second aspect of the present disclosure, a working mode switching device is provided, applied to an electronic device, wherein the electronic device and a power supply device are connected by magnetic attraction, the device comprising: The acquisition module is used to acquire the power supply status data of the power supply equipment; The extraction module is used to extract power supply feature information from the power supply status data; The identification module is used to identify the current power supply status based on the current power supply characteristic information; The determination module is used to determine the device operating mode corresponding to the current power supply state and switch to the device operating mode.
[0012] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a memory for storing executable computer instructions; and a processor for executing the method described in accordance with the first aspect above, under the control of the executable computer instructions.
[0013] According to a fourth aspect of the present disclosure, a working mode switching system is provided, comprising: Power supply equipment; An electronic device, which is connected to a power supply device via magnetic attraction, is used to acquire power supply status data of the power supply device; extract power supply feature information from the power supply status data; identify the current power supply status based on the power supply feature information; determine the device operating mode corresponding to the current power supply status; and switch to the device operating mode.
[0014] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, the computer program implementing the method according to the first aspect above when executed by a processor.
[0015] One beneficial effect of this disclosure is that it can achieve intelligent identification and automatic switching of device working modes by real-time monitoring and feature extraction of power supply status data during the magnetic power supply process. This expands the magnetic connection from a simple power supply means to a status identification carrier. The device working mode can be automatically adjusted according to different power supply states without manual operation by the user, reducing system complexity and improving the automation level and user experience of the device.
[0016] Other features and advantages of this specification will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments of this specification and, together with their description, serve to explain the principles of this specification.
[0018] Figure 1 This is a schematic diagram of the structure of a working mode switching system to which the working mode switching method of the present disclosure embodiment can be applied; Figure 2 This is a flowchart illustrating a working mode switching method according to some embodiments; Figure 3 This is a flowchart illustrating a working mode switching method according to other embodiments; Figure 4 This is a flowchart illustrating a working mode switching method according to other embodiments; Figure 5This is a schematic diagram of the working mode switching device according to some embodiments; Figure 6 This is a schematic diagram of the structure of an electronic device according to some embodiments; Figure 7 This is a schematic diagram of the working mode switching system according to some embodiments. Detailed Implementation
[0019] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.
[0020] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.
[0021] Technologies and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such technologies and equipment should be considered part of the specification.
[0022] In all the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0023] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0024] This disclosure relates to a method for switching working modes. Figure 1 This is a schematic diagram of the structure of a working mode switching system that can apply the working mode switching method of the embodiments of this disclosure. For example... Figure 1 As shown, the working mode switching system 1 includes a power supply device 11 and an electronic device 12, which are connected by magnetic attraction.
[0025] The power supply device 11 can be a vehicle magnetic charging base, magnetic charger, magnetic power adapter, or other power supply device with a magnetic interface.
[0026] In some examples, the power supply device 11 includes a magnetic interface module and a power input module. The magnetic interface module is used to establish a magnetic connection with the electronic device 12, and the power input module is used to connect to an external power source and transmit electrical energy to the electronic device 12 through the magnetic interface module.
[0027] Electronic device 12 can be a computing device, such as a smartphone, tablet, laptop, or smart wearable device. Electronic device 12 is electrically connected to power supply device 11 via magnetic connection, receives power from power supply device 11, and monitors power supply status data in real time during the power supply process.
[0028] In some examples, the electronic device 12 includes a detection unit, a status analysis unit, a mode determination unit, and a main control processing unit. The detection unit acquires power supply status data of the power supply device 11. The status analysis unit extracts power supply characteristic information from the power supply status data and identifies the current power supply status based on the power supply characteristic information. The mode determination unit determines the device operating mode corresponding to the current power supply status. The main control processing unit performs operating mode switching.
[0029] The following combination Figure 1 The system described herein illustrates various embodiments.
[0030] <First Embodiment> Figure 2 This is a flowchart illustrating a working mode switching method according to some embodiments. This working mode switching method can be... Figure 1 The illustrated electronic device 12 performs this function, and is connected to the power supply device 11 via a magnetic connection. For example... Figure 2 As shown, the working mode switching method of this embodiment may include the following steps S210 to S240.
[0031] Step S210: Obtain power supply status data of the power supply equipment.
[0032] In this embodiment, when the electronic device is connected to the power supply device via a magnetic connection, the power supply device begins to supply power to the electronic device. The detection unit of the electronic device collects power supply status data in real time during the power supply process.
[0033] In some examples, power supply status data may include voltage and / or current signals. Correspondingly, the detection unit includes a voltage detection unit and / or a current detection unit. The voltage detection unit can employ a resistor divider combined with an analog-to-digital converter (ADC) to acquire the voltage signal and its variation curve at millisecond-level sampling periods. The current detection unit can employ a high-precision sampling resistor combined with an ADC to acquire the current signal and its variation curve at millisecond-level. The sampling frequency can be set from 100Hz to 1kHz to meet the requirement of rapid power supply status identification.
[0034] For example, in an in-vehicle scenario, the electronic device is smart glasses, and the power supply is a magnetic charging dock. When the user places the smart glasses on the magnetic charging dock, a connection is established via the magnetic interface. In response to this connection, the electronic device triggers the detection unit to begin acquiring voltage and current signals. At the moment of vehicle ignition, the current signal experiences a brief surge, with its curve showing a steep rising edge; the voltage signal may experience a transient drop, with its curve showing a brief dip. These signals and their curves are captured in real time by the voltage and current detection units respectively, yielding power supply status data.
[0035] Step S220: Extract power supply characteristic information from the power supply status data.
[0036] In this embodiment, the electronic device processes the collected power supply status data and extracts power supply characteristic information.
[0037] The power supply characteristics information may include at least one of the following: current fluctuation amplitude, voltage stability, transient rate of change, high-frequency fluctuation characteristics, and connection duration. Current fluctuation amplitude reflects the range of variation in the supply current and can be obtained by calculating the difference between the maximum and minimum values of the current signal within a preset time window. Voltage stability reflects the degree of fluctuation in the supply voltage and can be obtained by calculating the standard deviation or variance of the voltage signal. Transient rate of change reflects the amount of change in voltage or current per unit time and can be obtained by calculating the first derivative of the signal. High-frequency fluctuation characteristics reflect the high-frequency components in the current or voltage signal and can be extracted through frequency domain analysis or wavelet transform. Connection duration reflects the length of time the magnetic connection is maintained.
[0038] In some examples, step S220, which involves extracting power supply feature information from the power supply status data, may further include: performing signal conditioning processing on the power supply status data to obtain target power supply status data; and extracting power supply feature information from the target power supply status data.
[0039] In this example, the signal acquisition unit performs signal conditioning processing on the acquired voltage and current signals. This signal conditioning processing includes filtering and / or amplification to obtain target power supply status data, thereby eliminating the influence of environmental noise and improving signal quality. The status analysis unit extracts power supply characteristic information from the target power supply status data.
[0040] In this example, the state analysis unit can use a sliding window algorithm to analyze the voltage and current waveforms separately to obtain current power supply characteristic information. The window size of the sliding window can be set from 100ms to 500ms, and the step size can be set from 10ms to 50ms.
[0041] By extracting multi-dimensional power supply characteristic information, the ability to distinguish different power supply states can be enhanced, and the accuracy of state recognition can be improved.
[0042] Step S230: Identify the current power supply status based on power supply characteristic information.
[0043] In this embodiment, the electronic device identifies the current power supply state type based on the extracted power supply characteristic information. This power supply state includes, but is not limited to: stable power supply state, intermittent power supply state, vibration interference state, and discontinuous connection state.
[0044] In some examples, the electronic device pre-stores a power supply state feature library. This power supply state feature library includes at least one power supply state and standard power supply feature information corresponding to each power supply state. The standard power supply feature information includes at least one of the following: current fluctuation amplitude, voltage stability, transient rate of change, high-frequency fluctuation characteristics, and connection duration.
[0045] This step S230, which identifies the current power supply status based on the power supply characteristic information, may further include: searching for standard power supply characteristic information that matches the power supply characteristic information in a set power supply status characteristic library; and determining the power supply status corresponding to the matched standard power supply characteristic information as the current power supply status.
[0046] In this example, the pattern determination unit can obtain the similarity between the power supply feature information and the standard power supply feature information corresponding to each power supply state in the power supply state feature library, and determine the power supply state corresponding to the standard power supply feature information with the highest similarity as the current power supply state. Here, the similarity calculation can use a distance metric method, such as Euclidean distance. Taking Euclidean distance as an example, the power supply feature information and the standard power supply feature information are represented as feature vectors respectively, and the Euclidean distance between the two feature vectors is calculated, where the smaller the distance, the greater the similarity.
[0047] Step S240: Determine the device operating mode corresponding to the current power supply status and switch to the device operating mode.
[0048] The device's operating modes include at least one of the following: high-performance mode, energy-saving mode, enhanced recording mode, and security mode.
[0049] In this embodiment, the main control processing unit determines the corresponding device operating mode based on the identified current power supply status and performs mode switching.
[0050] In some examples, step S240, which determines the device operating mode corresponding to the current power supply state and switches to the device operating mode, may further include: obtaining set mapping data; and obtaining the device operating mode corresponding to the current power supply state based on the mapping data and the current power supply state.
[0051] This mapping data reflects the correspondence between different power supply states and their corresponding device operating modes. For example, the mapping data defines: a stable power supply state corresponds to a high-performance mode, an intermittent power supply state corresponds to an energy-saving mode; a vibration interference state corresponds to a recording enhancement mode, and an intermittent connection state corresponds to a safety mode.
[0052] In this example, after identifying the current power supply status, the main control processing unit can obtain the device operating mode corresponding to the current power supply status based on the mapping data and the current power supply status, and then perform mode switching.
[0053] For example, when the current power supply status is identified as a vibration interference state, the main control processing unit determines the corresponding device operating mode as the recording enhancement mode and performs a mode switch. In the recording enhancement mode, the video frame rate can be increased to 60fps, the video stabilization function is enabled, and data collected by multiple sensors is recorded synchronously in time to ensure that clear and stable video images can still be obtained in a vibration environment.
[0054] In this embodiment, after switching to the device operating mode, the electronic device continuously monitors the power supply status data and updates the power supply characteristic information and power supply status identification results in real time. When the power supply status changes, the corresponding device operating mode is re-determined based on the changed power supply status, and the mode switch is performed again.
[0055] According to the embodiments of this disclosure, by real-time monitoring and feature extraction of power supply status data during the magnetic power supply process, intelligent identification and automatic switching of device operating modes can be achieved. The magnetic connection is extended from a simple power supply means to a status identification carrier. The device operating mode can be automatically adjusted according to different power supply states without manual operation by the user, which reduces system complexity and improves the automation level and user experience of the device.
[0056] <Second Embodiment> Figure 3 This is a flowchart illustrating a working mode switching method according to some embodiments. This working mode switching method can be... Figure 1 The illustrated electronic device 12 performs this function, and is connected to the power supply device 11 via a magnetic connection. For example... Figure 3 As shown, the working mode switching method of this embodiment may include the following steps S310 to S350.
[0057] Step S310: Obtain power supply status data of the power supply equipment.
[0058] Step S320: Extract power supply characteristic information from the power supply status data.
[0059] Step S330: Identify the current power supply status based on power supply characteristic information.
[0060] Step S340: Based on the set mapping data and the current power supply status, obtain the device operating mode corresponding to the current power supply status.
[0061] Step S350: Obtain user manual intervention behavior data on device working mode, generate user habit feature information based on the manual intervention behavior data, and update mapping data based on user habit feature information.
[0062] In actual use, users may manually adjust the operating mode according to their personal preferences. For example, the electronic device automatically switches to high-performance recording mode based on the power supply status. If the user deems high-performance recording mode unnecessary for the current scenario, they can manually switch the operating mode to energy-saving mode. The electronic device records this manual intervention behavior and generates manual intervention behavior data.
[0063] In some examples, after switching to the device's operating mode, the main control processing unit also acquires user manual intervention behavior data on the device's operating mode, and generates user habit feature information based on the manual intervention behavior data; and updates the correspondence between power supply status and operating mode in the mapping data based on the user habit feature information.
[0064] Manual intervention behavior data may include work modes that users manually switch.
[0065] This user habit feature information can reflect the user's preferred working mode under any power supply condition.
[0066] For example, if a user manually switches from the automatically switching high-performance mode to the low-power mode multiple times while the vehicle is running, the user habit feature information indicates that the user prefers the low-power mode while the vehicle is running.
[0067] After generating user habit feature information, the main control processing unit updates the correspondence between power supply status and operating mode in the mapping data based on this information. For example, it adjusts the device operating mode corresponding to the vehicle startup status from high-performance mode to low-power mode. Thus, the next time the vehicle startup status is detected, the electronic device can directly switch to the user-preferred operating mode.
[0068] In this example, a lightweight machine learning model can be used to learn from manual intervention behavior data to generate user habit feature information.
[0069] Through the embodiments of this disclosure, electronic devices can continuously optimize mapping data by learning user habits over a long period of time, making the automatically switching working modes more in line with the actual needs of users and improving user satisfaction.
[0070] <Third Embodiment> Figure 4 This is a flowchart illustrating a working mode switching method according to some embodiments. This working mode switching method can be... Figure 1 The illustrated electronic device 12 performs this function, and is connected to the power supply device 11 via a magnetic connection. For example... Figure 4 As shown, the working mode switching method of this embodiment may include the following steps S410 to S450.
[0071] Step S410: Obtain power supply status data of the power supply equipment.
[0072] Step S420: Obtain abnormal fluctuation characteristic information from the power supply status data.
[0073] During power supply, unstable or abnormal power supply fluctuations may occur, such as sudden voltage drops, abnormal current increases, and frequent power outages. These abnormalities may affect the normal operation of equipment or even damage it.
[0074] In this embodiment, the electronic device monitors the power supply status data in real time and extracts abnormal fluctuation feature information, which includes at least one of the following: voltage drop amplitude, voltage spike amplitude, power supply discontinuity frequency, and current fluctuation peak value.
[0075] Step S430: If the abnormal fluctuation characteristic information meets the preset abnormal conditions, control the electronic device to enter the safe mode.
[0076] The preset abnormal conditions are used to determine whether the power supply is abnormal. The abnormal conditions include at least one of the following: voltage drop exceeding a first preset threshold, voltage spike exceeding a second preset threshold, power supply interruption frequency exceeding a third preset threshold, and current fluctuation peak value exceeding a fourth preset threshold.
[0077] For example, the first preset threshold can be 20% of the rated voltage, the second preset threshold can be 1.5 times the rated voltage, the third preset threshold can be more than 3 times within 1 second when the voltage drops below 10% of the rated voltage, and the fourth preset threshold can be 3 times the rated current. That is, when the voltage drop exceeds 20% of the rated voltage, or the voltage spike exceeds 1.5 times the rated voltage, or the supply voltage drops below 10% of the rated voltage more than 3 times within 1 second, the abnormal conditions are determined to be met.
[0078] In this embodiment, when the abnormal fluctuation characteristics meet preset abnormal conditions, the main control processing unit controls the electronic device to enter a safe mode. In safe mode, high-power modules, including the camera, display screen, and wireless communication module, are shut down, retaining only the core processing unit and basic functions to protect the device from abnormal power supply. Simultaneously, a notification message can be sent to the user informing them of the power supply abnormality.
[0079] Through the embodiments of this disclosure, an anomaly protection mechanism can be implemented in a timely manner when a power supply anomaly is detected, so as to avoid equipment damage or data loss caused by power supply problems and ensure the safe and stable operation of the equipment.
[0080] <Fourth Embodiment> Corresponding to the aforementioned method embodiments, this disclosure also provides a working mode switching device. Figure 5 This is a schematic diagram of a working mode switching device according to some embodiments. This working mode switching device can be applied to electronic device 12, which is magnetically connected to power supply device 11. For example... Figure 5 As shown, the working mode switching device 500 may include: The acquisition module 510 is used to acquire the power supply status data of the power supply equipment; Extraction module 520 is used to extract power supply feature information from the power supply status data; The identification module 530 is used to identify the current power supply status based on the current power supply characteristic information; The determination module 540 is used to determine the device operating mode corresponding to the current power supply state and switch to the device operating mode.
[0081] In some embodiments, the extraction module 520 is used to perform signal conditioning processing on the power supply status data to obtain target power supply status data; and to extract power supply feature information from the target power supply status data; wherein the power supply feature information includes at least one of the following: current fluctuation amplitude, voltage stability, transient rate of change, high-frequency fluctuation characteristics, and connection duration.
[0082] In some embodiments, the identification module 530 is used to search for standard power supply feature information that matches the power supply feature information in a set power supply status feature library; and to determine the power supply status corresponding to the matched standard power supply feature information as the current power supply status.
[0083] In some embodiments, the determining module 540 is used to obtain set mapping data; wherein the set mapping data reflects the correspondence between different power supply states and their corresponding device operating modes; and based on the mapping data and the current power supply state, obtains the device operating mode corresponding to the current power supply state.
[0084] In some embodiments, the device 500 further includes an update module (not shown).
[0085] The acquisition module 510 is used to acquire manual intervention behavior data of the user on the working mode of the device; wherein, the manual intervention behavior data includes the working mode manually switched by the user; An update module is used to generate user habit feature information based on the manual intervention behavior data; wherein, the user habit feature information reflects the user's preferred working mode under any power supply state; and update the correspondence between power supply state and working mode in the mapping data based on the user habit feature information.
[0086] In some embodiments, the device 500 further includes a control module (not shown).
[0087] The acquisition module 510 is used to acquire abnormal fluctuation feature information in the power supply status data; wherein, the abnormal fluctuation feature information includes at least one of the following: voltage drop amplitude, voltage spike amplitude, power supply discontinuity frequency, and current fluctuation peak value. The control module is used to control the electronic device to enter a safe mode when the abnormal fluctuation characteristic information meets the preset abnormal conditions; wherein the abnormal conditions include at least one of the following: the voltage drop amplitude exceeds a first preset threshold, the voltage spike amplitude exceeds a second preset threshold, the power supply discontinuity frequency exceeds a third preset threshold, and the current fluctuation peak value exceeds a fourth preset threshold.
[0088] <Fifth Embodiment> This disclosure also provides an electronic device. Figure 6 This is a schematic diagram of the structure of an electronic device according to some embodiments.
[0089] like Figure 6 As shown, the electronic device 600 may include: a memory 610 for storing executable computer instructions; and a processor 620 for executing the working mode switching method described in any of the above embodiments under the control of the executable computer instructions. The processor may be one or more processors, which may execute instructions individually or jointly. Similarly, the memory may be one or more memories, which may store the computer program individually or jointly.
[0090] The electronic device 600 can be Figure 1 The electronic device 12 shown.
[0091] <Sixth Embodiment> This disclosure also provides a working mode switching system. Figure 7This is a schematic diagram of the working mode switching system according to some embodiments.
[0092] like Figure 7 As shown, the working mode switching system 700 may include: a power supply device 710; and an electronic device 720, which is magnetically connected to the power supply device and is used to acquire power supply status data of the power supply device; wherein, the power supply status data includes voltage signals and / or current signals; extracting power supply feature information from the power supply status data; identifying the current power supply status based on the power supply feature information; determining the device working mode corresponding to the current power supply status; and switching to the device working mode.
[0093] The working mode switching system 700 can be Figure 1 The working mode switching system 1 is shown.
[0094] Computer-readable storage media This disclosure also provides a computer-readable storage medium storing computer instructions thereon, which, when executed by a processor, perform the working mode switching method provided in this disclosure.
[0095] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.
[0096] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0097] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0098] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via 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). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0099] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0100] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0101] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0102] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a portion of an apparatus, segment, or instruction, which includes one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation in a combination of software and hardware are equivalent.
[0103] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of this disclosure is defined by the appended claims.
Claims
1. A method for switching working modes, characterized in that, Applied to electronic devices, wherein the electronic devices and power supply devices are connected by magnetic attraction, the method includes: Obtain the power supply status data of the power supply equipment; Extract power supply characteristic information from the power supply status data; The current power supply status is identified based on the power supply characteristic information; Determine the device operating mode corresponding to the current power supply status, and switch to the device operating mode.
2. The method according to claim 1, characterized in that, The step of extracting power supply feature information from the power supply status data includes: The power supply status data is processed by signal conditioning to obtain the target power supply status data; Extract power supply characteristic information from the target power supply status data; The power supply characteristic information includes at least one of the following: current fluctuation amplitude, voltage stability, transient rate of change, high-frequency fluctuation characteristics, and connection duration.
3. The method according to claim 1, characterized in that, The step of identifying the current power supply status based on the power supply characteristic information includes: Search the established power supply status feature library for standard power supply feature information that matches the power supply feature information; The power supply status corresponding to the matched standard power supply feature information is determined as the current power supply status.
4. The method according to claim 1, characterized in that, Determining the target device operating mode corresponding to the current power supply state includes: Obtain the set mapping data; wherein the set mapping data reflects the correspondence between different power supply states and their corresponding device operating modes; Based on the mapping data and the current power supply status, the device operating mode corresponding to the current power supply status is obtained.
5. The method according to claim 4, characterized in that, After switching to the device's operating mode, the method further includes: Acquire user manual intervention behavior data regarding the device's operating mode; wherein, the manual intervention behavior data includes operating modes manually switched by the user; Based on the manual intervention behavior data, user habit feature information is generated; wherein, the user habit feature information reflects the user's preferred working mode under any power supply condition; Based on the user habit feature information, update the correspondence between power supply status and working mode in the mapping data.
6. The method according to claim 1, characterized in that, The method further includes: Obtain abnormal fluctuation characteristic information from the power supply status data; wherein, the abnormal fluctuation characteristic information includes at least one of the following: voltage drop amplitude, voltage spike amplitude, power supply discontinuity frequency, and current fluctuation peak value; When the abnormal fluctuation characteristic information meets the preset abnormal conditions, the electronic device is controlled to enter a safe mode; wherein the abnormal conditions include at least one of the following: the voltage drop amplitude exceeds a first preset threshold, the voltage spike amplitude exceeds a second preset threshold, the power supply discontinuity frequency exceeds a third preset threshold, and the current fluctuation peak value exceeds a fourth preset threshold.
7. A working mode switching device, characterized in that, Applied to electronic devices, wherein the electronic devices and power supply devices are connected by magnetic attraction, the device includes: The acquisition module is used to acquire the power supply status data of the power supply equipment; The extraction module is used to extract power supply feature information from the power supply status data; The identification module is used to identify the current power supply status based on the current power supply characteristic information; The determination module is used to determine the device operating mode corresponding to the current power supply state and switch to the device operating mode.
8. An electronic device, characterized in that, include: Memory is used to store executable computer instructions; A processor configured to execute the method according to any one of claims 1-6, under the control of the executable computer instructions.
9. A working mode switching system, characterized in that, include: Power supply equipment; An electronic device, wherein the electronic device is connected to the power supply device via magnetic attraction, and is used to acquire power supply status data of the power supply device; Extract power supply characteristic information from the power supply status data; The current power supply status is identified based on the power supply characteristic information; Determine the device operating mode corresponding to the current power supply status, and switch to the device operating mode.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the method according to any one of claims 1-6.