Mode switching method, electronic equipment, storage medium and computer program product

By integrating recording and private cloud storage functions into electronic devices and switching modes through power supply status, the problem of resource waste and high costs caused by separate portable recording devices and private cloud storage devices is solved, realizing the multi-functional reuse and efficient use of the device.

CN121957488APending Publication Date: 2026-05-01SHENZHEN BASEUS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN BASEUS TECH CO LTD
Filing Date
2025-12-29
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Portable recording devices and private cloud storage devices are independent in function and form, which leads to waste of resources and increased usage costs. Recording devices have limited functions, while private cloud storage devices are expensive and consume a lot of power.

Method used

The recording function and private cloud storage function are integrated into the same electronic device. The recording mode and cloud disk mode are switched by switching the power supply state. The recording service is provided in the recording mode and the private cloud storage service is provided in the cloud disk mode. Data access is isolated by using different storage partitions, which improves the multi-functionality and reusability of the device.

Benefits of technology

It enables electronic devices to flexibly switch between recording and private cloud storage, reducing user configuration costs, increasing device utilization, reducing resource waste, and improving overall device performance and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121957488A_ABST
    Figure CN121957488A_ABST
Patent Text Reader

Abstract

The invention provides a mode switching method, electronic equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring a power supply state of the electronic equipment; under the condition that the power supply state is converted from a first power supply state to a second power supply state, a first working mode is switched to a second working mode, the first working mode is one of the recording mode and the cloud disk mode, and the second working mode is one of the recording mode and the cloud disk mode. The second working mode is the other working mode in the recording mode and the cloud disk mode. Through the scheme provided by the invention, switching between the recording mode and the cloud disk mode can be realized, and resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart device technology, and in particular to a mode switching method, electronic device, storage medium, and computer program product. Background Technology

[0002] With the widespread adoption of voice interaction and media creation, recording devices have evolved from large, professional recording equipment to small, portable devices. For example, voice recorders and recording cards have gained popularity among users due to their convenience and ease of use.

[0003] Currently, portable recording devices typically focus on recording quality and battery life in portable scenarios, offering limited functionality. However, for most users, recording is not a frequent need, leaving these devices idle most of the time and resulting in wasted resources. Summary of the Invention

[0004] To address the related technical problems, embodiments of this application provide a mode switching method, an electronic device, a storage medium, and a computer program product.

[0005] The technical solution of this application embodiment is implemented as follows: This application provides a mode switching method applied to an electronic device, the electronic device including a recording mode and a cloud disk mode; the recording mode is used to provide recording services, and the cloud disk mode is used to provide private cloud services; the method includes: Obtain the power supply status of the electronic device; When the power supply state changes from the first power supply state to the second power supply state, the first working mode is switched to the second working mode, wherein the first working mode is one of the recording mode and the cloud disk mode, and the second working mode is the other of the recording mode and the cloud disk mode.

[0006] In the above scheme, obtaining the power supply status of the electronic device includes: Detect the input voltage of the electronic device; If the input voltage of the electronic device is greater than or equal to a first preset threshold, then the power supply state of the electronic device is determined to be a power-connected state. If the input voltage of the electronic device is less than the first preset threshold, then the power supply state of the electronic device is determined to be a power-off state, wherein the first power supply state is one of the power-on state and the power-off state, and the second power supply state is the other of the power-on state and the power-off state.

[0007] The method in the above scheme further includes: In the recording mode, a recording instruction is received, wherein the recording instruction is used to trigger the recording service; In response to the recording command, the recording scene of the electronic device is identified; Recording is performed using the sound pickup mode corresponding to the recording scenario.

[0008] In the above solution, the step of recording using a pickup mode corresponding to the recording scenario includes: When the recording scenario is the first scenario, a first sound pickup mode corresponding to the first scenario is used for recording. The first sound pickup mode is configured to use a first microphone to collect audio signals. The first microphone is used to collect ambient audio signals. When the recording scenario is the second scenario, a second sound pickup mode corresponding to the second scenario is used for recording. The second sound pickup mode is configured to use a first microphone and a second microphone to collect audio signals, and the second microphone is used to collect audio signals of voice calls.

[0009] In the above scheme, the electronic device includes a first storage space and a second storage space, wherein the first storage space is used to store data in the recording mode and the second storage space is used to store data in the cloud disk mode; in the recording mode, the second storage space is in an inaccessible state; in the cloud disk mode, the first storage space is in an inaccessible state.

[0010] The method in the above scheme further includes: In the cloud drive mode, the battery level of the electronic device is detected; If the battery level of the electronic device is less than the second preset threshold, it will be charged by an external power source. If the battery level of the electronic device reaches the second preset threshold, charging via external power will stop.

[0011] In the above scheme, after stopping charging via external power, the method further includes: When the battery level of the electronic device drops to a third preset threshold, charging via an external power source is resumed; wherein the third preset threshold is less than the second preset threshold.

[0012] This application also provides an electronic device, including: a processor and a memory for storing a computer program that can run on the processor; wherein, when the processor runs the computer program, it performs the steps of the above method.

[0013] This application also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the above-described method.

[0014] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.

[0015] The mode switching method, electronic device, storage medium, and computer program product provided in this application embodiment can switch between recording mode and cloud storage mode by obtaining the power supply status of the electronic device. When the power supply status of the electronic device changes from a first power supply status to a second power supply status, the first working mode is switched to the second working mode. When the power supply status of the electronic device changes from the second power supply status to the first power supply status, the second working mode is switched back to the first working mode. The first working mode is one of the recording mode and the cloud storage mode, and the second working mode is the other of the recording mode and the cloud storage mode. Through the solution provided in this application embodiment, the working state of the electronic device can switch between recording mode and cloud storage mode, realizing multi-functional reuse of the electronic device, improving the utilization rate of the electronic device, and reducing resource waste. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating a mode switching method provided in an embodiment of this application; Figure 2 This is a schematic diagram of an electronic device interaction provided in an embodiment of this application; Figure 3 This is a schematic diagram of the recording process for a recording mode provided in an embodiment of this application; Figure 4 This is a schematic diagram of a charging process in cloud storage mode provided in an embodiment of this application; Figure 5 This is a schematic diagram of the workflow of a cloud disk mode provided in an embodiment of this application; Figure 6 This is a schematic diagram of a mode switching device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0017] The present application will now be described in detail with reference to the accompanying drawings and embodiments.

[0018] Portable recording devices with recording capabilities, such as voice recorders and recording cards, are widely used in various application scenarios such as meeting recording and media creation, and are favored by a wide range of users. At the same time, with the continuous accumulation of personal and family digital assets, the demand for private data storage is also growing, driving the development of home lightweight network attached storage (NAS) private cloud disk devices.

[0019] However, these two types of devices are currently independent in function and form. Recording devices focus on recording quality in convenient scenarios and have a single function. Private cloud storage devices, on the other hand, are typically fixed in deployment, focusing on data storage and sharing services to meet the management needs of private data. Furthermore, private cloud storage devices are expensive, with storage space generally exceeding 1TB, and most are mechanical hard drives. The storage space of private cloud storage devices is redundant for most users, and these devices require continuous power, resulting in significant power consumption. Users with both recording and private data storage needs must configure separate recording devices and private cloud storage devices. This not only increases usage costs but also wastes resources.

