CN115454894A - Data access method, electronic device and storage medium - Google Patents
Data access method, electronic device and storage medium Download PDFInfo
- Publication number
- CN115454894A CN115454894A CN202211043569.7A CN202211043569A CN115454894A CN 115454894 A CN115454894 A CN 115454894A CN 202211043569 A CN202211043569 A CN 202211043569A CN 115454894 A CN115454894 A CN 115454894A
- Authority
- CN
- China
- Prior art keywords
- data transmission
- data
- electronic device
- control chip
- transmission channel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1668—Details of memory controller
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4022—Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7807—System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Mathematical Physics (AREA)
- Information Transfer Systems (AREA)
Abstract
The application provides a data access method, an electronic device and a storage medium, wherein the electronic device comprises: the device comprises a memory, a first control chip, a second control chip and a data transmission interface; the first control chip and the second control chip are both connected with the memory, the first control chip and the second control chip are both connected with a data transmission interface, and the data transmission interface is used for being connected with external access equipment. According to the technical scheme, data access and transfer can be conveniently, quickly and safely realized in the non-working state of the electronic equipment.
Description
Technical Field
The present application relates to computer technologies, and in particular, to a data access method, an electronic device, and a storage medium.
Background
Electronic products such as computers, mobile phones and the like become common tools in work and life of people and are also storage devices of important data in daily work and life, but the electronic products have life cycles of the electronic products, system breakdown or startup failure can happen in the using process, and the problem that how to conveniently, quickly and safely access and transfer data of the electronic products when the electronic products meet the situations is always troubling users.
Disclosure of Invention
The embodiment of the application provides a data access method, an electronic device and a storage medium, which are used for solving the problems in the related art, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an electronic device, including: the device comprises a memory, a first control chip, a second control chip and a data transmission interface;
the first control chip and the second control chip are both connected with the memory, the first control chip and the second control chip are both connected with a data transmission interface, and the data transmission interface is used for being connected with external access equipment;
the memory is used for storing data;
the first control chip is arranged on the first data transmission channel, the second control chip is arranged on the second data transmission channel, the first data transmission channel is used for transmitting data to the data transmission interface in the working state of the electronic equipment, and the second data transmission channel is used for transmitting data to the data transmission interface in the non-working state of the electronic equipment;
the data transmission interface is used for transmitting data to the external access equipment.
In a second aspect, an embodiment of the present application provides a data access method, which is applied to an electronic device provided in any embodiment of the present application, and the method includes:
and under the non-working state of the electronic equipment, the first data transmission channel is switched to the second data transmission channel, and the data stored in the electronic equipment is shared to the external access equipment through the second data transmission channel.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor. The memory stores instructions that are loaded and executed by the processor to implement the data access method provided by any embodiment of the present application. .
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the data access method provided in any of the embodiments of the present application.
The advantages or beneficial effects in the above technical solution at least include:
under the non-working state of the electronic equipment, data transmission can be carried out based on the second data transmission channel, so that the external access equipment can access data in the electronic equipment, and the data can be accessed and transferred without disassembling the electronic equipment or by means of external switching equipment when the electronic equipment is damaged, so that the electronic equipment is more convenient, quicker and safer, and has stronger operability for users.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present application will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
FIG. 1 is a block diagram of a computer motherboard according to the related art;
fig. 2 is a schematic structural framework diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 3 is an exemplary diagram of the electronic device shown in FIG. 2;
fig. 4 is a schematic structural framework diagram of another electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural framework diagram of yet another electronic device according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating data transmission via a first data transmission channel in the electronic device shown in FIG. 4;
FIG. 7 is a schematic diagram illustrating data transmission via a second data transmission channel in the electronic device shown in FIG. 4;
FIG. 8 is a schematic diagram illustrating data transmission via a first data transmission channel in the electronic device shown in FIG. 5;
FIG. 9 is a schematic diagram illustrating data transmission via a second data transmission channel in the electronic device shown in FIG. 5;
FIG. 10 is a schematic diagram of a principle of data transmission in a shell environment;
fig. 11 is a schematic view of an application scenario according to an embodiment of the present application;
FIG. 12 is a schematic diagram of another application scenario according to an embodiment of the present application;
FIG. 13 is a schematic diagram of another application scenario according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of still another electronic device according to an embodiment of the present application.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present application. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive. It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The inventor of the present application finds in research and development that, in the related art, the design of a motherboard of a computer is mainly implemented based on an x86 architecture, and fig. 1 shows a motherboard architecture of a computer, which includes a CPU (central processing unit), a PCH (Platform Controller Hub), a display, a memory, an SSD (Solid State Disk) or a Solid State Drive, an HDD (Hard Disk Drive), an SSD connector, an HDD connector, a USB interface, and the like.
With continued reference to fig. 1, a connection between the CPU and the PCH may be implemented by a DMI (Direct Media Interface), a connection between the CPU and the Display may be implemented by an EDP (Embedded Display port), a connection between the CPU and the memory may be implemented by a memory Bus, a connection between the PCH and the SSD may be implemented by a PCIE (Peripheral Component Interconnect Express) data Bus and an SSD connector extended from the PCIE Bus, so as to enable access to data stored in the SSD, a connection between the PCH and the HDD may be implemented by a SATA (Serial ATA) data Bus and a HDD connector extended from the PCIE data Bus, so as to enable access to data stored in the HDD, and data accessed to the hard disk may be output to an external device (e.g., an external mobile hard disk) through a USB (Universal Serial Bus) data Bus and a USB Interface, and the USB Interface may have various types, e.g., a USB Type (USB Type, a USB Type, and a USB Type Interface in fig. 1.
Under normal conditions, the USB interface of the mobile hard disk and the USB interface of the computer mainboard can be connected through a USB data line, so that data stored in the SSD and the HDD in the computer can be transferred to the SSD and the HDD in the mobile hard disk. However, when the computer is damaged and cannot be started or an operating system in the computer is crashed and cannot be started, data transfer cannot be directly performed through a data line, access and transfer to data materials are realized through an external adapter board device after the computer is dismounted, or access and transfer to the data materials are realized through an external Windows PE (small operating system) environment, so that the operation is inconvenient, the user experience is poor, and the operation is difficult for a general user to realize. Windows PE is a small operating system used to install, deploy and repair Windows desktop versions, windows' server operating systems, and other Windows operating systems.
The following describes the technical solution of the present application and how to solve the above technical problems in detail by using specific embodiments.
An embodiment of the present application provides an electronic device, as shown in fig. 2, the electronic device includes: the controller comprises a memory 201, a first control chip 202, a second control chip 203 and a data transmission interface 204.
The first control chip 202 and the second control chip 203 are both connected with the memory 201, the first control chip 202 and the second control chip 203 are both connected with the data transmission interface 204, and the data transmission interface 204 is used for being connected with an external access device.
The operating state of the electronic device refers to a state in which the electronic device is powered on and an operating system of the electronic device is started. The non-operating state of the electronic device includes two situations: one is that the electronic device cannot be booted, and the other is that the electronic device can be booted but the operating system of the electronic device cannot be booted.
The electronic equipment provided by the embodiment of the application provides two data transmission channels, namely a first data transmission channel where a first control chip is located and a second data transmission channel where a second control chip is located, and the data can be transmitted through different data transmission channels when the electronic equipment is in different states, wherein the second data transmission channel can meet the data transmission requirement in the working state of the electronic equipment.
The first control chip can be connected with a designated device in the electronic equipment, the second control chip is not connected with the designated device in the electronic equipment, the designated device is a device which meets the working requirements of the electronic equipment and is arranged outside the memory, the first control chip and the data transmission interface, and the designated device is in failure or damaged, so that the electronic equipment cannot work. The connection mode can ensure the independence of the second data transmission channel, and when some specified devices of the electronic equipment have faults to cause the electronic equipment to be in a non-working state, the independence of the second data transmission channel can reduce the influence of the faulty devices on the second data transmission channel, so that the data transmission capability is maintained when the electronic equipment is in the non-working state.
In an optional implementation manner, the memory 201 in the embodiment of the present application may include at least one of an SSD and an HDD.
In another alternative implementation, the memory 201 in the embodiment of the present application may include a read-only memory and a random access memory, and may further include a nonvolatile random access memory. The memory may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may include a ROM (Read-Only Memory), a PROM (Programmable ROM), an EPROM (Erasable PROM), an EEPROM (Electrically EPROM, EEPROM), or a flash Memory. Volatile Memory can include RAM (Random Access Memory), which acts as external cache Memory. By way of example, and not limitation, many forms of RAM are available. For example, SRAM (Static RAM), DRAM (Dynamic Random Access Memory), SDRAM (Synchronous DRAM), DDR SDRAM (Double Data SDRAM, double Data rate Synchronous DRAM), ESDRAM (Enhanced SDRAM, enhanced Synchronous DRAM), SLDRAM (Sync Link DRAM, synchronous Link DRAM), and DR RAM Direct Memory bus Random Access Memory (Direct RAM, direct bus Random Access Memory).
In this embodiment, the first control chip 202 may be a PCH chip, the second control chip 203 may be a protocol conversion control chip, and the protocol conversion control chip may be configured to convert between a first data transmission protocol and a second data transmission protocol, where the first data transmission protocol is a data transmission protocol supported by the memory 201, and the second data transmission protocol is a data transmission protocol supported by the data transmission interface 204. The protocol conversion function of the protocol conversion control chip may enable the protocol conversion control chip to complete a data transmission function, and specifically, may acquire data in a built-in hard disk (e.g., SSD, HDD) in the memory 301 and transmit the data to the data transmission interface 305 (e.g., USB interface).
The data transmission interface 204 in the embodiment of the present application may include a USB interface, for example, at least one of a USBA interface and a USBC interface. The USB interfaces connected to the first control chip 202 and the second control chip 203 may be the same USB interface or different USB interfaces, and when the first control chip 202 and the second control chip 203 are connected to different USB interfaces, the USB interfaces may be integrated on the corresponding control chips.
In one example, the protocol conversion control chip may be a model RTL9210B-CG chip, the RTL9210B-CG chip integrates a USB interface, a PCIE controller, and a SATA controller, the RTL9210B-CG chip may automatically switch a USB-to-PCIE mode or a USB-to-SATA mode, and the RTL9210B-CG chip supports USB 3.1 (a USB specification), and may provide a bandwidth of up to 10gbps (gigabits).
In one example, referring to fig. 3, the memory 201 includes an SSD or an HDD, which is shown as an SSD/HDD in fig. 3, the data transmission interface is a USB interface, the first control chip 202 is a PCH chip, the second control chip 203 is a protocol conversion control chip, the PCH chip can be connected to the SSD/HDD via a PCIE/SATA data bus (i.e., a PCIE data bus or a SATA data bus), the PCH chip can be connected to the USB interface via a USB data bus, the protocol conversion control chip can also be connected to the SSD/HDD via a PCH chip via a PCIE/SATA data bus, and the protocol conversion control chip can also be connected to the USB interface via a USB data bus.
The PCH chip can access data stored in the SSD/HDD through the PCIE/SATA data bus, and transfer the accessed data to the USB interface through the USB data bus, and further transfer the data to the connected external access equipment through the USB interface, wherein the data transmission channel is a first data transmission channel T1. The protocol conversion control chip can access the data stored in the SSD/HDD through the PCIE/SATA data bus, and transfer the accessed data to the USB interface through the USB data bus, and further transfer the data to the connected external access equipment through the USB interface, wherein the data transmission channel is a second data transmission channel T2. In an operating state of the electronic device, data can be transmitted through the first data transmission channel T1, and in a non-operating state of the electronic device, for example, when the electronic device cannot be turned on, the first data transmission channel T1 cannot be used normally, and at this time, data can be transmitted through the second data transmission channel T2.
In another example, the electronic apparatus may further include a first SSD connector, a second SSD connector, a first HDD connector, and a second HDD connector (the connectors are not shown in fig. 3) on the basis of the devices shown in fig. 3. The first SSD connector can be arranged between the PCH chip and the SSD, and the PCH chip and the first SSD connector as well as the first SSD connector and the SSD can be connected through a PCIE data bus; the second SSD connector can be arranged between the protocol conversion control chip and the SSD, and the protocol conversion control chip and the second SSD connector, and the second SSD connector and the SSD can be connected through a PCIE data bus; the first HDD connector can be arranged between the PCH chip and the HDD, and the PCH chip and the first HDD connector and the HDD can be connected through the SATA data bus; the second HDD connector can be arranged between the protocol conversion control chip and the HDD, and the protocol conversion control chip and the second HDD connector and the HDD can be connected through the SATA data bus. The first SSD connector and the second SSD connector may both be SSD m.2 connectors.
In an optional implementation manner, as shown in fig. 4 and fig. 5, the electronic device provided in this embodiment of the application may further include a channel switching control unit 205, where the channel switching control unit 205 may be connected to the first data transmission channel T1 and the second data transmission channel T2 respectively, and the channel switching control unit 205 may be configured to communicate with the first data transmission channel T1 or the second data transmission channel T2.
Referring to the example of fig. 4, the channel switching control unit 205 may be located between the first control chip 202 and the memory 201 and between the second control chip 203 and the memory 201, that is, both the first control chip 202 and the first control chip 204 may be connected to the memory 201 through the channel switching control unit 205. Referring to fig. 6, in an operating state of the electronic device, the channel switching control unit 205 may communicate the data transmission channel between the first control chip 202 and the memory 201, and at this time, the entire first data transmission channel T1 is communicated, and may transmit the data stored in the memory 201 to the data transmission interface 204, and further may transmit the data to the external access device. Referring to fig. 7, in a non-operating state of the electronic device, for example, when the electronic device cannot be turned on, the channel switching control unit 205 may connect the connection data transmission channel between the second control chip 203 and the memory 201, and at this time, the entire second data transmission channel T2 is connected, and may transmit the data stored in the memory 201 to the data transmission interface 204, and further may transmit the data to the external access device.
In another example, as shown in fig. 5, the channel switching control unit 205 may be located between the first control chip 202 and the data transmission interface 204 and between the second control chip 203 and the data transmission interface 204, i.e., the first control chip 202 may be connected with the data transmission interface through the channel switching control unit 205. Referring to fig. 8, in an operating state of the electronic device, the channel switching control unit 205 may communicate the data transmission channel between the first control chip 202 and the data transmission interface 204, at which time the entire first data transmission channel T1 is communicated, may transmit the data stored in the memory 201 to the data transmission interface 204, and may further transmit the data to the external access device. Referring to fig. 9, in a non-operating state of the electronic device, for example, when the electronic device cannot be turned on, the channel switching control unit 205 may communicate the data transmission channel between the second control chip 203 and the data transmission interface 204, and at this time, the entire second data transmission channel T2 is communicated, and may transmit the data stored in the memory 201 to the data transmission interface 204, and further may transmit the data to the external access device.
For example, the channel switching control unit 205 may include a first control switch and a second control switch, the first control switch may be disposed in the first data transmission channel T1, and the second control switch may be disposed in the second data transmission channel T2.
In an example, the first control switch may be connected to the first control chip 202 and the memory 201, respectively, and when the first control switch is closed, the data transmission channel between the first control chip 202 and the memory 201 is communicated, and then the first data transmission channel T1 is communicated, and data may be transmitted through the first data transmission channel T1; when the first control switch is turned off, the data transmission channel between the first control chip 202 and the memory 201 is turned off, and then the first data transmission channel T1 is also turned off, so that data cannot be transmitted through the first data transmission channel T1.
In another example, the first control switch may be connected to the first control chip 202 and the data transmission interface 204, respectively, when the first control switch is closed, the data transmission channel between the first control chip 202 and the data transmission interface 204 is communicated, and then the first data transmission channel T1 is communicated, and data may be transmitted through the first data transmission channel T1; when the first control switch is turned off, the data transmission channel between the first control chip 202 and the data transmission interface 204 is turned off, and then the first data transmission channel T1 is also turned off, so that data cannot be transmitted through the first data transmission channel T1.
In an example, the second control switch may be connected to the second control chip 203 and the memory 201, respectively, and when the second control switch is closed, the data transmission channel between the second control chip 203 and the memory 201 is communicated, and then the second data transmission channel T2 is communicated, and data may be transmitted through the second data transmission channel T2; when the second control switch is turned off, the data transmission channel between the second control chip 203 and the memory 201 is turned off, and then the second data transmission channel T2 is also turned off, so that data cannot be transmitted through the second data transmission channel T2.
In another example, a second control switch may be connected to the second control chip 203 and the data transmission interface 204, respectively, when the second control switch is closed, a data transmission channel between the second control chip 203 and the data transmission interface 204 is communicated, and then the second data transmission channel T2 is communicated, and data may be transmitted through the second data transmission channel T2; when the second control switch is turned off, the data transmission channel between the second control chip 203 and the data transmission interface 204 is turned off, and further the second data transmission channel T2 is also turned off, so that data cannot be transmitted through the second data transmission channel T2.
In an optional implementation manner, the electronic device provided in an embodiment of the present application may further include: a control switch, which can be connected to the channel switching control unit 205, and which can be used to control the channel switching control unit 205, so that the channel switching control unit 205 can conduct the first data transmission channel T1 or the second data transmission channel T2. The control switch may be disposed outside the electronic device, and may be a switch device for manual operations such as pressing, button-moving, and toggling, and the control switch is manually controlled to control the channel switching control unit 205 to switch the data transmission channel.
In another optional implementation manner, the electronic device provided in this embodiment of the present application may further include a processor, the channel switching control unit 205 may further be connected to the processor, and the channel switching control unit 205 may switch the data transmission channel under the control of the processor.
In the embodiment of the present application, the electronic device cannot be powered on includes two situations:
in a first situation, the display in the electronic device cannot display the data, the first data transmission channel fails to operate, but part of the functions of the processor of the electronic device and part of the underlying software can still operate. In this case, the channel switching control unit can be controlled by the processor to perform switching of the data transmission channels.
In the second situation, the processor, the first control chip, etc. of the electronic device all fail to operate, but the second control chip of the electronic device can still operate. In this case, the channel switching control unit may be controlled to perform switching of the data channel by controlling the switch.
The processor in the embodiment of the present Application may be a Central Processing Unit (CPU), or may also be other general-purpose processors, a Digital Signal Processing (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an Advanced RISC Machines (Advanced reduced instruction set machine) architecture.
The electronic device in the embodiment of the application may be any one of a computer, a mobile phone and the like, and the external access device may be any one of a computer, a mobile phone, a mobile hard disk and the like.
In one example, a computer program storable in a memory of an electronic device may include a first program executable by a processor to implement: sharing and transmitting data through a Wifi shared hotspot in a SHELL environment, the second program executable by the processor to implement: data is shared and transmitted over data lines in a SHELL environment.
Fig. 10 shows an example in which the external access device is a computer and a portable hard disk, and shows the execution principle of the first program and the second program. Referring to fig. 10, a computer that can be booted but an operating system cannot be booted may automatically enter a SHELL environment after booting, run a first program in the SHELL environment, share and transmit data in internal hard disks such as an SSD and an HDD to an external computer through a Wifi shared hot spot, run a second program in the SHELL environment, and share and transmit data in the internal hard disks such as the SSD and the HDD to an external mobile hard disk through a data line.
Based on the same inventive concept, an embodiment of the present application provides a data access method, which is applicable to an electronic device provided in any embodiment of the present application, and the method includes:
and under the non-working state of the electronic equipment, the first data transmission channel is switched to the second data transmission channel, and the data stored in the electronic equipment is shared to the external access equipment through the second data transmission channel.
The operating state of the electronic device refers to a state in which the electronic device is powered on and an operating system of the electronic device is started. The non-operating state of the electronic device includes two situations: the data access method provided by the embodiment of the application can be applied to the two situations.
According to the data access method provided by the embodiment of the application, the first data transmission channel used in the working state can be switched to the second data transmission channel in the non-working state of the electronic equipment, so that the data transmission requirement in the non-working state can be met.
Optionally, the operation of switching from the first data transmission channel to the second data transmission channel may be implemented based on a channel switching control unit in the electronic device, and the channel switching control unit may switch the data transmission channel from the first data transmission channel to the second data transmission channel. In an example, the operation of switching from the first data transmission channel to the second data transmission channel may be implemented based on a first control switch and a second control switch in the channel switching control unit, where the first control switch may control on/off of the first data transmission channel, and the second control switch may control on/off of the second data transmission channel, and switching from the first data transmission channel to the second data transmission channel may be implemented by changing the first control switch from on to off and the second control switch from off to on, and specific principles of switching may also refer to the foregoing embodiment contents, and will not be described herein again.
Optionally, the operation of switching from the first data transmission channel to the second data transmission channel may be implemented based on a control switch in the electronic device or a control of the channel switching control unit by the processor, and specific control principles may refer to the contents of the foregoing embodiments, which are not described herein again.
Optionally, the data access method provided in the embodiment of the present application may further include: determining whether an operating system of the electronic equipment can be started or not in a state that the electronic equipment is started; and entering a SHELL environment under the condition that the operating system cannot be started, establishing communication connection between the electronic equipment and external access equipment in the SHELL environment, and sharing data stored in the electronic equipment to the external access equipment. The SHELL environment may be a UFFI (Unified Extensible Firmware Interface) SHELL environment.
Under the condition that the electronic device is started but cannot start the operating system, the data access method provided by the embodiment of the application can realize data transmission in the SHELL environment without depending on a data transmission channel of hardware.
In an alternative embodiment, establishing a communication connection between the electronic device and the external access device in the SHELL environment may include: in the SHELL environment, a communication connection between the electronic device and the external access device is established based on a wireless manner, for example, a wireless network such as Wifi (wireless network communication technology) connected to the electronic device end can be used as a sharing hotspot, the external access device is connected to the sharing hotspot to realize the communication connection between the electronic device and the external access device, and data stored in the electronic device can be shared and transmitted to the external access device through the Wifi sharing hotspot to realize the access and transfer of the data.
The method of sharing and transmitting data through a Wifi shared hotspot may be applicable to an external access device, such as a computer or a mobile phone, having a function of connecting to the shared hotspot, and the method may be implemented when executing a first program in a memory of an electronic device.
In another alternative embodiment, establishing a communication connection between the electronic device and the external access device in the SHELL environment may include: in the SHELL environment, a communication connection between the electronic device and the external access device is established based on a wired manner, for example, a data line may be connected between the electronic device and the external access device, the communication connection between the electronic device and the external access device is realized based on the connection of the data line, and data stored in the electronic device may be shared and transmitted to the external access device via the data line, so as to realize access and transfer of the data. The data line for connecting the electronic device and the external access device may be a USB data line, such as a USB data line or a USB bc data line.
The method for sharing and transmitting data through the USB data line can be suitable for any equipment with a data transmission interface for connecting the data line, such as a computer, a mobile phone, a mobile hard disk and the like, and can be realized when a second program in a memory of the electronic equipment is executed.
Fig. 11 to 13 show application scenarios to which the data access method provided in the embodiment of the present application is applied, in fig. 11 and 12, a left computer is an external access device and also serves as a Host end (i.e., a master device) for processing data, a right computer is an electronic device provided in the embodiment of the present application and also serves as a Slave end (i.e., a Slave device) for storing data, in fig. 13, a left mobile hard disk is an external access device and also serves as a Host end for processing data, and a right computer is an electronic device provided in the embodiment of the present application and also serves as a Slave end for storing data.
Referring to the example of fig. 11, the computer at the Host end and the computer at the Slave end are connected by a data line, and when the computer at the Slave end cannot be started, data at the Slave end can be transferred to the Host end through the second data transmission channel inside the Slave end and the data line between the Host end and the Slave end.
Referring to the example of fig. 12, in a case that a computer of the Slave end can be booted but an operating system cannot be booted, a communication connection between the Host end and the Slave end may be established through a Wifi shared hotspot in the SHELL environment, and data of the Slave end may be transferred to the Host end through the Wifi shared hotspot.
Referring to the example of fig. 13, the Host computer and the Slave computer are connected by a data line, and when the Slave computer can be booted but the operating system cannot be booted, the Slave computer can transfer the data of the Slave to the Host computer by the data line in the SHELL environment.
Based on the same inventive concept, an embodiment of the present application further provides a data access apparatus, which may include a first access module, configured to switch from a first data transmission channel to a second data transmission channel in a non-operating state of an electronic device, and share data stored in the electronic device with the external access device through the second data transmission channel.
Optionally, the data access device provided in the embodiment of the present application further includes: and a second access module.
The second access module is operable to: determining whether an operating system of the electronic equipment can be started or not in a state that the electronic equipment is started; entering a SHELL environment under the condition that an operating system cannot be started; establishing a communication connection between the electronic device and an external access device in a SHELL environment; and sharing the data stored in the electronic equipment with the external access equipment.
In an optional implementation manner, when establishing a communication connection between the electronic device and the external access device in the SHELL environment, the third access module is specifically configured to: in the SHELL environment, a communication connection between the electronic device and the external access device is established on a wireless basis.
In another optional implementation manner, when establishing a communication connection between the electronic device and the external access device in the SHELL environment, the third access module is specifically configured to: in the SHELL environment, a communication connection between the electronic device and the external access device is established on a wired basis.
The functions of each module in the data access device provided in the embodiment of the present application may refer to the corresponding descriptions in the foregoing method embodiments, and are not described herein again.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, as shown in fig. 14, the electronic device includes: a memory 1401, and a processor 1402. The memory 1401 stores therein a computer program, which is loaded and executed by the processor 1402 to implement the data access method provided in any of the embodiments of the present application. The number of the memory 1401 and the processor 1402 may be one or more.
The memory 1401 and the processor 1402 may be connected to each other via a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
The electronic device shown in fig. 14 and the electronic device shown in fig. 2 may be the same electronic device, that is, the same electronic device includes: the device comprises a memory 201, a processor, a first control chip, a second control chip and a data transmission interface. The memory for storing the computer program of the data access method and the memory for storing the data material to be accessed may be the same memory or different memories, and the processor for executing the computer program of the data access method and the processor for controlling the channel switching control unit may be the same processor or different processors.
Based on the same inventive concept, embodiments of the present application further provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the data access method provided in any embodiment of the present application.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
In the description of the present specification, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the specification, the words comprises/comprising means are used to specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
In the description of the present specification, the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present application.
It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present application includes other implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the method of the above embodiments may be implemented by hardware that is configured to be instructed to perform the relevant steps by a program, which may be stored in a computer-readable storage medium, and which, when executed, includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module may also be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present application, and these should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. An electronic device, comprising: the device comprises a memory, a first control chip, a second control chip and a data transmission interface;
the first control chip and the second control chip are both connected with the memory, the first control chip and the second control chip are both connected with the data transmission interface, and the data transmission interface is used for being connected with external access equipment;
the memory is used for storing data;
the first control chip is arranged on a first data transmission channel, the second control chip is arranged on a second data transmission channel, the first data transmission channel is used for transmitting data to a data transmission interface in the working state of the electronic equipment, and the second data transmission channel is used for transmitting data to the data transmission interface in the non-working state of the electronic equipment;
the data transmission interface is used for data interaction with the external access equipment.
2. The electronic device of claim 1, wherein the second control chip is a protocol conversion control chip, and the protocol conversion control chip is configured to convert between a first data transmission protocol and a second data transmission protocol;
the first data transmission protocol is a data transmission protocol supported by the memory, and the second data transmission protocol is a data transmission protocol supported by the data transmission interface.
3. The electronic device of claim 1 or 2, further comprising: the channel switching control unit is respectively connected with the first data transmission channel and the second data transmission channel;
the channel switching control unit is used for communicating the first data transmission channel or the second data transmission channel.
4. The electronic device of claim 3, further comprising:
and the control switch is connected with the channel switching control unit and used for controlling the channel switching control unit to enable the channel switching control unit to be communicated with the first data transmission channel or the second data transmission channel.
5. A data access method, applied to an electronic device according to any one of claims 1-4, the method comprising:
and under the non-working state of the electronic equipment, switching from a first data transmission channel to a second data transmission channel, and sharing the data stored in the electronic equipment to external access equipment through the second data transmission channel.
6. The data access method of claim 5, further comprising:
determining whether an operating system of the electronic equipment can be started or not in a state that the electronic equipment is started;
entering a shell environment under the condition that the operating system cannot be started;
establishing a communication connection between the electronic device and the external access device in the shell environment;
and sharing the data stored in the electronic equipment to the external access equipment.
7. The data access method of claim 6, wherein establishing a communication connection between the electronic device and the external access device in the shell environment comprises:
and establishing a communication connection between the electronic equipment and the external access equipment in the shell environment based on a wireless mode.
8. The data access method of claim 6, wherein controlling the electronic device to communicatively connect with the external access device in the shell environment comprises:
establishing a communication connection between the electronic device and the external access device based on a wired manner in the shell environment.
9. An electronic device, comprising: a memory having stored therein a computer program that is loaded and executed by the processor to implement the data access method of any one of claims 5-8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the data access method according to any one of claims 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211043569.7A CN115454894A (en) | 2022-08-29 | 2022-08-29 | Data access method, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211043569.7A CN115454894A (en) | 2022-08-29 | 2022-08-29 | Data access method, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115454894A true CN115454894A (en) | 2022-12-09 |
Family
ID=84300685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211043569.7A Pending CN115454894A (en) | 2022-08-29 | 2022-08-29 | Data access method, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115454894A (en) |
-
2022
- 2022-08-29 CN CN202211043569.7A patent/CN115454894A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5657799B2 (en) | System and method for facilitating wireless communication during a pre-boot phase of a computer device | |
US8285895B2 (en) | Handshake free sharing in a computer architecture | |
US8909910B2 (en) | Computer system for selectively accessing bios by a baseboard management controller | |
US7908417B2 (en) | Motherboard system, storage device for booting up thereof and connector | |
US10656676B2 (en) | Docking device, electrical device, and MAC address cloning method | |
US20100064036A1 (en) | Peripheral device operation method, peripheral device and host | |
US10635450B2 (en) | Electronic device performing booting operation based on boot-up instruction provided from endpoint device | |
US20230169028A1 (en) | Bridge device and data storage system | |
CN103092648B (en) | A kind of image upgrade method, system and subscriber equipment and personal computer | |
US20230140164A1 (en) | System and method for bmc and bios booting using a shared non-volatile memory module | |
US20100049877A1 (en) | Peripheral equipment operating method, peripheral equipment and host | |
KR20150072963A (en) | Multisystem, and method of booting the same | |
CN115454894A (en) | Data access method, electronic device and storage medium | |
US11586509B2 (en) | Operating system repairs via electronic devices | |
CN116795437A (en) | Computing system, computer-implemented method, and computer program product | |
CN111953753B (en) | Communication device connection method, device, computer device and storage medium | |
CN113867835B (en) | Device and method for dynamic loading of DSP | |
US10678552B2 (en) | Hardware for system firmware use | |
US20170270021A1 (en) | Repair of failed firmware through an unmodified dual-role communication port | |
US10803008B2 (en) | Flexible coupling of processor modules | |
WO2024174740A1 (en) | Method and apparatus for saving fault information of virtual machine, and storage medium and electronic device | |
US20240303086A1 (en) | Boot time reduction for an information handling system with a data processing unit | |
CN114125902A (en) | WWAN equipment and configuration method, device and storage medium thereof | |
CN114879995A (en) | Firmware updating method and device | |
JP2006331147A (en) | Microcomputer, and system and method for debugging |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |