CN113918417A - A processing method and device - Google Patents
A processing method and device Download PDFInfo
- Publication number
- CN113918417A CN113918417A CN202111166514.0A CN202111166514A CN113918417A CN 113918417 A CN113918417 A CN 113918417A CN 202111166514 A CN202111166514 A CN 202111166514A CN 113918417 A CN113918417 A CN 113918417A
- Authority
- CN
- China
- Prior art keywords
- interface
- enabling
- working mode
- state
- interfaces
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3041—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Information Transfer Systems (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a processing method, a processing device and electronic equipment, wherein the method comprises the following steps: the method comprises the steps that electronic equipment obtains interface performance parameters of processing equipment, wherein the electronic equipment is connected with a second interface of the processing equipment through a first interface, and the interface performance parameters represent the performance parameters of the second interface; determining an operating mode of a third interface set of the electronic device based on the interface performance parameters, wherein the third interface set comprises at least two third interfaces, the third interfaces are used for connecting auxiliary devices, and the auxiliary devices are devices for providing performance and/or function enhancement for the processing device; and controlling the enabling state of each third interface in the third interface set based on the working mode, and outputting enabling indication information, wherein the enabling indication information is used for indicating the third interfaces in different enabling states.
Description
Technical Field
The present application relates to a device power supply technology, and more particularly, to a processing method and apparatus.
Background
At present, due to different hardware configurations or working states of electronic devices, different devices or the same device may have different power supply capacities in different working states, which may cause that when an interface of an electronic device is externally connected to a hub device, a part of interfaces on the hub device may be used, and other parts of interfaces may not be used normally.
However, the user does not know the current power supply capability of the electronic device clearly, and when some interfaces on the hub device are found to be unavailable, it is not clear what reason is that the hub device cannot be used normally, so that trouble is brought to the user.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
a method of processing, comprising:
the method comprises the steps that electronic equipment obtains interface performance parameters of processing equipment, wherein the electronic equipment is connected with a second interface of the processing equipment through a first interface, and the interface performance parameters represent the performance parameters of the second interface;
determining an operating mode of a third interface set of the electronic device based on the interface performance parameters, wherein the third interface set comprises at least two third interfaces, the third interfaces are used for connecting auxiliary devices, and the auxiliary devices are devices for providing performance and/or function enhancement for the processing device;
and controlling the enabling state of each third interface in the third interface set based on the working mode, and outputting enabling indication information, wherein the enabling indication information is used for indicating the third interfaces in different enabling states.
Optionally, the controlling the enable state of each third interface in the third interface set based on the operating mode, and outputting enable indication information includes:
and controlling the enabling state of each third interface in the third interface set based on the working mode, and sending enabling indication information to the processing equipment.
Optionally, the electronic device includes an output device, each third interface has a unique corresponding identifier, and the controlling the enable state of each third interface in the third interface set based on the operating mode and outputting enable indication information includes:
controlling an enable state of each third interface in the third set of interfaces based on the operating mode;
and controlling the output device to output the identification of the third interface in different enabling states.
Optionally, each third interface has a corresponding indication device, and the controlling the enable state of each third interface in the third interface set based on the operating mode and outputting enable indication information includes:
and controlling the enabling state of each third interface in the third interface set and controlling the indicating device corresponding to each third interface based on the working mode, so that the enabling indicating mode is different from the non-enabling indicating mode.
Optionally, determining an operating mode of a third interface set of the electronic device based on the interface performance parameter includes:
determining a working mode set of a third interface set of the electronic equipment based on the interface performance parameters, wherein the working mode set comprises at least one working mode;
determining a target working mode from the working mode set;
controlling the enabling state of each third interface in the third interface set based on the working mode and outputting enabling indication information, including:
and controlling the enabling state of each third interface in the third interface set based on the target working mode, and outputting enabling indication information.
Optionally, the determining a target working mode from the working mode set includes:
and determining a target working mode from the working mode set based on preset configuration and/or historical use information.
Optionally, after the target working mode is determined from the working mode set, the method further includes:
acquiring an interface selection signal which is triggered by a user and aims at a target third interface, wherein the interface selection signal represents an enabling state for switching the third interface;
and selecting a new target working mode from the working mode set based on the interface selection signal, wherein in the new target working mode, the enabling state of the target third interface represents that the target third interface is in an available state.
Optionally, the determining an operating mode of a third interface set of the electronic device based on the interface performance parameter includes:
and determining the working mode of the third interface set based on the preset corresponding relation between the interface performance and the working mode and the interface performance parameters.
Optionally, the obtaining, by the electronic device, the interface performance parameter of the processing device includes:
the electronic equipment obtains a functional standard and an electrical parameter standard of an interface of the processing equipment;
in the case that the function standard characterizes that the interface of the processing device has a first function, an enabling state of a third interface corresponding to the first function in the working mode characterizes that it is in an available state;
in a case where the function standard characterizes that the interface of the processing device does not have a first function, an enabled state of the third interface corresponding to the first function in the operating mode characterizes that it is in an unavailable state.
A processing apparatus, comprising:
the electronic equipment is connected with a second interface of the processing equipment through the first interface, and the interface performance parameters represent the performance parameters of the second interface;
a mode determination module, configured to determine an operating mode of a third interface set of the electronic device based on the interface performance parameters, where the third interface set includes at least two third interfaces, and the third interfaces are used for connecting an auxiliary device, and the auxiliary device is a device for providing performance and/or functionality enhancement to the processing device;
and the state control module is used for controlling the enabling state of each third interface in the third interface set based on the working mode and outputting enabling indication information, wherein the enabling indication information is used for indicating the third interfaces in different enabling states.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is an exemplary diagram of a hub device;
FIG. 2 is a flow chart of a processing method disclosed in an embodiment of the present application;
FIG. 3 is a diagram illustrating an example of local display output enable indication disclosed in an embodiment of the present application;
FIG. 4 is an exemplary diagram of indicator light indication enabling indication information as disclosed in an embodiment of the present application;
FIG. 5 is a flow chart of another processing method disclosed in embodiments of the present application;
FIG. 6 is a flow chart illustrating a handoff enable state disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a processing apparatus according to an embodiment of the present disclosure.
Detailed Description
For the sake of reference and clarity, the descriptions, abbreviations or abbreviations of the technical terms used hereinafter are summarized as follows:
USB Type-C: USB is an abbreviation of Universal Serial Bus, the Chinese name of USB is Universal Serial Bus, is an external Bus standard, is used for standardizing the connection and communication between a computer and external equipment, and is an interface technology applied to the field of PC; USB-C refers to USB Type-C, which is a category in USB interfaces.
PD: PowerDelivery, a standard for supplying 100W of power using a USB interface, is intended to provide a more powerful power charging scheme for users.
DP: DisplayPort, display interface.
SDP: standard downlink Port, Standard downlink interface.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The electronic device according to the embodiment of the present application may be a hub device, such as a docking station, that is, a port replicator, and generally exists as an external device of a device such as a notebook computer and a desktop computer, and may enable the notebook computer to be conveniently connected to a plurality of accessories or external devices (such as a power adapter, a network cable, a mouse, an external keyboard, a printer, an external display, and the like) in a one-stop manner by replicating or even expanding a port of the notebook computer. For convenience of understanding, in the following embodiments, a hub device will be taken as an example for related description.
Since the hub device can be connected to a plurality of external devices, it itself includes a number of interfaces as shown in fig. 1. In the working state, the hub device needs to be connected with a processing device, and the hub device works by the electric quantity provided by the processing device and supplies power to all or part of the expansion interfaces, so that all or part of the expansion interfaces can supply power to the corresponding external devices. The expansion interface is an interface for supplying power to other external devices by the hub device. In some scenarios where only a part of the extension interfaces of the hub device can be used, the user often does not determine which interfaces of the hub device can be used and which interfaces cannot be used; if a certain expansion interface of the hub device cannot be used normally, a user does not know whether the current interface is not supported or the hub device fails, thereby bringing great trouble to the user. Based on this, the technical scheme of this application is proposed.
Fig. 2 is a flowchart of a processing method disclosed in an embodiment of the present application, and referring to fig. 1, the processing method may include:
step 201: the electronic device obtains interface performance parameters of the processing device.
The electronic equipment is connected with a second interface of the processing equipment through the first interface, and the interface performance parameters represent the performance parameters of the second interface.
The first interface and the second interface may be, but are not limited to, interfaces supporting a PD protocol, such as a USB Type-C interface. In implementation, after the electronic device is connected with the processing device, the electronic device can communicate with the processing device through the first interface and the second interface to know performance support which can be currently provided by the processing device, so as to determine the working mode of the electronic device subsequently. Wherein the performance support that the processing device is capable of providing may be, but is not limited to, characterizing which functions are supported by the interface, which functions are not supported, electrical parameters that can be provided, and the like.
Step 202: an operating mode of a third set of interfaces of the electronic device is determined based on the interface performance parameters.
Wherein the third set of interfaces comprises at least two third interfaces for connecting auxiliary devices, the auxiliary devices being devices for providing performance and/or functionality enhancements to the processing device.
The third interface is different from the first interface, the first interface is an interface for connecting the electronic equipment and the processing equipment, and a user of the first interface transmits electric energy into the electronic equipment in the normal working state of the electronic equipment; the third interface may be understood as the aforementioned expansion interface, that is, the electronic device is connected to the external device through the third interface, and supplies power to the external device through the third interface.
The third interface set has different working modes, and under different working modes, the enabling states of the third interfaces included in the third interface set are different or not completely the same. For example, in the first operating mode, the a interface is available, the B interface is available, and the C interface is unavailable; in the second working mode, the A interface is available, the B interface is unavailable and the C interface is available.
Specifically, the determining the operating mode of the third interface set of the electronic device based on the interface performance parameter may include: and determining the working mode of the third interface set based on the preset corresponding relation between the interface performance and the working mode and the interface performance parameters.
Step 203: and controlling the enabling state of each third interface in the third interface set based on the working mode, and outputting enabling indication information.
Wherein the enabling indication information is used for indicating a third interface in different enabling states.
After the working mode of the third interface set is determined, the working state of each third interface can be directly controlled based on the determined working mode, so that the third interfaces capable of working normally and the third interfaces incapable of being used in the third interface set completely correspond to the working mode.
The enabling indication information can indicate which third interfaces of the third set of interfaces are in an available state and/or which third interfaces are in an unavailable state.
According to the processing method, after the electronic device is connected with the processing device, the electronic device communicates with the processing device to determine the interface performance parameters of the processing device, and determines which interfaces can be used and which cannot be used based on the interface performance parameters, so that indication information indicating whether each interface can be used is given, a user can know the current working capacity of the electronic device conveniently, and related work is arranged reasonably.
In the above embodiments, different implementations may be used to control the enable state of each third interface in the third interface set and output the enable indication information. For example, in one implementation, the controlling the enable state of each third interface in the third interface set based on the operating mode and outputting enable indication information includes: and controlling the enabling state of each third interface in the third interface set based on the working mode, and sending enabling indication information to the processing equipment.
In this implementation, after the enable indication information is obtained, the enable indication information is not locally output, but is sent to the processing device, so that the processing device outputs the enable indication information. The manner in which the processing device outputs the enable indication information may be determined based on its hardware configuration. For example, the processing device is a notebook computer, and the processing device can display and output the enabling indication information on a display screen of the processing device, so that a user can directly know the working state of each third interface in the electronic device through the display screen, and reasonably arrange corresponding work.
In another implementation, the electronic device including an output device, each third interface having a unique corresponding identifier, the controlling the enabling state of each third interface in the third interface set based on the operating mode and outputting enabling indication information may include: controlling an enable state of each third interface in the third set of interfaces based on the operating mode; and controlling the output device to output the identification of the third interface in different enabling states.
In case the electronic device comprises an output means, the enable indication information may be output locally directly. In this implementation, each third interface has a unique identifier, so that the identifiers of the third interfaces in different enabled states can be output in the local output device. Wherein the output device may be, but is not limited to, a display screen, a speaker, etc. Fig. 3 is an exemplary diagram of output enable indication information of a local display disclosed in an embodiment of the present application, where different third interfaces have different identifiers, where an identifier in a selected state (with a square box) corresponds to an available third interface, and an identifier not in the selected state corresponds to an unavailable third interface. Of course, the presentation manner of the identifier of the third interface in different enabled states is not limited to the above presentation manner, for example, in some implementations, the enabled state of the third interface displayed by the display screen may also be that the identifier of the usable third interface and the identifier of the unusable third interface are separately displayed at different display positions.
In yet another implementation, each third interface has a corresponding indication device, and the controlling the enable state of each third interface in the third interface set based on the operating mode and outputting enable indication information may include: and controlling the enabling state of each third interface in the third interface set and controlling the indicating device corresponding to each third interface based on the working mode, so that the enabling indicating mode is different from the non-enabling indicating mode.
For example, the indication lamps corresponding to the third interfaces are visible on the housing of the electronic device, and after the enabling information is output, the indication lamps of the usable third interfaces turn green, while the indication lamps of the unusable third interfaces do not light or show red. Fig. 4 is an exemplary diagram of indication enabling indication information of an indicator light disclosed in an embodiment of the present application, where colors of the indicator lights are different, which indicates that enabling states corresponding to a third interface are different. Alternatively, in another implementation, only the indicator light of the unusable third interface may be turned on, and the indicator light of the usable third interface may be turned off. In the implementation that the indicator lights of the usable and unusable third interfaces are both turned on, the third interfaces of different enabling states can be distinguished by different colors, flashing frequencies, brightness, and the like.
Fig. 5 is a flowchart of another processing method disclosed in an embodiment of the present application, and with reference to fig. 5, the processing method may include:
step 501: the electronic device obtains interface performance parameters of the processing device.
The electronic equipment is connected with a second interface of the processing equipment through the first interface, and the interface performance parameters represent the performance parameters of the second interface.
Step 502: determining an operating mode set of a third interface set of the electronic device based on the interface performance parameters, wherein the operating mode set comprises at least one operating mode.
In case of a performance parameter determination of the processing device, it may correspond to different operating modes, where in the different operating modes there is a difference in the enabling state of the at least one third interface.
The electronic equipment has a matched working truth table, wherein information of different enabling states of third interfaces of some electronic equipment, which can be met by performance parameters of some processing equipment, is recorded. In an implementation, after the performance parameters of the processing device are determined, the operating mode supported by the electronic device may be determined based on the operating truth table.
Table 1 is an example of a truth table of an electronic device, where the first column is the host (corresponding processing device) USB-C port capability, and the following columns indicate the power consumption requirements of different third interfaces of the electronic device that can be supported under the host USB-C port capability condition corresponding to the first column. The implementation of the present application can be understood in conjunction with table 1.
TABLE 1 truth table for electronic device operation
After step 502, the process proceeds to step 503.
Step 503: and determining a target working mode from the working mode set.
When the interface performance parameters of the processing device can satisfy a plurality of working modes of the electronic device, a target working mode needs to be determined from the plurality of working modes, and the enabling state of each third interface is controlled according to the target working mode.
Step 504: and controlling the enabling state of each third interface in the third interface set based on the target working mode, and outputting enabling indication information.
In this embodiment, under the condition that the interface performance parameters can support multiple working modes of the electronic device, the target working mode needs to be determined from the multiple working modes, so that the electronic device can control the enabling state of each third interface in time according to the target working mode, and provide services for the user.
Wherein, the determining the target working mode from the working mode set may include: and determining a target working mode from the working mode set based on preset configuration and/or historical use information.
For example, if it is determined in the preset configuration that the function of the display interface is preferentially ensured to be available when the electronic device is operating, the limited selection of the available operation mode of the display interface is required when the target operation mode is determined. Or determining the possible use will of the user according to the historical use habit of the user, thereby determining the target working mode. For example, the hub device includes 6 interfaces, i.e., interface a, interface B, interface C, interface D, interface E, and interface F, and determines that it supports two operation modes based on the performance parameters of the interfaces, where A, B, C, D is available and E, F is not available in one operation mode; in another mode of operation, the A, D, E, F interface is available and the B, C interface is not available; if it is detected that the user has used the interface a and the interface F frequently in the past, the second operation mode is determined as the target operation mode. Of course, it can be understood that the above two implementation manners may also be used in combination based on a certain combination rule to better meet the user requirement.
Fig. 6 is a flowchart of a switching enable state disclosed in an embodiment of the present application, and with reference to fig. 6, on the basis of the disclosure of the foregoing embodiment, after determining a target working mode from the working mode set, the method may further include:
step 601: and obtaining an interface selection signal which is triggered by a user and aims at the target third interface, wherein the interface selection signal represents the enabling state of switching the third interface.
In some cases, after the system automatically determines the target working mode, if the user finds that the target third interface which the user wants to use is in an unavailable state, the system can actively trigger the switching of the enabled state, so that the electronic device preferentially meets the working requirement of the target third interface.
The user may have different implementations for triggering the interface selection signal for the target third interface. For example, in the case where the electronic device has a display screen, the user may select the interface selection signal of the switching-target third interface by means of touch or key input. For another example, each third interface corresponds to a separate enable switch button, and the user can press the button of the target third interface to trigger the switch of the target third interface selection signal.
Step 602: and selecting a new target working mode from the working mode set based on the interface selection signal, wherein in the new target working mode, the enabling state of the target third interface represents that the target third interface is in an available state.
After the user triggers the interface selection signal for the target third interface, the target third interface can be switched from the non-enabled state to the enabled state, and the use requirement of the user is further met. In the embodiment, under the condition that the target working mode cannot meet the requirements of the user, the active switching of the working modes of the electronic equipment can be further completed according to the user operation, so that the design is more humanized.
In the above embodiment, the obtaining, by the electronic device, the interface performance parameter of the processing device may include: the electronic equipment obtains a functional standard and an electrical parameter standard of an interface of the processing equipment; in the case that the function standard characterizes that the interface of the processing device has a first function, an enabling state of a third interface corresponding to the first function in the working mode characterizes that it is in an available state; in a case where the function standard characterizes that the interface of the processing device does not have a first function, an enabled state of the third interface corresponding to the first function in the operating mode characterizes that it is in an unavailable state.
It is to be understood that, in a case where the functional standard characterizes that the interface of the processing device has the first function, an enabled state of a third interface corresponding to the first function in the operating mode of the electronic device may be an available state; and under the condition that the interface of the processing device is characterized by the functional standard not having the first function, even if the electronic device has the capability of supplying power to the third interface corresponding to the first function, the third interface corresponding to the first function in the electronic device cannot provide corresponding service for the user due to the processing device interface. For example, the electronic device includes a first protocol interface, and the second interface of the processing device does not support the first protocol, so that even if the electronic device is capable of supplying power to the first protocol interface, the first protocol file on the user device cannot be transferred to the processing device after power is supplied.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
The method is described in detail in the embodiments disclosed in the present application, and the method of the present application can be implemented by various types of apparatuses, so that an apparatus is also disclosed in the present application, and the following detailed description is given of specific embodiments.
Fig. 7 is a schematic structural diagram of a processing device according to an embodiment of the disclosure, and referring to fig. 7, the processing device 70 may include:
a parameter obtaining module 701, configured to obtain an interface performance parameter of a processing device, where the electronic device is connected to a second interface of the processing device through a first interface, and the interface performance parameter represents a performance parameter of the second interface.
A mode determining module 702, configured to determine an operating mode of a third interface set of the electronic device based on the interface performance parameters, where the third interface set includes at least two third interfaces, and the third interfaces are used for connecting an auxiliary device, and the auxiliary device is a device for providing performance and/or functionality enhancement to the processing device.
A state control module 703, configured to control an enable state of each third interface in the third interface set based on the working mode, and output enable indication information, where the enable indication information is used to indicate the third interfaces in different enable states.
In the processing apparatus of this embodiment, after the electronic device is connected to the processing device, the electronic device communicates with the processing device to determine the interface performance parameters of the processing device, and determines which interfaces can be used and which cannot be used based on the interface performance parameters, so as to provide indication information indicating whether each interface can be used, thereby facilitating a user to know the current working capability of the electronic device and reasonably arrange related work.
In one implementation, the state control module is specifically configured to: and controlling the enabling state of each third interface in the third interface set based on the working mode, and sending enabling indication information to the processing equipment.
In one implementation, the electronic device includes an output device, each third interface has a unique corresponding identifier, and the state control module is specifically configured to: controlling an enable state of each third interface in the third set of interfaces based on the operating mode; and controlling the output device to output the identification of the third interface in different enabling states.
In one implementation, each third interface has a corresponding indication device, and the state control module is specifically configured to: and controlling the enabling state of each third interface in the third interface set and controlling the indicating device corresponding to each third interface based on the working mode, so that the enabling indicating mode is different from the non-enabling indicating mode.
In one implementation, the mode determination module is specifically operable to: determining a working mode set of a third interface set of the electronic equipment based on the interface performance parameters, wherein the working mode set comprises at least one working mode; and determining a target working mode from the working mode set. The state control module may be operable to: and controlling the enabling state of each third interface in the third interface set based on the target working mode, and outputting enabling indication information.
In one implementation, determining a target operating mode from the operating mode set may include: and determining a target working mode from the working mode set based on preset configuration and/or historical use information.
In one implementation, the processing device further includes: the enabling switching module is used for acquiring an interface selection signal which is triggered by a user and aims at a target third interface, and the interface selection signal represents an enabling state for switching the third interface; and selecting a new target working mode from the working mode set based on the interface selection signal, wherein in the new target working mode, the enabling state of the target third interface represents that the target third interface is in an available state.
In one implementation, the mode determination module is specifically operable to: and determining the working mode of the third interface set based on the preset corresponding relation between the interface performance and the working mode and the interface performance parameters.
In one implementation, the parameter obtaining module is specifically configured to: the electronic equipment obtains a functional standard and an electrical parameter standard of an interface of the processing equipment; in the case that the function standard characterizes that the interface of the processing device has a first function, an enabling state of a third interface corresponding to the first function in the working mode characterizes that it is in an available state; in a case where the function standard characterizes that the interface of the processing device does not have a first function, an enabled state of the third interface corresponding to the first function in the operating mode characterizes that it is in an unavailable state.
The processing apparatus in any of the above embodiments includes a processor and a memory, where the parameter obtaining module, the mode determining module, the state control module, the enabling switching module, and the like in the above embodiments are stored in the memory as program modules, and the processor executes the program modules stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program module from the memory. The kernel can be provided with one or more, and the processing of the return visit data is realized by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present application provides a storage medium on which a program is stored, which when executed by a processor implements the processing method described in the above embodiment.
The embodiment of the present application provides a processor, where the processor is configured to execute a program, where the program executes the processing method described in the foregoing embodiment when running.
Further, the present embodiment provides an electronic device, which includes a processor and a memory. Wherein the memory is used for storing executable instructions of the processor, and the processor is configured to execute the processing method described in the above embodiment via executing the executable instructions.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method of processing, comprising:
the method comprises the steps that electronic equipment obtains interface performance parameters of processing equipment, wherein the electronic equipment is connected with a second interface of the processing equipment through a first interface, and the interface performance parameters represent the performance parameters of the second interface;
determining an operating mode of a third interface set of the electronic device based on the interface performance parameters, wherein the third interface set comprises at least two third interfaces, the third interfaces are used for connecting auxiliary devices, and the auxiliary devices are devices for providing performance and/or function enhancement for the processing device;
and controlling the enabling state of each third interface in the third interface set based on the working mode, and outputting enabling indication information, wherein the enabling indication information is used for indicating the third interfaces in different enabling states.
2. The processing method according to claim 1, wherein the controlling the enabling state of each third interface in the third interface set based on the operating mode and outputting enabling indication information comprises:
and controlling the enabling state of each third interface in the third interface set based on the working mode, and sending enabling indication information to the processing equipment.
3. The processing method according to claim 1, wherein the electronic device comprises an output device, each third interface has a unique corresponding identifier, and the controlling the enabling state of each third interface in the third interface set based on the operating mode and outputting enabling indication information comprises:
controlling an enable state of each third interface in the third set of interfaces based on the operating mode;
and controlling the output device to output the identification of the third interface in different enabling states.
4. The processing method according to claim 1, wherein each third interface has a corresponding indication device, and the controlling the enable state of each third interface in the third interface set based on the operating mode and outputting enable indication information comprises:
and controlling the enabling state of each third interface in the third interface set and controlling the indicating device corresponding to each third interface based on the working mode, so that the enabling indicating mode is different from the non-enabling indicating mode.
5. The processing method of claim 1, determining an operating mode of a third set of interfaces of the electronic device based on the interface performance parameters, comprising:
determining a working mode set of a third interface set of the electronic equipment based on the interface performance parameters, wherein the working mode set comprises at least one working mode;
determining a target working mode from the working mode set;
controlling the enabling state of each third interface in the third interface set based on the working mode and outputting enabling indication information, including:
and controlling the enabling state of each third interface in the third interface set based on the target working mode, and outputting enabling indication information.
6. The processing method of claim 5, wherein said determining a target operating mode from the set of operating modes comprises:
and determining a target working mode from the working mode set based on preset configuration and/or historical use information.
7. The processing method according to claim 5, further comprising, after said determining a target operating mode from said set of operating modes:
acquiring an interface selection signal which is triggered by a user and aims at a target third interface, wherein the interface selection signal represents an enabling state for switching the third interface;
and selecting a new target working mode from the working mode set based on the interface selection signal, wherein in the new target working mode, the enabling state of the target third interface represents that the target third interface is in an available state.
8. The processing method of claim 1, wherein determining an operating mode of a third set of interfaces of an electronic device based on the interface performance parameters comprises:
and determining the working mode of the third interface set based on the preset corresponding relation between the interface performance and the working mode and the interface performance parameters.
9. The processing method of claim 1, the electronic device obtaining interface performance parameters of a processing device, comprising:
the electronic equipment obtains a functional standard and an electrical parameter standard of an interface of the processing equipment;
in the case that the function standard characterizes that the interface of the processing device has a first function, an enabling state of a third interface corresponding to the first function in the working mode characterizes that it is in an available state;
in a case where the function standard characterizes that the interface of the processing device does not have a first function, an enabled state of the third interface corresponding to the first function in the operating mode characterizes that it is in an unavailable state.
10. A processing apparatus, comprising:
the electronic equipment is connected with a second interface of the processing equipment through the first interface, and the interface performance parameters represent the performance parameters of the second interface;
a mode determination module, configured to determine an operating mode of a third interface set of the electronic device based on the interface performance parameters, where the third interface set includes at least two third interfaces, and the third interfaces are used for connecting an auxiliary device, and the auxiliary device is a device for providing performance and/or functionality enhancement to the processing device;
and the state control module is used for controlling the enabling state of each third interface in the third interface set based on the working mode and outputting enabling indication information, wherein the enabling indication information is used for indicating the third interfaces in different enabling states.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111166514.0A CN113918417B (en) | 2021-09-30 | 2021-09-30 | A processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111166514.0A CN113918417B (en) | 2021-09-30 | 2021-09-30 | A processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113918417A true CN113918417A (en) | 2022-01-11 |
| CN113918417B CN113918417B (en) | 2025-01-21 |
Family
ID=79238037
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111166514.0A Active CN113918417B (en) | 2021-09-30 | 2021-09-30 | A processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113918417B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120225621A1 (en) * | 2011-03-01 | 2012-09-06 | O2Micro, Inc. | Electronic device with the function of supporting multiple cards |
| CN103126314A (en) * | 2013-02-05 | 2013-06-05 | 湖北窗口科技有限公司 | Table top concentrator |
| CN206041143U (en) * | 2016-08-15 | 2017-03-22 | 东莞市长铭电子有限公司 | Luminous unlimited USB line of expanding of interface |
| CN108536627A (en) * | 2018-03-30 | 2018-09-14 | 联想(北京)有限公司 | The control method and electronic equipment of electronic equipment |
| CN110012089A (en) * | 2019-03-29 | 2019-07-12 | 联想(北京)有限公司 | A kind of control method and electronic equipment |
-
2021
- 2021-09-30 CN CN202111166514.0A patent/CN113918417B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120225621A1 (en) * | 2011-03-01 | 2012-09-06 | O2Micro, Inc. | Electronic device with the function of supporting multiple cards |
| CN103126314A (en) * | 2013-02-05 | 2013-06-05 | 湖北窗口科技有限公司 | Table top concentrator |
| CN206041143U (en) * | 2016-08-15 | 2017-03-22 | 东莞市长铭电子有限公司 | Luminous unlimited USB line of expanding of interface |
| CN108536627A (en) * | 2018-03-30 | 2018-09-14 | 联想(北京)有限公司 | The control method and electronic equipment of electronic equipment |
| CN110012089A (en) * | 2019-03-29 | 2019-07-12 | 联想(北京)有限公司 | A kind of control method and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113918417B (en) | 2025-01-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9727111B2 (en) | Control device for current switching and electronic device | |
| US8473666B2 (en) | Systems and methods for driverless operation of USB device | |
| CN101615123A (en) | Method for guiding mobile terminal operating system and mobile terminal | |
| KR200489179Y1 (en) | Computer efficiency control device | |
| US11283689B2 (en) | Method for managing multiple servers and device employing method | |
| EP3098705B1 (en) | Information processing apparatus, control method of information processing apparatus, and computer program | |
| TW201435737A (en) | Electronic device with function of sharing operating system, system and method for sharing operating system | |
| US11055107B2 (en) | Electronic apparatus and method of executing application program | |
| EP3598299A2 (en) | Method, apparatus, and device for processing driver on terminal device side | |
| US20140282058A1 (en) | Electronic device with a funiction of applying applications of different operating systems, system and method thereof | |
| CN107111568A (en) | Systems and methods for presenting driver installation files when a USB device is enabled | |
| CN113918417A (en) | A processing method and device | |
| TW201232341A (en) | Mouse and method for establishing communication between the mouse and a computer | |
| CN104050020A (en) | Electronic device, system and method with shared control function of operating system | |
| JPH08339295A (en) | Operating system starting method and operating system starting device | |
| TWI480801B (en) | Method of installing the instant-on operation system | |
| CN101465963B (en) | Camera head, computer and network call implementing method | |
| CN115729388A (en) | The status bar shows the control method, device, computer equipment and storage medium | |
| US10445023B2 (en) | Communication apparatus and memory card, communication method, and non-transitory computer readable medium | |
| CN108108282B (en) | Information processing method and device and electronic equipment | |
| CN107515746B (en) | Power-on initialization method, device, electronic device and computer storage medium | |
| CN118034813A (en) | Processing method and device | |
| WO2021221602A1 (en) | Firmware functions triggered by external devices | |
| JP2019186878A (en) | Wireless LAN access point device | |
| CN114816902A (en) | Disk identification method and electronic equipment |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |