Nothing Special   »   [go: up one dir, main page]

CN110061890B - Data transmission control circuit, terminal device and data transmission line - Google Patents

Data transmission control circuit, terminal device and data transmission line Download PDF

Info

Publication number
CN110061890B
CN110061890B CN201910305795.XA CN201910305795A CN110061890B CN 110061890 B CN110061890 B CN 110061890B CN 201910305795 A CN201910305795 A CN 201910305795A CN 110061890 B CN110061890 B CN 110061890B
Authority
CN
China
Prior art keywords
data transmission
time length
terminal
transmission line
resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910305795.XA
Other languages
Chinese (zh)
Other versions
CN110061890A (en
Inventor
谈华林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910305795.XA priority Critical patent/CN110061890B/en
Publication of CN110061890A publication Critical patent/CN110061890A/en
Application granted granted Critical
Publication of CN110061890B publication Critical patent/CN110061890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a data transmission control circuit, terminal equipment and a data transmission line. Wherein, this data transmission control circuit includes: the detection module is used for detecting the electrical parameters of a physical interface of the terminal equipment connected with the data transmission line under the condition of data transmission through the data transmission line; the timing module is used for calculating the continuous time length of the electrical parameter exceeding the preset range; the transmission control module is used for suspending data transmission under the condition that the electrical parameters exceed the preset range and the continuous time length does not reach the preset time length; and continuing data transmission under the condition that the continuous time length does not reach the preset time length and the electrical parameter is within the preset range. The embodiment of the invention can improve the reliability and efficiency of data transmission and improve the user experience.

Description

Data transmission control circuit, terminal device and data transmission line
Technical Field
The embodiment of the invention relates to the technical field of data transmission, in particular to a data transmission control circuit, terminal equipment and a data transmission line.
Background
When data transmission is performed between the existing terminal equipment and external equipment through a data transmission line, if connection between the data transmission line and a physical interface of the terminal equipment is loosened or separated, automatic termination of data transmission can be caused. When a file is terminated in the transmission process, if a user wants to complete the transmission of the file, the data transmission line needs to be reconnected with the physical interface, and then the data transmission is carried out on the file again. If the transmission is terminated for multiple times in the transmission process of the file, the transmitted part needs to be retransmitted repeatedly, so that the reliability and efficiency of data transmission are low, and the user experience is reduced.
Disclosure of Invention
The embodiment of the invention provides a data transmission control circuit, terminal equipment and a data transmission line, and aims to solve the problem that in the data transmission process, data transmission is automatically stopped due to the fact that the connection between the data transmission line and a physical interface of the terminal equipment is loosened or separated.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data transmission control circuit, which is applied to a terminal device, and includes:
the detection module is used for detecting the electrical parameters of a physical interface of the terminal equipment connected with the data transmission line under the condition of data transmission through the data transmission line;
the timing module is used for calculating the continuous time length of the electrical parameter exceeding the preset range;
the transmission control module is used for suspending data transmission under the condition that the electrical parameters exceed the preset range and the continuous time length does not reach the preset time length; and continuing data transmission under the condition that the continuous time length does not reach the preset time length and the electrical parameter is within the preset range.
In a second aspect, an embodiment of the present invention provides a terminal device, which includes the above-mentioned data transmission control circuit.
In a third aspect, an embodiment of the present invention provides a data transmission line, including:
the contact detection signal line is used for detecting the electrical parameters of a physical interface of the terminal equipment connected with the data transmission line under the condition that the terminal equipment transmits data through the data transmission line;
and the second connecting terminal is connected with the contact detection signal line and is used for being connected with the first connecting terminal of the physical interface.
In the embodiment of the invention, the setting detection module can be used for detecting the electrical parameters of the physical interface under the condition of data transmission through the data transmission line, the timing module is used for calculating the continuous time length of the electrical parameters exceeding the preset range, the transmission control module is used for suspending data transmission under the condition that the electrical parameters exceed the preset range (abnormal contact occurs between the data transmission line and the physical interface) and the continuous time length does not reach the preset time length, and then, the data transmission is continued under the condition that the continuous time length does not reach the preset time length and the electrical parameters are in the preset range (normal contact is recovered between the data transmission line and the physical interface). Therefore, data transmission can be continued on the basis of the transmitted data without carrying out data transmission on the data again, so that the reliability and the efficiency of data transmission are improved, the success rate of data transmission is improved, and the experience of a user is improved.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
Fig. 1 is a schematic structural diagram of a data transmission control circuit according to an embodiment of the present invention;
fig. 2 is a circuit configuration diagram of a data transfer control circuit of an embodiment of the present invention;
fig. 3 is a circuit configuration diagram of a data transfer control circuit of another embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a data transmission control circuit, a terminal device, and a data transmission line. The following first describes a data transmission control circuit provided in an embodiment of the present invention.
Fig. 1 shows a schematic structural diagram of a data transmission control circuit according to an embodiment of the present invention. As shown in fig. 1, the data transmission control circuit applied to the terminal device includes a detection module 110, a timing module 120, and a transmission control module 130.
The input end of the detection module 110 is connected to a physical interface of the terminal device, the output end of the detection module 110 is respectively connected to the input end of the timing module 120 and the first signal input end of the transmission control module 130, and the output end of the timing module 120 is connected to the second signal input end of the transmission control module 130.
The sensing module 110 is used to sense an electrical parameter of a physical interface of a terminal device connected to a data transmission line in case of data transmission through the data transmission line. The timing module 120 is used for calculating the continuous duration of the electrical parameter exceeding the preset range. The transmission control module 130 is configured to suspend data transmission when the electrical parameter exceeds a preset range and the continuous time length does not reach a preset time length; and continuing data transmission under the condition that the continuous time length does not reach the preset time length and the electrical parameter is within the preset range.
Therefore, the data transmission control circuit according to the embodiment of the present invention can detect the electrical parameter of the physical interface in the case of data transmission through the data transmission line by using the setting detection module, calculate the continuous duration of the electrical parameter exceeding the preset range by using the timing module, suspend data transmission by using the transmission control module in the case that the electrical parameter exceeds the preset range (abnormal contact occurs between the data transmission line and the physical interface) and the continuous duration does not reach the preset duration, and then continue data transmission in the case that the continuous duration does not reach the preset duration and the electrical parameter is within the preset range (normal contact is restored between the data transmission line and the physical interface). Therefore, data transmission can be continued on the basis of the transmitted data without carrying out data transmission on the data again, so that the reliability and the efficiency of data transmission are improved, the success rate of data transmission is improved, and the experience of a user is improved.
In the embodiment of the present invention, the contact state between the physical interface and the data transmission line can be determined by the electrical parameter of the physical interface detected by the detection module 110 in the case of data transmission by the data transmission line. If the electrical parameter exceeds the preset range, it is determined that abnormal contact (for example, deviation, looseness or separation) occurs between the physical interface and the data transmission line, and if the electrical parameter is within the preset range, it is determined that normal contact occurs between the physical interface and the data transmission line.
The physical interface of the terminal device of the embodiment of the invention comprises a first connection terminal for detecting the electrical parameter of the physical interface, a positive voltage data terminal for data transmission, a negative voltage data terminal for data transmission, a ground terminal for grounding and a charging terminal for charging.
The first connection terminal is connected to a second connection terminal of a data interface of the data transmission line, the second connection terminal is used for being connected to a contact detection signal line of the data transmission line, the contact detection signal line is used for detecting an electrical parameter of the physical interface under the condition of data transmission through the data transmission line, and the contact detection signal line can be a conducting wire with approximately zero internal resistance. The positive voltage data terminal is used for connecting a positive voltage data line of the data transmission line, and the negative voltage data terminal is used for connecting a negative voltage data line of the data transmission line. The ground terminal is used for connecting the ground wire of the data transmission line, and the charging terminal is used for connecting the charging wire of the data transmission line.
In the embodiment of the present invention, the detecting module 110 is connected to the first connection terminal to detect the electrical parameter of the physical interface by using the first connection terminal. Since the internal resistance of the contact detection signal line is small, when the detection module 110 detects the electrical parameter of the physical interface using the first connection terminal connected thereto, the influence of the change of the contact state on the electrical parameter can be more remarkably detected, so that the change of the contact state can be more accurately detected.
When the physical interface and the data transmission line are normally contacted, the internal resistance of the first connecting terminal is approximately zero because the first connecting terminal is normally connected with the second connecting terminal; when abnormal contact occurs between the physical interface and the data transmission line, the internal resistance of the first connection terminal and the second connection terminal is increased due to the abnormal contact, and therefore, the contact state can be determined according to the electrical parameters (e.g., voltage value, current value, etc.) of the physical interface related to the internal resistance of the connection portion of the first connection terminal and the second connection terminal.
The method and circuit for detecting the contact state according to the embodiment of the present invention will be described in detail below, taking the electrical parameter as the voltage value as an example.
In the embodiment of the invention, when abnormal contact occurs between the first connecting terminal and the second connecting terminal, the change of the internal resistance at the connecting part can cause the change of the voltage of the corresponding position of the first connecting terminal and the second connecting terminal, so that the change of the internal resistance when the first connecting terminal and the second connecting terminal are connected can be determined by using a voltage detection mode. At this time, the detecting module 110 may include a voltage detecting circuit electrically connected to the first connection terminal and a voltage sampling circuit for detecting an electrical parameter corresponding to the first connection terminal.
Wherein the electrical parameter is a voltage value. The voltage value corresponding to the first connection terminal may be: a potential difference across the first connection terminal or a potential value at either end of the first connection terminal.
Specifically, the principle that the voltage sampling circuit determines the contact state according to the voltage value corresponding to the first connection terminal is as follows:
and acquiring a voltage value corresponding to the first connecting terminal when the first connecting terminal and the second connecting terminal are in normal contact, taking the voltage value at the moment as a reference voltage value, and determining a preset voltage range according to a preset error range. When the voltage value corresponding to the first connecting terminal is the potential difference between the two ends of the first connecting terminal, the reference voltage value is the potential difference between the two ends of the first connecting terminal when the first connecting terminal and the second connecting terminal are in normal contact; when the voltage value corresponding to the first connecting terminal is the potential value of any end of the first connecting terminal, the reference voltage value is the potential value of the end of the first connecting terminal when the first connecting terminal and the second connecting terminal are in normal contact.
Because internal resistance can increase when first connecting terminal and second connecting terminal are improper to be contacted, lead to first connecting terminal and second connecting terminal to carry out the partial pressure to voltage detection circuit for the potential difference of first connecting terminal both ends and the electric potential value at first connecting terminal both ends all can change. Therefore, if it is determined that the potential difference across the first connection terminal or the potential value across the first connection terminal exceeds the corresponding preset voltage range, it may be determined that the first connection terminal and the second connection terminal are abnormally contacted, and if it is determined that the potential difference across the first connection terminal or the potential value across the first connection terminal is within the preset voltage range, it may be determined that the first connection terminal and the second connection terminal are normally contacted.
In addition, since the change in the internal resistance also causes a change in the value of the current passing through the first connection terminal, in other embodiments of the present invention, the connection state of the first connection terminal and the second connection terminal may be determined by detecting the change in the value of the current. The principle of determining the contact state according to the current value is similar to that of determining the contact state according to the voltage value, and is not described herein again.
Although the transmission control module 130 may control the terminal device to suspend data transmission in case of abnormal contact between the data transmission line and the physical interface, and control the terminal device to continue data transmission in case of normal contact between the data transmission line and the physical interface being recovered and the continuous duration does not reach the preset duration, the transmission efficiency may be improved, but the terminal device needs to detect the electrical parameter of the physical interface at any time to determine the contact state, and needs to always maintain a mode of waiting for continuing data transmission, which may result in an excessively high resource occupancy rate of the terminal device, and reduce the processing speed of the terminal device.
Therefore, in the embodiment of the present invention, the transmission control module is further configured to terminate the data transmission when the continuous duration reaches the preset duration.
Specifically, the timing module 120 may be further configured to generate a termination signal when the continuous duration is equal to the preset time. At this time, the transmission control module 130 is further configured to determine whether the continuous duration reaches the preset time according to the termination signal. In this way, a preset time can be designed for the waiting time of the terminal device for waiting for the data transmission to continue. And if the continuous time length of the electrical parameter exceeding the preset range reaches the preset time, the electrical parameter of the physical interface still exceeds the preset range, namely the data transmission line and the physical interface are still in an abnormal contact state, and the terminal equipment terminates the data transmission. If the electrical parameter of the physical interface falls back to the preset range before the continuous time length of the electrical parameter exceeding the preset range reaches the preset time, namely the normal contact between the data transmission line and the physical interface is recovered, the terminal equipment can continue data transmission. Therefore, after the continuous time length of the electrical parameter exceeding the preset range reaches the preset time, the data transmission is not waited to continue, and the terminal equipment can use more resources for other processing.
In an embodiment of the present invention, the timing module 120 may include a charging circuit, where the charging circuit specifically includes: the input end of the phase inverter is connected with the output end connected with the detection module 110, one end of the resistor is connected with the output end of the phase inverter, the other end of the resistor is connected with the second signal input end of the transmission control module 130, one end of the capacitor is connected with one end of the second signal input end of the resistance connection transmission control module 130, and the other end of the capacitor is grounded.
The timing module 120 is configured to perform charging during a period when the electrical parameter exceeds a preset range, and generate a termination signal when the charging voltage reaches a preset voltage. When the electrical parameter exceeds the preset range, the charging circuit may receive the start signal sent by the detection module 110, and start charging. The preset charging voltage may be determined according to an effective voltage threshold of an effective signal at the second signal input terminal of the transmission control module 130.
Fig. 2 is a circuit configuration diagram showing a data transfer control circuit according to an embodiment of the present invention. As shown in fig. 2, the voltage detection circuit of the data transmission control circuit includes a pull-up Resistor R1, the voltage sampling circuit may include an Analog-to-Digital Converter (ADC) circuit, the charging circuit may be a Resistor-capacitor (RC) circuit, and the transmission control module may be a Central Processing Unit (CPU) of the terminal device.
One end of the pull-up resistor R1 is connected with the first connecting terminal, the other end of the pull-up resistor R1 is connected with the reference voltage VREF, the input end of the ADC circuit is connected with an O point between the pull-up resistor R1 and the first connecting terminal, the input end of the RC circuit is connected with the output end of the ADC circuit, the output end of the RC circuit is connected with the interface GPIO _1 of the CPU, and the output end of the ADC circuit is further connected with the interface GPIO _2 of the CPU.
At this time, when the voltage value detected by the ADC circuit exceeds the preset voltage range, a pause signal may be output, where the pause signal is used as a charging start signal of the RC circuit and a pause start signal for the transmission control module to pause data transmission.
In this embodiment, a pull-down resistor R2 is correspondingly disposed on the contact detection signal line of the data transmission line, one end of the pull-down resistor R2 is connected to the second connection terminal of the data transmission line, and the other end of the pull-down resistor R2 is connected to the ground GND. When the first connection terminal is connected with the second connection terminal, the reference voltage VREF, the pull-up resistor R1, the pull-down resistor R2 and the ground GND form a complete voltage detection loop, so that the voltage sampling circuit can detect the voltage value of the O point (the end of the first connection terminal close to the reference voltage VREF).
Therefore, in this embodiment, the accuracy of the detected voltage value can be improved, the detection of the voltage value is not affected by the internal resistance of the contact detection signal line of the data transmission line, and the accuracy of the detection of the contact state between the data transmission line and the physical interface is improved.
In this embodiment, the RC circuit includes an inverter a, a resistor R3, and a capacitor C, wherein an input terminal of the inverter a is connected to an output terminal of the ADC circuit, an output terminal of the inverter a is connected to the interface GPIO _1 of the CPU after being connected to the resistor R3 in series, one end of the capacitor C is connected between the resistor R3 and the interface GPIO _1, and the other end of the capacitor C is grounded.
Therefore, the preset charging voltage can be set as the effective voltage threshold of the effective signal received by the interface GPIO _1 of the CPU, and the effective voltage threshold of the effective signal which can be received by the interface GPIO _1 of the CPU is 1.25V. I.e. the valid signal, i.e. the termination signal, is received by the interface GPIO _1 only when the output voltage reaches 1.25V.
The operation principle of the data transmission control circuit shown in fig. 2 will be described in detail with a specific example. The reference voltage VREF is 1.8V, the pull-up resistor R1 and the pull-down resistor R2 are respectively 100 omega, the ground GND is 0V, the resistor R3 is 50M omega, and the capacitor C is 1 muF. According to the formula
Figure BDA0002029776350000081
The time for the output voltage of the RC circuit to reach 1.25V can be calculated to be 60s, i.e. in this example, the preset time corresponding to the continuous duration is 60 s.
When the data transmission line is normally contacted with the physical interface, the voltage value of the O point acquired by the ADC circuit is 0.9V due to the voltage division effect of the pull-up resistor R1 and the pull-down resistor R2. If the data transmission line has poor contact such as misalignment, abnormal contact occurs between the data transmission line and the physical interface, which may cause the voltage value at the O point to change. According to the above parameters, the voltage range can be preset to be (0.9 ± 10%) V. When the voltage value of the point O exceeds the preset voltage range, the abnormal contact between the data transmission line and the physical interface is considered to occur, and the ADC circuit sends a pause signal. After receiving the pause signal, if the files are in data transmission, the CPU pauses the data transmission and prompts the prompt information of poor contact of the user data transmission line.
The inverter a of the RC circuit receives the pause signal at the same time as the ADC circuit issues the pause signal. If the ADC circuit detects that the voltage value of the point O recovers to (0.9 +/-10%) V within 60s, the pause signal is cancelled, and the CPU continues data transmission in response to the cancellation of the pause signal. If 60s is reached and the ADC circuit has not detected a valid contact, the CPU stops the data transmission in response to the termination signal.
Fig. 3 shows a circuit configuration diagram of a data transfer control circuit according to another embodiment of the present invention. The embodiment shown in fig. 3 is different from the embodiment shown in fig. 2 in that the voltage detection circuit of the data transmission control circuit includes a pull-up resistor R4 and a pull-down resistor R5. One end of the pull-up resistor R4 is connected with the first connection terminal, the other end of the pull-up resistor R4 is connected with the reference voltage VREF, one end of the pull-down resistor R5 is connected with the first connection terminal, the other end of the pull-down resistor R5 is connected with the ground GND, and the input end of the ADC circuit is connected to the O point between the pull-up resistor R1 and the first connection terminal.
In this embodiment, no additional element is required to be added to the contact detection signal line of the data transmission line, and since the internal resistance of the contact detection signal line is small and approximately zero, when the pull-up resistor R4 and the pull-down resistor R5 are both disposed on the terminal device, no large error is generated in the detected voltage value, and therefore, the detection of the contact state between the data transmission line and the physical interface is not affected. Meanwhile, because the pull-up resistor R4 and the pull-down resistor R5 are both arranged on the terminal equipment, no element needs to be additionally arranged on a contact detection signal line of the data transmission line, and therefore, the production cost of the data transmission line corresponding to the terminal equipment can be reduced.
It should be noted that, when the data transmission line is a magnetic data line, since the magnetic data line and the terminal device are more likely to be shifted, loosened or separated in the connection process, the data transmission control circuit according to the embodiment of the present invention can more effectively improve the reliability of data transmission when applied to the magnetic data line.
Fig. 4 is a schematic diagram illustrating a hardware structure of a terminal device implementing various embodiments of the present invention. As shown in fig. 4, the terminal device 200 includes but is not limited to: radio frequency unit 201, network module 202, audio output unit 203, input unit 204, sensor 205, display unit 206, user input unit 207, interface unit 208, memory 209, processor 210, and power supply 211. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 4 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The terminal device of the embodiment of the invention further comprises a detection module (not shown in the figure) and a timing module (not shown in the figure). Wherein the detection module is used for detecting the electrical parameters of the physical interface of the interface unit 208. The timing module is used for calculating the continuous time length of the electrical parameter exceeding the preset range.
The processor 210 of the embodiment of the present invention may implement the function of a transmission control module, and is configured to: under the condition that the electrical parameters exceed the preset range and the continuous time length does not reach the preset time length, suspending data transmission; and continuing data transmission under the condition that the continuous time length does not reach the preset time length and the electrical parameter is within the preset range.
Therefore, the embodiment of the invention can detect the electrical parameter of the physical interface under the condition of data transmission through the data transmission line by using the setting detection module, calculate the continuous time length of the electrical parameter exceeding the preset range by using the timing module, pause the data transmission under the condition that the electrical parameter exceeds the preset range (abnormal contact occurs between the data transmission line and the physical interface) and the continuous time length does not reach the preset time length by using the transmission control module, and then continue the data transmission under the condition that the continuous time length does not reach the preset time length and the electrical parameter is in the preset range (normal contact is recovered between the data transmission line and the physical interface). Therefore, data transmission can be continued on the basis of the transmitted data without carrying out data transmission on the data again, so that the reliability and the efficiency of data transmission are improved, the success rate of data transmission is improved, and the experience of a user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 201 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 210; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 202, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 203 may convert audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into an audio signal and output as sound. Also, the audio output unit 203 may also provide audio output related to a specific function performed by the terminal apparatus 200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
The input unit 204 is used to receive an audio or video signal. The input Unit 204 may include a Graphics Processing Unit (GPU) 2041 and a microphone 2042, and the Graphics processor 2041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 206. The image frames processed by the graphic processor 2041 may be stored in the memory 209 (or other storage medium) or transmitted via the radio frequency unit 201 or the network module 202. The microphone 2042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 201 in case of a phone call mode.
The terminal device 200 further comprises at least one sensor 205, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 2061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 2061 and/or the backlight when the terminal apparatus 200 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 205 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 206 is used to display information input by the user or information provided to the user. The display unit 206 may include a display panel 2061, and the display panel 2061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 207 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. Touch panel 2071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 2071 (e.g., user operation on or near the touch panel 2071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 2071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 210, and receives and executes commands sent by the processor 210. In addition, the touch panel 2071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 207 may include other input devices 2072 in addition to the touch panel 2071. In particular, the other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not further described herein.
Further, a touch panel 2071 may be overlaid on the display panel 2061, and when the touch panel 2071 detects a touch operation on or near the touch panel 2071, the touch panel is transmitted to the processor 210 to determine the type of the touch event, and then the processor 210 provides a corresponding visual output on the display panel 2061 according to the type of the touch event. Although the touch panel 2071 and the display panel 2061 are shown as two separate components in fig. 4 to implement the input and output functions of the terminal device, in some embodiments, the touch panel 2071 and the display panel 2061 may be integrated to implement the input and output functions of the terminal device, and are not limited herein.
The interface unit 208 is an interface for connecting an external device to the terminal apparatus 200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 208 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 200 or may be used to transmit data between the terminal apparatus 200 and the external device.
Wherein, the physical interface of the interface unit 208 is used for connecting with the wired data interface of the data transmission line. In the embodiment of the invention, the physical interface is connected with the wired data interface of the data transmission line in a magnetic suction mode.
The memory 209 may be used to store software programs as well as various data. The memory 209 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 209 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 210 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 209 and calling data stored in the memory 209, thereby performing overall monitoring of the terminal device. Processor 210 may include one or more processing units; preferably, the processor 210 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 210.
Terminal device 200 may also include a power source 211 (e.g., a battery) for powering the various components, and preferably, power source 211 may be logically coupled to processor 210 via a power management system to provide management of charging, discharging, and power consumption via the power management system.
In addition, the terminal device 200 includes some functional modules that are not shown, and are not described in detail here.
It should be noted that the detection module and the timing module of the terminal device in the embodiment of the present invention are the same as the detection module and the timing module of the data transmission control circuit in the above embodiment, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the invention also provides a data transmission line which comprises a contact detection signal line and a second connecting terminal. The contact detection signal line is used for detecting the electrical parameters of a physical interface of the terminal equipment connected with the data transmission line under the condition that the terminal equipment carries out data transmission through the data transmission line. The second connection terminal is connected with the contact detection signal line and is used for being connected with the first connection terminal of the physical interface.
Therefore, the terminal device to which the data transmission line of the embodiment of the present invention is applied can detect the electrical parameter of the physical interface in the case of data transmission through the data transmission line, calculate the continuous duration in which the electrical parameter exceeds the preset range by using the timing module of the terminal device, and suspend data transmission by using the transmission control module of the terminal device in the case where the electrical parameter exceeds the preset range (abnormal contact occurs between the data transmission line and the physical interface) and the continuous duration does not reach the preset duration, and then continue data transmission in the case where the continuous duration does not reach the preset duration and the electrical parameter is within the preset range (normal contact is restored between the data transmission line and the physical interface). Therefore, the terminal equipment can continue data transmission on the basis of the transmitted data without carrying out data transmission on the data again, so that the reliability and the efficiency of data transmission are improved, the success rate of data transmission is improved, and the experience of a user is improved.
In order to cooperate, the detection module of the terminal device may further include a pull-down resistor when the voltage detection circuit of the detection module includes only a pull-up resistor. One end of the pull-down resistor is connected with the contact detection signal line, and the other end of the pull-down resistor is grounded.
Therefore, when the first connecting terminal is connected with the second connecting terminal, the reference voltage, the pull-up resistor, the pull-down resistor and the ground form a complete voltage detection loop, so that the voltage sampling circuit can detect the voltage value between the first connecting terminal and the second connecting terminal through the voltage detection point to determine the contact state according to the voltage value.
When the data transmission line is a magnetic data line, the magnetic data line and the terminal device are more easily subjected to position deviation, looseness or separation in the connection process, so that the data transmission control circuit provided by the embodiment of the invention can be used for effectively improving the reliability of data transmission when being applied to the magnetic data line.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A data transmission control circuit, applied to a terminal device, the circuit comprising:
the detection module is used for detecting the electrical parameters of the physical interface of the terminal equipment connected with the data transmission line under the condition of data transmission through the data transmission line;
the timing module is used for calculating the continuous time length of the electrical parameter exceeding the preset range;
the transmission control module is used for suspending the data transmission under the condition that the electrical parameters exceed the preset range and the continuous time length does not reach the preset time length; and continuing the data transmission under the condition that the continuous time length does not reach the preset time length and the electrical parameters are within the preset range.
2. The data transmission control circuit of claim 1, wherein the physical interface comprises a first connection terminal;
wherein the detection module comprises:
one end of the pull-up resistor is connected with the first connecting terminal, and the other end of the pull-up resistor is connected with a reference voltage;
a voltage detection circuit electrically connected to the first connection terminal; wherein the electrical parameter is a voltage value.
3. The data transmission control circuit of claim 1, wherein the physical interface comprises a first connection terminal;
wherein the detection module comprises:
one end of the pull-up resistor is connected with the first connecting terminal, and the other end of the pull-up resistor is connected with a reference voltage;
one end of the pull-down resistor is connected with the first connecting terminal, and the other end of the pull-down resistor is grounded;
a voltage detection circuit electrically connected to the first connection terminal; wherein the electrical parameter is a voltage value.
4. The data transmission control circuit of claim 1, wherein the transmission control module is further configured to terminate the data transmission if the continuous duration reaches the preset duration.
5. The data transmission control circuit of claim 1, wherein the timing module comprises:
the input end of the inverter is connected with the detection module;
one end of the resistor is connected with the output end of the phase inverter, and the other end of the resistor is connected with the transmission control module;
and one end of the capacitor is connected with one end of the transmission control module connected with the resistor, and the other end of the capacitor is grounded.
6. A terminal device characterized by comprising the data transmission control circuit according to any one of claims 1 to 5.
7. The terminal device of claim 6, further comprising a physical interface, wherein the physical interface is magnetically connected to the data transmission line.
8. A data transmission line, comprising:
the contact detection signal line is used for detecting the electrical parameters of a physical interface of the terminal equipment connected with the data transmission line under the condition that the terminal equipment carries out data transmission through the data transmission line, so that the terminal equipment calculates the continuous time length that the electrical parameters exceed a preset range, pauses the data transmission under the condition that the electrical parameters exceed the preset range and the continuous time length does not reach the preset time length, and continues the data transmission under the condition that the continuous time length does not reach the preset time length and the electrical parameters are in the preset range;
and the second connecting terminal is connected with the contact detection signal line and is used for being connected with the first connecting terminal of the physical interface.
9. The data transmission line of claim 8, further comprising:
and one end of the pull-down resistor is connected with the contact detection signal line, and the other end of the pull-down resistor is grounded.
10. The data transmission line of claim 8, wherein the data transmission line is a magnetically attractable data line.
CN201910305795.XA 2019-04-16 2019-04-16 Data transmission control circuit, terminal device and data transmission line Active CN110061890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910305795.XA CN110061890B (en) 2019-04-16 2019-04-16 Data transmission control circuit, terminal device and data transmission line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910305795.XA CN110061890B (en) 2019-04-16 2019-04-16 Data transmission control circuit, terminal device and data transmission line

Publications (2)

Publication Number Publication Date
CN110061890A CN110061890A (en) 2019-07-26
CN110061890B true CN110061890B (en) 2021-04-27

Family

ID=67319306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910305795.XA Active CN110061890B (en) 2019-04-16 2019-04-16 Data transmission control circuit, terminal device and data transmission line

Country Status (1)

Country Link
CN (1) CN110061890B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859358A (en) * 2005-07-08 2006-11-08 华为技术有限公司 Method for series and anti-series link data of equalizing complex strip parallel
CN105871586A (en) * 2015-12-09 2016-08-17 乐视致新电子科技(天津)有限公司 Method for controlling data transmission and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677337B (en) * 2008-09-18 2012-03-14 宁波波导软件有限公司 Mobile communication terminal and its communication time-termination operation method
US9438502B2 (en) * 2012-02-17 2016-09-06 Viavi Solutions Inc. Controlling generation of filtered result packets
CN103778806B (en) * 2012-10-23 2016-04-13 中国电信股份有限公司 The method of sound reading, terminal and system
CN104954145B (en) * 2014-03-29 2020-04-21 华为技术有限公司 Ethernet power supply method, power supply equipment and Ethernet power supply system
CN106505660B (en) * 2016-10-31 2019-10-11 宇龙计算机通信科技(深圳)有限公司 A kind of charge protection method, charging protector and terminal
CN106708677B (en) * 2016-12-05 2020-09-22 惠州Tcl移动通信有限公司 Method and system for detecting and processing poor contact between mobile terminal and external equipment
EP3561990B1 (en) * 2017-02-24 2020-11-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Equalisation circuit, device to be charged, and charging control method
CN206930957U (en) * 2017-07-21 2018-01-26 北京新能源汽车股份有限公司 Interlocking detection circuit and car

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859358A (en) * 2005-07-08 2006-11-08 华为技术有限公司 Method for series and anti-series link data of equalizing complex strip parallel
CN105871586A (en) * 2015-12-09 2016-08-17 乐视致新电子科技(天津)有限公司 Method for controlling data transmission and mobile terminal

Also Published As

Publication number Publication date
CN110061890A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN109343759B (en) Screen-turning display control method and terminal
CN108347759B (en) Anti-interference method of flexible screen and mobile terminal
CN108494030B (en) Wireless charging method, terminal and transmitting terminal equipment
CN108681498B (en) CPU occupancy rate monitoring method and device and mobile terminal
CN107832689B (en) Fingerprint identification method and mobile terminal
CN108040316A (en) A kind of amplitude detection method and mobile terminal
CN111106821B (en) Touch control method and wearable device
CN108008859B (en) Screen control method and mobile terminal
CN108289270B (en) Loudspeaker and mobile terminal
CN110677224B (en) Beam state detection method and terminal
CN109888928B (en) Terminal and wireless charging control method
CN108767919A (en) A kind of charging unit, terminal device and charging method
CN108681413B (en) Control method of display module and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal
CN108521417B (en) Communication processing method and mobile terminal
CN108924319B (en) Proximity detection method and mobile terminal
CN108595352B (en) Protection method and device for mobile terminal
CN110764650A (en) Key trigger detection method and electronic equipment
CN108448177B (en) Charging method and terminal
CN108170310B (en) Touch screen control method and mobile terminal
CN210894629U (en) Electric meter assembly and electronic equipment
CN110868683B (en) Ultrasonic module failure detection method and electronic equipment
CN110209543B (en) Earphone socket detection method and terminal
CN109991507B (en) Smart card contact detection circuit, method and equipment
CN110061890B (en) Data transmission control circuit, terminal device and data transmission line

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant