Interface configuration method and device, electronic device and electronic equipment

文档序号:1477148 发布日期:2020-02-25 浏览:3次 中文

阅读说明:本技术 接口配置方法、装置、电子器件以及电子设备 (Interface configuration method and device, electronic device and electronic equipment ) 是由 薛江 于 2019-11-14 设计创作,主要内容包括:本申请实施例公开了一种接口配置方法、装置、电子器件以及电子设备。所述电子器件包括数据控制模块以及与所述数据控制模块的多个信号接口耦合的多个管脚,所述方法包括:获取所述电子器件的多个管脚与目标器件的连接关系;基于所述连接关系配置所述多个信号接口与所述多个管脚的一一对应关系,以用于使所述多个管脚各自与所述目标器件之间传输的信号与所述连接关系适配。通过上述方式实现了无论电子器件的管脚与目标器件之间具体怎么进行连接,电子器件都可以根据与目标器件的实际的连接方式配置电子器件内部的数据控制模块的接口与电子器件的管脚的一一对应关系,从而使得所述多个管脚各自与所述目标器件之间传输的信号与所述连接关系适配。(The embodiment of the application discloses an interface configuration method and device, an electronic device and electronic equipment. The electronic device includes a data control module and a plurality of pins coupled with a plurality of signal interfaces of the data control module, the method comprising: acquiring the connection relation between a plurality of pins of the electronic device and a target device; configuring one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship for adapting signals transmitted between each of the plurality of pins and the target device to the connection relationship. Through the above method, no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one correspondence relationship between the interfaces of the data control module inside the electronic device and the pins of the electronic device according to the actual connection manner with the target device, so that the signals transmitted between the plurality of pins and the target device are adapted to the connection relationship.)

1. An interface configuration method applied to an electronic device including a data control module and a plurality of pins coupled to a plurality of signal interfaces of the data control module, the method comprising:

acquiring the connection relation between a plurality of pins of the electronic device and a target device;

configuring one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship for adapting signals transmitted between each of the plurality of pins and the target device to the connection relationship.

2. The method of claim 1, wherein the electronic device further comprises a multiplexer coupled between the plurality of signal interfaces and the plurality of pins;

the step of configuring the one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship includes:

and configuring the multiplexer to establish a one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship, so that the multiplexer performs signal transmission between the signal interfaces and the pins with the correspondence relationship.

3. The method according to claim 1 or 2, wherein the step of obtaining the connection relationship between the plurality of pins of the electronic device and the target device comprises:

receiving characteristic data fed back by the target device through a plurality of pins of the electronic device respectively;

and determining the connection relation between the plurality of pins and the target device based on the characteristic data received by the plurality of pins respectively.

4. The method of claim 3, wherein the step of receiving the characteristic data fed back by the target device through the plurality of pins of the electronic device respectively comprises:

the electronic device sends a first command to the target device through a command line between the electronic device and the target device, and the first command is used for triggering the target device to perform characteristic data feedback.

5. The method of claim 4, wherein the first command is a specified command based on an eMMC specification; the step of receiving the characteristic data respectively fed back by the target device through a plurality of pins of the electronic device comprises:

receiving debugging mode data fed back by the target device through a plurality of pins of the electronic device respectively;

and extracting verification information from the debugging mode data as characteristic data representing the connection relation between the plurality of pins and the target device.

6. The method of claim 5, wherein the check information is cyclic redundancy check information.

7. The method of claim 3, wherein the step of determining the connection relationship between the plurality of pins and the target device based on the characteristic data received by each of the plurality of pins comprises:

latching the characteristic data respectively fed back by a plurality of pins of the electronic device;

the step of determining the connection relationship between the plurality of pins and the target device based on the characteristic data received by the plurality of pins respectively comprises:

and determining the connection relation between the plurality of pins and the target device based on the latched characteristic data received by the plurality of pins respectively.

8. An electronic device comprising an interface configuration module, a data control module, and a plurality of pins coupled with a plurality of signal interfaces of the data control module;

