Data transmission system, data transmission device and data transmission method
By designing a data transmission device that automatically recognizes and switches transmission modes, the problem of difficulty in occupancy of multiple PCIE interfaces and transmission mode switching in the prior art is solved, efficient data transmission is achieved, and cost and complexity are reduced.
Patent Information
- Application Number
- CN202110246450.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-05
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2041-03-05
AI Technical Summary
In the prior art, the data transmission device needs to occupy multiple PCIE interfaces, and it is difficult to effectively identify and switch the transmission modes of low-speed and high-speed memory cards, resulting in poor transmission efficiency.
A data transmission device is designed. Through the control module and the signal selection module, the first and second control signals are used to gate the corresponding ports and signal channels, and the automatic identification of the memory card type and switching of the transmission mode are realized, avoiding the use of the PCIE switch.
Adaptive transmission of low-speed and high-speed memory cards without adding PCIE logic switching elements is realized, which improves transmission efficiency and reduces cost and design complexity.
Smart Images

Figure CN115017083B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of circuit technology, and in particular to a data transmission system, a data transmission device and a data transmission method. Background Art
[0002] With the development of science and technology, the extensive use of electronic devices and the increase in the amount of data processed, people are using external memory cards more and more frequently. In this case, the electronic device stores data in an external memory card and can read information from the external memory card, such as an SD flash memory card. In order to increase the transmission speed between the host and the memory card, the memory card is constantly updated and iterated, and different types of external memory cards correspond to different transmission protocols. Therefore, it is particularly necessary for the same electronic device to make the memory cards before and after the iteration work at the most appropriate transmission efficiency. For example, a low-speed memory card works in a normal transmission mode, while a high-speed card adapted to high-speed transmission works in a high-speed transmission mode to maximize the transmission efficiency between the host device and the external memory card.
[0003] like Figure 1 FIG. 1 is a block diagram showing a data transmission device 100 for realizing common use of a low-speed memory card and a high-speed memory card, connected to a host 102 and a memory card 104. Figure 1 As shown, the data transmission device 100 includes a PCIE switch 1002 and a conversion controller 1006, wherein the PCIE switch 1002 includes three PCIE-PHY physical layers and a parsing module 1004. Specifically, when the inserted memory card 104 is a common mode memory card, such as a SD3.0-SD6.0 type memory card, the parsing module 1004 determines the type of the memory card 104 by parsing the data packet sent by the host 102. Once it is detected that the memory card 104 is a common type of memory card, the parsing module 104 conducts the channel between the PCIE switch 1002 and the conversion controller 1006 through PCIE-PHY 1, thereby realizing communication between the host 102 and the memory card 104. On the contrary, when the inserted memory card 104 is a high-speed memory card, such as a SD7.0 type memory card, the parsing module 1004 determines the type of the memory card 104 by parsing the data packet sent by the host 102. Once the memory card 104 is detected to be a high-speed type memory card, the parsing module 104 implements communication between the host 102 and the memory card 104 through PCIE-PHY 2. The PCIE switch used in the above solution has the disadvantages of high cost, complex circuit design, and large size, and increases the complexity of the data transmission process. Figure 1 In order to solve the shortcomings of the present invention, the existing technical solutions also consider the technical solution of omitting the PCIE switch.
[0004] Figure 2 Shown as solution Figure 1 A technical solution adopted to solve the high cost of PCIE switches, such as Figure 2 2 shows a block diagram of the connection between the data transmission device 210 and the host 102 and the memory card 104. Figure 2 The data transmission device 200 shown includes a PCIE-PHY 202, a conversion controller 204, and a signal selection module 206. The signal selection module 206 can receive the level signal sent by the memory card 104, and determine the type of the memory card 104 based on the level signal, for example, whether it belongs to a high-speed memory card or a low-speed memory card. Specifically, when the memory card 104 is a low-speed memory card SD3.0, the level signal sent by the SD3.0 memory card is a low level, and when the external memory card 104 is a high-speed card, such as an SD7.0 memory card, the level signal sent by the SD7.0 memory card is a high level. The signal selection module 206 determines the type of the SD memory card according to the high and low levels. Specifically, if the memory card 104 is a SD3.0 type memory card, the signal selection module 206 selects to connect the channel connected to the conversion controller 204 to realize the communication between the host 102 and the memory card 104, and when the memory card 104 is a SD7.0 type memory card, the signal selection module 206 selects to connect the host 102 and the memory card 104. Figure 2 In the disclosed technical solution, the data transmission device 200 needs two channels to be connected to the interface of the host 102. Usually, the PCIE bus includes a root complex, which is respectively connected to the root components of two PCIEs. Since the host device has limited PCIE interfaces for connecting peripherals, saving the occupancy of the PCIE interface is particularly necessary in practical applications.
[0005] In addition, the existing technical solutions also have the following defects. When the inserted memory card is a SD4.X-SD6.X type memory card, that is, a memory card that supports the UHSII transmission mode, the host cannot identify whether the card supports the UHSII transmission mode and reduces the mode to the UHSI transmission mode for transmission, which results in a maximum read and write speed of only 100MB / s. Based on this problem, the data transmission device disclosed in the present invention not only meets the transmission requirements of the SD7.X type high-speed mode memory card, but also enables the memory card that meets the UHSII transmission mode to work in the UHSII transmission mode, avoiding the speed reduction to the UHSI transmission mode, and the theoretical read and write speed can reach 312MB / s. The data transmission device disclosed in the present invention can solve the shortcomings of occupying multiple PCIE interfaces without increasing the PCIE logic switch elements, and realize the free switching transmission of low-speed memory cards and high-speed memory cards, which can reduce costs and save design cycles. Summary of the invention
[0006] The present invention discloses a data transmission device, which is connected between a host device and a memory card, and the host device and the memory card communicate with each other through the data transmission device, and is characterized in that the data transmission device comprises: a first port, which is connected to a control module in the data transmission device, and a first control signal controls the gating of the first port; a second port, which is connected to a card signal selection module in the data transmission device, and the first control signal controls the gating of the second port; a first signal channel, which is a channel connected between the control module and the card signal selection module, and is used to transmit the signal of the control module to the card signal selection module, and a second control signal controls the gating of the first signal channel; and a second signal channel, which is connected between the host device and the card signal selection module The channel between the modules is used to transmit the signal sent by the host device to the card signal selection module, and the second control signal controls the selection of the second signal channel, wherein, when the memory card meets the first condition, the data transmission device selects the first port through the first control signal, selects the first signal channel through the second control signal, the data transmission device connects the host device and the memory card according to the first port and the first signal channel, and works in the first transmission mode; when the memory card meets the second condition, the data transmission device selects the second port through the first control signal, selects the second signal channel through the second control signal, the data transmission device connects the host device and the memory card according to the second port and the second signal channel, and works in the second transmission mode.
[0007] The present invention also discloses a data transmission method for an electronic device, which is used to control signal transmission between a host device and a memory card, comprising: sending a first control signal to control a channel between the host device and a data transmission device; sending a second control signal to control a channel between the data transmission device and the memory card; when the memory card meets a first condition, the data transmission device selects a first port through the first control signal, selects a first signal channel through the second control signal, the data transmission device connects the host device and the memory card according to the first port and the first signal channel, and operates in a first transmission mode; when the memory card meets a second condition, the data transmission device selects a second port through the first control signal, selects a second signal channel through the second control signal, the data transmission device connects the host device and the memory card according to the second port and the second signal channel, and operates in a second transmission mode.
[0008] The present invention also discloses a data transmission system, comprising a host device, a data transmission apparatus and a memory card, wherein: a first control signal is used to control a channel between the host device and the data transmission apparatus; a second control signal is used to control a channel between the data transmission apparatus and the memory card; when the memory card satisfies a first condition, the data transmission apparatus selects a first port through the first control signal, selects a first signal channel through the second control signal, the data transmission apparatus connects the host device and the memory card according to the first port and the first signal channel, and operates in a first transmission mode; when the memory card satisfies a second condition, the data transmission apparatus selects a second port through the first control signal, selects a second signal channel through the second control signal, the data transmission apparatus connects the host device and the memory card according to the second port and the second signal channel, and operates in a second transmission mode.
[0009] The present invention discloses a method for switching signal channels using the above-mentioned data transmission system, comprising: when a memory card is pulled out, if the memory card meets a first condition, the data transmission device maintains a first port being turned on, and the host device is connected to a control module in the data transmission device; if the memory card meets a second condition, the data transmission device maintains a second port being turned on, and after waiting for a preset time period, the second port is disconnected and the first port is turned on, and the host device is connected to the control module in the data transmission device.
[0010] According to the embodiment disclosed in the present invention, the data transmission device detects whether the memory card supports the PCIE high-speed transmission mode. If not, it further detects whether it supports the UHSII transmission mode. If it supports the UHSII transmission mode, it works in the UHSII mode, otherwise it works in the UHSI mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 Shown is a module diagram of a signal transmission system 100 in the prior art;
[0012] Figure 2 Another module diagram of a signal transmission system 200 in the prior art is shown;
[0013] Figure 3 Shown is a module diagram of a signal transmission system 300 according to an embodiment of the present invention;
[0014] Figure 4 Another module diagram of a signal transmission system 400 according to an embodiment of the present invention is shown;
[0015] Figure 5 The embodiment according to the present invention is shown Figure 3 306 in the mode selection and switching module 306 of the data transmission device 310;
[0016] Figure 6 The embodiment according to the present invention is shown Figure 3 310 is a flowchart of the working process of the data transmission device;
[0017] Figure 7 The embodiment according to the present invention is shown Figure 3 Another working flow diagram of the data transmission device 310, and
[0018] Figure 8 The embodiment according to the present invention is shown Figure 4 Another working flow diagram of the data transmission device 310.
[0019] Fig. 9 The embodiment according to the present invention is shown Figure 4 FIG. 3 is a flowchart of the operation of the data transmission device 310 switching the signal channel. DETAILED DESCRIPTION
[0020] The following will provide detailed reference to the embodiments of the present invention. Although the present invention is described and illustrated by these embodiments, it should be noted that the present invention is not limited to these embodiments. On the contrary, the present invention encompasses all substitutes, variants and equivalents within the spirit of the invention and the scope of the invention as defined by the appended claims.
[0021] In addition, in order to better illustrate the present invention, numerous specific details are provided in the following specific embodiments. It will be understood by those skilled in the art that the present invention can be implemented without these specific details. In other examples, well-known methods, procedures, components and circuits are not described in detail in order to highlight the subject matter of the present invention.
[0022] Figure 3 The figure shows a block diagram of a signal transmission system 300 according to an embodiment of the present invention. Figure 3As shown, the signal transmission system 300 includes a host 102, a data transmission device 310 and a memory card 104. The host 102 can be a host part of an electronic device, such as a laptop, a desktop computer, a digital camera, a tablet, etc. The data transmission device 310 includes an analog signal switch module 3021, an analog signal switch module 3022, a control module 304, a mode selection and switching module 306 and a card signal selection module 308. The memory card 104 is a memory card, including but not limited to SD3.X-SD7.X, type memory cards, wherein SD3.X-SD6.X is a normal mode memory card, that is, during the communication process with the host 102, a normal transmission mode is used to transmit data, and the normal transmission mode here includes UHSI mode and UHSII mode (hereinafter, UHSI transmission mode and UHSII transmission mode are both referred to as normal transmission mode). When the memory card is a SD3.X mode card, the transmission mode is UHSI mode, and when the memory card is a SD4.X-SD6.X type memory card, the transmission mode is UHSII mode. The SD7.X type memory card is a high-speed memory card, that is, the high-speed mode is used to transmit data during the communication with the host 102. The data transmission device 310 is used to realize the signal transmission between the host 102 and the memory card 104, and to make the memory card 104 work in the best transmission state, that is, when the memory card 104 is a normal mode memory card, the data transmission device 310 works in the normal transmission mode, and when the memory card 104 is a high-speed mode memory card, the data transmission device 310 works in the high-speed transmission mode.
[0023] The data transmission device 310 of the embodiment disclosed in the present invention can be used in a laptop computer as a data transmission chip of the laptop computer to realize data transmission between the laptop computer and an external memory card. The data transmission chip is, for example, a card reader controller. Those skilled in the art should understand that the data transmission device 310 can be used in any other electronic device that needs to perform data transmission with an external memory card, such as a digital camera, a mobile phone, a desktop computer, a tablet computer, etc.
[0024] The external memory card 104 may be an SD memory card, and the host 102 of the electronic device is provided with an SD card slot as an interface for connecting the SD memory card. After the SD memory card 104 is inserted into the SD card slot of the electronic device, the pins of the SD memory card contact the pins of the SD card slot, and data transmission between the SD memory card and the electronic device can be realized through the data transmission chip.
[0025] like Figure 3As shown, the data transmission device 310 includes: an analog signal switch module 3021 connected to the host 102 through a signal channel 321, and the signal channel 321 can be a high-speed serial computer expansion bus PCIE (PCI-Express). In one embodiment, the analog signal switch module 3021 is a high-speed MUX, which is used to control the connection or disconnection of two lines. In addition to the high-speed MUX channel, any other device that can connect or disconnect the line can also be used to achieve switching between channels 3001 or channels 3005. When the inserted memory card 104 meets the first condition, for example, the inserted memory card is a memory card in low-speed mode, such as an SD3.0 memory card, the analog signal switch module 3021 is connected to the control module 304 through the signal channel 3005, and the card signal selection module 308 selects the signal channel 3009. At this time, when the data transmission device 310 selects the signal channels 3005 and 3009, the data transmission device 310 works in a normal transmission mode, also known as the first transmission mode. Specifically, the first transmission mode includes a UHSI transmission mode and a UHSII transmission mode. The application scenarios of different modes will be described in detail below. The control module 304 includes a PCIE driver ( Figure 3 ), which is used to initialize the initialization and reading and writing of the ordinary memory card 104. When the inserted memory card 104 meets the second condition, for example, the inserted memory card is a memory card in high-speed mode, such as an SD7.0 memory card, the analog signal switch module 3021 selects the signal channel 3001 to connect to the card signal selection module 308, and at the same time, the analog signal switch module 3021, the analog signal switch module 3022 and the signal channel 3011 and the signal channel 3223 between the memory card 104 are connected, wherein the analog signal switch module 3022 and the analog signal switch module 3021 are the same type of MUX switch modules. At this time, when the data transmission device 310 selects the signal channels 3001, 3011 and 3223, the data transmission device 310 operates in the high-speed transmission mode, also referred to as the second transmission mode. According to an embodiment of the present invention, the mode selection and switching module 306 controls the switching of the signal channels of the analog signal switch module 3021, the analog signal switch module 3022 and the card signal selection module 308 according to the type of the connected memory card 104. In one embodiment, the card signal selection module 308 is a low-speed MUX, which is used to control the connection or disconnection of two lines, that is, to select the channel 3001 or 3009. The card signal selection module 308 is connected to the memory card 104 through the bus 3221.
[0026] Specifically, the first condition may, for example, refer to the external memory card 104 being a SD3.0 type memory card, and the level signal responded by the SD3.0 memory card is a high level. The second condition may, for example, refer to the external memory card being a SD7.0 memory card, and the level signal responded by the SD7.0 memory card is a low level. The mode selection and switching module 306 determines the type of the SD memory card according to the high and low levels of the response signal of the command signal sent by the control module 304 to the memory card 104. The command signal and the response signal of the command signal mentioned here will be described below. Figure 4 Described in detail in.
[0027] In this way, in the data transmission device 310 of the embodiment disclosed in the present invention, the external memory card 104 can be different types of memory cards, and according to the type of the connected memory card, the card signal selection module 308 and the analog signal switch module 302 select the corresponding channel and data bus for data transmission, which solves the high cost problem caused by selecting a PCIE switch in the prior art, and also solves the problem of occupying two PCIE interface channels, and thus can reduce the cost of transmission chips in electronic devices, realize a low-cost new architecture and make the transmission process simpler and faster.
[0028] Figure 4 Another block diagram of the signal transmission system 400 according to an embodiment of the present invention is shown. The following table contains the name, type and detailed description information of the signal.
[0029] Serial number name describe 1 PERSET# Functional reset memory card signal, defined by PCIE 2 PCIE TX± PCIE channel, send output differential pair 3 PCIE RX± PCIE channel, receive input differential pair 4 REFCLK+ / RCLK+ Reference clock signal 5 REFCLK- / RCLK- Reference clock signal 6 CLKREQ# Clock request signal 7 SWITCH_CTRL_1 Switch selection signal of analog signal switch module 8 CLK Clock signal sent by the control module 9 CMD The command signal sent by the control module 10 SWITCH_CTRL_2 Card signal selection module switch selection signal 11 VDD1 Power supply, 2.7V-3.6V 12 VDD2 Power supply, 1.7V-1.95V 13 VDD3 Power supply, 1.14V-1.30V 14 DATA3-DATA0 Data Signal 15 D1± / D0± Data Signal 16 RESET# Reset signal for high-speed interface 17 CD# Card detection signal
[0030] like Figure 4As shown, according to the embodiment disclosed in the present invention, after the memory card 104 is connected, the control module 304 receives the CD# signal and detects that CD# is at a low level, and the mode detection and switching module 306 instructs to turn on the VDD1 power supply. The data transmission device 310 works in the first transmission mode by default. Those skilled in the art should understand that the default working mode can be configured, and can be configured in the first transmission mode or in the second transmission mode. This article takes the configuration of the default transmission mode as the first transmission mode as an example for detailed description, and the default configuration mode should not be used as a limitation of the present invention, that is, the A port of the analog signal switch module 3021 and the analog signal switch module 3022 is turned on (hereinafter, the turning on / selecting the A port refers to the simultaneous turning on / selecting of the A ports in the analog signal switch modules 3021 and 3022), also called the first port, and the card signal selection module 308 selects the first signal channel 315. Specifically, the mode selection and switching module 306 sends a first control signal SWITCH_CTRL_1 signal to the analog signal switch module 3021 and the analog signal switch module 3022, instructing the analog signal switch module 3021 and the analog signal switch module 3022 to select the A port, and the root complex in the host 102 is connected to the control module 304 through the signal channels 321 and 313. At the same time, the mode selection and switching module 306 sends a second control signal SWITCH_CTRL_2 signal to control the card signal selector 308 to select the signal channel 315, that is, to select the first signal channel 315.
[0031] Further, the control module 304 in the data transmission device 310 sends a clock signal CLK and a command signal CMD to the memory card 104. The control module 304 receives the response signal CMD8 fed back from the memory card 104 to determine the type of the memory card 104. Specifically, by parsing the response content of the memory card 104 to the command CMD8, it is obtained whether the memory card supports PCIE transmission and whether it supports VDD3, that is, supports 1.2V power supply. If the inserted memory card 104 is a normal mode memory card, such as a SD3.X-SD6.X type memory card, the level of the corresponding bit of the response signal CMD8 is low, the analog signal switch module 302 and the card signal selection module 308 remain in the initial working state, and no switching is required. The data transmission device 310 works in the first transmission mode. If the inserted memory card 104 is a high-speed mode SD7.X type memory card, the control module 304 interrupts the CLK signal sent to the memory card 104, and instructs the mode detection and switching module 306 to turn on VDD2 or VDD3 to power the memory card 104. Further, the mode selection and switching module 306 sends a first control signal SWITCH_CTRL_1 signal to the analog signal switch module 3021 and the analog signal switch module 3022, instructing the analog signal switch modules 3021 and 3022 to disconnect the A port (the disconnection of the A port in the text refers to disconnecting the A port in the analog signal switch modules 3021 and 3022 at the same time), and the B port (including the B port in the analog signal switch 3021 and 3022), also referred to as the second port, remains disconnected. The root complex in the host 102 is connected to the host 102 through the signal PCIE TX+ / - , also called PCIE sends an output differential pair signal, and finds the PCIE controller device in the control module 304 ( Figure 4 The signal from the host 102 to the root complex in the host 102 is lost, and the root complex in the host 102 determines that the PCIE device is lost. After this state is maintained for a period of time, the root complex confirms it as a hot plug event and reports it to the system, and the system uninstalls the PCIE controller device ( Figure 4 The mode selection and switching module 306 then sends a first control signal SWITCH_CTRL_1 signal to the analog signal switch modules 3021 and 3022 to select the B port. Those skilled in the art should understand that the way in which the analog signal switch modules 3021 and 3022 select the B port is not limited to this. In the specific selection process, the analog signal switch modules 3021 and 3022 can also continue to select the A port. When the mode detection CLKREQ# is at a high level, the analog signal switch modules 3021 and 3022 do not need to change the selection state. When the mode detection CLKREQ# is at a low level, the analog signal switch modules 3021 and 3022 disconnect from the A port and then select the B port. A detailed process description will be provided below.
[0032] Further, the mode selection and switching module 306 sends the second control signal SWITCH_CTRL_2 signal to the card signal selection module 308, and the card signal selection module 308 selects the RESET# signal and drives RESET# to a low level. The mode selection and switching module 306 selects the CLKREQ# clock request signal, and detects whether the memory card 104 drives the CLKREQ# clock request signal to a low level within a certain period of time. If so, the card signal selection module 308 is controlled by the second control signal SWITCH_CTRL_2 signal to select the second signal channel 312, that is, the reference clock signal REFCLK± and the clock request signal CLKREQ#. At this time, the root complex of the host 102 is connected to the memory card 104, and it is confirmed as a hot plug event. The PCIE channel is successfully connected, and the system detects that a new PCIE device is connected, reads the PCIE configuration register and loads the standard NVME driver. On the contrary, if CLKREQ# is at a high level, the mode selection and switching module 306 determines that the memory card 104 is a normal mode memory card and does not support PCIE high-speed mode transmission. The mode selection and switching module 306 controls the analog signal switch modules 3021 and 3022 to select the A port through the first control signal SWITCH_CTRL_1. The root complex of the host 102 is connected to the control module 304 and is confirmed as a hot plug event. The successful connection of the PCIE channel means that the root complex of the host 102, the signal channel 321, the A port, the signal channel 313 and the control module 304 remain connected. The system detects the access of a new PCIE device and reads the PCIE configuration register ( Figure 4 The card signal selection module 308 is controlled by the second control signal SWITCH_CTRL_2 to select the first signal channel 315, so as to work in the normal transmission mode, also called the first transmission mode.
[0033] Further, as described above, in the first transmission mode, the host 102, the A port in the analog signal switch module 3021 and 3022 is turned on, and the signal channels 313, 314, 315 and 316 in the data transmission device 310 are turned on and connected to the memory card 104. Further, the control module 304 sends a CLK signal and sends an ACMD41 command to the memory card 104 through the CMD signal channel, where the ACMD41 command is a command defined by the standard SD card protocol. After receiving the ACMD41 command, the memory card 104 returns a feedback signal, wherein the feedback signal includes memory card capability information, such as the driving capability of the card, such as supporting UHSI or UHSII transmission speed. Among them, the UHSI mode is the transmission speed supported by the memory card SD3.X, and the UHSII mode is the transmission speed supported by the memory card SD4.X-SD6.X. The above-mentioned method for judging the transmission speed supported by the general card SD3.X-SD6.X is a solution well known to those skilled in the art, and the present invention will not be repeated.
[0034] Specifically, when the memory card 104 supports the UHSI mode, that is, the memory card is a SD3.X type card, the data signals DATA3-DATA0, the clock signal CLK, and the command signal CMD are transmitted through signal channels 314, 315, and 3221. On the contrary, when the memory card 104 supports the UHSII mode, that is, the memory card is a SD4.X-SD6.X type card, the data signals D0+, D0-, D1+, and D1- are transmitted through signal channels 313, 316, and 3223, and the reference clock signals RCLK+ and RCLK- are transmitted through signal channels 314, 315, and 3221.
[0035] In another embodiment, after the data transmission device 310 detects that a card is inserted, it works in the first transmission mode by default. The control module 304 disables the CLK signal, and directly turns on the VDD1 power supply and the VDD2 or VDD3 power supply to power the memory card 104 without sending the CLK and CMD signals. Further, the mode selection and switching module 306 sends a first control signal SWITCH_CTRL_1 signal to the analog signal switch modules 3021 and 3022, instructing the analog signal switch modules 3021 and 3022 to disconnect the A port, and the B port is also in a disconnected state. The root complex in the host 102 discovers the PCIE controller device ( Figure 4The signal fed back to the host 102 (not shown) is lost, and the host root complex determines that the PCIE device is lost. After this state is maintained for a period of time, the root complex confirms it as a hot plug event and reports it to the system, and the system uninstalls the driver software of the normal mode PCIE controller device. The mode selection and switching module 306 sends the first control signal SWITCH_CTRL_1 signal to the analog signal switch modules 3021 and 3022 to select the B port, and the mode selection and switching module 306 sends the second control signal SWITCH_CTRL_2 signal to the card signal selection module 308, and the card signal selection module 308 selects the RESET# signal and drives RESET# to a low level. Further, the mode selection and switching module 306 selects CLKREQ#, and detects whether the memory card 104 drives CLKREQ# to a low level within a certain period of time. If so, the second control signal SWITCH_CTRL_2 signal controls the card signal selection module 308 to select the signal channel 312, also called the second signal channel, that is, the signal REFCLK± and the signal CLKREQ#. At this time, the root complex of the host 102 is connected to the memory card 104, and it is confirmed as a hot plug event, the PCIE link connection is successful, and the system loads the standard NVME driver. On the contrary, if CLKREQ# is high, the mode selection and switching module 306 determines that the memory card 104 is a normal mode memory card, which does not support PCIE high-speed mode transmission. The mode selection and switching module 306 controls the analog signal switch modules 3021 and 3022 to select the A port through the first control signal SWITCH_CTRL_1. The root complex of the host 102 is connected to the control module 304, and it is confirmed as a hot plug event. The PCIE link connection is successful, the system detects the access of a new PCIE device, reads the PCIE configuration register and loads the driver of the normal mode PCIE controller. And the card signal selection module 308 is controlled by the second control signal SWITCH_CTRL_2 to select the first signal channel 315, that is, the data signals DATA3-DATA0, RCLK+, and RCLK-. In the embodiment of the present invention, the data transmission device 310 determines the type of the memory card 104 through the CLKREQ# signal level and completes the switching of the transmission mode.
[0036] In another embodiment, if the current working mode is the PCIE high-speed transmission mode, that is, the memory card 104 is a memory card that meets the second condition. The switching process from the high-speed transmission mode, also called the second transmission mode, to the normal transmission mode, also called the first transmission mode, is as follows: If the current working mode is the PCIE second transmission mode: When the memory card 104 is unplugged, the control module 304 in the data transmission device 310 receives the level of the card detection signal CD# sent by the memory card 104, and determines that the memory card 104 is unplugged. The root complex of the host 102 finds through the PCIE TX+ / - signal that the signal fed back to the host 102 by the PCIE device (memory card 104) is lost, and the root complex of the host 102 determines that the PCIE device (memory card PCIE device) is lost. The mode detection and switching module 306 controls the analog signal switch modules 3021 and 3022 to disconnect the B port through the first control signal SWITCH_CTRL_1. At this time, the A port is also in a disconnected state. After this state is maintained for a period of time, the root complex confirms it as a hot plug event and reports it to the system. The system uninstalls the driver software of the PCIE NVMe controller device. The mode selection and switching module 306 controls the analog signal switch modules 3021 and 3022 to select the A port through the first control signal SWITCH_CTRL_1. The root complex of the host 102 is connected to the control module 304 and confirmed as a hot plug event. The PCIE link is successfully connected. The system detects the access of a new PCIE device, reads the PCIe configuration register and loads the driver of the normal mode PCIE controller. And the card signal selection module 308 is controlled by the second control signal SWITCH_CTRL_2 to select the first signal channel 315, that is, the data signal DATA3-DATA0, RCLK+, RCLK-, and close VDD2 or VDD3.
[0037] According to the embodiment disclosed in the present invention, the control module 304 in the data transmission device 310 receives the level of the card detection signal CD# sent by the memory card 104 to determine the connected memory card. In one embodiment, the type of the connected memory card is determined by the response signal CMD8 of the CMD signal. The mode selection and switching module 306 sends the first control signal SWITCH_CTRL_1 and the second control signal SWITCH_CTRL_2 to respectively control the switching of the analog signal switch modules 3021, 3022 and the card signal selection module 308, thereby realizing the communication of different types of memory cards, such as selecting the first transmission mode for the low-speed card SD3.X-SD6.X type, and selecting the second transmission mode for the high-speed card SD7.X.
[0038] According to the embodiments disclosed in the present invention, those skilled in the art should understand that the default working mode of the data transmission device 310 can select the first transmission mode or the second transmission mode to start, which should not be understood as a limitation of the present invention.
[0039] Figure 5 The embodiment according to the present invention is shown Figure 4 FIG. 3 is an internal block diagram of the mode selection and switching module 306. Figure 5 As shown, the mode selection and switching module 306 includes a switch control unit 3062, a common mode voltage control unit 3064, a main state machine 3066 and a mode detection unit 3068. Specifically, the switch control unit 3062 is used to generate a first control signal SWITCH_CTRL_1 to control the ports of the analog signal switch modules 3021 and 3022, and to generate a second control signal SWITCH_CTRL_2 to control the port of the card signal selection module 308.
[0040] According to an embodiment of the present invention, the PCIE root complex at the host 102 end is sensitive to the off time of the device connected thereto, such as the data transmission device 310. In other words, when the off time of the A port and the B port of the analog signal switch modules 3021 and 3022 meet the minimum off time requirement, the root complex and the upper system application level can determine the state of the connected device. For example, when it is in the connected or disconnected state, if the switching time is short, the upper system application level cannot correctly identify the connected or disconnected state. At the same time, after the upper system detects the hot plug or hot unplug event, it needs time to do the corresponding processing, such as the unloading or loading of the driver, which takes time. Therefore, a configurable timer is designed here to set different waiting times.
[0041] The common mode voltage control unit 3064 controls different common mode voltage outputs according to the type of the connected memory card 104. In one embodiment, a high-speed memory card, such as SD7.X, has or does not have a decoupling capacitor on the differential signal. In one embodiment, there is a parameter configuration register inside the chip, and different parameters are set to control the common mode voltage according to different application situations.
[0042] The main state machine 3066 is used to receive all external signals, such as control signals, data signals, command signals, etc., to monitor all states of the analog signal switch modules 3021 and 3022 and the card signal selection module 308 during the switching process, and to control the operation of each module. The mode detection unit 3068 is used to detect the type of the connected memory card 104. Specifically, the mode detection unit 3068 determines the type of the memory card 104 in combination with the response signal level of the command signal CMD8 sent by the control module 304.
[0043] Figure 6 The embodiment according to the present invention is shown Figure 3 FIG. 3 is a flowchart of the working process of the data transmission device 310. Figure 6 Will combine Figure 3 and Figure 4Describe. Figure 6 As shown, the data transmission method includes steps 601-611:
[0044] Step 601: After the memory card 104 is connected, the data transmission device 310 works in the first transmission mode by default;
[0045] Step 603: The data transmission device 310 determines the type of the connected storage card 104. For specific determination methods, refer to Figure 4 The control module 304 sends a command signal CMD to the memory card 104, and its response signal CMD8 level signal is low level, when the connected memory card 104 is a normal mode memory card, and is high level, when it is a high speed mode memory card.
[0046] Step 605: Determine the type of the memory card 104. If the external memory card 104 satisfies the first condition, execute step 613, that is, the data transmission device 310 operates in the first transmission mode.
[0047] Step 607: When the external memory card 104 meets the second condition, the mode selection and switching module 306 sends the first control signal SWITCH_CTRL_1 to the analog signal switch modules 3021 and 3022, and the A ports in the analog signal switch modules 3021 and 3022 are disconnected and the B ports are connected.
[0048] Step 609 : the mode selection and switching module 306 sends the second control signal SWITCH_CTRL_2 to the card signal selection module 308 , and the card signal selection module 308 selects the second signal channel 312 and disconnects the first signal channel 315 .
[0049] Step 611: The PCIE connection is successful, that is, the memory card 104 selects the signal channels 311, 312, 3221 and 3223, and connects to the host 102 through the B port. At this time, the data transmission device 310 works in the second transmission mode.
[0050] Step 613: The data transmission device 310 operates in the first transmission mode.
[0051] Step 615 : When the data transmission device 310 operates in the first transmission mode, further determine whether the memory card 104 supports the UHSII transmission mode. If yes, execute step 619 ; otherwise, execute step 617 .
[0052] Step 617: The data transmission mode 310 operates in the UHSI transmission mode.
[0053] Step 619: The data transmission mode 310 operates in the UHSII transmission mode, and the process ends.
[0054] Specifically, the data transmission method can be implemented by the cooperation of various modules in the data transmission device 310. For example, the mode selection and switching module 306 controls the first control signal SWITCH_CTRL_1 to select the analog signal switch modules 3021 and 3022 to turn on the A port or the B port, and the second control signal SWITCH_CTRL_2 selects the card signal selection module 308 to select the first signal channel 315 or the second signal channel 312. For details, refer to Figure 4 The conditions for the conduction of the A port and the B port, and the conditions for the conduction of the first signal channel 315 or the second signal channel 312. According to an embodiment of the present invention, the first condition includes that the external memory card meets the transmission characteristics of SD3.X-SD6.X, and the first transmission mode refers to the normal transmission mode; the second condition includes that the external memory card meets the transmission characteristics of SD7.X, and the second transmission mode refers to the high-speed transmission mode.
[0055] Figure 7 The embodiment according to the present invention is shown Figure 3 or Figure 4 Another working flow diagram of the data transmission device 310. Figure 7 Will combine Figure 3 and Figure 4 Describe. Figure 7 As shown, the data transmission method includes steps 701-717:
[0056] Step 701: insert the memory card 104, and the data transmission device 310 works in the first transmission mode by default. When working in the first transmission mode, the first control signal SWITCH_CTRL_1 and the second control signal SWITCH_CTRL_2 generated by the mode selection and switching module 306 respectively control the analog signal switch modules 3021, 3022 and the card signal selection module 308. Figure 4 There is a detailed description in , which will not be repeated here.
[0057] Step 703: The first control signal SWITCH_CTRL_1 instructs the analog signal switch modules 3021 and 3022 to disconnect the A port;
[0058] Step 705: The second control signal SWITCH_CTRL_2 instructs the card signal selection module 308 to select the first signal channel 315, and the mode selection and switching module 306 drives RESET# to a low level;
[0059] Step 707: The second control signal SWITCH_CTRL_2 instructs the card signal selection module 308 to select the second signal channel 312 and select the CLKREQ# signal;
[0060] Step 709 : the mode selection and switching module 306 determines whether the memory card 104 drives CLKREQ# to a low level, and if so, executes step 713 ; otherwise, it is determined that the connected memory card 104 meets the first condition, and executes step 711 .
[0061] Step 711: if CLKREQ# is at a high level, it is determined that the inserted memory card 104 meets the first condition, the first control signal SWITCH_CTRL_1 instructs the analog signal switch modules 3021 and 3022 to select port A, and the second control signal SWITCH_CTRL_2 instructs the card signal selection module 308 to select the first signal channel 315;
[0062] Step 713: If CLKREQ# is at a low level, the first control signal SWITCH_CTRL_1 instructs the analog signal switch modules 3021 and 3022 to select port B;
[0063] Step 715: The second control signal SWITCH_CTRL_2 instructs the card signal selection module 308 to select the second signal channel 312 and select the signal REFCLK±. The root complex at the host 102 end is connected to the memory card 104, and the component confirms that the current state is a hot plug event. The host 102 determines that a PCIE device (including a memory card device with a PCIE interface) is inserted, and loads a standard NVME driver to achieve communication between the host 102 and the memory card 104.
[0064] Step 717: The data transmission device 310 operates in the second transmission mode.
[0065] Step 719 : When the data transmission device 310 operates in the first transmission mode, it is further determined whether the memory card 104 supports the UHSII transmission mode. If the memory card 104 supports the UHSII transmission mode, step 723 is executed; otherwise, step 721 is executed.
[0066] Step 721: The data transmission device 310 operates in the UHSI transmission mode.
[0067] Step 723: The data transmission device 310 operates in the UHSII transmission mode. Figure 8 Another embodiment according to the present invention is shown Figure 4 The flowchart of the operation of the data transmission device 310 is shown in the figure, especially the flowchart of how the data transmission device 310 switches the signal channel by judging the signal levels and switches the operation mode of the data transmission device 310 according to the type of the memory card 104. To avoid redundancy, the default operation mode of the data transmission device 310 after connecting to the memory card 104 is not shown in this flowchart. Figure 8 Will combine Figure 4 Describe. Figure 8 As shown, the working process of the data transmission device 310 includes steps 801-821:
[0068] Step 801: When the user inserts the memory card 104, the mode selection and switching module 306 in the data transmission device 310 turns on the power supply VDD1 to provide power to the memory card 104;
[0069] Step 802: the control module 304 sends a clock signal CLK to the memory card 104;
[0070] Step 803: The control module 304 sends a command signal CMD to the memory card 104. After receiving the command signal, the memory card 104 returns a response signal CMD8 to the control module 304. The type of the connected memory card 104 can be determined based on the level of the feedback response signal CMD8. For example, a memory card in normal mode, such as SD3.X-SD6.X, that meets the first condition; or a memory card in high-speed mode, such as SD7.X, that meets the second condition;
[0071] Step 804: Determine whether the connected memory card 104 supports PCIE, in other words, whether the second condition is met. If yes, execute step 805, otherwise execute step 816;
[0072] Step 805: The control module 304 disables the clock signal CLK;
[0073] Step 806: The mode selection and switching module 306 determines whether the memory card 104 supports the VDD3 power supply. If yes, execute step 807; otherwise, jump to step 809;
[0074] Step 807: When the memory card 104 supports the power supply VDD3, the control module 304 determines whether the host 102 supports the power supply VDD3. If yes, the mode selection and switching module 306 provides the power supply VDD3 to the memory card 104.
[0075] Step 808: After the mode selection and switching module 306 turns on the power supply VDD3, step 810 is executed;
[0076] Step 809: When the memory card 104 does not support the power supply VDD3, the mode selection and switching module 306 provides the power supply VDD2 for the memory card 104, and jumps to step 812;
[0077] Step 810: If the mode selection and switching module 306 turns on the power supply VDD3, the control module 304 enters a waiting state and waits for a certain time interval before executing step 813;
[0078] Step 811: the mode selection and switching module 306 disconnects the power supply VDD3 and executes step 809;
[0079] Step 812: If the mode selection and switching module 306 provides the power source VDD2 to the memory card 104, the control module 304 enters the waiting state and waits for a certain time interval before executing step 814;
[0080] Step 813: The mode selection and switching module 306 determines whether the CLKREQ# signal fed back by the memory card 104 is at a low level, if so, executes step 817, otherwise, executes step 811;
[0081] Step 814: The mode selection and switching module 306 determines whether the CLKREQ# signal fed back by the memory card 104 is at a low level, if so, executes step 817, otherwise, executes step 815;
[0082] Step 815: The control module 304 sends a CLK clock signal to the memory card 104;
[0083] Step 816: The data transmission device 310 meets the first condition and works in the first transmission mode;
[0084] Step 817: If the fed-back CLKREQ# signal is at a low level, PERSET# is deactivated by the mode selection and switching module 306, and the data transmission device 310 sends a REFCLK± signal to the SD7.0 card, and step 818 is executed;
[0085] Step 818: Determine whether the PCIE is connected, that is, whether the second signal channel 312 is connected. If yes, execute step 819; otherwise, jump to step 815;
[0086] Step 819: The data transmission device 310 meets the second condition and works in the high-speed transmission mode, also called the second transmission mode, and executes step 820;
[0087] Step 820: Whether the data transmission device 310 receives the instruction sent by the host to turn off the power supply VDD2 and / or VDD3, if yes, execute step 821, otherwise, execute step 819;
[0088] Step 821 : The mode selection and switching module 306 disconnects the power supplies VDD2 and VDD3 , and returns to step 802 .
[0089] Step 822: When the data transmission device 310 operates in the first transmission mode, further determine whether the memory card 104 supports the UHSII transmission mode. If yes, execute step 824; otherwise, execute step 823.
[0090] Step 823: The data transmission device 310 operates in the UHSI transmission mode.
[0091] Step 824: The data transmission mode 310 operates in the UHSII transmission mode.
[0092] Those skilled in the art should understand that Figure 6 , Figure 7 as well as Figure 8 The sequence of the working process of the data transmission device 310 disclosed in the specification should not be used as a limitation of the present invention, and any sequence adjustment made based on the spirit of the present invention should be included in the protection scope of the present invention.
[0093] In addition, when the data transmission device 310 is in an unloaded state, that is, when the memory card 104 is removed, the data transmission device 310 can work in different states. Specifically, the working modes include: Mode 1, the data transmission device 310 is unloaded, and the system displays the chip and the driver; Mode 2: In the data transmission device 310, the PCIE connection is in a disconnected state, that is, the PCIE root complex and the control module 304 and the memory card 104 in the normal transmission mode are all disconnected; Mode 3: When the user pulls out the memory card 104, the data transmission mode 310 maintains the working state before the card is pulled out. For example, if the data transmission device 310 works in the normal transmission mode before the card is pulled out, also called the first transmission mode, it stops in the normal transmission mode after the card is pulled out, and the PCIE root complex and the control module 304 remain connected. On the contrary, if the data transmission device 310 works in the high-speed transmission mode before the card is pulled out, also called the second transmission mode, it maintains the PCIE high-speed transmission mode after the card is pulled out, and the PCIE root complex is connected to the B port. In the application scenarios of the above methods 1, 2 and 3, there are disadvantages such as time-consuming in hot plugging and unplugging states and failure to display the driver.
[0094] Fig. 9 Shown is an embodiment according to the present invention, Figure 4 FIG. 3 is a flowchart of a data transmission device 310 switching a signal channel in an idle state. Fig. 9 Will combine Figure 4-Figure 8 Describe. Fig. 9As shown, after the data transmission device 310 triggers a hot unplug event, step 901: unplug the memory card 104; step 903: determine whether the working mode of the data transmission mode 310 before unplugging the card is working in the first transmission mode, if so, execute step 909, otherwise, execute step 905. Step 905: maintain the B port in the analog signal switch modules 3021 and 3022 to be turned on, that is, the PCIE root complex of the host 102, the B port remains turned on; step 907: wait, which means that after a preset time period, the PCIE root complex in the host 102 disconnects from the B port; step 909: the PCIE root complex in the host 102 switches to connect with the control module 304, that is, the A port in the analog signal switch modules 3021 and 3022 is turned on and connected to the control module 304. Through Fig. 9 In the disclosed embodiment of channel switching in the no-load state, when the data transmission device 310 triggers the card insertion, the driver loading and unloading time can be effectively saved. The data transmission device 310 of the disclosed embodiment can be implemented as a hardware circuit, such as an integrated circuit (ASIC), a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware, or in any appropriate combination of any of them.
[0095] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0096] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data transmission device, connected between a host device and a memory card, wherein the host device and the memory card communicate with each other through the data transmission device, characterized in that: include: A first port is connected to a control module in the data transmission device, and a first control signal controls the gating of the first port; A second port is connected to a card signal selection module in the data transmission device, and the first control signal controls the gating of the second port; a first signal channel, which is a channel connected between the control module and the card signal selection module, and is used to transmit a data signal and a clock signal between the control module and the card signal selection module, and a second control signal controls the gating of the first signal channel; as well as a second signal channel, which is a channel connected between the host device and the card signal selection module, and is used to transmit a clock signal between the host device and the card signal selection module, and a second control signal controls the gating of the second signal channel; as well as A third signal channel is connected to the control module and is used to transmit data signals between the control module and the memory card, wherein: When the memory card satisfies the first condition, the first port is enabled by the first control signal, the first signal channel is enabled by the second control signal, the data transmission device connects the host device and the memory card according to the first port and the first signal channel, and operates in the first transmission mode. When the memory card satisfies the second condition, the second port is enabled by the first control signal, the second signal channel is enabled by the second control signal, the data transmission device connects the host device and the memory card through the second port and the second signal channel, and operates in the second transmission mode. Wherein, in the case where the data transmission device operates in the first transmission mode, when the memory card supports the UHSII transmission mode, the data transmission device operates in the UHSII transmission mode, otherwise the data transmission device operates in the UHSI transmission mode, and Wherein, in the UHSII transmission mode, the third signal channel is enabled to transmit the data signal between the control module and the memory card, and the first signal channel is enabled to transmit the clock signal between the control module and the memory card, and in the UHSI transmission mode, the first signal channel is enabled to transmit the data signal and the clock signal between the control module and the memory card.
2. The data transmission device according to claim 1, characterized in that: Also includes: A mode selection and switching module, used to generate a first control signal and a second control signal according to conditions satisfied by the memory card; A first analog signal switch module, comprising the first port and the second port; A second analog signal switch module, comprising a third port and a fourth port, wherein the first control signal controls the gating of the third port or the fourth port, and the third signal channel is connected between the control module and the third port; as well as The fourth signal channel is a channel connected between the second port and the fourth port, and is used to transmit the PCIE transceiver signal between the host device and the memory card.
3. The data transmission device according to claim 2, characterized in that: The mode selection and switching module includes: A switch control unit, configured to generate the first control signal and the second control signal; A voltage control unit, used for controlling different common mode voltage outputs according to the type of the memory card; A main state machine, configured to receive all signals transmitted in the data transmission device; and A mode detection unit is used to detect the type of the memory card.
4. The data transmission device according to claim 1, characterized in that: Also includes: The control module is used to judge the type of the memory card, and determine whether the memory card satisfies the first condition or the second condition according to the level of the response signal fed back by the memory card.
5. The data transmission device according to claim 1, characterized in that: When the first port is enabled, it is used to transmit signals between the host device and the control module. When the second port is enabled, the host device transmits part of the signal between the host device and the memory card through the second signal channel, and The data transmission device also includes a fourth signal channel, which connects the host device and the memory card to transmit a PCIE transceiver signal.
6. The data transmission device according to claim 1, characterized in that: The card signal selection module is connected to the memory card through a fifth signal channel, and is used to select the first signal channel or the second signal channel according to the second control signal; Among them, when the memory card meets the first condition, the first signal channel is connected to the fifth signal channel to transmit a data signal, a reset signal or a reference clock signal; when the memory card meets the second condition, the second signal channel is connected to the fifth signal channel to transmit a reference clock signal and a clock request signal.
7. The data transmission device according to claim 4, characterized in that: The control module is further used to receive a card detection signal sent by the memory card, and determine whether to connect the memory card according to the level of the received card detection signal.
8. The data transmission device according to claim 1, characterized in that: The first condition includes that the memory card satisfies the transmission characteristics of SD3.X-SD6.X; The second condition includes that the memory card meets the transmission characteristics of SD7.X.
9. The data transmission device according to claim 1, characterized in that: When the memory card supports the UHSI transmission mode, the memory card is a SD3.X type card, and When the memory card supports the UHSII transmission mode, the memory card is a SD4.X-SD6.X type card.
10. A data transmission method for an electronic device, which is used to control signal transmission between a host device and a memory card, comprising: Sending a first control signal to control a connection port between the host device and the data transmission device, wherein the connection port includes a first port connected to a control module in the data transmission device and a second port connected to a card signal selection module in the data transmission device; Sending a second control signal to control a channel between the data transmission device and the memory card, wherein the channel includes a first signal channel connected between the control module and the card signal selection module, used to transmit a data signal and a clock signal between the control module and the card signal selection module, and includes a second signal channel connected between the host device and the card signal selection module, used to transmit a clock signal between the host device and the card signal selection module; When the memory card satisfies the first condition, the data transmission device selects the first port through the first control signal, selects the first signal channel through the second control signal, and the data transmission device connects the host device and the memory card through the first port and the first signal channel, and operates in a first transmission mode; and When the memory card satisfies the second condition, the data transmission device selects the second port through the first control signal, selects the second signal channel through the second control signal, and connects the host device and the memory card through the second port and the second signal channel, and operates in the second transmission mode. Wherein, in the case where the data transmission device operates in the first transmission mode, when the memory card supports the UHSII transmission mode, the data transmission device operates in the UHSII mode, otherwise the data transmission device operates in the UHSI transmission mode, and Among them, in the UHSII transmission mode, the first signal channel is enabled to transmit the clock signal between the control module and the memory card, and the third signal channel connected to the control module is enabled to transmit the data signal between the control module and the memory card. In the UHSI transmission mode, the first signal channel is enabled to transmit the data signal and the clock signal between the control module and the memory card.
11. The data transmission method according to claim 10, further comprising: The level of the response signal fed back by the memory card is received, and it is determined whether the memory card satisfies the first condition or the second condition and the type of the memory card.
12. The data transmission method according to claim 11, further comprising: transmitting a reset signal between the data transmission device and the memory card through the first signal channel; transmitting a clock request signal between the host device and the memory card through the second signal channel; as well as A PCIE transceiver signal is transmitted between the host device and the memory card via a fourth signal channel, wherein the fourth signal channel comprises a high-speed serial computer expansion bus PCIE.
13. The data transmission method according to claim 10, further comprising: A card detection signal is received, and according to the level of the received card detection signal, it is determined whether the memory card is connected.
14. The data transmission method according to claim 11, further comprising: After the first port is enabled by the first control signal, the first signal channel is enabled by the second control signal, and a reset signal is driven to a low level.
15. The data transmission method according to claim 14, further comprising: The level of the clock request signal is detected, and whether the second signal channel is to be enabled is determined according to the level state of the returned clock request signal.
16. The data transmission method according to claim 15, further comprising: When the clock request signal is at a high level, it is determined that the memory card meets the first condition; otherwise, it is determined that the memory card meets the second condition.
17. The data transmission method according to claim 10, wherein: When the memory card supports the UHSI transmission mode, the memory card is a SD3.X type card, and When the memory card supports the UHSII transmission mode, the memory card is a SD4.X-SD6.X type card.
18. A data transmission system, comprising a host device, a data transmission apparatus and a memory card, wherein: The first control signal in the data transmission device is used to control the connection port between the host device and the data transmission device, wherein the connection port includes a first port connected to a control module in the data transmission device and a second port connected to a card signal selection module in the data transmission device; The second control signal in the data transmission device is used to control a channel between the data transmission device and the memory card, wherein the channel includes a first signal channel connected between the control module and the card signal selection module, used to transmit a data signal and a clock signal between the control module and the card signal selection module, and includes a second signal channel connected between the host device and the card signal selection module, used to transmit a clock signal between the host device and the card signal selection module; When the memory card satisfies the first condition, the data transmission device selects the first port through the first control signal, selects the first signal channel through the second control signal, and the data transmission device connects the host device and the memory card through the first port and the first signal channel, and operates in a first transmission mode; and When the memory card satisfies the second condition, the data transmission device selects the second port through the first control signal, selects the second signal channel through the second control signal, and connects the host device and the memory card through the second port and the second signal channel, and operates in the second transmission mode. Wherein, in the case where the data transmission device operates in the first transmission mode, when the memory card supports the UHSII transmission mode, the data transmission device operates in the UHSII mode, otherwise the data transmission device operates in the UHSI transmission mode, and Among them, in the UHSII transmission mode, the first signal channel is enabled to transmit the clock signal between the control module and the memory card, and the third signal channel connected to the control module is enabled to transmit the data signal between the control module and the memory card. In the UHSI transmission mode, the first signal channel is enabled to transmit the data signal and the clock signal between the control module and the memory card.
19. A method for switching signal channels using the data transmission system according to claim 18, comprising: When the memory card is removed, When the memory card satisfies the first condition, the data transmission device maintains the first port connected, and the host device is connected to the control module in the data transmission device; and When the memory card meets the second condition, the data transmission device maintains the second port on, and after waiting for a preset period of time, disconnects the second port and connects the first port, and the host device is connected to the control module.
Citation Information
Patent Citations
Electronic device, data transmission device and data transmission method
CN110008151A
Method for integrating multiple data transmission interfaces on smart card and novel smart card
CN1936934A