Method and device for controlling first electronic equipment

By realizing usage mode switching in electronic devices, combining the parallel use of working mode and data storage mode, the problem that electronic devices in the prior art cannot flexibly switch usage modes, and improve user experience and data access efficiency.

CN119088464APending Publication Date: 2024-12-06LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411220864.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

It is difficult for existing electronic devices to realize the dual usage mode of data storage and ordinary office functions. It is parallel, and user needs cannot flexibly switch usage modes, which affects the user experience.

Method used

By obtaining usage mode switching instructions, the electronic device is controlled to switch from working mode to data storage mode or sleep mode, operate using the display screen and provide data storage functions, so as to realize the parallelization of dual usage modes of electronic devices.

Benefits of technology

It realizes efficient access to data of electronic devices in different modes, reduces power consumption, and improves user experience. Users can flexibly set usage modes according to their needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088464A_ABST
    Figure CN119088464A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a control method and device for first electronic equipment. The method comprises the steps that a use mode switching instruction for the first electronic equipment is acquired; controlling the first electronic equipment to enter a second use mode from the first use mode according to the use mode switching instruction; wherein. The first use mode comprises a working mode, and the first electronic equipment uses a display screen to operate in the working mode; in the second use mode, the first electronic equipment serves as data storage equipment of the second electronic equipment, and based on communication connection between the first electronic equipment and the second electronic equipment, the second electronic equipment controls data reading and writing through the data storage function of the first electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic device control, and in particular to a control method and device for a first electronic device. Background Art

[0002] Network Attached Storage (NAS) is a device or equipment specifically used for data storage. It has the characteristics of flexible file sharing, powerful storage capacity and easy management. It is widely used in different fields to meet the needs of different users and provide efficient, safe and reliable data storage and sharing services. At present, personal computers (PC) such as laptops are only used as pure PCs for ordinary office work, or as pure NAS devices for data transmission. Summary of the invention

[0003] The technical solution of this application is implemented as follows:

[0004] An embodiment of the present application provides a control method for a first electronic device, the method comprising:

[0005] Acquire a usage mode switching instruction for the first electronic device;

[0006] According to the usage mode switching instruction, controlling the first electronic device to enter the second usage mode from the first usage mode;

[0007] The first use mode includes a working mode, in which the first electronic device is operated using the display screen;

[0008] In the second usage mode, the first electronic device serves as a data storage device of the second electronic device. Based on the communication connection between the first electronic device and the second electronic device, the second electronic device uses the data storage function of the first electronic device to control data reading and writing.

[0009] An embodiment of the present application provides a control device for a first electronic device, including:

[0010] A first acquisition module, configured to acquire a usage mode switching instruction for a first electronic device;

[0011] A first control module, configured to control the first electronic device to enter a second usage mode from a first usage mode according to a usage mode switching instruction;

[0012] The first use mode includes a working mode, in which the first electronic device is operated using the display screen;

[0013] In the second usage mode, the first electronic device serves as a data storage device of the second electronic device. Based on the communication connection between the first electronic device and the second electronic device, the second electronic device uses the data storage function of the first electronic device to control data reading and writing.

[0014] An embodiment of the present application provides a control device for a first electronic device, including:

[0015] A memory, used to store control instructions executable by the first electronic device;

[0016] The processor is used to implement the control method of the first electronic device provided in the embodiment of the present application when executing the control instruction of the first electronic device stored in the memory and executable.

[0017] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are configured to execute the steps of the control method of the first electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of a flow chart of a control method of a first electronic device provided in an embodiment of the present application;

[0019] Figure 2 A schematic diagram of a target transmission path of a first electronic device provided in an embodiment of the present application;

[0020] Figure 3 A schematic diagram of the architecture of a chip system based on PC working mode and NAS mode provided in an embodiment of the present application;

[0021] Figure 4 A schematic diagram of the architecture of a chip system in a NAS mode provided by a related technology provided in the related technology;

[0022] Figure 5 A schematic diagram of the structure of a control device of a first electronic device provided in an embodiment of the present application;

[0023] Figure 6 A schematic diagram of the composition structure of a control device of a first electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0025] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0026] In the following description, reference is made to “some embodiments\other embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments\other embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0027] In the following description, the terms "first\second\" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0029] Based on the problems existing in the related art, the embodiment of the present application provides a control method of a first electronic device, such as Figure 1 FIG. 1 is a flow chart of a control method of a first electronic device provided in an embodiment of the present application, the method comprising the following steps:

[0030] S101: Acquire a usage mode switching instruction for a first electronic device.

[0031] In some embodiments, the first electronic device includes a display screen for displaying content. The first electronic device may be a PC, such as a laptop, an all-in-one computer, a desktop computer, etc. The usage mode switching instruction may be an instruction for changing the current usage mode of the first electronic device. The usage modes of the first electronic device include PC mode, data storage mode, etc. In PC mode, ordinary computer office functions may be realized, such as creating and editing Word; in data storage mode, the first electronic device can be accessed by other devices to realize data sharing, data access and other functions.

[0032] In some embodiments, the usage mode switching instruction may be generated by a usage mode triggering event, which may be a user pressing a usage mode button of the first electronic device, or may be generated based on a current state of the first electronic device, such as the first electronic device entering a sleep mode from a working mode.

[0033] S102: Control the first electronic device to enter a second usage mode from a first usage mode according to the usage mode switching instruction.

[0034] In some embodiments, the first usage mode includes a working mode, in which the first electronic device can use the display screen to operate, for example, it can open music playback software to play music by touching or clicking the display screen, enter address information in the search box of the map software and search, etc.

[0035] In some embodiments, in the second usage mode, the first electronic device serves as a data storage device for the second electronic device. Based on the communication connection between the first electronic device and the second electronic device, the second electronic device uses the data storage function of the first electronic device to control data reading and writing.

[0036] In some embodiments, if the first electronic device is in the second usage mode, data in the first electronic device can be read by the second electronic device, and data transmitted from the second electronic device can also be written into its own storage area, that is, data reading and writing functions can be realized.

[0037] In the embodiment of the present application, a usage mode switching instruction for the first electronic device is obtained; according to the usage mode switching instruction, the first electronic device is controlled to enter the second usage mode from the first usage mode. In this way, when the first usage mode is the working mode, the first electronic device can use the display screen to operate to complete ordinary computer office functions, and after entering the second usage mode from the first usage mode according to the usage mode switching instruction, it can be used as a data storage device of the second electronic device to complete the data access function, realizing the parallel use of the dual usage modes of the electronic device, ensuring that the user can set different usage modes according to their own needs, and improving the user experience.

[0038] In some embodiments of the present application, the first usage mode also includes a sleep mode of the first electronic device; based on this, according to the usage mode switching instruction, the first electronic device is controlled to enter the second usage mode from the first usage mode, that is, the above step S102 can be implemented by the following step S1021 or the following step S1022.

[0039] S1021: If the first usage mode is the working mode, control the first electronic device to enter the data storage mode from the working mode according to the usage mode switching instruction.

[0040] In some embodiments, the first electronic device being in working mode may mean that the first electronic device is not currently in a sleep, hibernation, or shutdown state.

[0041] In some embodiments, the normal working mode may be that the electronic device is currently in a state of being used or operated by a user, for example, the user is using the first electronic device to edit text, send instant messages, etc.; in other embodiments, the first electronic device is in a normal working mode, or although the electronic device is not currently in a state of being used or operated by a user, individual applications in the first electronic device (such as instant messaging software, browser) are running, or all applications of the first electronic device are not opened.

[0042] In some embodiments, the second usage mode of the first electronic device may include a data storage mode. In the data storage mode, the first electronic device can be regarded as a NAS device and can be accessed by the second electronic device to read data stored in the first electronic device or store data transmitted from the second electronic device.

[0043] In some embodiments, if the first electronic device is currently in a working mode, after receiving a usage mode switching instruction for the first electronic device, the first electronic device can be controlled to enter a data storage mode from the working mode according to the usage mode switching instruction. After entering the data storage mode, the data access speed will be significantly improved.

[0044] In some embodiments, after entering the data storage mode, the first electronic device no longer maintains the previous working state, for example, it may pause or close the task previously being processed; in other embodiments, after the first electronic device enters the data storage mode from the normal working mode, the first electronic device may continue to maintain the previous working state, for example, continue to process the task previously being processed, in which case the response speed of the task currently being processed may be affected.

[0045] In some embodiments, if the first electronic device is in data storage mode, at least one small core of the processor of the first electronic device, the storage module and the communication module are in working state, and the second electronic device establishes a communication connection with the first electronic device through the communication module to access the data in the storage module.

[0046] In some embodiments, the processor of the first electronic device may be a central processing unit (CPU), the small core may be a low-energy-efficiency core of the CPU, the storage module may be a memory and / or a hard disk (such as a solid-state hard disk, a mechanical hard disk), and the communication module may include a wireless communication module (such as WIFI) and other communication modules, for example, a communication module (PCIE module, PCIE controller) or an interleaved multiple access (iDMA) module that supports the peripheral component interconnection extension bus (PCIE) standard. The wireless communication module is used for the first electronic device and the second electronic device to communicate and connect, and the communication module based on the PCIE bus standard can facilitate the second electronic device to connect to the storage module (such as a solid-state hard disk) of the first electronic device to achieve efficient data transmission.

[0047] In some embodiments, when the first electronic device is in a data storage mode and the data transmission is in an efficient transmission mode, the storage module in the first electronic device that is in a working state may include a memory and a hard disk; when the data transmission is in an inefficient transmission mode, the storage module in the first electronic device that is in a working state may only include a hard disk.

[0048] In some embodiments, after the first electronic device and the second electronic device establish a communication connection based on the communication module of the first electronic device, the second electronic device can read data from the hard disk of the first electronic device or write the incoming data to the hard disk of the first electronic device.

[0049] It can be understood that when the first electronic device is in a data storage mode, after a communication connection is established between the first electronic device and the second electronic device based on the first electronic device, the second electronic device can access the data in the storage module of the first electronic device by activating at least one small core in the first electronic device, thereby realizing data storage in a low power consumption state.

[0050] In some embodiments, the number of reference devices when the first electronic device is in a data storage mode is less than the number of reference devices when the first electronic device is in an operating mode; wherein the reference devices are devices in the first electronic device that are in an operating state.

[0051] In some embodiments, when the first electronic device is in data storage mode, the devices in working state in the first electronic device may include a WIFI module, one or more small cores of the CPU, and a hard disk (solid state drive, mechanical hard disk, etc.), and when the first electronic device is in working state, the devices in working state in the first electronic device, in addition to the WIFI module, one or more small cores of the CPU, hard disk, etc., may include one or more large cores of the CPU, memory, etc.

[0052] In some embodiments, when the first electronic device is in working mode, a high-efficiency core of the processor of the first electronic device is in working state. After the first electronic device enters data storage mode, only a small core of the processor of the first electronic device needs to be in working state to realize data access function as a NAS device. Therefore, the power consumption of the first electronic device in data storage mode is lower than that of the first electronic device in working mode.

[0053] S1022: If the first usage mode is the sleep mode, control the first electronic device to enter the data storage mode from the sleep mode according to the usage mode switching instruction.

[0054] In some embodiments, if the first electronic device is currently in sleep mode, a usage mode switching instruction can be generated to control the first electronic device to enter data storage mode from sleep mode. The first electronic device does not read data while in sleep mode, but can read data after entering data storage mode.

[0055] In some embodiments, when the first electronic device is in sleep mode, the core of the first electronic device is in a low power consumption state. After the first electronic device enters the data storage mode from the sleep mode, only one or more small cores of the processor of the first electronic device need to be in working state to realize the data access function as a NAS device. The power consumption of the first electronic device in the data storage mode may be lower than that in the sleep mode, or may be slightly higher than that in the sleep mode.

[0056] It can be understood that by controlling the first electronic device to enter the data storage mode from the working mode or the sleep mode according to the usage mode switching instruction, the usage function of the first electronic device can be switched and different functions of the first electronic device can be realized.

[0057] In some embodiments of the present application, after the first electronic device enters the second usage mode from the first usage mode, the following steps S201 to S203 may also be executed, and each step is described below.

[0058] S201: Obtain a data access request from a second electronic device.

[0059] In some embodiments, the second electronic device may send a data access request to the first electronic device, and the data access request may be a direct memory access (DMA) request.

[0060] In some embodiments, after the first electronic device and the second electronic device establish a communication connection, the second electronic device can obtain the storage status information of the storage module in the first electronic device, and the storage status information may include the capacity of the hard disk, the current remaining available size, the current stored data size, the data type, etc. When the second electronic device determines that there is a data read and write request, it can send a data access request to the first electronic device.

[0061] In some implementations, a user of the second electronic device can trigger a data access event through a NAS application to send a data access request to the first electronic device, for example, by triggering data reading or writing related controls in the NAS application to send a data access request to the first electronic device, or uploading a file to be transferred to the first electronic device and triggering the sending control. The method of sending the data access request here is merely an exemplary description and is not limited to this in this application.

[0062] S202: Determine a target data transmission path based on the data access request.

[0063] In some embodiments, the target transmission path may be a communication path through which the data to be transmitted between the first electronic device and the second electronic device passes. Different target data transmission paths may be determined according to the amount of data to be transmitted, the transmission rate of the data to be transmitted, and the second electronic device scenario. Among them, the second electronic device scenario may be a usage scenario in which the second electronic device uses the data storage function of the first electronic device to read and write data. For example, after the second electronic device has collected a video file with a large amount of data, it needs to transfer the video file to the first electronic device for storage; or, when the second electronic device is processing a large model task, it obtains the data of the large model (tensor data, operator data), etc. from the storage area of ​​the first electronic device. The second electronic device scenario here is only an exemplary description, and this application does not limit it.

[0064] In some embodiments, based on the amount of data to be transmitted, it can be determined that the target data transmission path is a lightweight data transmission path, or a heavy data transmission path; based on the transmission rate of the data to be transmitted, it can be determined that the target data transmission path is a high-speed data transmission path, or a low-speed data transmission path, etc.; based on the scenario of the second electronic device, it can be determined that the target data transmission path is a lightweight data transmission path, or a heavy data transmission path, or an efficient data transmission path, or a low-speed data transmission path.

[0065] In some embodiments, the data access request may include information such as the data to be transmitted, the transmission rate of the data to be transmitted, the second electronic device scenario, etc., and the data amount of the data to be transmitted can be determined. The corresponding target data transmission path can be determined based on the data amount of the data to be transmitted, the transmission rate, and at least one of the second electronic scenarios. Therefore, after obtaining the data access request, the target data transmission path can be determined based on the data access request.

[0066] S203: Control the first electronic device to read and write data in its own storage module according to the target data transmission path.

[0067] In some embodiments, after the target data transmission path is determined, the data in the storage module of the first electronic device itself can be read through the target transmission path, or the data in the second electronic device can be written into the first electronic device.

[0068] It is understandable that according to the data access request of the second electronic device, the corresponding target data transmission path can be determined so that the data to be transmitted can be transmitted through different target data transmission paths, thereby realizing the reading and writing operations of the data in the storage module of the first electronic device.

[0069] In some embodiments of the present application, based on the data access request, the target data transmission path is determined, that is, the above step S203 can be implemented by the following steps S2031 to S2032, and each step is described below.

[0070] S2031. Determine data transmission attributes and / or second electronic device scenarios based on the data access request.

[0071] It should be noted that the data transmission attributes include the transmission rate of the data to be transmitted and the data volume of the data to be transmitted. The second electronic device scenario can be an actual application scenario in which the second electronic device uses the data storage function of the first electronic device to read and write data. According to the second electronic device scenario, the corresponding data transmission rate, data volume of the data transmission and other information can be determined.

[0072] In some embodiments, the data access request may include the data to be transmitted, and the first electronic device may determine the corresponding data volume and data transmission rate based on the data to be transmitted, as well as the usage scenario of the second electronic device based on the data to be transmitted; in other embodiments, the data access request may also include the transmission rate of the data to be transmitted, and the transmission rate of the data to be transmitted may be determined by the second electronic device.

[0073] S2032: Determine a target data transmission path based on data transmission attributes and / or the second electronic device scenario.

[0074] In some embodiments, the target data transmission path can be determined based on data transmission properties, the corresponding target data transmission path can be determined based on the second electronic device scenario, or the corresponding target data transmission path can be determined based on data transmission properties and the second electronic device scenario.

[0075] In some instances, if it is determined based on the data transmission properties that the data volume of the data to be transmitted is greater than or equal to the preset data volume, then the data to be transmitted can be determined to be heavy data, and the heavy data transmission path can be determined as the target data transmission path for the data to be transmitted; if the data volume of the data to be transmitted is less than the preset data volume, then the data to be transmitted can be determined to be light data, and the light data transmission path can be determined as the target data transmission path for the data to be transmitted.

[0076] In some embodiments, if it is determined based on the data transmission properties that the transmission rate of the data to be transmitted is greater than or equal to the preset data transmission rate, the high-speed data transmission path can be determined as the target data transmission path of the data to be transmitted; if it is determined that the transmission rate of the data to be transmitted is less than the preset data transmission rate, the low-speed data transmission path can be determined as the target data transmission path of the data to be transmitted.

[0077] In some embodiments, the data volume, transmission rate and other information of the data to be transmitted can be determined according to the second electronic device scenario, so as to further determine the corresponding target data transmission path according to the data volume, transmission rate and other information of the data to be transmitted. The target data transmission path can be any one of a lightweight data transmission path, a heavy data transmission path, a high-speed data transmission path and a low-speed data transmission path.

[0078] Exemplarily, if the second electronic scene is storing pictures, the corresponding target data transmission path may be a lightweight data transmission path; if the second electronic device scene is backing up files, the corresponding target data transmission path may be a heavy data transmission path.

[0079] In some embodiments, the transmission rate of the data to be transmitted determined according to the data transmission properties may be limited by the bandwidth of each data transmission path between the first electronic device and the second electronic device. When the data transmission rate expected by the second electronic device is greater than the bandwidth, the target transmission path can be determined according to the bandwidth. For example, if the data transmission rate is greater than the bandwidth, the data transmission path with the largest bandwidth among multiple data transmission paths can be determined as the target transmission path.

[0080] It can be understood that based on the data access request, the data transmission attribute and / or the second electronic device scenario is determined, and further based on the data transmission attribute and / or the second electronic device scenario, the corresponding target data transmission path can be directly determined to enable the second electronic device to perform read and write operations on the data in the storage module of the first electronic device based on the target data transmission path.

[0081] In some embodiments of the present application, the target data transmission path includes a first data transmission path and a second data transmission path. The first data transmission path may be a light data transmission path or a heavy data transmission path, and the second data transmission path may be a high-speed data transmission path.

[0082] In some embodiments, the number of components of the first electronic device used in the first data transmission path is less than the number of components of the first electronic device used in the second data transmission path; when the first data transmission path is a lightweight data transmission path, the components of the first electronic device used in the first data transmission path may include a WIFI module, a PCIE module, a CPU and a solid state disk (SSD), and the components of the first electronic device used in the second data transmission path may include a WIFI module, a PCIE module, a memory controller, a CPU, and a solid state disk.

[0083] In some embodiments, the power consumption of the device of the first electronic device used in the first data transmission path is less than the power consumption of the device of the first electronic device used in the second data transmission path. In the process of transmitting data based on the first data transmission path, only one small core of the CPU needs to be in a working state, while in the process of transmitting data based on the second data transmission path, all small cores of the CPU need to be in a working state, and there are more devices in the second data transmission path than in the first data transmission path, and the power consumption of the first electronic device used in the first data transmission path is less than the power consumption of the device of the first electronic device used in the second data transmission path.