the interface configuration module is used for acquiring the connection relation between a plurality of pins of the electronic device and a target device; configuring one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship for adapting signals transmitted between each of the plurality of pins and the target device to the connection relationship.

9. The electronic device of claim 8, further comprising a multiplexer coupled between the plurality of signal interfaces and the plurality of pins; the interface configuration module is specifically configured to configure the multiplexer to establish a one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship, so that the multiplexer performs signal transmission between the signal interfaces and the pins having the correspondence relationship.

10. An electronic apparatus, comprising an electronic device and a target device; the electronic device comprises a data control module and a plurality of pins coupled with a plurality of signal interfaces of the data control module, and the electronic device is connected with the target device through the plurality of pins;

the electronic device is used for acquiring the connection relation between a plurality of pins of the electronic device and a target device; configuring one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship for adapting signals transmitted between each of the plurality of pins and the target device to the connection relationship.

Technical Field

The present application relates to the field of electronic technologies, and in particular, to an interface configuration method and apparatus, an electronic device, and an electronic device.

Background

In electronic equipment, electronic devices are important components. Electronic devices typically interact with other devices through their pins. However, in the related electronic device, the wiring between the electronic device and the target device is complicated due to the characteristics of the pin signal output thereof.

Disclosure of Invention

In view of the above problems, the present application provides an interface configuration method, apparatus, electronic device and electronic device to improve the above problems.

In a first aspect, the present application provides an interface configuration method applied to an electronic device, where the electronic device includes a data control module and a plurality of pins coupled to a plurality of signal interfaces of the data control module, and the method includes: acquiring the connection relation between a plurality of pins of the electronic device and a target device; configuring one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship for adapting signals transmitted between each of the plurality of pins and the target device to the connection relationship.

In a second aspect, the present application provides an electronic device comprising an interface configuration module, a data control module, and a plurality of pins coupled with a plurality of signal interfaces of the data control module; the interface configuration module is used for acquiring the connection relation between a plurality of pins of the electronic device and a target device; configuring one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship for adapting signals transmitted between each of the plurality of pins and the target device to the connection relationship.

In a third aspect, the present application provides an electronic device comprising an electronic device and a target device; the electronic device comprises a data control module and a plurality of pins coupled with a plurality of signal interfaces of the data control module, and the electronic device is connected with the target device through the plurality of pins; the electronic device is used for acquiring the connection relation between a plurality of pins of the electronic device and a target device; configuring one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship for adapting signals transmitted between each of the plurality of pins and the target device to the connection relationship.

In the case that the electronic device includes a data control module and a plurality of pins coupled to a plurality of signal interfaces of the data control module, a connection relationship between the plurality of pins of the electronic device and a target device may be obtained first, and then a one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins is configured based on the connection relationship, so that signals transmitted between the plurality of pins and the target device are adapted to the connection relationship. Therefore, no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one corresponding relation between the interfaces of the data control module inside the electronic device and the pins of the electronic device according to the actual connection mode of the electronic device with the target device, so that the signals transmitted between the pins and the target device are adaptive to the connection relation.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

FIG. 1 is a schematic diagram illustrating the crossing of wiring between pins according to an embodiment of the present application;

fig. 2 is a schematic diagram illustrating an application environment in an interface configuration method according to an embodiment of the present application;

fig. 3 is a flowchart illustrating an interface configuration method according to an embodiment of the present application;

fig. 4 is a schematic diagram illustrating a corresponding connection between a signal interface and a pin in an interface configuration method according to an embodiment of the present application;

fig. 5 is a flowchart illustrating an interface configuration method according to another embodiment of the present application;

fig. 6 is a schematic diagram illustrating debug mode data in another interface configuration method according to an embodiment of the present application;

fig. 7 is a timing diagram illustrating an interface configuration method according to still another embodiment of the present application;

fig. 8 is a block diagram illustrating an interface configuration apparatus according to an embodiment of the present application;

fig. 9 is a block diagram illustrating an interface configuration apparatus according to another embodiment of the present application;

fig. 10 is a block diagram illustrating an interface configuration apparatus according to still another embodiment of the present application;

fig. 11 is a schematic diagram illustrating an architecture of an electronic device according to an embodiment of the present application;

fig. 12 is a block diagram illustrating another electronic device for executing an interface configuration method according to an embodiment of the present application;

fig. 13 is a storage unit according to an embodiment of the present application, configured to store or carry program code for implementing an interface configuration method according to 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.

In electronic devices, the various components or devices are typically connected by wires, which are typically defined by PCB wiring during the PCB (printed Circuit board) design phase. The manner in which the PCB is routed is affected by the location of the various electronic components.

In the research on the wiring mode among the components of the electronic equipment, the inventor finds that the PCB is crossed when being wired, and then the cross-layer wiring is needed, so that the wiring difficulty is increased. For example, as shown in fig. 1, the wiring schematic shown in fig. 1 includes a first device and a second device. The first device is provided with pins D0 and D7, and the second device is provided with pins D0 and D7. In the PCB wiring requirement, the pins with the same names need to be directly connected, namely the pin D0 of the first device needs to be connected with the pin D0 of the second device, and the pin D7 of the first device needs to be connected with the pin D7 of the second device. And wherein the pins of the first device and the second device are arranged in an opposite order, this would result in the situation shown in fig. 1, where the wiring between pin D0 of the first device and pin D0 of the second device would cross the wiring between pin D7 of the first device and pin D7 of the second device.

Therefore, in order to improve the above problem, the inventors propose an interface configuration method, an apparatus, an electronic device, and an electronic apparatus provided by the embodiments of the present application. And then no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one corresponding relation between the interfaces of the data control module in the electronic device and the pins of the electronic device according to the actual connection mode of the electronic device with the target device, so that the signals transmitted between the pins and the target device are adaptive to the connection relation.

An application environment related to the embodiments of the present application will be described below.

As shown in fig. 2, the application environment shown in fig. 2 includes an electronic device 100 and a target device 200. The electronic device 100 includes a data control module 110 and a multiplexer 120. The data control module 110 is configured with a plurality of signal interfaces iD0 to iD 7. The signals output by the signal interfaces iD0 to iD7 need to be output through the pins D0 to D7 of the electronic device 100, and correspondingly, the input signals received by the pins D0 to D7 of the electronic device 100 are also input to the data control module 110 through the signal interfaces iD0 to iD 7. And wherein the multiplexer 120 is used to map the correspondence between the signal interfaces and the pins of the electronic device. For example, the multiplexer 120 may map the signal interface iD0 to correspond to the pin D0 of the electronic component, in this way, the signal output by the signal interface iD0 is output through the pin D0 of the electronic device, and the signal received by the corresponding pin D0 is also output to the data control module 110 through the signal interface iD 0. Furthermore, the multiplexer 120 can map the signal interface iD0 to correspond to the pin D7 of the electronic component, in this way, the signal output by the signal interface iD0 is output through the pin D7 of the electronic device, and the signal received by the corresponding pin D7 is also output to the data control module 110 through the signal interface iD 0.

In one approach, shown in fig. 2 is an emmc (embedded Multi Media card) system. The corresponding electronic Device 100 in fig. 2 may be a Host (Host) in the eMMC system, and the target Device 200 therein may be a storage Device (Device) in the eMMC system.

Referring to fig. 3, an interface configuration method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a data control module and a plurality of pins coupled to a plurality of signal interfaces of the data control module, and the method includes:

step S110: and acquiring the connection relation between a plurality of pins of the electronic device and the target device.

In this embodiment, the electronic device may adjust a mapping relationship between an internal signal interface and a pin according to a connection relationship between the current pin and the target device. In this manner, the connection relationship between the plurality of pins of the electronic device and the target device is obtained first, which can be used as a basis for determining the mapping relationship between the signal interface and the pins subsequently.

It should be noted that the connection relationship between the pins of the electronic device and the target device in the embodiment of the present application represents the connection relationship between the pins of the electronic device and the pins of the target device. I.e. it is characterized that a certain pin of the electronic device is connected with a certain pin of the target device. The pins of the electronic device and the pins of the target device included in the acquired connection relationship are pins for performing data transmission.

Step S120: and configuring the one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship so as to adapt the signals transmitted between the plurality of pins and the target device to the connection relationship.

In one PCB routing requirement, pins of the same name need to be connected to each other. The data control module in the electronic device may be used for processing and outputting signals and may also be used for processing received signals. And signal interaction between the electronic device and other external devices is realized through pins.

It should be noted that, in the embodiment of the present application, the connection relationship between the plurality of pins of the electronic device and the target device includes a one-to-one correspondence relationship between the pins of the electronic device and the pins of the target device. Alternatively, the one-to-one correspondence relationship may be understood as that, in a case where the data amount of the pins used by the electronic device to transmit data and the number of the pins used by the target device to transmit data are the same, each of the plurality of pins of the electronic device is specifically connected to which one of the plurality of pins of the target device. In addition, even when the number of pins for transmitting data is different between the pins of the electronic device and the pins of the target device, a one-to-one correspondence relationship between the pins may be configured.

For example, if the connection relationships between the pins D0 to D7 of the electronic device and the pins of the target device are as shown in fig. 4, the one-to-one correspondence relationship includes that the pin D0 of the electronic device is connected to the pin D7 of the target device, the pin D1 of the electronic device is connected to the pin D6 of the target device, the pin D2 of the electronic device is connected to the pin D5 of the target device, the pin D3 of the electronic device is connected to the pin D4 of the target device, the pin D4 of the electronic device is connected to the pin D3 of the target device, the pin D5 of the electronic device is connected to the pin D2 of the target device, the pin D6 of the electronic device is connected to the pin D1 of the target device, and the pin D7 of the electronic device is connected to the pin D0 of the target device.

And the signal to be output by the signal interface iD0 of the data control module 110 corresponds to the pin D0 of the target device 200. In this case, the electronic device 100 may configure the signal interface iD0 to correspond to its own pin D7, so that the signal to be output by iD0 may be transmitted to the pin D0 of the target device 200. Similarly, the signal to be output by the signal interface iD7 of the data control module 110 corresponds to the pin D7 of the target device 200. In this case, the electronic device 100 may configure the signal interface iD7 to correspond to its own pin D0, so that the signal to be output by iD7 may be transmitted to the pin D0 of the target device 200.

According to the interface configuration method, under the condition that the electronic device comprises the data control module and the plurality of pins coupled with the plurality of signal interfaces of the data control module, the connection relation between the plurality of pins of the electronic device and the target device can be obtained first, and then the one-to-one correspondence relation between the plurality of signal interfaces and the plurality of pins is configured based on the connection relation so as to enable the signals transmitted between the plurality of pins and the target device to be adaptive to the connection relation. Therefore, no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one corresponding relation between the interfaces of the data control module in the electronic device and the pins of the electronic device according to the actual connection mode of the electronic device with the target device, and therefore the signals transmitted between the pins and the target device are adaptive to the connection relation.

Referring to fig. 5, an interface configuration method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a data control module and a plurality of pins coupled to a plurality of signal interfaces of the data control module, and the electronic device further includes a multiplexer, where the multiplexer is coupled between the plurality of signal interfaces and the plurality of pins, and the method includes:

step S210: the electronic device sends a first command to the target device through a command line between the electronic device and the target device, and the first command is used for triggering the target device to perform characteristic data feedback.

Step S220: and receiving characteristic data respectively fed back by the target device through a plurality of pins of the electronic device.

Step S230: and determining the connection relation between the plurality of pins and the target device based on the characteristic data received by the plurality of pins respectively.

Step S240: and configuring the multiplexer to establish a one-to-one corresponding relation between the plurality of signal interfaces and the plurality of pins based on the connection relation so as to enable the multiplexer to transmit signals between the signal interfaces and the pins with the corresponding relation and enable the signals transmitted between the plurality of pins and the target device to be adapted to the connection relation.

In one way, the first command is a specified command based on the eMMC specification, and may be a CMD21 command in the eMMC specification, for example. In this manner, the step of receiving the characteristic data fed back by the target device through the plurality of pins of the electronic device respectively includes: receiving debugging mode (tuning mode) data fed back by a target device through a plurality of pins of an electronic device respectively; and extracting verification information from the debugging mode data as characteristic data representing the connection relation between the plurality of pins and the target device.

For example, referring to fig. 6, the debug mode data shown in fig. 6 includes 146-bit data, and the 146-bit data includes 1-bit start field data, 1-bit stop field data, 128-bit valid data, and 16-bit feature data. In the scheme shown in fig. 6, the electronic device may use 16-bit verification information as characteristic data for characterizing which pin of the connected target device is. Illustratively, the check information may be cyclic Redundancy check information crc (cyclic Redundancy check).

It should be noted that, in the related solution, the verification information is used to verify whether data communication is normal, and in the present application, it is creative discovery by the inventor that can be used to characterize which pin of the target device the pin of the electronic device is connected to.

According to the interface configuration method, under the condition that the electronic device comprises the data control module and the plurality of pins coupled with the plurality of signal interfaces of the data control module, the connection relation between the plurality of pins of the electronic device and the target device can be obtained first, and then the one-to-one correspondence relation between the plurality of signal interfaces and the plurality of pins is configured based on the connection relation so as to enable the signals transmitted between the plurality of pins and the target device to be adaptive to the connection relation. Therefore, no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one corresponding relation between the interfaces of the data control module in the electronic device and the pins of the electronic device according to the actual connection mode of the electronic device with the target device, and therefore the signals transmitted between the pins and the target device are adaptive to the connection relation. In addition, in the embodiment of the application, the one-to-one connection relationship between the pins of the electronic device and the target device can be identified according to the characteristic data fed back to the electronic device by the data line between the pins of the electronic device and the target device, so that the convenience of determining the one-to-one connection relationship between the pins of the electronic device and the target device is improved.

Referring to fig. 7, an interface configuration method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a data control module and a plurality of pins coupled to a plurality of signal interfaces of the data control module, and the electronic device further includes a multiplexer, where the multiplexer is coupled between the plurality of signal interfaces and the plurality of pins, and the method includes:

step S310: the electronic device sends a first command to the target device through a command line between the electronic device and the target device, and the first command is used for triggering the target device to perform characteristic data feedback.

Step S320: and receiving characteristic data respectively fed back by the target device through a plurality of pins of the electronic device.

Step S330: and latching the characteristic data respectively fed back through a plurality of pins of the electronic device.

It should be noted that the electronic device provided in this embodiment further includes a latch for latching the characteristic data fed back through the plurality of pins of the electronic device. A Latch (Latch) is a pulse level sensitive memory cell circuit that can change state under a specific input pulse level. Latching is the temporary storage of signals to maintain a certain level state. The scheme provided by the embodiment can store the connection relation or the characteristic data without a nonvolatile memory through a latching mode, so that the scheme provided by the embodiment can complete the operation of subsequently configuring the multiplexer to establish the one-to-one correspondence relation between the plurality of signal interfaces and the plurality of pins by hardware, and does not need to judge by software, thereby improving the processing efficiency and the flexibility.

Step S340: and determining the connection relation between the plurality of pins and the target device based on the characteristic data received by the plurality of pins respectively.

Step S350: and configuring the multiplexer to establish a one-to-one corresponding relation between the plurality of signal interfaces and the plurality of pins based on the connection relation so as to enable the multiplexer to transmit signals between the signal interfaces and the pins with the corresponding relation and enable the signals transmitted between the plurality of pins and the target device to be adapted to the connection relation.

It should be noted that, in addition to sending the feature data to the electronic device by the electronic device sending a command to the target device through the command line to trigger the current device to send the feature data to the electronic device, the data sending logic of the target device may also be adaptively changed, for example, the target device may be configured to send the feature data after being powered on, and then perform normal data communication with the electronic device after receiving the command fed back by the electronic device to perform step S350. Where normal data communication may be understood as sending data that the electronic device is expected to receive for processing.

According to the interface configuration method, under the condition that the electronic device comprises the data control module and the plurality of pins coupled with the plurality of signal interfaces of the data control module, the connection relation between the plurality of pins of the electronic device and the target device can be obtained first, and then the one-to-one correspondence relation between the plurality of signal interfaces and the plurality of pins is configured based on the connection relation so as to enable the signals transmitted between the plurality of pins and the target device to be adaptive to the connection relation. Therefore, no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one corresponding relation between the interfaces of the data control module in the electronic device and the pins of the electronic device according to the actual connection mode of the electronic device with the target device, and therefore the signals transmitted between the pins and the target device are adaptive to the connection relation.

In addition, in the embodiment of the present application, the acquired feature data may be stored in a latching manner, so that in the actual signal output or input process of the instant electronic component, the connection relationship between the pins of the electronic component and the target device is changed in time, and the multiplexer may also be used to adaptively change the one-to-one correspondence relationship between the signal interface and the pins of the electronic component, so as to adapt to the connection relationship between the current pin and the target device.

Referring to fig. 8, an interface configuration apparatus 400 provided in an embodiment of the present application operates in an electronic device, the electronic device includes a data control module and a plurality of pins coupled to a plurality of signal interfaces of the data control module, the apparatus 400 includes:

a connection relation obtaining unit 410, configured to obtain connection relations between multiple pins of the electronic device and the target device.

The interface configuration unit 420 is configured to configure a one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship, so as to adapt the signals transmitted between each of the plurality of pins and the target device to the connection relationship.

In one form, the electronic device further includes a multiplexer coupled between the plurality of signal interfaces and the plurality of pins. In this manner, the interface configuration unit 420 is specifically configured to configure the multiplexer to establish a one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship, so that the multiplexer performs signal transmission between the signal interfaces and the pins having the correspondence relationship.

As one mode, the interface configuration unit 420 is specifically configured to receive feature data respectively fed back by a target device through a plurality of pins of an electronic device; and determining the connection relation between the plurality of pins and the target device based on the characteristic data received by the plurality of pins respectively.

As one mode, as shown in fig. 9, the apparatus 400 further includes:

and a command sending unit 430, configured to send a first command to the target device through a command line with the target device, where the first command is used to trigger the target device to perform characteristic data feedback. In this manner, the first command is a CMD21 command based on the eMMC specification. An interface configuration unit 420 for receiving tuning mode data respectively fed back by the target device through a plurality of pins of the electronic device; and extracting verification information from the tuning mode data as characteristic data representing the connection relation between the plurality of pins and the target device.

As one mode, as shown in fig. 10, the apparatus 400 further includes:

and a latch control unit 440 for latching the characteristic data respectively fed back through the plurality of pins of the electronic device. In this way, the interface configuration unit 420 is specifically configured to determine the connection relationship between the plurality of pins and the target device based on the characteristic data received by the latched plurality of pins.

According to the electronic device provided by the application, under the condition that the electronic device comprises the data control module and the plurality of pins coupled with the plurality of signal interfaces of the data control module, the connection relation between the plurality of pins of the electronic device and the target device can be obtained firstly, and then the one-to-one corresponding relation between the plurality of signal interfaces and the plurality of pins is configured based on the connection relation so as to enable the signals transmitted between the plurality of pins and the target device to be adaptive to the connection relation. Therefore, no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one corresponding relation between the interfaces of the data control module in the electronic device and the pins of the electronic device according to the actual connection mode of the electronic device with the target device, and therefore the signals transmitted between the pins and the target device are adaptive to the connection relation.

Referring to fig. 11, an electronic device 500 according to an embodiment of the present disclosure includes an interface configuration module 510, a data control module 520, and a plurality of pins coupled to a plurality of signal interfaces of the data control module 520.

An interface configuration module 510, configured to obtain connection relationships between a plurality of pins of an electronic device and a target device; and configuring the one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship so as to adapt the signals transmitted between the plurality of pins and the target device to the connection relationship.

Optionally, the electronic device further comprises a multiplexer 530, the multiplexer 530 being coupled between the plurality of signal interfaces and the plurality of pins. In this case, the interface configuration module 510 is specifically configured to configure the multiplexer 530 to establish a one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins based on the connection relationship, so that the multiplexer 530 performs signal transmission between the signal interfaces and the pins having the correspondence relationship.

According to the interface configuration device, under the condition that the electronic device comprises the data control module and the plurality of pins coupled with the plurality of signal interfaces of the data control module, the connection relation between the plurality of pins of the electronic device and the target device can be obtained firstly, and then the one-to-one correspondence relation between the plurality of signal interfaces and the plurality of pins is configured based on the connection relation so as to enable the signals transmitted between the plurality of pins and the target device to be adaptive to the connection relation. Therefore, no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one corresponding relation between the interfaces of the data control module in the electronic device and the pins of the electronic device according to the actual connection mode of the electronic device with the target device, and therefore the signals transmitted between the pins and the target device are adaptive to the connection relation.

It should be noted that, in the present application, the embodiment of the system on chip corresponds to the foregoing method embodiment, and specific principles in the embodiment of the system on chip may refer to the contents in the foregoing method embodiment, which is not described herein again.

An electronic device provided by the present application will be described below with reference to fig. 12.

Referring to fig. 12, based on the interface configuration method, another electronic device 200 capable of performing the interface configuration method is further provided in the embodiment of the present application. The electronic device 200 includes a processor 102, a memory 104, a network module 106, and a system-on-chip 108. The memory 104 stores therein a program that can execute the contents of the foregoing embodiments. The internal structure of the system-on-chip 108 may be as shown in fig. 1. It should be noted that the memory in the system on chip 108 may not be the same memory as the memory 102.

In this case, the core in the processor 102 may execute sending a first command to the second core through the mailbox module, where the first command indicates that the first core is ready to execute a data processing operation corresponding to a target address, where the target address is located in a memory corresponding to the second core, and execute an operation of executing the data processing operation corresponding to the target address through the bus module in response to the second command. The processor 102 interfaces with various components throughout the electronic device 200 using various interfaces and circuitry to perform various functions of the electronic device 200 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.

The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.

The network module 106 is configured to receive and transmit electromagnetic waves, and implement interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, an audio playing device. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 106 may interact with a base station.

Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 1100 has stored therein program code that can be called by a processor to perform the method described in the above-described method embodiments.

The computer-readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1100 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1110 may be compressed, for example, in a suitable form.

To sum up, the present application provides an interface configuration method, apparatus, electronic device and electronic device, in the case that the electronic device includes a data control module and a plurality of pins coupled to a plurality of signal interfaces of the data control module, the connection relationship between the plurality of pins of the electronic device and a target device can be obtained first, and then the one-to-one correspondence relationship between the plurality of signal interfaces and the plurality of pins is configured based on the connection relationship, so as to enable the plurality of pins respectively with the signals transmitted between the target devices and the connection relationship adaptation. Therefore, no matter how the pins of the electronic device are connected with the target device, the electronic device can configure the one-to-one corresponding relation between the interfaces of the data control module inside the electronic device and the pins of the electronic device according to the actual connection mode of the electronic device with the target device, so that the signals transmitted between the pins and the target device are adaptive to the connection relation.

Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于FPGA的FlexRay-CPCIe通信模块

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!