[0020] Based on this, embodiments of this application provide a mode switching scheme for an electronic device. By integrating recording and private cloud storage functions into the same electronic device, the recording and private cloud storage functions are reused. The electronic device includes a recording mode and a cloud drive mode. In recording mode, the electronic device can provide recording services to users. In cloud drive mode, the electronic device can provide private cloud storage services to users. By switching between recording mode and cloud drive mode, the electronic device can function as a portable recording device to meet users' portable recording needs, and also as a private cloud drive device to meet users' private cloud storage needs. This reduces the cost for users to separately configure recording devices and private cloud devices, improves the utilization rate of the electronic device, and reduces resource waste.

[0021] First, this application provides a mode switching method. This method is applied to an electronic device. The electronic device includes a recording mode and a cloud storage mode. In recording mode, the electronic device provides a recording service. In cloud storage mode, the electronic device provides a private cloud service. The electronic device can be a recording device with private cloud storage functionality. For example, the electronic device can be a voice recorder, a recording card, etc. The mode switching method provided by this application embodiment will be described below with reference to the accompanying drawings. Figure 1 As shown, the method includes the following steps: Step 101: The electronic device obtains the power supply status; Step 102: When the power supply state of the electronic device changes from the first power supply state to the second power supply state, the electronic device switches its operating mode from the first operating mode to the second operating mode.

[0022] In this embodiment, the power supply state refers to whether the electronic device is connected to an external power source. The power supply state of the electronic device includes a power-connected state and a power-disconnected state. A power-connected state indicates that the electronic device is connected to an external power source, such as during charging. A power-disconnected state indicates that the electronic device is not connected to an external power source, such as during a power outage.

[0023] The power-on state and the power-off state can be represented by a first power-on state and a second power-on state, respectively. The first power-on state is one of the power-on state and the power-off state. The second power-on state is the other of the power-on state and the power-off state, which is different from the first power-on state. For example, the first power-on state is the power-on state, and the second power-on state is the power-off state. Or, the first power-on state is the power-off state, and the second power-on state is the power-on state.

[0024] In step 101, the electronic device acquires its power supply status. In some implementations, the electronic device can determine the power supply status through input voltage. The electronic device detects the input voltage of the charging interface. If the input voltage of the charging interface is greater than or equal to a first preset threshold, the electronic device determines that the current power supply status is a power-connected state. If the input voltage of the charging interface is less than the first preset threshold, the electronic device determines that the current power supply status is a power-disconnected state. By using the input voltage of the charging interface, the electronic device can quickly detect the power supply status, providing a reliable basis for switching between different modes.

[0025] The first preset threshold is a preset threshold corresponding to the input voltage. The first preset threshold can be set according to the actual application scenario or requirements. This application embodiment does not limit the first preset threshold. For example, the first preset threshold can be set to 4 volts (V) or 4.5V.

[0026] For example, an electronic device includes a main control chip. The main control chip includes a power status detection unit. This unit detects the input voltage of the electronic device's charging interface. Taking a Type-C charging interface as an example, the electronic device detects the input voltage of the Type-C interface through the main control chip's power status detection unit. If the input voltage of the Type-C interface is greater than or equal to 4.5V (an example of a first preset threshold), the electronic device determines that the current power supply state is a power-connected state. If the input voltage of the Type-C interface is less than 4.5V, the electronic device determines that the current power supply state is a power-off state.

[0027] In this embodiment, the electronic device's operating modes include a recording mode and a cloud storage mode. A first operating mode is one of the recording mode and the cloud storage mode. A second operating mode is another operating mode that differs from the first operating mode. For example, the first operating mode is a recording mode, and the second operating mode is a cloud storage mode. Alternatively, the first operating mode is a cloud storage mode, and the second operating mode is a recording mode.

[0028] In step 102, when the electronic device detects a change in power supply status from a first power supply status to a second power supply status, the electronic device switches its operating mode from the first operating mode to the second operating mode. For example, when the electronic device detects a change in power supply status from a power-connected state to a power-off state, the electronic device switches its operating mode from cloud drive mode to recording mode. Alternatively, when the electronic device detects a change in power supply status from a power-off state to a power-connected state, the electronic device switches its operating mode from recording mode to cloud drive mode.

[0029] In this embodiment, the electronic device's operating mode is automatically switched by changing the power supply state of the electronic device, thereby meeting the user's needs in different usage scenarios and improving the user experience.

[0030] It is understandable that, in recording mode, the electronic device can provide recording services as a portable recording device. For example, the electronic device may take the physical form of a recording card. In recording mode, the electronic device can be attached to the back of the user's device via magnetic attraction or a card sleeve, thereby recording not only audio signals from the user but also audio signals from the user's device. In cloud storage mode, the electronic device can provide private cloud services as a cloud storage device. To provide users with portable recording services, the electronic device can provide recording mode when the power is off and cloud storage mode when the power is on. Of course, the electronic device can also provide cloud storage mode when the power is off and recording mode when the power is on. This application embodiment does not limit this.

[0031] The following example illustrates the recording mode and cloud drive mode using an electronic device in recording mode when not powered on and in cloud drive mode when powered on.

[0032] For example, such as Figure 2 As shown, the electronic device interacts with the user device to provide recording and private cloud services. The user device is configured with an application (i.e., a client) that works with the electronic device. The user device accesses the electronic device through the client. The electronic device and the user device also interact with a cloud storage server (acting as the server) via the network to achieve user authentication.

[0033] The electronic device includes a main control module, a storage module, a recording module, an interaction module, a battery module, a charging management module, and a charging interface.

[0034] The main control module, also known as the main control chip, integrates a central processing unit, an audio coprocessor, an analog-to-digital converter (ADC), a communication unit, a hardware encryption engine, and a memory controller. It is a system-on-a-chip (SoC). The main control module is primarily responsible for the overall task scheduling, audio signal processing, operating mode switching, data security encryption, and power consumption management of the electronic device.

[0035] The central processing unit is the control center, enabling the recording mode and cloud storage mode of electronic devices.

[0036] An audio coprocessor is used to process audio signals. An analog-to-digital converter is used to convert the acquired analog audio signals into digital audio signals.

[0037] The communication unit includes a WiFi module and a Bluetooth module. The WiFi module supports WiFi protocols (such as WiFi 6), including Access Point (AP) mode and Station mode. AP mode is used to establish direct point-to-point connections with other devices (such as user equipment). For example, electronic devices can establish direct point-to-point connections with user equipment via AP mode to achieve high-speed data transmission (e.g., transmission rate ≥30Mbps). Station mode is used to achieve network communication through a network access point (such as a wireless router). For example, electronic devices can achieve data transmission in a cloud storage mode via Station mode. The Bluetooth module supports Bluetooth protocols (such as Bluetooth 5.3) to establish Bluetooth connections with other devices (such as user equipment) to achieve fast data transmission.

[0038] The hardware encryption engine provides encryption and decryption capabilities based on dedicated hardware to ensure the security of data transmission and storage.

[0039] The memory controller is responsible for managing and controlling the memory modules to achieve high-speed data read and write.

[0040] A storage module, also known as a memory or storage chip, provides storage space. For example, a storage module may include an embedded multimedia card (EMMC) or SD NAND (Secure Digital NAND) flash memory chip with a capacity of 64GB or greater, such as a 256GB EMMC or SD NAND. The storage space of the storage module is divided into at least two storage partitions: a first storage space (recording partition) and a second storage space (cloud disk partition). The first storage space stores data for recording mode. The second storage space stores data for cloud disk mode, providing extended data storage space for cloud disk mode. For example, the recording partition can be named mmcblk0p1, representing partition 1 of memory 0 (the recording partition). The cloud disk partition can be named mmcblk0p2, representing partition 2 of memory 0 (the cloud disk partition). By partitioning the storage space, the main control module performs read and write operations according to the storage address range of the storage partitions corresponding to different working modes, ensuring that data for different working modes is stored in isolated, independent storage areas. If one storage partition is abnormal or damaged, it will not affect the other storage partition.

[0041] The first storage space is smaller than the second storage space. For example, the first storage space can be set to 20% of the storage module capacity, and the second storage space can be set to 80% of the storage module capacity. In some implementations, the electronic device can dynamically adjust the capacity of the first and second storage spaces according to actual usage needs. In some examples, the storage module also includes flash memory for storing embedded firmware.

[0042] The recording module includes multiple microphones for acquiring audio signals. For example, the recording module includes five silicon microphones and one bone conduction microphone. The recording module is connected to the ADC of the main control module. The recording module transmits the acquired audio signals to the ADC, which converts the audio signals from analog signals to digital signals.

[0043] Interactive modules provide users with visual interactive information. For example, interactive modules include indicator lights (such as light-emitting diodes (LEDs)) and displays (such as thin-film transistor liquid crystal displays (TFT-LCDs)). Electronic devices can use LEDs to provide users with feedback on their operating status, such as recording status, data transmission status, recording standby status, and charging status. Electronic devices can also provide users with QR code information for authentication via the display.

[0044] Battery modules are used to provide power to electronic devices when they are not connected to an external power source.

[0045] The charging management module, also known as the charging chip, connects to the main control module and the battery module to manage the power supply of the electronic device. For example, the charging management module is one with path management functionality. It manages the charging paths of the electronic device. When the electronic device is connected to an external power source, the charging management module distributes and converts the electrical energy provided by the external power source. It can output a first supply voltage (e.g., labeled Vsys) through a first charging path and a second supply voltage (e.g., labeled Vbat) through a second charging path. The first supply voltage supplies power to the hardware modules involved in the cloud disk mode (main control module, storage module, and communication unit, etc.), thereby maintaining the normal operation of the cloud disk mode. The second charging voltage supplies power to the battery module to charge it.

[0046] In some examples, the electronic device may also include other hardware modules, such as a motor, a DC-DC converter power distribution tree, etc. This application does not limit this aspect.

[0047] In this embodiment, when the electronic device detects a change in power supply status from a connected state to a disconnected state, it switches its operating mode from cloud drive mode to recording mode. In recording mode, the electronic device is powered by a battery module and provides recording services to the user. In some implementations, the electronic device receives a recording command from the user. For example, the electronic device has a recording button. The electronic device receives a recording command from the user by clicking or pressing the recording button. Alternatively, the electronic device receives a recording command sent by the user's device. This recording command triggers the recording service. In response to the recording command, the electronic device starts the recording function and begins recording.

[0048] Before receiving a recording command from the user, the electronic device is in a recording standby state. In some implementations, the electronic device is equipped with an indicator light. In the recording standby state, the indicator light is off. After the electronic device receives a recording command and starts the recording function, the indicator light illuminates. For example, the electronic device may set the indicator light to a solid blue state, thus notifying the user that recording is in progress via a solid blue indicator light after the recording function is activated.

[0049] To provide users with better recording services, in some optional implementations, the electronic device responds to the user's recording command, identifies the recording scene in which the electronic device is located, and then uses the pickup mode corresponding to the identified recording scene to record. In this way, the electronic device can select a pickup mode suitable for the recording scene to record, thereby improving the recording quality.

[0050] In this embodiment, the recording scenario of the electronic device includes a first scenario and a second scenario. The first scenario is a recording scenario that does not include call signals, i.e., a normal recording scenario. For example, the first scenario is a meeting recording scenario, an offline interview scenario, etc. The second scenario is a recording scenario that includes call signals, i.e., a call recording scenario. For example, the second scenario is a video call scenario, a video conferencing scenario, etc.

[0051] In some alternative implementations, the electronic device can identify the recording scenario by acquiring audio signals. For example, the electronic device acquires audio signals through a microphone (such as a bone conduction microphone) and uses the main control chip's audio coprocessor to identify the recording scenario based on the audio signals. If the acquired audio signal includes call audio, the electronic device determines that the recording scenario is a call recording scenario. If the ambient audio signal does not include call audio, the electronic device determines that the recording scenario is a normal recording scenario.

[0052] After identifying the recording scenario, the electronic device uses the corresponding microphone pickup mode to record. In some optional implementations, different pickup modes correspond to different microphone types. Taking the pickup mode corresponding to a normal recording scenario as the first pickup mode and the pickup mode corresponding to a call recording scenario as the second pickup mode as an example: The first pickup mode is configured to use the first microphone to collect audio signals. That is, in a normal recording scenario, the electronic device uses the first microphone to collect audio signals. The second pickup mode is configured to use both the first and second microphones to collect audio signals. That is, in a call recording scenario, the electronic device uses both the first and second microphones to collect audio signals.

[0053] The first and second microphones are different types of microphones. The first microphone is used to collect ambient audio signals, such as ambient sound signals. For example, the first microphone is a microelectromechanical systems (MEMS) silicon microphone (simply referred to as a silicon microphone). The second microphone is mainly used to collect audio signals for voice calls, such as collecting sound signals from the user's device via contact conduction. For example, the second microphone is a bone conduction microphone (simply referred to as a bone conduction microphone).

[0054] For example, in the pickup mode corresponding to a normal recording scenario (i.e., the first scenario), the electronic device uses silicon microphones (such as 5-channel silicon microphones) to collect audio signals. To improve recording quality and suppress noise interference, the electronic device can also use beamforming algorithms to perform noise reduction processing on the multiple audio signals collected by the microphone array. For example, the electronic device uses beamforming algorithms to enhance the sound signal in the target direction (such as directly in front or in the direction the user is speaking) of the multiple audio signals, while attenuating noise signals in other directions. In this way, even in noisy environments, the electronic device can clearly record voice signals, improving the recording effect.

[0055] In the call recording scenario (i.e., the second scenario) and the corresponding audio pickup mode (i.e., the second audio pickup mode), the electronic device uses silicon microphones (e.g., 5-channel silicon microphones) and bone conduction microphones (e.g., 1-channel bone conduction microphone) to collect audio signals. The silicon microphones are used to collect ambient voice signals, while the bone conduction microphones are used to collect sound signals from the user's device. To improve recording quality and suppress noise interference, the electronic device can also use noise reduction algorithms to process the audio signals collected by the silicon microphones, or to process the audio signals collected by both the silicon and bone conduction microphones. This allows for filtering out ambient noise interference from the collected audio signals, achieving high-quality recording.

[0056] In this embodiment, the electronic device uses a pickup mode corresponding to the recording scenario to collect audio signals, achieving high-quality recording in different recording scenarios. In the first pickup mode corresponding to the first scenario, the electronic device collects audio signals through a first microphone mainly used for collecting ambient audio signals. In the second pickup mode corresponding to the second scenario, the electronic device collects audio signals through both the first microphone mainly used for collecting ambient audio signals and the second microphone mainly used for collecting voice call audio signals, thereby fully considering the differences in different recording scenarios and improving recording quality.

[0057] After acquiring the audio signal, the electronic device encodes the acquired audio signal into audio data, and then writes the encoded audio data into the storage space corresponding to the recording mode, thus saving the audio data. For example, the electronic device uses an analog-to-digital converter (ADC) to synchronously sample the noise-reduced audio signal, converting the audio signal from an analog signal to a digital signal. Then, the electronic device encodes the converted audio signal into audio data in one or more encoding formats using an encoder, and saves the encoded audio data in the storage space corresponding to the recording mode. In this way, the recording data is recorded.

[0058] In recording mode, the storage space corresponding to recording mode (i.e., the first storage space) is in a read-write state, while the storage space corresponding to cloud disk mode (i.e., the second storage space) is in an inaccessible state. Electronic devices can access the first storage space in recording mode to perform data read and write operations related to the recording service, such as writing the obtained audio data to the first storage space. Because the second storage space is inaccessible in recording mode, electronic devices cannot access the storage space corresponding to cloud disk mode, thereby reducing the probability of data access conflicts between recording mode and cloud disk mode, improving the stability and reliability of data writing from recording mode to the first storage space, and also ensuring the security and integrity of cloud disk data.

[0059] Accordingly, in cloud disk mode, the storage space corresponding to cloud disk mode (i.e., the second storage space) is in a read-write state, while the storage space corresponding to recording mode (i.e., the first storage space) is in an inaccessible or read-only state. Electronic devices can access the second storage space in cloud disk mode, providing data read and write operations involved in private cloud services. Because the first storage space is inaccessible or read-only in cloud disk mode, electronic devices cannot perform write or modification operations on the data in recording mode, thereby ensuring the security and integrity of the recording data and improving the performance of multi-user concurrent access and the stability of data transmission in cloud disk mode.

[0060] In this embodiment, by setting different storage partitions, the storage space of the recording mode and the storage space of the cloud disk mode are isolated. This isolation mechanism reduces the probability of data access conflicts between the two modes, reduces interference between different modes, and improves the overall performance and reliability of the electronic device.

[0061] In this embodiment, the electronic device stops recording in response to a recording end event. A recording end event is an event that triggers the end of recording. In some optional implementations, the recording end event includes one or more of the following events (one or more can be understood as at least one): receiving a user's stop recording command, the remaining capacity of the first storage space being less than a preset capacity threshold, or the recording duration reaching a preset recording duration.

[0062] For example, an electronic device may have a recording stop button. If the device receives a stop recording command from the user by clicking or briefly pressing the recording stop button, it will stop the recording service. To save space, the recording stop button and the recording button can be the same physical button. Alternatively, the electronic device may stop the recording service if it receives a recording stop command sent by the user's device. This recording command is used to indicate the cessation of the recording service.

[0063] The following application example illustrates the recording process of the recording mode provided in this application embodiment. For example... Figure 3As shown, the recording process provided in this application example includes the following steps: Step 301: The electronic device acquires the input voltage; After the electronic device is powered on, it first performs initialization. During initialization, the electronic device performs integrity checks on the two storage partitions of the storage module and initializes modules such as the recording module, Bluetooth module, charging module, and ADC, making each module ready. The electronic device reads configuration information from the memory. For example, the configuration information includes the Service Set Identifier (SSID) of the network access point, the electronic device fingerprint, and one or more items from the shared member device list. During initialization, the indicator lights on the electronic device are off. After initialization is complete, the electronic device detects the input voltage of the Type-C interface through the power status detection unit of the main control module.

[0064] Step 302: The electronic device determines whether the input voltage is greater than or equal to the first preset threshold; The electronic device compares the detected input voltage with a first preset threshold to determine whether the input voltage is greater than or equal to the first preset threshold, such as whether the input voltage is greater than or equal to 4.5V.

[0065] If the input voltage is greater than or equal to the first preset threshold, it indicates that the electronic device is connected to an external power source. In this case, the electronic device enters cloud storage mode. If the input voltage is less than the first preset threshold, it indicates that the electronic device is not connected to an external power source. In this case, the electronic device enters recording mode.

[0066] In this application example, if the electronic device detects that the input voltage is less than the first preset threshold, it will enter the recording mode and execute step 303.

[0067] Step 303: In recording mode, the electronic device responds to the recording command and identifies the recording scenario; If the electronic device detects that the input voltage is less than the first preset threshold, it will enter the recording mode.

[0068] Understandably, when no recording command is received, the electronic device is in a recording standby state. In this state, the main control module operates in a low-power sleep mode, such as deep sleep, waiting for an interrupt signal (e.g., a recording command triggered by a user pressing and holding the record button) to wake it up. All peripheral hardware modules connected to the main control module are powered down, maintaining only the real-time clock (RTC) to ensure time accuracy. The current draw in the recording standby state is less than a preset current threshold (e.g., 200uA), thus saving power.

[0069] In recording mode, the electronic device receives recording commands from the user. For example, the electronic device receives a recording command from the user by pressing and holding the record button (e.g., pressing the record button for more than 1 second). In response to the recording command, the electronic device provides recording services. For example, in response to the recording command, the electronic device activates the audio coprocessor to process the audio signal, sets the access permissions of the recording partition of the storage module to a read-write state, and initializes the sampling parameters of the analog-to-digital converter (e.g., setting a 16-bit sampling depth and a 48kHz sampling rate). Then, the electronic device acquires the audio signal through the recording module and uses the audio coprocessor to identify the current recording scenario based on the audio signal.

[0070] If the electronic device detects only ambient sound signals in the acquired audio signal, it determines that the current recording scenario is a normal recording scenario. If the electronic device detects both ambient sound signals and voice call sound signals in the acquired audio signal, it determines that the current recording scenario is a call recording scenario.

[0071] In response to a recording command, the electronic device can also set the indicator light to a constant state, such as a constant blue state, so as to indicate to the user that recording is in progress.

[0072] Step 304: The electronic device acquires audio signals using the pickup mode corresponding to the recording scenario; In a typical recording scenario, the electronic device activates five silicon microphones to capture audio signals and uses beamforming algorithms to reduce noise in the captured audio signals. In a call recording scenario, the electronic device simultaneously activates five silicon microphones and one bone conduction microphone to capture audio signals and uses noise reduction algorithms to reduce noise in the captured audio signals.

[0073] Electronic devices use an ADC to synchronously sample the noise-reduced audio signal, converting it from an analog signal to a digital signal. Then, an encoder (e.g., 16-bit depth, 48kHz sampling rate) encodes the audio signal into at least two audio data formats. For example, the electronic device encodes the audio signal into an automatic speech recognition format (.asr format) adapted for speech retrieval and a high-quality audio file format (.WAV format). The electronic device writes the encoded audio data to the recording partition in real time.

[0074] During audio data writing, the electronic device monitors the remaining capacity of the recording partition in real time. A storage warning is triggered when the remaining capacity of the recording partition falls below a preset threshold (e.g., 1GB). For example, the electronic device sends a low-capacity alert message to the user device, thus informing the user that the recording partition has insufficient space. The user device can then control the electronic device to delete files in the recording partition to free up space.

[0075] Step 305: The electronic device responds to the recording end event and stops the recording service; When an electronic device detects a recording stop event, such as a short press of the record button (less than 1 second), a remaining capacity in the recording partition being less than a preset threshold, or the recording duration reaching the user-set preset duration, the electronic device will stop audio signal acquisition and encoding, lock the recording partition's access permissions from read-write to read-only, and shut down hardware modules such as the audio coprocessor to put the electronic device into a low-power standby state, in conjunction with the recording service. The electronic device can also set the indicator light to be off, thus indicating to the user that recording has ended.

[0076] After recording ends, the electronic device can transmit audio data to the user device. The electronic device responds to the user device's data transmission request by transmitting audio data. For example, the user device initiates a data transmission request to the electronic device via Bluetooth. In response, the electronic device first authenticates itself with the user device via Bluetooth using a pairing code. After successful authentication, the electronic device transmits audio data to the user device via Bluetooth. Alternatively, the electronic device can switch its WiFi to AP mode, establishing a direct, encrypted point-to-point transmission channel with the user device, and then transmitting the audio data indicated in the data transmission request to the user device through this channel.

[0077] During transmission, the electronic device reads the target audio data (such as .asr or .WAV format audio data) from the recording partition and encrypts it using the AES-256 encryption algorithm via a hardware encryption engine. Then, the electronic device transmits the encrypted audio data to the user device. The electronic device can set an indicator light to flash green to indicate that data transmission is in progress.

[0078] The user device can display the audio data directory in the recording partition to the user in the application interface, allowing the user to select one or more (one or more can be understood as at least one) audio data files to be transferred. The user device can also display the progress of the target audio data transfer to the user in the application interface, allowing the user to understand the transfer progress of the target audio data in a visual way.

[0079] After the transmission is complete, the electronic device automatically disconnects from the user's device via Bluetooth or WiFi, configures the access permissions of the recording partition to be inaccessible, and returns to a low-power recording standby state. The electronic device can also set the indicator light to be off to indicate to the user that it is currently in recording standby mode.

[0080] In this application example, when the electronic device detects that the input voltage is less than a first preset threshold, it automatically switches its operating mode to recording mode. In recording mode, the electronic device can provide high-quality recording services and achieve secure storage and efficient transmission of audio data.

[0081] In this embodiment, when the electronic device detects a change in power supply status from a power-off state to a power-on state, it switches its operating mode from recording mode to cloud storage mode. In cloud storage mode, the electronic device is powered by an external power source and provides private cloud services to the user. Correspondingly, the electronic device can also charge its battery module via an external power source.

[0082] In some alternative implementations, the electronic device includes two independent charging paths: a first charging path and a second charging path. The first charging path powers the hardware modules required to execute the private cloud service (such as the main control module, storage module, and communication unit). The second charging path charges the electronic device's battery module. The battery module powers the electronic device in recording mode to support the operation of the recording service.

[0083] In this embodiment, after connecting to an external power source, the electronic device can control the on / off state of the second charging path based on the battery module's charge level. In some implementations, the electronic device compares the battery module's charge level with a second preset threshold. If the battery module's charge level is less than the second preset threshold, the charging management module activates the second charging path to charge the battery module. If the battery module's charge level reaches the second preset threshold, the electronic device disconnects the second charging path using the charging management module, stopping charging the battery module.

[0084] The second preset threshold can be set according to actual application requirements. In some implementations, the second preset threshold can be set to a value consistent with the full-charge voltage of the battery module. For example, the full-charge voltage of a battery module such as a polymer lithium battery is 4.2V, so the second preset threshold can be set to 4.2V. In this embodiment, this second preset threshold is used as the criterion for determining whether to charge the battery module, and the electronic device can efficiently manage the charging process of the battery module.

[0085] To reduce frequent charging and discharging of the battery module, in some optional implementations, the electronic device is also equipped with a third preset threshold. This third preset threshold is lower than the second preset threshold. The electronic device uses both the third and second preset thresholds to control the charging process of the battery module.

[0086] After the battery module's charge reaches a second preset threshold and charging stops, i.e., after the charging module is fully charged, the electronic device continuously monitors the battery module's charge level. For example, the electronic device uses the sampling unit of the main control module to monitor the battery module's charge level at a preset sampling frequency (e.g., once per minute). If the battery module's charge level is less than or equal to a third preset threshold, the electronic device resumes external power supply to charge the battery module.

[0087] The third preset threshold can be set according to actual application requirements. In some implementations, the third preset threshold can be set to the value corresponding to the battery module's charging voltage. For example, the third preset threshold can be set to 3.8V. In this embodiment, when the battery module's charge level is lower than the second preset threshold, the electronic device does not immediately resume charging the battery module, but only resumes the charging process when the battery module's charge level drops to the third threshold, i.e., a charging mechanism is set. In this way, the frequent charging and discharging of the battery module when connected to an external power source can be reduced through the charging mechanism, thereby reducing battery module wear and extending its service life.

[0088] The following application example illustrates the charging process of the cloud disk mode provided in this application embodiment. For example... Figure 4 As shown, the charging process includes the following steps: Step 401: The electronic device acquires the input voltage; This step can be found in step 301, and will not be repeated here.

[0089] Step 402: The electronic device determines whether the input voltage is greater than or equal to the first preset threshold; This step can be referred to in step 301, and will not be repeated here. In this application example, if the electronic device detects that the input voltage is greater than or equal to the first preset threshold, it enters cloud disk mode and executes step 403.

[0090] Step 403: In cloud disk mode, the electronic device starts the dual-path power supply mode; When the electronic device is connected to an external power source (e.g., 5V) via a Type-C interface, it activates the charging management module with path management functionality. This module divides the input power from the external source into two independent charging paths: a first charging path and a second charging path. The first charging path powers the hardware modules required for the private cloud service (such as the main control module, storage module, and communication unit). The second charging path charges the electronic device's battery module. The battery module powers the electronic device in recording mode to support the recording service. In other words, the electronic device employs a dual-path power supply mode.

[0091] Simultaneously, the main control chip of the electronic device activates hardware modules related to private cloud services (such as the WiFi module) and puts non-core hardware modules related to recording mode (such as the recording module) into sleep or low-power states. The electronic device can also set the indicator light to a solid red state to indicate that the electronic device is connected to an external power source.

[0092] Step 404: The electronic device determines whether the battery module's charge level has reached the second preset threshold; After the electronic device is connected to an external power source, it uses the sampling unit of the main control module to collect the voltage (i.e., power) of the battery module at a preset sampling frequency (e.g., once per minute). The electronic device compares the voltage of the battery module with a second preset threshold (e.g., 4.2V) to determine whether the voltage of the battery module has reached the second preset threshold.

[0093] If the voltage of the battery module is less than the second preset threshold, the electronic device executes step 405, that is, the electronic device charges the battery module through an external power source.

[0094] If the voltage of the electronic module reaches the second preset threshold, the electronic device will execute step 406, that is, the electronic device will stop charging the battery module through the external power source.

[0095] Step 405: The electronic device charges the battery module via an external power source; The electronic device transfers electrical energy from an external power source to the battery module via the second charging path provided by the charging control module, charging the battery module. During the charging process, the electronic module continuously monitors the battery module's charge level and returns to step 404 to determine whether the battery module's circuitry has reached a second preset threshold.

[0096] Step 406: The electronic device stops charging the battery module via an external power source; When the electronic device detects that the battery module voltage has reached a second preset threshold, the main control module of the electronic device sends a first control signal (such as a low-level signal) to the charging enable pin of the charging management module through a general purpose input / output (GPIO) pin. This first control signal instructs the charging management module to cut off the charging path to the battery module, i.e., to cut off the second charging path. In response to the first control signal, the charging management module of the electronic device cuts off the charging path supplying power to the battery module, causing the battery module to stop charging.

[0097] Electronic devices can also switch the indicator light from red to yellow, using the yellow indicator light to indicate to the user that the battery module is fully charged.

[0098] Step 407: The electronic device determines whether the battery module's charge level is less than or equal to a third preset threshold. After the electronic device stops charging the battery module, it continues to monitor the battery module's charge level. For example, the electronic device detects the battery module's voltage at a preset sampling frequency. The electronic device compares the battery module's voltage with a third preset threshold (e.g., 3.8V) to determine whether the battery module's voltage is less than or equal to the third preset threshold.

[0099] If the voltage of the battery module is greater than the third preset threshold, the electronic device will maintain the disconnected state of the second charging path and repeat step this step.

[0100] If the voltage of the battery module is less than or equal to the third preset threshold, it means that the battery module needs to be recharged, and the electronic device will execute step 408.

[0101] Step 408: The electronic device resumes charging the battery module via an external power source; When the battery module voltage drops to the third preset threshold, the main control module of the electronic device outputs a second control signal (such as a high-level signal) to the charging enable pin of the charging management module via a GPIO pin. This second control signal instructs the charging management module to restore the charging path of the battery module, i.e., to restore the second charging path. Responding to the second control signal, the charging management module of the electronic device restores the charging path that supplies power to the battery module, allowing the battery module to charge via an external power source.

[0102] During the recharging process of the electronic device, the electronic module continuously monitors the battery module's power level and returns to step 404 to determine that the battery module's circuit has reached the second preset threshold.

[0103] During charging, the electronic device can switch the indicator light from yellow to red, using the red indicator light to notify the user that the battery module is charging.

[0104] In this application example, the electronic device implements charging management through a dual-path power supply method, which effectively reduces the frequent charging and discharging of the battery module when connected to an external power source, thereby reducing battery module wear and extending battery module life.

[0105] In this embodiment, the electronic device provides private cloud services in cloud disk mode. The cloud disk mode of the electronic device provides authorized user devices with secure and convenient file transfer and sharing capabilities. For example, the electronic device can support file transfers of up to 20GB per file. The electronic device stores data in the cloud disk mode in a cloud disk partition (i.e., the second storage space). Authorized user devices can access files in the cloud disk partition through the client of the electronic device. Furthermore, the cloud disk mode of the electronic device also supports access from multiple user devices. In cloud disk mode, the electronic device can function as a lightweight network-attached storage device deployed locally, providing users with a private and controllable data center without relying on public cloud services.

[0106] The following application example illustrates the workflow of the cloud disk mode provided in this application. For instance... Figure 5 As shown, the workflow of the cloud disk mode includes the following steps: Step 501: The electronic device determines whether it has successfully connected to the network; When the electronic device detects a connection to an external power source, it initiates cloud disk mode and activates the relevant hardware modules. Then, the electronic device reads pre-stored configuration information, such as the SSID and password of the network access point. Based on the SSID and password, the electronic device initiates a connection request to the network access point (such as a wireless router) via the site mode of its WiFi module. The pre-stored configuration information is obtained from the user device via Bluetooth. If the electronic device has not stored configuration information, it can obtain it from the user device via Bluetooth.

[0107] In addition, electronic devices can set the indicator light to flash purple, thereby indicating to the user that a network connection is in progress.

[0108] In response to a connection request, the network access point authenticates the electronic device. If authentication is successful, the network access point returns a connection success response message to the electronic device.

[0109] If the electronic device receives a connection success response message, it responds by connecting to the network access point and accessing the network through the access point. If the electronic device successfully accesses the network, it continues with step 503.

[0110] If the electronic device receives a connection failure response message, or if it does not receive a response message within a preset time (e.g., 10 seconds), it indicates that the electronic device has access to the network. In this case, the electronic device proceeds to step 502.

[0111] Step 502: The electronic device enters offline standby mode; If an electronic device fails to connect to the network, it enters the offline state of cloud disk mode (i.e., offline standby state). In the offline state of cloud disk mode, the electronic device can automatically reconnect to the wireless access point at a preset reconnection period (e.g., 30 seconds).

[0112] If the number of repeated connections by an electronic device reaches a preset connection threshold (e.g., 10 times), the electronic device will stop automatically connecting and wait for the user to manually trigger a reconnection or for the network access point to send a network recovery instruction.

[0113] In addition, electronic devices can switch the indicator light from a purple flashing state to a yellow flashing state, thereby indicating to the user that the device is offline and not connected to the network.

[0114] Step 503: The electronic device performs identity authentication; After the electronic device successfully connects to the network, it establishes a communication connection with the cloud storage server via the WiFi module, such as establishing a communication connection based on Transmission Control Protocol (TPC) / Internet Protocol (IP).

[0115] In addition, electronic devices can switch the indicator light from a flashing purple state to a solid purple state, thereby indicating to the user the online status of the electronic device's network connection through the solid purple indicator light.

[0116] After establishing a communication connection with the cloud storage server, the electronic device interacts with the server to perform dual authentication: authentication of the electronic device itself and authentication of the user account. For example, the electronic device sends an authentication request to the cloud storage server. This request carries authentication information, including the electronic device's fingerprint information (such as a unique device identifier) ​​and one or more of the following (one or more can be understood as at least one): a digest of the encrypted credentials of the pre-stored user account and password. The cloud storage server responds to the authentication request and performs dual authentication based on the authentication information.

[0117] If authentication is successful, the electronic device will proceed to step 504.

[0118] If authentication fails, the electronic device pushes an authentication failure notification to the user through the client on the user device. The user device then retrieves the user account and password again through the client and sends the re-retrieved user account and password to the electronic device. The electronic device then initiates two-factor authentication with the cloud storage server based on the re-retrieved user account and password.

[0119] If the number of times the two-factor authentication is re-initiated reaches the preset authentication threshold (e.g., 3 times), the electronic device will set the cloud disk partition (i.e., the second storage space) to read-only.

[0120] Furthermore, in the event of authentication failure, the electronic device will switch the indicator light from a solid purple state to a flashing yellow state. After the indicator light flashes a preset number of times in the flashing yellow state, it will then switch back to a solid purple state. In this way, the flashing yellow indicator light prompts the user to re-authenticate their identity.

[0121] In some implementations, user equipment can also perform identity authentication directly. That is, the user equipment performs dual authentication by interacting with the cloud disk server. This application does not limit this approach.

[0122] Step 504: The electronic device responds to the access request by providing the corresponding access permissions to the user device; After successful identity authentication, the electronic device unlocks the cloud disk partition in the storage module used for private cloud services, thus setting the second storage space to a read-write state.

[0123] In addition, the electronic device enables a shared access function, which allows one or more authorized user devices to access the cloud drive partition. The electronic device loads a list of authorized sharing member devices, which includes the identity information (such as user device identifiers) and corresponding access permissions for one or more authorized user devices. One or more user devices in the shared member device list include an administrator. The administrator can be the user device initially bound to the electronic device. The administrator can configure access permissions for other user devices. The electronic device can also set a maximum number of shared member devices (e.g., 10).

[0124] Access requests are used to access electronic devices. When an electronic device receives an access request from any user device, it responds by verifying the user device's identity against the shared member device list. For example, the electronic device determines whether the user device's identity information is in the shared member device list.

[0125] If identity verification passes, meaning the user device's identity information appears in the list of shared member devices, the electronic device will grant the user device access permissions. For example, the user device can provide a list of files in the cloud drive partition on the client interface. The electronic device can support categorized display of the file list. For example, files in the file list can be sorted by file type or modification time. The electronic device can also support file searching and file previewing (such as image previews, document thumbnail previews, etc.) in the cloud drive partition.

[0126] If identity verification fails, meaning the user device's identity information is not in the list of shared member devices, the electronic device will return an access denied message to the user device.

[0127] Step 505: The electronic device responds to the data transmission request from the user equipment and transmits data with the user equipment; After the user device's identity verification is successful, the user device, in response to the user's selection of one or more target files, sends a data transfer request to the electronic device. The data transfer request is used to request access to the target files in the cloud disk partition. The target files can be any file type, such as video, image, or document.

[0128] When a data transfer request is for reading a target file, the electronic device locates the target file's storage path within the cloud drive partition and reads the target file from that path. Then, the electronic device uses a hardware encryption engine to encrypt the target file and sends the encrypted file to the user's device via Bluetooth or WiFi.

[0129] When the data transfer request is a request to write to a target file, the electronic device receives the encrypted target file from the user device via Bluetooth or WiFi. The electronic device decrypts the received encrypted target file and writes the decrypted target file to the cloud disk partition of the storage module. After writing is complete, the electronic device can automatically perform a target file integrity verification.

[0130] During data transmission, the user equipment can display the transmission progress of the target file on the client side so that the user can understand the transmission progress of the target file.

[0131] It is understandable that electronic devices can transmit data based on the user device's access permissions (such as read-only or read-write permissions). For example, when the user device has read-only access, the electronic device only responds to the user device's data transmission request to read the target file and sends the target file to the user device. When the user device has read-write access, the electronic device responds to the user device's data transmission request to read or write the target file and transmits the target file to the user device.

[0132] When a data transmission request from a user device does not match the user device's access permissions, the electronic device may return an unauthorized message to the user device.

[0133] During data transmission, the electronic device can also switch the indicator light from a solid purple state to a flashing purple state, thereby informing the user of the working status of data transmission through the flashing purple indicator light.

[0134] During data transmission, if the transmission of the target file is interrupted (i.e., data transmission is abnormal) due to network fluctuations or device offline (electronic device or user device offline), the electronic device records the breakpoint position of the target file. When the network is restored or the device is brought back online, the electronic device continues to complete the transmission of the remaining data of the target file based on the recorded breakpoint position, thereby realizing breakpoint resume transmission.

[0135] If the electronic device attempts to resume transmission after a breakpoint up to a preset threshold (e.g., 3 times) and still fails to complete the transmission, the electronic device will terminate the resume transmission of the target file and send a transmission failure message to the user device. Simultaneously, the electronic device can retain the successfully transmitted data portion of the target file. When the user device subsequently initiates a data transmission request for the target file again, the electronic device can resume transmission from the point where the transmission was interrupted, thus saving data transmission time.

[0136] During a data transmission anomaly, the electronic device can also increase the flashing frequency of the indicator light in the purple flashing state, thereby improving the working status of the data transmission anomaly by speeding up the flashing of the purple indicator light.

[0137] Step 506: The electronic device completes data transmission; After the target file is successfully transferred, the electronic device pushes a transfer completion message to the user device, thus informing the user that the target file has been successfully transferred. If the electronic device receives the target file, it saves the target file in the cloud disk partition of the storage module and updates the file index of the cloud disk partition. Simultaneously, the electronic device maintains an online standby state in cloud disk mode, continuously responding to access requests or data transfer requests from the user device.

[0138] In addition, after the electronic device completes data transmission, it can also set the indicator light to a solid purple state to indicate that the private cloud service is ready to operate.

[0139] Step 507: Exit cloud drive mode on electronic devices; When the electronic device detects that the input voltage of the Type-C interface is less than the first preset threshold (e.g., 4.5V), that is, when it detects that the Type-C interface is not connected to an external power source, the electronic device exits the cloud drive mode and enters the recording mode.

[0140] When an electronic device exits cloud drive mode, it disables the WiFi module and switches the cloud drive partition from read-write to inaccessible status. Additionally, the device can turn off the indicator lights. Correspondingly, the device activates the hardware modules related to the recording mode to provide recording services.

[0141] The solution provided in this application embodiment enables adaptive switching between dual modes: recording mode and cloud disk mode. When no external power is connected, the electronic device provides recording services as a recording device. When connected to external power, the electronic device provides private cloud services as a private cloud disk. This integrated device, combining "recording while out and about + private cloud disk when powered at home," is suitable for scenarios such as mobile office, outdoor creation, and remote home data management, achieving a seamless closed loop of "out-of-home recording + home cloud storage." This caters to both users' recording needs in out-of-home scenarios and their data storage and sharing needs in home scenarios. In cloud disk mode, the electronic device supports providing private cloud disk services to multiple authorized user devices. Authorized user devices can read and write files in the cloud disk partition through network access points such as routers, satisfying local sharing scenarios for multimedia files such as videos and images.

[0142] Furthermore, the electronic device employs a dual-path power supply architecture, automatically cutting off the corresponding power supply path when the battery module is fully charged, and incorporating a recharging mechanism to reduce the probability of the battery module remaining in a floating charge state for extended periods. This slows down battery module aging and improves the reliability of the electronic device. In addition, the electronic device achieves functional redundancy stripping, focusing on the core functions of each operating mode. Specifically, in recording mode, the electronic device focuses on acquiring and processing high-quality audio data; in cloud storage mode, it focuses on providing stable and efficient file reading and sharing. This optimizes resource allocation and improves energy efficiency.

[0143] To implement the mode switching method provided in this application embodiment, this application embodiment also provides a mode switching device applied to an electronic device, which includes a recording mode and a cloud disk mode; the recording mode is used to provide recording services, and the cloud disk mode is used to provide private cloud services. Figure 6 As shown, the mode switching device includes: Acquisition module 61 is used to acquire the power supply status of the electronic device; The processing module 62 is used to switch the first working mode to the second working mode when the power supply state changes from the first power supply state to the second power supply state, wherein the first working mode is one of the recording mode and the cloud disk mode, and the second working mode is the other of the recording mode and the cloud disk mode.

[0144] In some optional implementations, the acquisition module 61 is specifically used for: Detect the input voltage of the electronic device; If the input voltage of the electronic device is greater than or equal to a first preset threshold, then the power supply state of the electronic device is determined to be a power-connected state. If the input voltage of the electronic device is less than the first preset threshold, then the power supply state of the electronic device is determined to be a power-off state, wherein the first power supply state is one of the power-on state and the power-off state, and the second power supply state is the other of the power-on state and the power-off state.

[0145] In some alternative implementations, the processing module 62 is further configured to: In the recording mode, a recording instruction is received, wherein the recording instruction is used to trigger the recording service; In response to the recording command, the recording scene of the electronic device is identified; Recording is performed using the sound pickup mode corresponding to the recording scenario.

[0146] In some alternative implementations, the processing module 62 is specifically used for: When the recording scenario is the first scenario, a first sound pickup mode corresponding to the first scenario is used for recording. The first sound pickup mode is configured to use a first microphone to collect audio signals. The first microphone is used to collect ambient audio signals. When the recording scenario is the second scenario, a second sound pickup mode corresponding to the second scenario is used for recording. The second sound pickup mode is configured to use a first microphone and a second microphone to collect audio signals, and the second microphone is used to collect audio signals of voice calls.

[0147] In some alternative implementations, the electronic device includes a first storage space and a second storage space, wherein the first storage space is used to store data in the recording mode and the second storage space is used to store data in the cloud drive mode; in the recording mode, the second storage space is inaccessible; in the cloud drive mode, the first storage space is inaccessible.

[0148] In some alternative implementations, the processing module 62 is further configured to: In the cloud drive mode, the battery level of the electronic device is detected; If the battery level of the electronic device is less than the second preset threshold, it will be charged by an external power source. If the battery level of the electronic device reaches the second preset threshold, charging via external power will stop.

[0149] In some alternative implementations, the processing module 62 is further configured to: When the battery level of the electronic device drops to a third preset threshold, charging via an external power source is resumed; wherein the third preset threshold is less than the second preset threshold.

[0150] In practical applications, the acquisition module 61 can be implemented by the processor in the mode switching device in combination with the communication interface, and the processing module 62 can be implemented by the processor in the mode switching device.

[0151] It should be noted that the mode switching device provided in this application embodiment is only illustrated by the above-described division of program modules when performing mode switching. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the mode switching device and mode switching method provided in this application embodiment belong to the same concept, and their specific implementation process can be found in the method embodiment, which will not be repeated here.

[0152] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide an electronic device, such as... Figure 7 As shown, the electronic device includes: The communication interface 701 enables information exchange with other electronic devices (such as user equipment); The processor 702 is connected to the communication interface 701 to enable information interaction with other electronic devices (such as user equipment) and to execute the methods provided by one or more of the above-mentioned technical solutions when running computer programs; The computer program is stored in memory 703.

[0153] Specifically, the processor 702 is used for: Obtain the power supply status of the electronic device; When the power supply state changes from the first power supply state to the second power supply state, the first working mode is switched to the second working mode, wherein the first working mode is one of the recording mode and the cloud disk mode, and the second working mode is the other of the recording mode and the cloud disk mode.

[0154] In some alternative implementations, the processor 702 is specifically used for: Detect the input voltage of the electronic device; If the input voltage of the electronic device is greater than or equal to a first preset threshold, then the power supply state of the electronic device is determined to be a power-connected state. If the input voltage of the electronic device is less than the first preset threshold, then the power supply state of the electronic device is determined to be a power-off state, wherein the first power supply state is one of the power-on state and the power-off state, and the second power supply state is the other of the power-on state and the power-off state.

[0155] In some alternative implementations, the processor 702 is further configured to: In the recording mode, a recording instruction is received, wherein the recording instruction is used to trigger the recording service; In response to the recording command, the recording scene of the electronic device is identified; Recording is performed using the sound pickup mode corresponding to the recording scenario.

[0156] In some alternative implementations, the processor 702 is specifically used for: When the recording scenario is the first scenario, a first sound pickup mode corresponding to the first scenario is used for recording. The first sound pickup mode is configured to use a first microphone to collect audio signals. The first microphone is used to collect ambient audio signals. When the recording scenario is the second scenario, a second sound pickup mode corresponding to the second scenario is used for recording. The second sound pickup mode is configured to use a first microphone and a second microphone to collect audio signals, and the second microphone is used to collect audio signals of voice calls.

[0157] In some alternative implementations, the processor 702 is further configured to: In the cloud drive mode, the battery level of the electronic device is detected; If the battery level of the electronic device is less than the second preset threshold, it will be charged by an external power source. If the battery level of the electronic device reaches the second preset threshold, charging via external power will stop.

[0158] In some alternative implementations, the processor 702 is further configured to: When the battery level of the electronic device drops to a third preset threshold, charging via an external power source is resumed; wherein the third preset threshold is less than the second preset threshold.

[0159] It should be noted that the specific processing procedures of the processor 702 and the communication interface 701 can be understood by referring to the above method.

[0160] Of course, in practical applications, the various components in an electronic device are coupled together through a bus system 704. It can be understood that the bus system 704 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 704 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in... Figure 7 The general designated all buses as Bus System 704.

[0161] The memory 703 in this embodiment is used to store various types of data to support the operation of the electronic device. Examples of such data include any computer program used to operate on the electronic device.

[0162] The methods disclosed in the embodiments of this application can be applied to the processor 702, or implemented by the processor 702. The processor 702 may be an integrated circuit chip (such as the main control chip mentioned above), which has signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 702 or by instructions in the form of software. The processor 702 mentioned above may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 702 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly reflected as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in the memory 703. The processor 702 reads the information in the memory 703 and completes the steps of the aforementioned method in combination with its hardware.

[0163] In an exemplary embodiment, the electronic device may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.

[0164] It is understood that the memory 703 in this embodiment can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.

[0165] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a memory 703 storing a computer program, which can be executed by a processor 702 of an electronic device to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.

[0166] In an exemplary embodiment, this application also provides a computer program product, including a computer program that can be executed by a processor 702 of an electronic device to perform the steps described in the foregoing method.

[0167] It should be noted that terms such as "first" and "second" are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0168] Furthermore, the technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.

[0169] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.

Claims

1. A mode switching method, characterized in that, The method is applied to an electronic device, which includes a recording mode and a cloud storage mode; the recording mode is used to provide recording services, and the cloud storage mode is used to provide private cloud services; the method includes: Obtain the power supply status of the electronic device; When the power supply state changes from the first power supply state to the second power supply state, the first working mode is switched to the second working mode, wherein the first working mode is one of the recording mode and the cloud disk mode, and the second working mode is the other of the recording mode and the cloud disk mode.

2. The method according to claim 1, characterized in that, The step of obtaining the power supply status of the electronic device includes: Detect the input voltage of the electronic device; If the input voltage of the electronic device is greater than or equal to a first preset threshold, then the power supply state of the electronic device is determined to be a power-connected state. If the input voltage of the electronic device is less than the first preset threshold, then the power supply state of the electronic device is determined to be a power-off state, wherein the first power supply state is one of the power-on state and the power-off state, and the second power supply state is the other of the power-on state and the power-off state.

3. The method according to claim 1, characterized in that, The method further includes: In the recording mode, a recording instruction is received, wherein the recording instruction is used to trigger the recording service; In response to the recording command, the recording scene of the electronic device is identified; Recording is performed using the sound pickup mode corresponding to the recording scenario.

4. The method according to claim 3, characterized in that, The recording process using a pickup mode corresponding to the recording scenario includes: When the recording scenario is the first scenario, a first sound pickup mode corresponding to the first scenario is used for recording. The first sound pickup mode is configured to use a first microphone to collect audio signals. The first microphone is used to collect ambient audio signals. When the recording scenario is the second scenario, a second sound pickup mode corresponding to the second scenario is used for recording. The second sound pickup mode is configured to use a first microphone and a second microphone to collect audio signals, and the second microphone is used to collect audio signals of voice calls.

5. The method according to claim 1, characterized in that, The electronic device includes a first storage space and a second storage space, wherein the first storage space is used to store data in the recording mode and the second storage space is used to store data in the cloud drive mode; in the recording mode, the second storage space is inaccessible; in the cloud drive mode, the first storage space is inaccessible.

6. The method according to claim 1, characterized in that, The method further includes: In the cloud drive mode, the battery level of the electronic device is detected; If the battery level of the electronic device is less than the second preset threshold, it will be charged by an external power source. If the battery level of the electronic device reaches the second preset threshold, charging via external power will stop.

7. The method according to claim 6, characterized in that, After stopping charging via an external power source, the method further includes: When the battery level of the electronic device drops to a third preset threshold, charging via an external power source is resumed; wherein the third preset threshold is less than the second preset threshold.

8. An electronic device, characterized in that, include: Processor and memory used to store computer programs that can run on the processor; When the processor is used to run a computer program, it executes the steps of the method according to any one of claims 1 to 7.

9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.