Electronic equipment and control method

文档序号:105094 发布日期:2021-10-15 浏览:34次 中文

阅读说明:本技术 一种电子设备和控制方法 (Electronic equipment and control method ) 是由 戚宇 杨子户 于 2021-07-27 设计创作,主要内容包括:本申请公开一种电子设备和控制方法,本申请在电子设备中增设了与数据接口、桥接部件及主控部件分别相连的交换装置,并配置增设的交换装置在外接设备为主端设备的情况下,接通与桥接部件间的电连接,断开与主控部件间的电连接,在外接设备为从端设备的情况下,接通与主控部件间的电连接,断开与桥接部件间的电连接。通过增设该交换装置,并对其进行上述的功能配置及与其他各部件间的连接关系设计,电子设备的数据接口不仅支持具备处理器系统的主端设备的接入,还支持未具备处理器系统的从端设备的接入。(The application discloses an electronic device and a control method, wherein an exchange device which is respectively connected with a data interface, a bridging component and a main control component is additionally arranged in the electronic device, the additionally arranged exchange device is configured to be connected with the bridging component and disconnected with the main control component under the condition that an external device is a main-end device, and the external device is a slave-end device, connected with the main control component and disconnected with the bridging component. By adding the switching device and performing the above function configuration and the design of connection relationship with other components, the data interface of the electronic device supports not only the access of the master device with the processor system but also the access of the slave device without the processor system.)

1. An electronic device, comprising:

the data interface is used for accessing the external equipment; the external equipment is master end equipment with a processor system or slave end equipment without the processor system;

the switching device is connected with the data interface;

the bridging component is connected with the data interface through the exchange device and is used for bridging the interactive data when the electronic equipment performs data interaction with the main-end equipment through the data interface;

the main control component is connected with the bridging component and the exchange device and at least used for controlling data interaction between the electronic equipment and the external equipment;

the switching device is configured to:

under the condition that the external equipment is the main-end equipment, the electric connection between the external equipment and the bridging component is connected, and the electric connection between the external equipment and the main control component is disconnected;

and under the condition that the external equipment is the slave end equipment, the electric connection between the external equipment and the main control component is connected, and the electric connection between the external equipment and the bridging component is disconnected.

2. The electronic device of claim 1, wherein:

the data interface is a universal serial bus interface;

the switching device is a universal serial bus switch;

the bridging component is a universal serial bus main end bridging chip;

the main control unit is a platform controller center.

3. The electronic device of claim 1, wherein the bridge component is connected to a data subinterface of the data interface via the switching means;

the bridging component is directly connected with a power supply sub-interface of the data interface;

the bridge component further configured to:

identifying the equipment type of the external equipment accessed to the data interface by detecting the input level signal of the power supply sub-interface; and sending a control command matching the identified device type to the switching apparatus.

4. The electronic device according to claim 3, wherein the bridge component, when identifying the device type of the external device accessing the data interface by detecting the input level signal of the power supply sub-interface, is specifically configured to:

if the power supply sub-interface is detected to have an input level signal with a first threshold value, identifying the external equipment as main-end equipment;

and if the input level signal of the second threshold value of the power supply sub-interface is detected, identifying the external equipment as the slave end equipment.

5. The electronic device of claim 3, wherein the switching device is specifically configured to:

receiving a control instruction sent by the bridging component;

under the condition that the control instruction is a first control instruction matched with the type of the main-end equipment, the electric connection between the bridge component and the main control component is connected, and the electric connection between the main control component and the bridge component is disconnected;

and under the condition that the control instruction is a second control instruction matched with the type of the slave end equipment, connecting the control instruction with the main control component, and disconnecting the control instruction from the bridge component.

6. The electronic device of claim 1, wherein the master control unit is specifically configured to:

under the condition that the external equipment is the main equipment, sending data in a slave format to the bridging component, or receiving the data in the slave format sent by the bridging component, so as to perform data interaction with the external main equipment through bridging processing of the bridging component;

and when the external equipment is slave end equipment, sending the data in the slave end format to the slave end equipment sequentially through the exchange device and the data interface, or receiving the data in the slave end format sent by the slave end equipment sequentially through the data interface and the exchange device.

7. The electronic device of claim 6, wherein the bridge component, when performing bridge processing on the interactive data, is specifically configured to:

