Data processing method and electronic equipment
By establishing a path between the first electronic device and the second electronic device, automatically supplying power and obtaining status information, the problem of manual operation of electronic device detection is solved, efficient automatic detection is achieved, the process is simplified and efficiency is improved.
Patent Information
- Application Number
- CN202411547236.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-17
AI Technical Summary
In the prior art, the detection of electronic equipment requires manual operation, especially when the equipment is not used for a long time, it needs to be charged and turned on before the inspection can be carried out. When the number of equipment is large, the detection time is long and the efficiency is low.
By establishing a path between the first electronic device and the second electronic device, automatically supplying power and obtaining status information, detecting based on the status information, automatic detection is realized, manual operation is reduced, and the efficiency of multi-device detection is improved.
Automatic detection without manual operation by users is realized, which saves detection time, improves the efficiency of electronic equipment detection and simplifies the detection process.
Smart Images

Figure CN119322712A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a data processing method and electronic equipment. Background Art
[0002] When it is necessary to test electronic devices, usually many operations need to be completed manually. For example, if a laptop computer has not been used for a long time, in order to test it, it is necessary to first charge the laptop computer, and when the charge reaches a certain amount of power, turn on the laptop computer, so that the laptop computer can be turned on and run, and then test it in the running state. This process requires manual operation, and when there are a large number of electronic devices, it takes a long time to complete the test. Summary of the invention
[0003] In view of this, the present application provides a data processing method and an electronic device, and the specific scheme thereof is as follows:
[0004] A data processing method, applied to a first electronic device, comprising:
[0005] Establishing a path between the first electronic device and at least one second electronic device;
[0006] The first electronic device supplies power to the at least one second electronic device through the path;
[0007] In response to a first signal, obtaining status information of the at least one second electronic device through the path, the first signal indicating that the power supply condition meets the target condition;
[0008] The at least one second electronic device is detected based on the status information.
[0009] Furthermore, it also includes one of the following:
[0010] If the power supply of the at least one second electronic device reaches a first threshold, determining that the power supply condition meets the target condition;
[0011] If the duration for which the first electronic device supplies power to the at least one second electronic device reaches a second threshold, it is determined that the power supply condition meets the target condition.
[0012] Furthermore, it also includes:
[0013] If it is detected that the at least one second electronic device is in the target state, output a second signal to the at least one second electronic device to enable the at least one second electronic device to start up and enter a low power consumption mode; the second electronic device in the target state can operate normally;
[0014] The first electronic device operates the at least one second electronic device in a low power consumption mode.
[0015] Furthermore, it also includes:
[0016] Obtain wireless network configuration information;
[0017] The wireless network configuration information is sent to the at least one second electronic device, so that the at least one second electronic device can use resources of a third electronic device, where the third electronic device is the device pointed to by the wireless network configuration information.
[0018] Furthermore, it also includes:
[0019] The wireless network configuration information is sent to other first electronic devices so that after the other first electronic devices obtain the wireless network configuration information, the second electronic device that establishes a channel with the other first electronic devices can use the resources of the third electronic device, and the third electronic device is the device pointed to by the wireless network configuration information.
[0020] A data processing method, applied to a second electronic device, comprising;
[0021] A path is established between the second electronic device and the first electronic device, and the path is used for the first electronic device to supply power to the second electronic device;
[0022] In response to the first signal, status information is output to the first electronic device through the path, so that the first electronic device detects the second electronic device based on the status information, and the first signal indicates that the power supply condition meets the target condition.
[0023] Furthermore, outputting the status information to the first electronic device through the path includes:
[0024] Obtaining the state information based on a processing module;
[0025] The status information is processed based on a power module, and the status information is output to the first electronic device through the path. The processing includes packaging the status information based on a charging protocol.
[0026] Furthermore, it also includes:
[0027] Obtaining based on the power module and parsing based on the charging protocol a second signal sent by the first electronic device;
[0028] Boot the device and enter low power mode based on the processing module.
[0029] Furthermore, it also includes:
[0030] Obtaining wireless network configuration information sent by the first electronic device based on the power module, and parsing the wireless network configuration information based on the charging protocol;
[0031] A connection is established with a third electronic device based on the processing module to utilize resources of the third electronic device; the third electronic device is the device pointed to by the wireless network configuration information.
[0032] An electronic device, comprising:
[0033] at least one target interface, used to connect to at least one second electronic device and establish a path with the at least one second electronic device;
[0034] a power module, configured to supply power to the at least one second electronic device through the passage;
[0035] The processor is used to obtain the status information of the at least one second electronic device through the path in response to the first signal, wherein the first signal indicates that the power supply condition meets the target condition; and detect the at least one second electronic device based on the status information. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flowchart of a data processing method disclosed in an embodiment of the present application;
[0038] Figure 2 A flowchart of another data processing method disclosed in an embodiment of the present application;
[0039] Figure 3 A flowchart of another data processing method disclosed in an embodiment of the present application;
[0040] Figure 4 A flowchart of another data processing method disclosed in an embodiment of the present application;
[0041] Figure 5 A schematic diagram of a system architecture for implementing a data processing method disclosed in an embodiment of the present application;
[0042] Figure 6 A flowchart of a data processing method disclosed in an embodiment of the present application;
[0043] Figure 7A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0045] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0046] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0047] The present application discloses a data processing method, which is applied to a first electronic device, and its flow chart is as follows: Figure 1 As shown, including:
[0048] Step S11, establishing a channel between the first electronic device and at least one second electronic device;
[0049] Step S12: the first electronic device supplies power to at least one second electronic device through the path;
[0050] Step S13, in response to the first signal, obtaining status information of at least one second electronic device through the path, the first signal indicating that the power supply condition meets the target condition;
[0051] Step S14: Detect at least one second electronic device based on the status information.
[0052] If an electronic device has not been used for a long time, if it is to be tested, it needs to be charged first and then turned on before it can be tested. For example, if a laptop computer has not been used for a long time, it needs to be charged first. When the charge reaches a certain amount of electricity, the laptop computer needs to be turned on and tested while it is powered on. This process requires manual operation, and when there are a large number of electronic devices to be tested, it takes a long time to complete the test.
[0053] Based on this, in the present solution, at least one second electronic device to be detected is controlled to be connected to the first electronic device, a path is established through the connection, and the first electronic device supplies power to at least one second electronic device through the path. When the power supply condition meets the target condition, the first electronic device can obtain the status information of at least one second electronic device through the path, and detect at least one second electronic device based on the status information, thereby achieving the purpose of automatically detecting at least one second electronic device without manual operation by the user, and at least one second electronic device can be detected at the same time, saving the time for detecting multiple second electronic devices and improving the detection efficiency.
[0054] When an electronic device needs to be detected, the electronic device to be detected can be determined as a second electronic device, and the second electronic device can be physically connected to the first electronic device. The first electronic device is a device that can detect electronic devices, and the path between the first electronic device and the second electronic device is established through the physical connection.
[0055] The path between the first electronic device and the second electronic device can transmit signals and electrical energy. The path can connect the interface on the first electronic device with the interface on the second electronic device through a transmission line. The interface on the first electronic device and / or the interface on the second electronic device can be a USB interface, which can specifically be a Type C interface. Of course, it can also be other interfaces, which are not specifically limited here.
[0056] In this embodiment, the first electronic device serves as a detection device for detecting the second electronic device. After determining that a path is established between the first electronic device and the second electronic device, the first electronic device automatically supplies power to the second electronic device through the path, so that as long as the path is established between the first electronic device and the second electronic device, the process of detecting the second electronic device is started.
[0057] A security chip may be built into the first electronic device, and the security chip built into the first electronic device matches the second electronic device. A root certificate that complies with security specifications and cannot be accessed internally or externally is built into the first electronic device to ensure that both the first electronic device and the second electronic device are secure devices, and that information transmitted between the first electronic device and the second electronic device is secure and cannot be intercepted.
[0058] The first electronic device can power the second electronic device through its own battery, or, in order to ensure the normal operation of the first electronic device, the second electronic device is not powered directly by the battery inside the first electronic device, but an external power supply is connected to the first electronic device, the first electronic device obtains the electric energy transmitted by the external power supply, and transmits the electric energy obtained from the external power supply to the second electronic device through the path between the first electronic device and the second electronic device, so as to power the second electronic device.
[0059] Since the second electronic device is a device that has not been used for a long time, in order to ensure the safety of electricity use and the service life of the second electronic device, there will inevitably be no power supply to the second electronic device, or the battery inside the second electronic device will inevitably be in a low-power state. Therefore, in this case, the second electronic device must be powered first so that the battery in the second electronic device can receive power. When the battery in the second electronic device receives power, the second electronic device can be detected.
[0060] Therefore, when the first electronic device supplies power to the second electronic device through the path, the power supply is monitored to determine whether it meets the target condition. If the target condition is not met, the first electronic device continues to supply power to the second electronic device. If the target condition is met, the subsequent detection process is started.
[0061] When it is determined that the power supply condition meets the target condition, a first signal is generated, and the first electronic device obtains the status information of the second electronic device through the path between the first electronic device and the second electronic device in response to the first signal.
[0062] Among them, the status information is information that can characterize the status of each device in the second electronic device. When the power supply condition meets the target condition, the second electronic device can detect the status information of each device inside it, and transmit the detected status information to the first electronic device through the path between the first electronic device and the second electronic device. At this time, the first electronic device no longer powers the second electronic device through the path, but obtains the status information of the second electronic device through the path, so as to detect the second electronic device based on the status information, so as to realize the process of automatically completing the detection of the second electronic device through the path between the first electronic device and the second electronic device, without the need for manual operation by the user, thereby simplifying the detection process.
[0063] Furthermore, the first electronic device may establish a channel with only one second electronic device at a time, and only detect one second electronic device at a time through the channel; or, the first electronic device may establish a channel with multiple second electronic devices at the same time, and detect multiple second electronic devices at a time through the channel.
[0064] The first electronic device may include multiple interfaces, and may be connected to multiple different second electronic devices through the multiple interfaces respectively. Each second electronic device is a second electronic device to be detected. When connected to the first electronic device, each second electronic device does not need to be turned on.
[0065] When the first electronic device is connected to multiple second electronic devices, pathways are established between the first electronic device and the multiple second electronic devices. For example, the first interface of the first electronic device A is connected to the second electronic device B1, the second interface of the first electronic device A is connected to the second electronic device B2, and the third interface of the first electronic device A is connected to the second electronic device B3. Then, a first pathway AB1 is established between the first electronic device A and the second electronic device B1, a second pathway AB2 is established between the first electronic device A and the second electronic device B2, and a third pathway AB3 is established between the first electronic device A and the second electronic device B3.
[0066] When a first electronic device establishes a channel with multiple second electronic devices, the first electronic device supplies power to the corresponding second electronic devices through the channel, and the power supply conditions of the first electronic device supplying power to different second electronic devices that meet the target conditions may occur simultaneously or may not occur simultaneously.
[0067] If the power supply conditions of the first electronic device supplying power to different second electronic devices meet the target conditions at the same time, that is, the first electronic device supplies power to multiple second electronic devices, and the power supply conditions of the different second electronic devices meet the target conditions at the same time, then the first electronic device can obtain status information of different second electronic devices through different channels at the same time.
[0068] For example: the first electronic device A supplies power to the second electronic device B1, the first electronic device A supplies power to the second electronic device B2, and the first electronic device A supplies power to the second electronic device B3. At a certain moment, it is determined that the power supply situation for the second electronic device B1 meets the target condition. At the same time, the power supply situation for the second electronic device B2 also meets the target condition, and the power supply situation for the second electronic device B3 also meets the target condition. At this time, the first electronic device A can simultaneously obtain the status information of the second electronic device B1, the status information of the second electronic device B2, and the status information of the second electronic device B3.
[0069] If the power supply conditions of the first electronic device supplying power to different second electronic devices do not meet the target conditions at the same time, the status information of the corresponding second electronic devices can be obtained based on the order in which the target conditions are met.
[0070] For example: the first electronic device A supplies power to the second electronic device B1, the first electronic device A supplies power to the second electronic device B2, and the first electronic device A supplies power to the second electronic device B3. At the first moment t1, it is determined that the power supply situation for the second electronic device B1 meets the target condition. At the second moment t2, it is determined that the power supply situation for the second electronic device B2 meets the target condition. At the third moment t3, it is determined that the power supply situation for the second electronic device B3 meets the target condition. At this time, the status information of the second electronic device B1, the status information of the second electronic device B2, and the status information of the second electronic device B3 can be obtained in sequence based on the first moment t1, the second moment t2, and the third moment t3.
[0071] That is, as long as the power supply condition for a second electronic device meets the target condition, the first electronic device can obtain the status information of the second electronic device without waiting for the power supply condition for other second electronic devices to meet the target condition to obtain the status information of each second electronic device at the same time.
[0072] Of course, it can also be: if the power supply conditions of the first electronic device for different second electronic devices meet the target conditions at different times, it is necessary to wait until the power supply conditions of all second electronic devices meet the target conditions before simultaneously obtaining the status information of each second electronic device.
[0073] In addition, the first electronic device detects at least one second electronic device based on the status information, which may be: the first electronic device obtains the status information of the second electronic device, analyzes based on the status information, and directly completes the detection of the second electronic device, such as: the first electronic device directly determines that the second electronic device is in a state where it can operate normally based on the status information, or the first electronic device determines that a specific component in the second electronic device is abnormal based on the status information, etc.;
[0074] Alternatively, it may be: the first electronic device obtains the status information of the second electronic device, and then the first electronic device sends the status information of the second electronic device to other devices connected to the first electronic device, or a server, so that the other devices or servers can detect the status information of the second electronic device, determine the actual status of the second electronic device, and send the obtained actual status of the second electronic device to the first electronic device to complete the detection of the second electronic device. The first electronic device and the second electronic device establish a path through a physical connection, and the first electronic device and the other device or server can be connected wirelessly or physically, which will not be repeated here.
[0075] The data processing method disclosed in this embodiment is applied to a first electronic device, a path is established between the first electronic device and at least one second electronic device; the first electronic device supplies power to at least one second electronic device through the path; in response to a first signal, the state information of at least one second electronic device is obtained through the path, and the first signal indicates that the power supply condition meets the target condition; at least one second electronic device is detected based on the state information. In this scheme, when at least one second electronic device is detected through the first electronic device, if a path is established between the first electronic device and at least one second electronic device, the first electronic device first supplies power to at least one second electronic device through the path, so that when the power supply condition meets the target condition, the state information of at least one second electronic device is obtained through the path, and the detection of at least one second electronic device is realized based on the state information. In the whole process, no manual operation by the user is required, and the at least one second electronic device to be detected can be powered through the path established between the devices, and the state information is transmitted through the same path, so as to realize the automatic detection process and improve the detection efficiency of the at least one second electronic device.
[0076] This embodiment discloses a data processing method, which is applied to a first electronic device, and its flow chart is as follows: Figure 2 As shown, including:
[0077] Step S21: establishing a channel between the first electronic device and at least one second electronic device;
[0078] Step S22: the first electronic device supplies power to at least one second electronic device through the path;
[0079] Step S23: if the power supply amount provided by the first electronic device to at least one second electronic device reaches a first threshold, it is determined that the power supply condition meets the target condition, and a first signal is generated;
[0080] Step S24, in response to the first signal, obtaining status information of at least one second electronic device through the path;
[0081] Step S25: Detect at least one second electronic device based on the status information.
[0082] The first electronic device is connected to at least one second electronic device, that is, a path is established between the first electronic device and at least one second electronic device, through which the first electronic device can supply power to at least one second electronic device so that the at least one second electronic device has sufficient power to ensure the accuracy of detection of the at least one second electronic device.
[0083] When a first electronic device supplies power to at least one second electronic device through a path, the first electronic device may monitor the amount of power it supplies to the at least one second electronic device to determine whether the amount of power supplied reaches a first threshold, and determine whether the amount of electrical energy obtained by the at least one second electronic device meets a condition based on whether the amount of power supplied reaches the first threshold.
[0084] When the amount of power supplied by the first electronic device to the at least one second electronic device reaches a first threshold, it can be determined that the amount of electric energy obtained by the at least one second electronic device meets a condition. At this time, the first electronic device can no longer supply power to the at least one second electronic device, but generate a first signal, and in response to the first signal, obtain the state information of the at least one second electronic device through the path between the first electronic device and the at least one second electronic device, so as to complete the detection of the at least one second electronic device through the state information;
[0085] When the amount of power supplied by the first electronic device to at least one second electronic device does not reach a first threshold, it can be determined that the amount of electrical energy obtained by the at least one second electronic device does not meet the condition. At this time, the first electronic device needs to continue to supply power to the at least one second electronic device through the path between the first electronic device and the at least one second electronic device.
[0086] It should be noted that the amount of power supplied by the first electronic device to at least one second electronic device reaches a first threshold. If the number of second electronic devices is 1, it is sufficient as long as the amount of power supplied by the first electronic device to each second electronic device reaches the first threshold. If the number of second electronic devices is greater than 1, the first threshold can be for each second electronic device or for all second electronic devices.
[0087] Specifically, if the first threshold is for each second electronic device, the first electronic device needs to determine how much power it supplies to each second electronic device, which can be monitored through the interface connected to the path on the first electronic device. When the power supplied by the first electronic device to the second electronic device K1 reaches the first threshold, the first electronic device can obtain the status information of the second electronic device K1 through the path between the first electronic device and the second electronic device K1, so as to detect the second electronic device K1 based on the status information; when the power supplied by the first electronic device to the second electronic device K2 does not reach the first threshold, the first electronic device can continue to supply power to the second electronic device K2 until the power supplied to the second electronic device K2 reaches the first threshold, and then stop supplying power, and obtain the status information of the second electronic device K2 through the path between the first electronic device and the second electronic device K2, so as to detect the second electronic device K2 based on the status information.
[0088] Of course, to determine whether the power supply of at least one second electronic device has reached the first threshold, each second electronic device may also monitor, and each second electronic device sends the value of the power supply provided by the first electronic device to the first electronic device, and the first electronic device makes a judgment to determine whether the power supply provided to the second electronic device has reached the first threshold; or, each second electronic device may monitor, and each second electronic device compares the value of the monitored power supply with the first threshold to determine whether the first threshold has been reached, and sends the comparison result to the first electronic device, and the first electronic device determines whether to continue to provide power to the second electronic device based on the comparison result.
[0089] If the first threshold is for all second electronic devices, the first electronic device needs to determine the power supply amount for all second electronic devices. This method is applicable to the case where the first electronic device supplies power to multiple second electronic devices at the same time.
[0090] The power supply provided by the first electronic device to each second electronic device is monitored through the interface connected to the path on the first electronic device, and the power supplies on the interfaces of all paths are added up, that is, the power supply provided by the first electronic device to all second electronic devices. When it reaches a first threshold, the first electronic device no longer supplies power to any second electronic device, but obtains the status information of each second electronic device through the path between the first electronic device and each second electronic device, so that the first electronic device can detect each second electronic device; when the power supply provided by the first electronic device to all second electronic devices does not reach the first threshold, the first electronic device continues to supply power to each second electronic device until the power supply provided by the first electronic device to all second electronic devices reaches the first threshold, then no longer supplies power to any second electronic device, but obtains the status information of each second electronic device through the path between the first electronic device and each second electronic device, so that the first electronic device can detect each second electronic device.
[0091] The data processing method disclosed in this embodiment is as follows: a channel is established between a first electronic device and at least one second electronic device; the first electronic device supplies power to at least one second electronic device through the channel; if the power supply provided by the first electronic device to at least one second electronic device reaches a first threshold, it is determined that the power supply condition meets the target condition and a first signal is generated; in response to the first signal, the status information of at least one second electronic device is obtained through the channel; and at least one second electronic device is detected based on the status information. In this scheme, when the first electronic device supplies power to at least one second electronic device through the channel between the first electronic device and at least one second electronic device, the first electronic device monitors the power supply provided to at least one second electronic device, and when it reaches the first threshold, the status information of at least one second electronic device is obtained through the channel to ensure that the status information of at least one second electronic device is obtained only when sufficient power is provided to at least one second electronic device, and the status information of at least one second electronic device obtained is obtained with sufficient power support, thereby ensuring the accuracy of data detection.
[0092] Furthermore, in the data processing method disclosed in this embodiment, determining whether the power supply condition meets the target condition may also be: if the duration for which the first electronic device supplies power to at least one second electronic device reaches a second threshold, determining that the power supply condition meets the target condition.
[0093] The first electronic device monitors the duration of power supply to at least one second electronic device to determine whether the duration reaches a second threshold. If the second threshold is reached, it can be determined that the power supply situation meets the target condition. At this time, the first electronic device no longer supplies power to the second electronic device, but obtains the status information of the second electronic device through the path between the first electronic device and the second electronic device; if the second threshold is not reached, the first electronic device needs to continue to supply power to the second electronic device until the duration of power supply to the second electronic device reaches the second threshold.
[0094] Among them, to determine whether the duration for which the first electronic device supplies power to at least one second electronic device reaches a second threshold, it can be determined separately whether the duration for which the first electronic device supplies power to each second electronic device reaches the second threshold. When the duration for which power is supplied to a second electronic device reaches the second threshold, the power supply to the second electronic device is stopped. However, if there are other second electronic devices at this time, and the duration for which the first electronic device supplies power to the other second electronic devices has not reached the second threshold, even if the first electronic device stops supplying power to the second electronic devices, it will not affect the situation in which the first electronic device supplies power to the other second electronic devices.
[0095] Determining the duration for which the first electronic device supplies power to each second electronic device can also be monitored through the interface of the path between the first electronic device and each second electronic device. Different interfaces are connected to different second electronic devices. Therefore, the duration for which the first electronic device supplies power to different second electronic devices can be monitored through different interfaces.
[0096] In addition, the duration for which the first electronic device supplies power to at least one second electronic device may also be determined by monitoring by each second electronic device. Each second electronic device monitors the duration for which it receives power from the first electronic device and feeds the duration back to the first electronic device. The first electronic device determines whether the power supply duration has reached a second threshold value and determines whether it is necessary to continue supplying power, whether it is necessary to generate a first signal, and whether to obtain status information of the second electronic device through a path between the first electronic device and the second electronic device. Alternatively, each second electronic device monitors the duration for which it receives power from the first electronic device and determines whether the duration has reached a second threshold value, obtains a comparison result, and sends the comparison result to the first electronic device. Based on the comparison result, the first electronic device determines whether it is necessary to continue supplying power to the second electronic device, whether it is necessary to generate a first signal, and whether to obtain status information of the second electronic device through a path between the second electronic device and the second electronic device.
[0097] Through the data processing method disclosed in this embodiment, it is possible to ensure that the status information of at least one second electronic device is obtained only when the charging time of at least one second electronic device reaches the second threshold, and it is ensured that the status information of at least one second electronic device obtained is obtained under the condition of sufficient power support, thereby ensuring the accuracy of data detection.
[0098] This embodiment discloses a data processing method, which is applied to a first electronic device, and its flow chart is as follows: Figure 3 As shown, including:
[0099] Step S31: establishing a channel between a first electronic device and at least one second electronic device;
[0100] Step S32: the first electronic device supplies power to at least one second electronic device through the path;
[0101] Step S33, in response to the first signal, obtaining status information of at least one second electronic device through the path, the first signal indicating that the power supply condition meets the target condition;
[0102] Step S34: detecting at least one second electronic device based on the status information;
[0103] Step S35: if it is detected that at least one second electronic device is in the target state, output a second signal to the at least one second electronic device to enable the at least one second electronic device to start up and enter a low power consumption mode, so that the second electronic device in the target state can operate normally;
[0104] Step S36: The first electronic device controls at least one second electronic device in the low power consumption mode.
[0105] When a path is established between a first electronic device and at least one second electronic device, and power is supplied to the at least one second electronic device through the path, if the power supply condition meets the target condition, status information of the at least one second electronic device is obtained, and the at least one second electronic device is detected based on the status information.
[0106] The first electronic device detects at least one second electronic device based on the status information to determine whether the at least one second electronic device can operate normally.
[0107] Among them, if it is determined based on the status information that a certain second electronic device is in the target state, that is, the second electronic device can operate normally, then it means that all parameters in the status information of each component in the second electronic device are within the normal range, that is, each component in the second electronic device can operate normally when the second electronic device is turned on and operated; if it is determined based on the status information that a certain second electronic device is not in the target state, that is, the second electronic device cannot operate normally, at this time, the parameters of a component in the status information of each component in the second electronic device may be not within the normal range, and the component in the second electronic device cannot operate normally when the second electronic device is turned on and operated.
[0108] If the first electronic device detects that at least one second electronic device is in a target state based on the status information, the first electronic device can directly output a second signal to the second electronic device in the target state so that the second electronic device in the target state can start up and enter a low power consumption mode, that is, the second signal is a signal generated and output by the first electronic device that can enable the second electronic device to start up and enter a low power consumption mode.
[0109] When the first electronic device determines that the second electronic device can operate normally, the first electronic device controls the second electronic device to turn on, so that the second electronic device starts up and enters a low power consumption mode.
[0110] Since the second electronic device is in a shutdown state when the first electronic device begins to detect the second electronic device, in order to reduce the manual operation of the user, the first electronic device can directly perform automatic detection when the second electronic device is in a shutdown state without turning on the device. If the second electronic device is a laptop computer, then when the first electronic device detects the second electronic device, the two bodies of the second electronic device are in a closed state, that is, the first body including the display screen and the second body including the keyboard on the second electronic device are in a closed state. When it is determined that the second electronic device is in the target state, a second signal is output to the second electronic device to start the second electronic device, that is, the first electronic device controls the second electronic device to start in the closed state. At this time, it is not necessary to keep the first body and the second body of the second electronic device in an open state.
[0111] Of course, the second signal output by the first electronic device to the second electronic device, in addition to being able to control the second electronic device to start up and enter a low power consumption mode, can also include: being able to control the relationship between the first body and the second body of the second electronic device to switch from a closed state to an open state, that is, automatically controlling the first body and the second body of the second electronic device to have a certain angle through the second signal. Whether the second signal can control the angle between the first body and the second body of the second electronic device to change is not specifically limited.
[0112] After the first electronic device outputs the second signal to the second electronic device, the second electronic device starts and enters a low power consumption mode. In the low power consumption mode, the second electronic device can continue to receive other signals from the first electronic device so as to further detect or directly control the second electronic device based on the other signals from the first electronic device; alternatively, when the second electronic device is in the low power consumption mode, the second electronic device no longer receives the control or detection signal from the first electronic device, but instead directly receives the control or detection from the user, or directly receives the control or detection from the server.
[0113] After the first electronic device detects all second electronic devices connected to the first electronic device based on the status information of at least one second electronic device connected to it, and controls the second electronic devices in the target state to start up and enter the low power consumption mode, the first electronic device no longer has any second electronic devices connected to it that need to be detected. At this time, the first electronic device no longer needs to maintain a higher power consumption state, and therefore, the first electronic device can directly enter the low power consumption mode.
[0114] After the first electronic device enters the low power consumption mode, if it is still necessary to control the second electronic device, the first electronic device may control the second electronic device in the low power consumption mode.
[0115] The data processing method disclosed in this embodiment is as follows: a path is established between a first electronic device and at least one second electronic device; the first electronic device supplies power to at least one second electronic device through the path; in response to a first signal, the state information of at least one second electronic device is obtained through the path, and the first signal indicates that the power supply condition meets the target condition; at least one second electronic device is detected based on the state information; if at least one second electronic device is detected to be in the target state, a second signal is output to at least one second electronic device, so that at least one second electronic device is started and enters a low power consumption mode, and the second electronic device in the target state can operate normally; the first electronic device controls at least one second electronic device in the low power consumption mode. In this scheme, after the first electronic device obtains the state information of at least one second electronic device, it detects it based on the state information. If it is determined that it is currently in the target state, it can control at least one second electronic device to start and enter a low power consumption mode, and further control it when at least one second electronic device is in the low power consumption mode, so as to achieve further detection or control of at least one second electronic device, ensure the accuracy of detection, and improve detection efficiency and control efficiency.
[0116] This embodiment discloses a data processing method, which is applied to a first electronic device, and its flow chart is as follows: Figure 4 As shown, including:
[0117] Step S41: establishing a channel between a first electronic device and at least one second electronic device;
[0118] Step S42: the first electronic device supplies power to at least one second electronic device through the path;
[0119] Step S43, in response to the first signal, obtaining status information of at least one second electronic device through the path, the first signal indicating that the power supply condition meets the target condition;
[0120] Step S44: supplying power to at least one second electronic device based on the status information;
[0121] Step S45: obtaining wireless network configuration information;
[0122] Step S46: Send the wireless network configuration information to at least one second electronic device, so that the at least one second electronic device can use resources of a third electronic device, where the third electronic device is the device pointed to by the wireless network configuration information.
[0123] When there is at least one second electronic device that needs to be detected, a path is established between the first electronic device and the at least one second electronic device, and the first electronic device supplies power to the at least one second electronic device through the path. When the power supply condition meets the target condition, the first electronic device obtains status information of the at least one second electronic device through the path, and detects the at least one second electronic device based on the status information.
[0124] After the first electronic device completes detecting the at least one second electronic device, the at least one second electronic device can be directly controlled to wirelessly connect to the third electronic device, so that the at least one second electronic device can utilize the resources of the third electronic device.
[0125] Specifically, as long as the first electronic device completes the detection of at least one second electronic device, no matter whether the detected second electronic device can operate normally or not, the controller will wirelessly connect to the third electronic device, so as to further detect the second electronic device by using the third electronic device, or control the second electronic device by using the third electronic device;
[0126] Alternatively, it may also be: when the first electronic device completes detection of at least one second electronic device, it determines whether the at least one second electronic device is in a target state, and based on whether the second electronic device is in the target state, it determines whether to control the second electronic device to be wirelessly connected to a third electronic device, wherein the second electronic device in the target state can operate normally.
[0127] If the first electronic device determines that a second electronic device is in the target state, the second electronic device may be controlled to wirelessly connect to a third electronic device so that the second electronic device can utilize resources of the third electronic device, thereby enabling the second electronic device to be upgraded or otherwise manipulated based on the resources of the third electronic device;
[0128] If the first electronic device determines that a second electronic device is not in the target state, there is no need to control the second electronic device to be wirelessly connected to the third electronic device. Only when the second electronic device can operate normally, it is controlled to be wirelessly connected to the third electronic device to further detect or control the second electronic device; or, when the first electronic device determines that a second electronic device is not in the target state, it is also controlled to be wirelessly connected to the third electronic device so that the second electronic device can utilize the resources of the third electronic device, so that the second electronic device can perform further detection based on the resources of the third electronic device to further determine the specific circumstances in which the second electronic device cannot operate normally.
[0129] The first electronic device controls the second electronic device to be wirelessly connected to the third electronic device, which can be specifically as follows: after obtaining the wireless network configuration information, the first electronic device sends the wireless network configuration information to at least one second electronic device, so that the at least one second electronic device can be wirelessly connected to the third electronic device and can utilize the resources of the third electronic device. The third electronic device is the device pointed to by the wireless network configuration information.
[0130] The first electronic device may receive a wireless network UDP packet (User Datagram Protocol) in a monitoring mode and encode it using the UDP length to obtain the wireless network configuration information.
[0131] UDP is a connectionless, datagram-oriented transport layer protocol. After the first electronic device is powered on for the first time, it will enter the network configuration mode to connect to the wireless network. If it is not connected to the network, the first electronic device will monitor the network information transmitted in the air in the network configuration mode. When a UDP broadcast is monitored, it is determined that it complies with the coding rules, and it will decode it to obtain the wireless network identifier and password corresponding to the UDP broadcast, that is, to obtain the wireless network configuration information, so that the first electronic device can communicate with the server.
[0132] After the first electronic device obtains the wireless network configuration information, it can transmit the wireless network configuration information to the second electronic device through the path between the first electronic device and the second electronic device, so that the second electronic device obtains the wireless network configuration information. When the first electronic device transmits the wireless network configuration information to the second electronic device through the path between it and the second electronic device, the wireless network configuration information can be transmitted to the second electronic device through the PD protocol (Power Delivery, charging protocol) or USB protocol of the path.
[0133] When the first electronic device sends the wireless network configuration information to the second electronic device, the second electronic device may be in an unactivated state or in an activated state.
[0134] The first electronic device first supplies power to the second electronic device through the path between the first electronic device and the second electronic device. When the first electronic device supplies power to the second electronic device, the second electronic device is not started and is still in a shutdown state. However, due to the input of electric energy, the power module and the processing module (such as the embedded controller EC) in the second electronic device are in a startup state. At this time, the wireless network configuration information transmitted by the first electronic device can be received, and the processing module controls the second electronic device to wirelessly connect to the third electronic device pointed to by the wireless network configuration information based on the received wireless network configuration information. Alternatively, after receiving the wireless network configuration information, the processing module can control the second electronic device to start up, and after the startup is completed, the second electronic device is controlled to wirelessly connect to the third electronic device pointed to by the wireless network configuration information based on the wireless network configuration information.
[0135] In addition, it can also be: the first electronic device supplies power to the second electronic device through the path between the first electronic device and the second electronic device, and when the power supply condition meets the target condition, the status information of the second electronic device is obtained through the path, so as to detect the second electronic device based on the status information. If the second electronic device is controlled to start based on the detection result, then after the second electronic device is started, it can obtain the wireless network configuration information transmitted by the first electronic device, and control the second electronic device to wirelessly connect to the third electronic device pointed to by the wireless network configuration information based on the wireless network configuration information.
[0136] The third electronic device may be a server or other device pointed to by the wireless network configuration information.
[0137] The data processing method disclosed in this embodiment is as follows: a path is established between a first electronic device and at least one second electronic device; the first electronic device supplies power to at least one second electronic device through the path; in response to a first signal, the state information of at least one second electronic device is obtained through the path, and the first signal indicates that the power supply condition meets the target condition; at least one second electronic device is supplied with power based on the state information; wireless network configuration information is obtained; the wireless network configuration information is sent to at least one second electronic device, so that at least one second electronic device can use the resources of a third electronic device, and the third electronic device is the device pointed to by the wireless network configuration information. In this scheme, after the first electronic device supplies power to the second electronic device through the path between it and at least one second electronic device and obtains the state information of the second electronic device, the second electronic device is detected based on the state information, and after the detection is completed, the first electronic device can send the obtained wireless network configuration information to the second electronic device, so that the second electronic device can be wirelessly connected to the third electronic device based on the wireless network configuration information, so as to realize the automatic control of the wireless network connection of the second electronic device by the first electronic device, so that the second electronic device can realize other detection or control based on the wireless network connection, simplifying the operation process and improving the user experience.
[0138] Furthermore, the data processing method disclosed in this embodiment may also include:
[0139] The wireless network configuration information is sent to other first electronic devices so that after the other first electronic devices obtain the wireless network configuration information, the second electronic device that establishes a channel with the other first electronic devices can use the resources of the third electronic device, and the third electronic device is the device pointed to by the wireless network configuration information.
[0140] After the first electronic device obtains the wireless network configuration information, it can not only send the wireless network configuration information to the second electronic device that has a connection with the first electronic device, so that the second electronic device can obtain the wireless network configuration information, and wirelessly connect to the third electronic device based on the wireless network configuration information to utilize the resources of the third electronic device; the first electronic device can also send the wireless network configuration information to other first electronic devices, so that the second electronic device that has a connection with the other first electronic devices can utilize the resources of the third electronic device.
[0141] Among them, the first electronic device is an electronic device that can establish a channel with at least one second electronic device, supply power to at least one second electronic device through the channel, obtain status information of at least one second electronic device through the channel, and detect at least one second electronic device based on the status information; other first electronic devices are the same as the first electronic device, and are also electronic devices that can establish a channel with at least one second electronic device, supply power to at least one second electronic device through the channel, obtain status information of at least one second electronic device through the channel, and detect at least one second electronic device based on the status information.
[0142] The other first electronic devices are different from the first electronic device in that at least one second electronic device with which a channel is established is different, such as: the first electronic device A1 establishes a channel with the second electronic device B1, establishes a channel with the second electronic device B2, establishes a channel with the second electronic device B3, etc.; the first electronic device A2 establishes a channel with the second electronic device C1, establishes a channel with the second electronic device C2, establishes a channel with the second electronic device C3, etc.
[0143] When a large number of second electronic devices need to be detected, multiple first electronic devices can be set up, each of which can be connected to some of the second electronic devices and detect the second electronic devices connected to it, and different first electronic devices are connected to different second electronic devices.
[0144] like Figure 5 As shown, it is a schematic diagram of the system architecture for implementing the data processing method disclosed in this embodiment, which at least includes: a first electronic device A1, a first electronic device A2, a second electronic device B1, a second electronic device B2, a second electronic device B3, a second electronic device C1, a second electronic device C2 and a second electronic device C3, the first electronic device A1 is connected to the second electronic device B1, the second electronic device B2 and the second electronic device B3 respectively and establishes a path, the first electronic device A2 is connected to the second electronic device C1, the second electronic device C2 and the second electronic device C3 respectively and establishes a path. If the number of second electronic devices increases, the number of first electronic devices can be increased accordingly, Figure 5 As shown, each first electronic device can establish a channel with three second electronic devices. Of course, it can also establish a channel with four second electronic devices or five second electronic devices. This is only an exemplary description and does not limit the number of second electronic devices that can establish a channel with the first electronic device.
[0145] Furthermore, Figure 5The system architecture shown may also include: a third electronic device D, the third electronic device D is the device pointed to by the wireless network configuration information obtained by the first electronic device A1, the first electronic device A1 first obtains the wireless network configuration information, and then sends the wireless network configuration information to the second electronic device B1, the second electronic device B2 and the second electronic device B3 that establish a channel with it, so that the second electronic device B1, the second electronic device B2 and the second electronic device B3 can all establish a wireless connection with the third electronic device D and can use the resources of the third electronic device;
[0146] In addition, the first electronic device A1 can also send wireless network configuration information to other first electronic devices, such as the first electronic device A2. After the first electronic device A2 obtains the wireless network configuration information sent by the first electronic device A1, it sends the wireless network configuration information to the second electronic device C1, the second electronic device C2 and the second electronic device C3 with which a channel is established, so that the second electronic device C1, the second electronic device C2 and the second electronic device C3 can all establish a wireless connection with the third electronic device D and can utilize the resources of the third electronic device to ensure that all second electronic devices can obtain the wireless network configuration information and can establish a wireless connection based on it.
[0147] The first electronic device sending the wireless network configuration information to other first electronic devices may be implemented through a wireless Mesh (wireless network mesh) method.
[0148] This embodiment discloses a data processing method, which is applied to a second electronic device. Figure 6 As shown, including:
[0149] Step S61: A path is established between the second electronic device and the first electronic device, where the path is used for the first electronic device to supply power to the second electronic device;
[0150] Step S62: In response to the first signal, output status information to the first electronic device through the path, so that the first electronic device detects the second electronic device based on the status information, and the first signal indicates that the power supply condition meets the target condition.
[0151] If the second electronic device has not been used for a long time, it is necessary to first detect the second electronic device before using it. When the second electronic device needs to be detected, it can be physically connected to the first electronic device. The first electronic device is a device that can detect the second electronic device. The path between the first electronic device and the second electronic device is established through the physical connection.
[0152] The path between the first electronic device and the second electronic device can transmit signals and also transmit electrical energy. After the path between the first electronic device and the second electronic device is established, the first electronic device directly supplies power to the second electronic device through the path so that the second electronic device can obtain electrical energy, so that the first electronic device can detect the second electronic device.
[0153] When the first electronic device supplies power to the second electronic device through the path, the power supply situation can be monitored to determine whether it meets the target conditions. If the target conditions are not met, the first electronic device continues to supply power to the second electronic device. If the target conditions are met, the subsequent detection process is started.
[0154] Among them, the monitoring of the power supply situation can be performed by the second electronic device or by the first electronic device. If the second electronic device performs the monitoring, it can monitor the amount of power received by the second electronic device and compare the amount of power with the first threshold. If the power supply reaches the first threshold, it is determined that the target condition is met. If the power supply does not reach the first threshold, it can be determined that the target condition is not met; or, it can also be: the second electronic device monitors the duration of the power supply received. If the duration reaches the second threshold, it can be determined that the target condition is met. If the duration does not reach the second threshold, it can be determined that the target condition is not met. The situation in which the first electronic device monitors the power supply situation can be seen in the aforementioned embodiment, and will not be repeated here.
[0155] When it is determined that the power supply condition meets the target condition, a first signal is generated. In response to the first signal, the second electronic device sends the status information of the second electronic device to the first electronic device through the path between the first electronic device and the second electronic device, so that the first electronic device can detect the second electronic device based on the status information of the second electronic device.
[0156] Among them, the status information is information that can characterize the status of each device in the second electronic device. When the power supply condition meets the target condition, the second electronic device can detect the status information of each device inside it, and transmit the detected status information to the first electronic device through the path between the first electronic device and the second electronic device. At this time, the first electronic device no longer powers the second electronic device through the path, but the second electronic device sends the status information of the second electronic device to the first electronic device through the path, so that the first electronic device detects the second electronic device based on the status information, so as to realize the process of automatically completing the detection of the second electronic device through the path between the first electronic device and the second electronic device, without the need for manual operation by the user, thereby simplifying the detection process.
[0157] The data processing method disclosed in this embodiment establishes a path between the second electronic device and the first electronic device, and the path is used for the first electronic device to supply power to the second electronic device; in response to the first signal, status information is output to the first electronic device through the path, so that the first electronic device detects the second electronic device based on the status information, and the first signal indicates that the power supply condition meets the target condition. In this scheme, a path is established between the second electronic device and the first electronic device, and the power supply of the first electronic device to the second electronic device is obtained through the path. When the power supply condition meets the target condition, the status information is output to the first electronic device through the path, so that the first electronic device can detect the second electronic device, thereby achieving the purpose of automatically detecting the second electronic device, without the need for manual operation by the user, simplifying the operation process, and improving the operation experience.
[0158] Furthermore, in the data processing method disclosed in this embodiment, outputting the status information to the first electronic device through the path may be:
[0159] The status information is obtained based on the processing module; the status information is processed based on the power module, and the status information is output to the first electronic device through the path, and the processing includes packaging the status information based on the charging protocol.
[0160] Since the second electronic device is a device that has not been used for a long time, in order to ensure the safety of electricity use and the service life of the second electronic device, there will inevitably be no power supply to the second electronic device, or the battery inside the second electronic device will inevitably be in a low-power state. Therefore, in this case, the second electronic device must be powered first so that the battery in the second electronic device can receive power. When the battery in the second electronic device receives power, the second electronic device can be detected.
[0161] The first electronic device supplies power to the second electronic device through a path between the first electronic device and the second electronic device. When the first electronic device supplies power to the second electronic device, the second electronic device is not started and is still in a shutdown state. However, due to the input of electrical energy, a power module and a processing module (such as an embedded controller EC) in the second electronic device are in a startup state. At this time, the processing module of the second electronic device can detect the state of each component inside the second electronic device to obtain state information.
[0162] Since information is transmitted between the second electronic device and the first electronic device via a path, and the path is a path for power supply, the processing module of the second electronic device cannot directly transmit the status information it obtains to the first electronic device, that is, after the processing module of the second electronic device obtains the status information, the processing module of the second electronic device sends the status information to the power module of the second electronic device, and the power module processes the status information to send the processed status information to the first electronic device through the path between the second electronic device and the first electronic device.
[0163] Among them, the power module processes the status information, which can be: the power module encapsulates the status information based on the charging protocol, and only the information encapsulated by the power module based on the charging protocol can be transmitted to the first electronic device through this path, so that the first electronic device can detect the second electronic device based on the status information.
[0164] Accordingly, information transmitted from the first electronic device to the second electronic device through the path between the first electronic device and the second electronic device also needs to be parsed by the power module of the second electronic device before it can be analyzed and processed.
[0165] That is, the data processing method disclosed in this embodiment may further include:
[0166] The second signal sent by the first electronic device is obtained based on the power module and parsed based on the charging protocol, and the device is started based on the processing module and enters a low power consumption mode.
[0167] After the second electronic device obtains the second signal transmitted by the first electronic device through the path between the first electronic device and the second electronic device, the power module of the second electronic device first receives the second signal passing through the path, and the power module parses the second signal based on the charging protocol, and then sends it to the processing module of the second electronic device, which analyzes and responds to the parsed second signal.
[0168] The second signal is output by the first electronic device when it determines that the second electronic device is in a target state. The second electronic device in the target state can operate normally, that is, the first electronic device detects the state information transmitted by the second electronic device and determines that the second electronic device can operate normally. At this time, the first electronic device outputs the second signal to enable the second electronic device to respond to the second signal, start and enter a low power consumption mode.
[0169] The processing module of the second electronic device receives the parsed second signal, controls the second electronic device to start up, and enters a low power consumption mode.
[0170] In the low power consumption mode, the second electronic device may continue to receive other signals from the first electronic device so as to further detect or directly control the second electronic device based on the other signals from the first electronic device; alternatively, when the second electronic device is in the low power consumption mode, the second electronic device no longer receives the control or detection signal from the first electronic device, but instead the second electronic device itself directly receives the control or detection from the user, or directly receives the control or detection from the server.
[0171] Furthermore, the data processing method disclosed in this embodiment may also include:
[0172] Based on the power module, the wireless network configuration information sent by the first electronic device is obtained, and the wireless network configuration information is parsed based on the charging protocol; based on the processing module, a connection is established with a third electronic device to utilize the resources of the third electronic device; the third electronic device is the device pointed to by the wireless network configuration information.
[0173] The first electronic device can not only supply power to the second electronic device and send a second signal to the second electronic device through the path between the first electronic device and the second electronic device, but also send wireless network configuration information to the second electronic device through the path. The wireless network configuration information is information that enables the second electronic device to wirelessly connect to the third electronic device and utilize the resources of the third electronic device. The third electronic device is the device pointed to by the wireless network configuration information.
[0174] When the first electronic device sends wireless network configuration information to the second electronic device through the path between the first electronic device and the second electronic device, the first electronic device needs to send the wireless network configuration information to the second electronic device through the charging protocol. The power module of the second electronic device receives the wireless network configuration information, first parses it through the charging protocol, and sends the parsed wireless network configuration information to the processing module so that the processing module can analyze and process it.
[0175] After receiving the parsed wireless network configuration information, the processing module may control the second electronic device to establish a connection with the third electronic device based on the parsed wireless network configuration information, so that the second electronic device can use the resources of the third electronic device.
[0176] The data processing method disclosed in this embodiment, after obtaining the information transmitted by the first electronic device through the path between the first electronic device and the second electronic device, first parses the received information through the power module, and then sends it to the processing module for processing after parsing, so as to realize the transmission of data through the path for transmitting electric energy between the first electronic device and the second electronic device, thereby ensuring the detection and further control of the second electronic device when only the power module and the processing module are running, without the need for manual operation by the user, thereby improving efficiency.
[0177] This embodiment discloses an electronic device, and its structural diagram is as follows: Figure 7 As shown, including:
[0178] At least one target interface 71 , a power module 72 and a processor 73 .
[0179] Among them, at least one target interface 71 is used to connect to at least one second electronic device and establish a path with at least one second electronic device;
[0180] The power module 72 is used to supply power to at least one second electronic device through the passage;
[0181] The processor 73 is used to obtain status information of at least one second electronic device through a path in response to a first signal, wherein the first signal indicates that the power supply condition meets the target condition; and detect the at least one second electronic device based on the status information.
[0182] The electronic device disclosed in this embodiment corresponds to the first electronic device in the above embodiment.
[0183] The electronic device disclosed in this embodiment is implemented based on the data processing method disclosed in the above embodiments, which will not be described in detail here.
[0184] The electronic device disclosed in this embodiment includes: at least one target interface, a power module and a processor, the at least one target interface is used to connect at least one second electronic device and establish a path with at least one second electronic device; the power module is used to supply power to at least one second electronic device through the path; the processor is used to obtain state information of at least one second electronic device through the path in response to a first signal, the first signal indicates that the power supply condition meets the target condition; and the at least one second electronic device is detected based on the state information. In this scheme, when at least one second electronic device is detected through an electronic device, if a path is established between the electronic device and at least one second electronic device, the electronic device first supplies power to at least one second electronic device through the path, so that when the power supply condition meets the target condition, the state information of at least one second electronic device is obtained through the path, and the detection of at least one second electronic device is realized based on the state information. In the whole process, no manual operation by the user is required, and power can be supplied to at least one second electronic device to be detected through the path established between the devices, and the state information is transmitted through the same path, so as to realize the automatic detection process and improve the detection efficiency of at least one second electronic device.
[0185] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0186] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0187] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0188] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A data processing method, applied to a first electronic device, comprising: Establishing a path between the first electronic device and at least one second electronic device; The first electronic device supplies power to the at least one second electronic device through the path; In response to a first signal, obtaining status information of the at least one second electronic device through the path, the first signal indicating that the power supply condition meets the target condition; The at least one second electronic device is detected based on the status information.
2. The method according to claim 1, further comprising one of the following: If the power supply of the at least one second electronic device reaches a first threshold, determining that the power supply condition meets the target condition; If the duration for which the first electronic device supplies power to the at least one second electronic device reaches a second threshold, it is determined that the power supply condition meets the target condition.
3. The method according to claim 1, further comprising: If it is detected that the at least one second electronic device is in the target state, output a second signal to the at least one second electronic device to enable the at least one second electronic device to start up and enter a low power consumption mode; The second electronic device in the target state can operate normally; The first electronic device operates the at least one second electronic device in a low power consumption mode.
4. The method according to claim 1, further comprising: Obtain wireless network configuration information; The wireless network configuration information is sent to the at least one second electronic device, so that the at least one second electronic device can use resources of a third electronic device, where the third electronic device is the device pointed to by the wireless network configuration information.
5. The method according to claim 4, further comprising: The wireless network configuration information is sent to other first electronic devices so that after the other first electronic devices obtain the wireless network configuration information, the second electronic device that establishes a channel with the other first electronic devices can use the resources of the third electronic device, and the third electronic device is the device pointed to by the wireless network configuration information.
6. A data processing method, applied to a second electronic device, comprising; A path is established between the second electronic device and the first electronic device, and the path is used for the first electronic device to supply power to the second electronic device; In response to the first signal, status information is output to the first electronic device through the path, so that the first electronic device detects the second electronic device based on the status information, and the first signal indicates that the power supply condition meets the target condition.
7. The method according to claim 6, wherein outputting the status information to the first electronic device through the path comprises: Obtaining the state information based on a processing module; The status information is processed based on a power module, and the status information is output to the first electronic device through the path. The processing includes packaging the status information based on a charging protocol.
8. The method according to claim 6, further comprising: Obtaining based on the power module and parsing based on the charging protocol a second signal sent by the first electronic device; Boot the device and enter low power mode based on the processing module.
9. The method according to claim 6, further comprising: Obtaining wireless network configuration information sent by the first electronic device based on the power module, and parsing the wireless network configuration information based on the charging protocol; A connection is established with a third electronic device based on the processing module to utilize resources of the third electronic device; the third electronic device is the device pointed to by the wireless network configuration information.
10. An electronic device comprising: at least one target interface, used to connect to at least one second electronic device and establish a path with the at least one second electronic device; a power module, configured to supply power to the at least one second electronic device through the passage; a processor, configured to obtain, through the path, state information of the at least one second electronic device in response to a first signal, wherein the first signal indicates that a power supply condition satisfies a target condition; The at least one second electronic device is detected based on the status information.