[0084] In some embodiments, the first data transmission path does not include a memory controller, and the second data transmission path includes a memory controller. During the transmission of data to be transmitted based on the first data transmission path, a small core of the processor of the first electronic device is in a working state; during the transmission of data to be transmitted based on the second data transmission path, multiple small cores of the processor are in a working state.

[0085] For example, if the processor CPU includes 6 small cores, then in the process of transmitting the data to be transmitted based on the first data transmission path, only any one small core of the CPU can be controlled to be in a working state, and in the process of transmitting the data to be transmitted based on the second data transmission path, 2, 3, 4, 5 or 6 small cores of the CPU can be controlled to be in a working state.

[0086] In some embodiments, the devices in the first data transmission path and the devices in the second data transmission path do not include a graphics processor (Graphics Grocessing Unit, GPU), that is, the GPU is not required to remain in a working state during the process of transmitting data through the first data transmission path and the second data transmission path, thereby keeping the devices in the first data transmission path and the second data transmission path have low power consumption.

[0087] For example, Figure 2 FIG. 1 is a schematic diagram of a target transmission path of a first electronic device provided in an embodiment of the present application, wherein the target transmission path includes L1 (a first data transmission path or a lightweight data transmission path) and L2 (a second data transmission path or an efficient data transmission path). Figure 2 It can be seen that in the process of transmitting data using the L1 path (the path shown by the dotted line), a low power E-core (LP-E) 301 of the CPU is in a working (activated) state, the iDMA module 302 and the dynamic random access memory (DRAM) 303 in the L1 path are all in a working state, and the devices in a non-working (or sleeping) state include other LP-E cores 301 and the memory controller 305 of the CPU; in the process of transmitting data using the L2 path (the path shown by the solid line), all LP-E cores 301 of the CPU are in a working (activated) state, the PCIE module 306, the memory controller 305, and the SSD 304 in the L2 path are all in a working state, the DRMA module 303 and the PCIE controller 307 are also in a working state, and the devices in a non-working (or sleeping) state include the IDMA module 308. In addition, the WIFI module 309 needs to be activated in both the L1 and L2 paths.

[0088] It can be understood that when the first electronic device is in working mode, at least one large core in the first electronic device is in working state, and the memory, GPU, etc. of the first electronic device are in working state. Therefore, when the data storage function of the second electronic device is realized based on the first data transmission path or the second data transmission path, the power consumption of the first electronic device is much lower than the power consumption of the first electronic device in working mode. Therefore, the first electronic device can perform data transmission with lower power consumption in the second usage mode.

[0089] In some embodiments of the present application, obtaining the usage mode switching instruction for the first electronic device, that is, the above-mentioned step S101 can be implemented by the following steps S1011A to S1012A, and each step is described below.

[0090] S1011A: Acquire input information of an input module of a first electronic device.

[0091] In some embodiments, the input module of the first electronic device may be a target area of ​​the first electronic device, such as a keyboard area, or an area on the screen including non-physical keys. The typing information may be generated by pressing or touching a physical key or a non-physical key in the target area, wherein both the physical keys and the non-physical keys may be used to switch the usage mode of the first electronic device.

[0092] S1012A: Generate a usage mode switching instruction based on the input information.

[0093] In some embodiments, after the input information of the input module of the first electronic device is obtained, a usage mode switching instruction can be generated according to the input information to control the first electronic device to enter the second usage mode from the first usage mode.

[0094] It can be understood that, when the input information to be targeted at the input module of the first electronic device is obtained, a mode switching instruction is generated according to the input information, and a one-key mode conversion is implemented, so that the first electronic device can quickly enter the data storage mode.

[0095] In some embodiments of the present application, obtaining the usage mode switching instruction for the first electronic device, that is, the above-mentioned step S101 can be implemented by the following steps S1011B to S1012B, and each step is described below.

[0096] S1011B. Obtain first information that the first electronic device enters a sleep mode.

[0097] In some embodiments, the first information can be used to characterize that the first electronic device has currently entered the sleep mode. The first information can be generated based on the user triggering the setting button of the working mode of the first electronic device, or it can be generated by detecting that the first electronic device (if the first electronic device is a laptop computer) is closed. The first information for the first electronic device to enter the sleep mode here is only an exemplary description, and this application does not limit it.

[0098] S1012B. Generate a usage mode switching instruction according to the first information.

[0099] In some embodiments, after obtaining that the first electronic device has entered the sleep mode, a usage mode switching instruction may be generated to control the first electronic device to switch from the first usage mode to the second usage mode.

[0100] It is understandable that when it is determined that the first information that the first electronic device enters the sleep mode is obtained, a usage mode switching instruction is generated, that is, when it is detected that the first electronic device enters the sleep mode, the first electronic device is controlled to enter the second usage mode, thereby realizing the data storage function.

[0101] In the embodiment of the present application, a usage mode switching instruction for the first electronic device is obtained; according to the usage mode switching instruction, the first electronic device is controlled to enter the second usage mode from the first usage mode. In this way, when the first usage mode is the working mode, the first electronic device can use the display screen to operate to complete ordinary computer office functions, and after entering the second usage mode from the first usage mode according to the usage mode switching instruction, it can be used as a data storage device of the second electronic device to complete the data access function, realizing the parallel use of the dual usage modes of the electronic device, ensuring that the user can set different usage modes according to their own needs, and improving the user experience.

[0102] Next, the implementation process of the application embodiment in the actual application scenario is introduced.

[0103] like Figure 3 As shown in FIG. 1 , a schematic diagram of the architecture of a chip system based on PC working mode and NAS mode provided by the present application is shown in FIG. Figure 4The architecture of the chip system in NAS mode provided by the related technology, the chip system in NAS mode provided by the present application can be switched from PC working mode (equivalent to the "working mode" in its embodiment) to NAS mode (equivalent to the "data storage mode" in its embodiment), and can also be switched from NAS mode to PC working mode. If the PC enters NAS mode from working mode, it only needs to activate SSD 304, PCIE controller 307 and WIFI module 309 (equivalent to the "communication module" in its embodiment); while the chip system in NAS mode provided in the related technology can only realize the data storage function as a single NAS device, and when the PC is used as a NAS device, all cores of the CPU, memory, SSD, and platform management control center (Platform Controller Hub, PCH) are in an activated state. Figure 3 The thick solid line frame shows the components in the NAS mode in the chip system based on the PC working mode and the NAS mode provided by the present application, which are activated. After the PC enters the NAS mode, the SSD 304, the iDMA module 302 (equivalent to the "communication module" in the embodiment), the WIFI module 308, the PCIE controller 307, and the CPU small core LP-E 301 are activated, saving the power consumption of the GPU, the memory, and the PCH part; Figure 4 The NAS mode chip system provided in the related art is shown in the figure. In the NAS mode, all components of the system are in an activated state, including a memory controller 305, an SSD 304, an IDMA module 302, a WIFI module 308, a PCIE module 306, a PCIE controller 307, etc., and also includes a GPU and a CPU. That is, all components of the chip system are in an activated state, so the power consumption is relatively large.

[0104] Current devices can only shut down the high-efficiency core P and low-efficiency core E in the CPU core through BIOS, and the memory and PCH still need to remain activated. The chip system based on PC working mode and NAS mode provided in this application only needs to activate at least one small core of the CPU after entering the NAS mode for the existing system-level chip.

[0105] Table 1 shows the power consumption of the chip system provided by this application in NAS mode and the energy consumption of the chip system provided by the related technology in NAS mode on the processor Raptor Lake-HX platform. The solution provided by this application only needs to activate 2 small cores E of the CPU, and the solution provided in the related technology needs to activate 8 large cores P and 16 small cores E of the CPU. The solution provided by this application will save 4420 milliwatts (mW) on the processor Raptor Lake-HX platform.

[0106] Table 1 Power consumption comparison of processors on Raptor Lake-HX platform

[0107] Tested Modules (CPU 8P+16E) / mW (CPU 2E) / mW CPU 4844.34 769.65 GPU_TGP 2088.24 1865.24 SNS_3VS_SSD2 557.07 560.12 Memory 930.38 934.36 WIFI and Bluetooth BT 852.14 853.16 Display LED_VDD 3852.75 3769 Fan SNS_12V_FAN 179.29 80.65 Total power consumption 17981.98 13561.26

[0108] Table 2 shows the power consumption of the chip system provided by this application in NAS mode on the processor MTL-H platform and the energy consumption of the chip system provided by the related technology in NAS mode. The solution provided by this application only needs to activate 2 small cores E of the CPU, and the solution provided in the related technology needs to activate 6 large cores P and 8 small cores E of the CPU. The solution provided by this application will save 1079mW on the processor MTL-H platform.

[0109] Table 2 Power consumption comparison of processors on MTL-H platform

[0110] Tested Modules (CPU 6P+8E) / mW (CPU 2E) / mW CPU 1023.11 325.35 GPU_TGP 550.56 546.24 SNS_3VS_SSD2 211.25 213.12 Memory 315.15 304.36 WIFI and Bluetooth BT 120.32 130.16 Display LED_VDD 1008.59 1011.23 Fan SNS_12V_FAN 80.76 60.65 Total power consumption 5648.21 4569.16

[0111] The chip system based on PC working mode and NAS mode provided in this application can access NAS data in real time through network mobile phones and PCs, use SSD and DRAM as data buffers to replace RAM, shut down the CPU core, GPU, memory, PCH, etc., and has lower power consumption.

[0112] The chip system based on PC working mode and NAS mode provided by the present application can enter NAS mode after the PC enters sleep mode to access data in the PC; using SSD and DRAM as cache buffer, high-speed data transmission can be transmitted from DRAM to SSD, and lightweight data transmission can be transmitted directly to SSD, so as to realize data read and write control through different data transmission paths; DMA access can be used to bypass the memory from the WIFI module to the SSD; the whole system is in sleep state and is connected to the Internet in the form of NAS through WIFI, and the system is woken up by the WIFI module; in the dual-mode design of PC working mode and NAS mode, only the SSD, WIFI module, and PCIE controller work, and data access is completed through DMA, and DMA supports network commands; through AI construction, NAS is built using the dedicated IP inside the CPU SOC tile module; one-click NAS mode and one-click PC working mode can be realized by setting a physical button switch (switch), and the user can switch freely between the two modes, for example, when going to work, manually change the NAS mode to PC working mode through the switch, and change the PC working mode to NAS mode after get off work.

[0113] The chip system based on PC working mode and NAS mode provided in the present application can, after switching to NAS mode, allow multiple computers, smart phones and other devices to access the data therein and achieve sharing; NAS mode can be used to automatically back up files and data to avoid data loss due to unexpected situations such as computer hard drive failure or virus attack; data in the notebook can be remotely accessed through cloud services or network access protocols, so that users can still view or edit important files when on business trips or traveling; after connecting the notebook to the home network, videos, music and other content can be played through devices that support the Digital Living Network Alliance protocol DLNA, etc.; space and cost are saved, and there is no need to purchase a dedicated NAS storage device separately, and the notebook can be used as a NAS storage device.

[0114] In the embodiment of the present application, a usage mode switching instruction for the first electronic device is obtained; according to the usage mode switching instruction, the first electronic device is controlled to enter the second usage mode from the first usage mode. In this way, when the first usage mode is the working mode, the first electronic device can use the display screen to operate to complete ordinary computer office functions, and after entering the second usage mode from the first usage mode according to the usage mode switching instruction, it can be used as a data storage device of the second electronic device to complete the data access function, realizing the parallel use of the dual usage modes of the electronic device, ensuring that the user can set different usage modes according to their own needs, and improving the user experience.

[0115] The present application also provides a control device for a first electronic device, wherein the first electronic device includes a display screen for displaying content. Figure 5 A schematic diagram of the structure of a control device of a first electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the control device 400 of the first electronic device includes:

[0116] A first acquisition module 401 is used to acquire a usage mode switching instruction for a first electronic device;

[0117] A first control module 402, configured to control the first electronic device to enter a second usage mode from a first usage mode according to the usage mode switching instruction;

[0118] Wherein, the first usage mode includes a working mode, in which the first electronic device is operated using the display screen;

[0119] In the second usage mode, the first electronic device serves as a data storage device for the second electronic device. Based on the communication connection between the first electronic device and the second electronic device, the second electronic device uses the data storage function of the first electronic device to control data reading and writing.

[0120] In some embodiments, the first usage mode further includes a sleep mode of the first electronic device; the first control module 402 includes:

[0121] A first control submodule, configured to control the first electronic device to enter a data storage mode from the working mode according to the usage mode switching instruction if the first usage mode is the working mode;

[0122] The second control submodule is configured to control the first electronic device to enter the data storage mode from the sleep mode according to the usage mode switching instruction if the first usage mode is the sleep mode.

[0123] In some embodiments, the number of reference devices when the first electronic device is in the data storage mode is less than the number of reference devices when the first electronic device is in the working mode; the reference devices are devices in the first electronic device that are in a working state.

[0124] In some embodiments, if the first electronic device is in a data storage mode, at least one small core of the processor of the first electronic device, a storage module and a communication module are in a working state, and the second electronic device establishes a communication connection with the first electronic device through the communication module to access the data in the storage module.

[0125] In some implementations, the control device 400 of the first electronic device further includes:

[0126] A second acquisition module, used to acquire a data access request of the second electronic device;

[0127] A first determining module, configured to determine a target data transmission path based on the data access request;

[0128] The second control module is used to control the first electronic device to read and write data in its own storage module according to the target data transmission path.

[0129] In some embodiments, the target data transmission path includes a first data transmission path and a second data transmission path, and the number of components of the first electronic device used in the first data transmission path is less than the number of components of the first electronic device used in the second data transmission path; or, the power consumption of the components of the first electronic device used in the first data transmission path is less than the power consumption of the components of the first electronic device used in the second data transmission path.

[0130] In some embodiments, the first data transmission path does not include a memory controller, and the second data transmission path includes a memory controller; in the process of transmitting the data to be transmitted based on the first data transmission path, a small core of the processor of the first electronic device is in a working state; in the process of transmitting the data to be transmitted based on the second data transmission path, multiple small cores of the processor are in a working state.

[0131] In some embodiments, the first determining module includes:

[0132] A first determination submodule, configured to determine a data transmission attribute and / or a second electronic device scenario based on the data access request;

[0133] A second determination submodule is configured to determine the target data transmission path based on the data transmission attribute and / or the second electronic device scenario.

[0134] In some embodiments, the first acquisition module 401 includes:

[0135] A first generating submodule, configured to obtain input information of an input module of the first electronic device; and generate the use mode switching instruction according to the input information;

[0136] The second generating submodule is used to obtain first information indicating that the first electronic device enters the sleep mode; and generate the usage mode switching instruction according to the first information.

[0137] It should be noted that the description of the control device of the first electronic device in the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment, so it is not repeated. For technical details not disclosed in the embodiment of the device, please refer to the description of the method embodiment of the present application for understanding.

[0138] It should be noted that in the embodiment of the present application, if the control method of the first electronic device described above is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0139] Accordingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the control method of the first electronic device provided in the above embodiment is implemented.

[0140] The embodiment of the present application also provides a control device of a first electronic device. Figure 6 A schematic diagram of the structure of a control device of a first electronic device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the control device 500 of the first electronic device includes: a memory 501, a processor 502, a communication interface 503 and a communication bus 504. The memory 501 is used to store control instructions that can be executed for the first electronic device; the processor 502 is used to execute the control instructions that can be executed for the first electronic device stored in the memory to implement the control method of the first electronic device provided in the above embodiment.

[0141] The description of the control device and storage medium embodiment of the first electronic device above is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the control device and storage medium embodiment of the first electronic device of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0142] It should be noted that, in this article, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises at least one ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0143] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0144] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0145] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0146] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, disks or optical disks.

[0147] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a product to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.

[0148] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technical object familiar with the technical field can be easily conceived of within the technical scope disclosed in the present application. Changes or substitutions should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for controlling a first electronic device, wherein the first electronic device comprises a display screen for displaying content, include: Acquire a usage mode switching instruction for the first electronic device; According to the usage mode switching instruction, controlling the first electronic device to enter a second usage mode from a first usage mode; Wherein, the first usage mode includes a working mode, in which the first electronic device is operated using the display screen; In the second usage mode, the first electronic device serves as a data storage device for the second electronic device. Based on the communication connection between the first electronic device and the second electronic device, the second electronic device uses the data storage function of the first electronic device to control data reading and writing.

2. The method according to claim 1, wherein the first usage mode further comprises a sleep mode of the first electronic device; The step of controlling the first electronic device to enter the second usage mode from the first usage mode according to the usage mode switching instruction includes: If the first usage mode is the working mode, controlling the first electronic device to enter a data storage mode from the working mode according to the usage mode switching instruction; If the first usage mode is the sleep mode, the first electronic device is controlled to enter the data storage mode from the sleep mode according to the usage mode switching instruction.

3. According to the method of claim 2, the number of reference devices when the first electronic device is in the data storage mode is less than the number of reference devices when the first electronic device is in the working mode; the reference devices are devices in the first electronic device that are in a working state.

4. The method according to claim 2, further comprising: include: If the first electronic device is in data storage mode, at least one small core of the processor of the first electronic device, the storage module and the communication module are in working state, and the second electronic device establishes a communication connection with the first electronic device through the communication module to access the data in the storage module.

5. The method according to claim 1, further comprising: include: Obtaining a data access request of the second electronic device; Based on the data access request, determining a target data transmission path; According to the target data transmission path, the first electronic device is controlled to perform read and write operations on the data in its own storage module.

6. According to the method of claim 5, the target data transmission path includes a first data transmission path and a second data transmission path, the number of components of the first electronic device used in the first data transmission path is less than the number of components of the first electronic device used in the second data transmission path; or, the power consumption of the components of the first electronic device used in the first data transmission path is less than the power consumption of the components of the first electronic device used in the second data transmission path.

7. The method according to claim 6, wherein the first data transmission path does not include a memory controller, and the second data transmission path includes a memory controller; During the transmission of the data to be transmitted based on the first data transmission path, a small core of the processor of the first electronic device is in a working state; during the transmission of the data to be transmitted based on the second data transmission path, multiple small cores of the processor are in a working state.

8. The method according to claim 5, wherein the target data transmission path is determined based on the data access request. include: Based on the data access request, determining a data transmission attribute and / or a second electronic device scenario; Based on the data transmission attribute and / or the second electronic device scenario, the target data transmission path is determined.

9. The method according to claim 1, wherein obtaining a usage mode switching instruction for the first electronic device, include: Acquire input information of an input module of the first electronic device; generating the usage mode switching instruction according to the input information; or, Acquire first information indicating that the first electronic device enters a sleep mode; and generate the usage mode switching instruction according to the first information.

10. A control device for a first electronic device, the first electronic device comprising a display screen for displaying content, the control device for the first electronic device include: A first acquisition module, used to acquire a usage mode switching instruction for a first electronic device; A first control module, configured to control the first electronic device to enter a second usage mode from a first usage mode according to the usage mode switching instruction; Wherein, the first usage mode includes a working mode, in which the first electronic device is operated using the display screen; In the second usage mode, the first electronic device serves as a data storage device for the second electronic device. Based on the communication connection between the first electronic device and the second electronic device, the second electronic device uses the data storage function of the first electronic device to control data reading and writing.