under the condition that the electronic equipment sends data to external main-end equipment, encoding first data in a slave-end format sent by a main control unit into first data in a main-end format, and sending the first data in the main-end format to the main-end equipment through the exchange device and the data interface in sequence;

when the electronic device receives data sent by the master device, the second data in the master format sent by the master device is obtained sequentially through the data interface and the switching device, the second data in the master format is decoded into second data in the slave format, and the second data in the slave format is sent to the master control unit.

8. A control method, comprising:

determining the device type of an external device accessed by a data interface of the electronic device;

under the condition that the external equipment is main-end equipment with a processor system, controlling a main control component of the electronic equipment to perform bridging processing on data through a bridging component of the electronic equipment, and performing data interaction with the data interface so as to perform data interaction with the main-end equipment through the data interface;

and under the condition that the external equipment is slave end equipment without a processor system, controlling a main control unit of the electronic equipment to directly perform data interaction with the data interface so as to perform data interaction with the slave end equipment through the data interface.

9. The method of claim 8, wherein the determining a device type of an external device connected to a data interface of the electronic device comprises:

and detecting an input level signal of a power supply sub-interface of the data interface by using the bridging component, and identifying the equipment type of the external equipment accessed to the data interface based on the detected input level signal.

10. The method of claim 9, wherein the controlling of the master control component of the electronic device to perform data interaction with the data interface through bridge processing of data by the bridge component of the electronic device comprises:

connecting the electric connection between a switching device of the electronic equipment and the bridging component, and disconnecting the electric connection between the switching device and the main control component;

the main control unit for controlling the electronic equipment directly performs data interaction with the data interface, and the method comprises the following steps: connecting the electric connection between the exchange device and the main control unit and disconnecting the electric connection between the exchange device and the bridge component;

the main control unit is connected with the bridging unit, and the exchange device is connected with the data interface.

Technical Field

The present application belongs to the field of control technologies, and in particular, to an electronic device and a control method.

Background

Some current devices (e.g., computer devices) having a processor system have a USB (Universal Serial Bus) data forwarding function, and a USB host bridge (USB host bridge chip) can be respectively used on two devices to implement USB data forwarding between the two devices through a USB interface.

However, the current USB interface supporting USB data to USB transmission function cannot support the access of USB devices such as a USB disk and a USB HDD disk, and has a single function.

Disclosure of Invention

Therefore, the application discloses the following technical scheme:

an electronic device, comprising:

the data interface is used for accessing the external equipment; the external equipment is master end equipment with a processor system or slave end equipment without the processor system;

the switching device is connected with the data interface;

the bridging component is connected with the data interface through the exchange device and is used for bridging the interactive data when the electronic equipment performs data interaction with the main-end equipment through the data interface;

the main control component is connected with the bridging component and the exchange device and at least used for controlling data interaction between the electronic equipment and the external equipment;

the switching device is configured to:

under the condition that the external equipment is the main-end equipment, the electric connection between the external equipment and the bridging component is connected, and the electric connection between the external equipment and the main control component is disconnected;

and under the condition that the external equipment is the slave end equipment, the electric connection between the external equipment and the main control component is connected, and the electric connection between the external equipment and the bridging component is disconnected.

Optionally, in the electronic device:

the data interface is a universal serial bus interface;

the switching device is a universal serial bus switch;

the bridging component is a universal serial bus main end bridging chip;

the main control unit is a platform controller center.

Optionally, the bridge component is connected to a data sub-interface of the data interface through the exchange device;

the bridging component is directly connected with a power supply sub-interface of the data interface;

the bridge component further configured to:

identifying the equipment type of the external equipment accessed to the data interface by detecting the input level signal of the power supply sub-interface; and sending a control command matching the identified device type to the switching apparatus.

Optionally, the bridge component, when identifying the device type of the external device connected to the data interface by detecting the input level signal of the power supply sub-interface, is specifically configured to:

if the power supply sub-interface is detected to have an input level signal with a first threshold value, identifying the external equipment as main-end equipment;

and if the input level signal of the second threshold value of the power supply sub-interface is detected, identifying the external equipment as the slave end equipment.

Optionally, the switching device is specifically configured to:

receiving a control instruction sent by the bridging component;

under the condition that the control instruction is a first control instruction matched with the type of the main-end equipment, the electric connection between the bridge component and the main control component is connected, and the electric connection between the main control component and the bridge component is disconnected;

and under the condition that the control instruction is a second control instruction matched with the type of the slave end equipment, connecting the control instruction with the main control component, and disconnecting the control instruction from the bridge component.

Optionally, the main control unit is specifically configured to:

under the condition that the external equipment is the main equipment, sending data in a slave format to the bridging component, or receiving the data in the slave format sent by the bridging component, so as to perform data interaction with the external main equipment through bridging processing of the bridging component;

and when the external equipment is slave end equipment, sending the data in the slave end format to the slave end equipment sequentially through the exchange device and the data interface, or receiving the data in the slave end format sent by the slave end equipment sequentially through the data interface and the exchange device.

Optionally, the bridge component, when performing bridge processing on the interactive data, is specifically configured to:

under the condition that the electronic equipment sends data to external main-end equipment, encoding first data in a slave-end format sent by a main control unit into first data in a main-end format, and sending the first data in the main-end format to the main-end equipment through the exchange device and the data interface in sequence;

when the electronic device receives data sent by the master device, the second data in the master format sent by the master device is obtained sequentially through the data interface and the switching device, the second data in the master format is decoded into second data in the slave format, and the second data in the slave format is sent to the master control unit.

A control method, comprising:

determining the device type of an external device accessed by a data interface of the electronic device;

under the condition that the external equipment is main-end equipment with a processor system, controlling a main control component of the electronic equipment to perform bridging processing on data through a bridging component of the electronic equipment, and performing data interaction with the data interface so as to perform data interaction with the main-end equipment through the data interface;

and under the condition that the external equipment is slave end equipment without a processor system, controlling a main control unit of the electronic equipment to directly perform data interaction with the data interface so as to perform data interaction with the slave end equipment through the data interface.

Optionally, the determining the device type of the external device accessed by the data interface of the electronic device includes:

and detecting an input level signal of a power supply sub-interface of the data interface by using the bridging component, and identifying the equipment type of the external equipment accessed to the data interface based on the detected input level signal.

Optionally, the controlling the main control unit of the electronic device performs data interaction with the data interface through the bridge processing of the bridge component of the electronic device on data, including:

connecting the electric connection between a switching device of the electronic equipment and the bridging component, and disconnecting the electric connection between the switching device and the main control component;

the main control unit for controlling the electronic equipment directly performs data interaction with the data interface, and the method comprises the following steps: and connecting the electric connection between the exchange device and the main control unit, and disconnecting the electric connection between the exchange device and the bridge component.

The main control unit is connected with the bridging unit, and the exchange device is connected with the data interface.

As can be seen from the above description, in the electronic device and the control method disclosed in the present application, the switching devices respectively connected to the data interface, the bridge component, and the main control component are added, and the added switching devices are configured to connect the electrical connection with the bridge component and disconnect the electrical connection with the main control component when the external device is the main device, and connect the electrical connection with the main control component and disconnect the electrical connection with the bridge component when the external device is the slave device. By adding the exchange device and carrying out the function configuration and the design of the connection relation between the exchange device and other parts, the data interface of the electronic equipment not only supports the access of the main-end equipment with the processor system, but also supports the access of the auxiliary-end equipment without the processor system, thereby enriching the interface function of the electronic equipment and reducing the interface resource waste of the data interface.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without any creative work.

FIG. 1 is a circuit configuration diagram of a USB data interaction function of the prior art;

fig. 2 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;

FIG. 3 is a circuit diagram of a USB data interaction function disclosed in an embodiment of the present application;

FIG. 4 is another circuit block diagram of the USB data interaction function disclosed in the embodiments of the present application;

fig. 5 is a flowchart of a control method disclosed in an embodiment of the present application.

Detailed Description

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.

Referring to fig. 1, currently, some devices with a processor system perform USB data peer-to-peer or keyboard-mouse sharing with another device with a processor system by using a USB host bridge chip (USB host bridge), and the applicant finds that the USB host bridge chip can only identify the USB host device and cannot identify the USB slave device, and the USB host bridge chip cannot process data signals of the USB slave device, so that the USB interface with USB data peer-to-peer functions cannot support access of USB slave devices such as a USB disk/USB HDD disk, and the USB slave device has a single function.

In order to solve the above technical problem, the present application discloses an electronic device and a control method.

The electronic device is provided with a processor system, wherein the processor system may be, but is not limited to, a host computer system, or a simple computing processing system consisting of only a processor and its necessary peripheral components, and the electronic device may accordingly be a processor system-equipped device in a general purpose or special purpose computing device environment or configuration, such as a personal computer, server computer, hand-held or portable device, tablet-type device, single/multi-processor device (e.g., a display provided with a processor and associated components), and so forth.

The composition structure of the electronic device disclosed in the present application is shown in fig. 2, and specifically includes: a data interface 10, a switching device 20, a bridge component 30, and a master control component 40. Wherein:

and the data interface 10 is used for accessing an external device.

Illustratively, the data interface 10 may be a USB interface, such as a USB series interface of Type-A, Type-B or Type-C, or the like.

The external device accessed by the data interface 10 may be a master device with a processor system or a slave device without a processor system, and is not limited, that is, in this application, the data interface 10 supports both accessing the master device with a processor system, such as a computer, a display, and the like, and accessing the slave device without a processor system, such as a USB device, such as a USB disk, a USB HDD disk, a USB mouse/keyboard, and the like.

The switching device 20 is connected to the data interface 10, the bridge unit 30, and the main control unit 40.

In the embodiment of the present application, a switching device 20 for switching between the bridge component 30 and the main control component 40 is added to the electronic device, and the switching device 20 may be, but is not limited to, a switch or other components with an electronic control switching function, such as a USB switch (USB switch).

The bridging component 30 is connected to the data interface 10 through the exchange device 20, and is configured to perform bridging processing on the interactive data when the electronic device performs data interaction with the host device through the data interface 10.

The bridge component 30 may be, but is not limited to, a USB host bridge chip.

And the main control unit 40 is connected with the bridge unit 30 and the exchange device 20 and at least used for controlling data interaction between the electronic equipment and the external equipment.

The main control unit 40 is a host control unit of the data interface 10, and taking the data interface 10 as a USB interface as an example, the main control unit 40 may be a Platform Controller Hub (PCH) of an electronic device.

The switching device 20 is specifically configured to:

when the external device is a master device, the electrical connection between the switch device 20 and the bridge component 30 is connected, and the electrical connection between the switch device 20 and the master control component 40 is disconnected; when the external device is a slave device, the electrical connection between the switch device 20 and the master control unit 40 is made, and the electrical connection between the switch device 20 and the bridge unit 30 is broken.

Taking the switching device 20 as a USB switch, the data interface 10, the bridge component 30 and the main control component 40 as USB interfaces, USB host bridges and PCHs as examples, and referring to fig. 3, when the USB interface of the electronic device is connected to a host device such as an all-in-one machine or a display, which is provided with a processor system, the electrical connection between the USB switch and the USB host bridge is connected, and the electrical connection between the USB switch and the PCH is disconnected, so that a link of the USB interface-USB switch-USB host bridge-PCH is opened correspondingly, and the link serves as a data communication channel between the electronic device and the host device; when the USB interface of the electronic device is connected to the slave devices such as a USB flash disk, a USB key/mouse and the like, the electrical connection between the USB switch and the PCH is connected, and the electrical connection between the USB switch and the USB host bridge is disconnected, so that the link of the USB interface-USB switch-PCH is correspondingly connected and serves as a data communication channel between the electronic device and the slave devices.

By adding the exchange device 20 to the electronic device and performing the above function configuration and the connection relationship design between the exchange device and other components, when the data interface 10 with the function of data transmission and the like of the electronic device, such as a USB interface, is connected to a slave device, the electrical connection between the data interface 10 and a host control component thereof, such as a PCH, can be directly opened, and the host control component such as the PCH can effectively process the data signal of the slave device (such as a USB slave device such as a USB disk), so that the data interface 10 with the function of data transmission and the connection of the slave device such as a USB disk and a USB keyboard and mouse are supported.

Data interaction between the electronic equipment and the master end equipment or data interaction between the electronic equipment and the slave end equipment can be bidirectional, namely, the data of the external equipment can be received, and the data can be sent to the external equipment.

A host control component of the USB interface, such as a PCH, only supports data communication in a master-slave mode, and does not support data communication in the master-master mode, where the master-slave mode refers to a "master-slave device" interaction mode, and the master-master mode refers to a "master-master device" interaction mode, and in order to implement data interaction between two master devices (e.g., two computers) in the master-master mode based on the data interface 10, such as data communication based on the USB interface, keyboard and mouse sharing, the purpose of interaction in the master-master mode is achieved by using a coding and decoding bridging processing function provided by the bridging component 30 for interactive data.

Specifically, when the electronic device sends data to an external host device, the bridge component 30 encodes the first data in the slave format sent by the main control component 40 into first data in the host format, and sends the first data in the host format to the host device accessing the data interface 10 sequentially through the exchange device 20 and the data interface 10; when the electronic device receives data transmitted by the master device, the bridge component 30 obtains second data in the master format transmitted by the master device sequentially through the data interface 10 and the switching device 20, decodes the second data in the master format into second data in the slave format, and transmits the second data in the slave format to the master control component 40.

For example, assuming that the electronic device is an all-in-One machine (AIO, all in One), the host device accessed through the USB interface of the all-in-One machine is a display, in the data pairing transmission between the two devices, when the all-in-One machine sends data to the display, the PCH specifically outputs the sending data in the slave format, and the USB host bridge encodes the data into the host format and sends the encoded data to the display sequentially through the USB switch and the USB interface of the all-in-One machine; in the data receiving process opposite to the process, the USB host bridge receives the master format data sent by the display sequentially through the USB interface and the USB switch, performs decoding processing on the data, decodes the data into a slave format, and sends the decoded data to the PCH for related processing.

According to the scheme, the electronic equipment is additionally provided with the exchange devices which are respectively connected with the data interface, the bridging component and the main control component, and the additionally arranged exchange devices are configured to be connected with the bridging component and disconnected with the main control component under the condition that the external equipment is the main-end equipment, and connected with the main control component and disconnected with the bridging component under the condition that the external equipment is the slave-end equipment. By adding the exchange device and carrying out the function configuration and the design of the connection relation between the exchange device and other parts, the data interface of the electronic equipment not only supports the access of the main-end equipment with the processor system, but also supports the access of the auxiliary-end equipment without the processor system, thereby enriching the interface function of the electronic equipment and reducing the interface resource waste of the data interface.

In one embodiment, the bridge component 30 is connected to the data subinterface of the data interface 10 via the switching device 20; the bridge component 30 is directly connected to the power sub-interface of the data interface 10.

Wherein the bridge member 30 is further configured to:

identifying the device type of the external device accessed to the data interface 10 by detecting the input level signal of the power supply sub-interface of the data interface 10; and transmits a control command matching the recognized device type to the switching apparatus 20.

Specifically, the data sub-interface of the data interface 10 is a sub-interface for transmitting a data signal, the power sub-interface of the data interface 10 is a sub-interface for transmitting a power signal (e.g., an input level signal), the data sub-interface and the power sub-interface can be pins of the data interface 10 for implementing different signal transmission functions, for example, the data sub-interface can be a data + and data-data pin of the USB interface, and the power sub-interface can be a power (power) pin of the USB interface.

In the embodiment, the bridge component 30, such as a USB host bridge, is directly connected to the power supply sub-interface of the data interface 10, so that a function of determining/identifying the device type of the external device is added to the bridge component. If the bridge component 30 detects that the power supply sub-interface of the data interface 10 has an input level signal with a first threshold, it identifies the external device as the master device, and if the input level signal with a second threshold is detected, it identifies the external device as the slave device, and sends a control command matching the identified device type to the switching device 20, as shown in fig. 4.

The first threshold is different from the second threshold, and for example, the first threshold may be 5V, and the second threshold may be a voltage value other than 5V, such as 0V. Correspondingly, taking the USB host bridge as an example, when it detects that the USB power pin has a 5V level signal input, it determines that the device accessed by the USB interface is the USB host, i.e., the USB host device, whereas if it detects that the USB power pin has no 5V level signal input, it determines that the device accessed by the USB interface is the USB guest, i.e., the USB slave device.

After determining the external device type based on the level signal detection of the power subinterface of the data interface 10, the bridge component 30 further sends a control instruction matching the determined device type to the switching device 20.

The control instructions are for indicating the identified device type information and/or control type information.

The switching device 20 receives the control command sent by the bridge component 30, performs command recognition, and determines the control processing to be executed according to the device type information and/or the control type information indicated by the command, so as to control the connection and disconnection of the electrical connection between the bridge component 30 and the main control component 40.

Under the condition that the control instruction is a first control instruction matched with the type of the master-side equipment, the exchange device 20 determines a data communication channel needing to be communicated in the master-master mode through instruction identification, correspondingly connects the electric connection between the exchange device 20 and the bridging component 30, and disconnects the electric connection with the master control component 40, so that the electronic equipment is supported to perform data interaction with the master-side equipment through the data interface 10; under the condition that the control command is a second control command matched with the type of the slave-end device, the command identification is carried out to determine that a data communication channel in a master-slave mode needs to be opened, correspondingly, the electric connection between the switching device 20 and the master control unit 40 is connected, and the electric connection between the switching device 20 and the bridging unit 30 is disconnected, so that the electronic device is supported to carry out data interaction with the slave-end device through the data interface 10.

In the embodiment, the bridge component is directly connected with the power supply sub-interface of the data interface, and different level access signals are respectively designed for different types of external devices, so that the bridge component is additionally provided with a function of judging/identifying the device type of the external device based on the level access signals, based on the design, after the data interface is accessed into the external device of the corresponding type, the bridge component can be used for automatically identifying the device type and automatically opening a data communication channel matched with the device type, so as to support the data communication between the electronic device and any type (main terminal type or slave terminal type) of external device through a data interface such as a USB interface, so that the data interface not only supports the access of the main terminal device with a processor system, but also supports the access of the slave terminal device without the processor system, thereby enriching the interface function of the electronic device, the waste of interface resources of the data interface is reduced.

In addition, an embodiment of the present application further discloses a control method, which is applicable to the electronic device described above, and referring to fig. 5, the control method includes:

step 501, determining the device type of the external device accessed by the data interface of the electronic device.

Specifically, the bridge component of the electronic device may be used to detect an input level signal of the power supply sub-interface of the data interface, and identify the device type of the external device connected to the data interface based on the detected input level signal.

If the bridge component detects that the power supply sub-interface of the data interface has the input level signal with the first threshold value, the external equipment is identified as the main-end equipment; and if the input level signal of the second threshold value of the power supply sub-interface is detected, identifying the external equipment as the slave equipment.

For example, if the USB host bridge detects that the USB power pin has a 5V level signal input, it determines that the device connected to the USB interface is the USB host, i.e., the USB host device, whereas if the USB power pin does not have a 5V level signal input, it correspondingly determines that the device connected to the USB interface is the USB guest, i.e., the USB slave device.

Step 502, under the condition that the external device is a master device with a processor system, controlling a master control component of the electronic device to perform bridging processing on data through a bridging component of the electronic device, and performing data interaction with a data interface so as to perform data interaction with the accessed master device through the data interface of the electronic device.

If the external device is identified as the master device, a first control instruction matched with the type of the master device can be sent to the exchange device of the electronic device through the bridge component, so that the exchange device is connected with the electrical connection between the exchange device and the bridge component based on the instruction, the electrical connection between the exchange device and the master control component is disconnected, the master control component of the electronic device correspondingly carries out data interaction with the data interface through bridge processing (such as coding processing when sending data to the external master device and decoding processing when receiving the data of the master device) of the data through the bridge component, and further data communication between the electronic device and the external master device, such as data transmission between the electronic device and the external device, keyboard and mouse sharing and the like, is realized based on the channel.

Step 503, in the case that the external device is a slave device without a processor system, controlling the main control unit of the electronic device to directly perform data interaction with the data interface of the electronic device, so as to perform data interaction with the accessed slave device through the data interface of the electronic device.

On the contrary, if the external device is identified as the slave device, the bridge component can send a second control instruction matched with the type of the slave device to the exchange device of the electronic device, so that the exchange device is connected with the electric connection between the exchange device and the main control component based on the second control instruction, the electric connection between the exchange device and the bridge component is disconnected, the main control component of the electronic device is correspondingly connected with the data interface directly, and then the data interaction between the electronic device and the external slave device is realized through the direct connection channel.

According to the method, the exchange device is additionally arranged on the electronic equipment, and the exchange device is subjected to corresponding function configuration and connection relation design with other parts of the electronic equipment, so that the data interface of the electronic equipment not only supports access of the main-end equipment with the processor system, but also supports access of the auxiliary-end equipment without the processor system, and therefore the interface function of the electronic equipment is enriched, and interface resource waste of the data interface is reduced.

It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.

For convenience of description, the above system or apparatus is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.

From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.

Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, 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 like elements in a process, method, article, or apparatus that comprises the element.

The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:访问控制方法及访问控制装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!