CN105938463A - Method for communication between terminal and computer - Google Patents

Method for communication between terminal and computer Download PDF

Info

Publication number
CN105938463A
CN105938463A CN201510594989.8A CN201510594989A CN105938463A CN 105938463 A CN105938463 A CN 105938463A CN 201510594989 A CN201510594989 A CN 201510594989A CN 105938463 A CN105938463 A CN 105938463A
Authority
CN
China
Prior art keywords
usb
port
control
computer
data
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.)
Pending
Application number
CN201510594989.8A
Other languages
Chinese (zh)
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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN201510594989.8A priority Critical patent/CN105938463A/en
Publication of CN105938463A publication Critical patent/CN105938463A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention relates to a method for communication between a terminal and a computer. The method comprises following steps: S1, utilizing a human interface device interface of a universal serial bus to receive first data sent by the computer through a universal serial bus interface; S2, sending received first data to a control chip through a universal asynchronous transceiver joint such that the first data received can be conveniently processed by the control chip, wherein the control chip has a controller conversion module with a first working mode and a second working mode; the first working mode is connection between a first port and a first control port of a first group of USB control ports; and the second working mode is connection between the first port and a first control port of a second group of USB control ports; and controlling the controller conversion module to shift from the first working mode to the second working mode after recognizing that USB equipment connected with the first port is allowed to use.

Description

A kind of terminal and the method for compunication
Technical field
A kind of method that the present invention relates to terminal and compunication.
Background technology
Usb protocol is flexible, can support to synchronize and simultaneous asynchronous data transmissions, and provides one can extensively receive respectively The standard interface of the equipment of kind, therefore, is widely used in connection computer and mobile phone.At present, nearly all Mobile phone is all supported to use USB line and intercomputer to carry out data interaction, and this mutual process is: led to by mobile phone Cross USB line and computer to connect, when COMPUTER DETECTION is to after having USB device insertion, it is judged that this USB sets Whether standby driver is installed, and without installation, then computer refusal communicates with mobile phone, and bullet Go out to install the prompting frame that USB drives;Only after being mounted with that USB drives, mobile phone could be with USB device Identity communicate with computer.State mobile phone in realization by during USB and compunication, Inventor finds that in prior art, at least there are the following problems: after mobile phone and computer first connection, it is necessary to First installing USB and drive mobile phone ability and compunication, otherwise communication cannot be carried out.But hands sometimes The USB device driver of machine carries the most at random, or can not be driven journey at some special occasions computer The installation of sequence, like this must first install USB and drive and just can carry out the mode of mobile phone and compunication Can be restricted.
Summary of the invention
For solving above-mentioned technical problem, a kind of method that it is an object of the invention to provide terminal and compunication, Still computer can be made in the case of computer is fitted without terminal USB (universal serial bus) driver With being in communication with each other of terminal.
The terminal of the present invention and the method for compunication, comprise the following steps:
S1: use USB (universal serial bus) human interface devices interface computer to pass through USB The first data sent;
S2: the first data received are sent to control chip by UART Universal Asynchronous Receiver Transmitter interface, in order to The first data received are processed by described control chip;
S3: the second data sent by control chip are forwarded to USB (universal serial bus) through UART Universal Asynchronous Receiver Transmitter interface Human interface devices interface;
S4: by described second data by described USB (universal serial bus) human interface devices interface, and by general Serial bus interface sends to computer, in order to described second data are processed by described computer.
Described control chip has the controller modular converter of the first mode of operation and the second mode of operation;Described First mode of operation is that the first control port in the first port and first group of USB control port connects, described Second mode of operation is that the first control port in the first port and second group of USB control port connects;Work as knowledge After not going out the USB device that the USB device being connected with described first port is permission use, control described control Device modular converter processed is switched to the second mode of operation by the first mode of operation.
The present invention at least has the advantage that the present invention uses USB (universal serial bus) human interface devices interface to connect Receive the first data that computer is sent by USB (universal serial bus);The first data received are passed through general different Step transceiver interface sends to control chip, in order to the first data received are carried out by described control chip Process, owing to computer system of the prior art acquiescence is with the driver of HID interface, therefore, nothing Opinion computer whether already installed with the driver of terminal, then can identification terminal, and lead to terminal Letter.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technology of the present invention Means, and can be practiced according to the content of description, describe in detail with presently preferred embodiments of the present invention below As rear.
Accompanying drawing explanation
Fig. 1 is the schematic diagram one of terminal of the present invention and the method for compunication;
Fig. 2 is the schematic diagram two of terminal of the present invention and the method for compunication.
Detailed description of the invention
Below in conjunction with the accompanying drawings and embodiment, the detailed description of the invention of the present invention is described in further detail.With Lower embodiment is used for illustrating the present invention, but is not limited to the scope of the present invention.
See Fig. 1, Fig. 2, a kind of terminal described in a preferred embodiment of the present invention and the method for compunication, Comprise the following steps:
S1: use USB (universal serial bus) human interface devices interface computer to pass through USB The first data sent;
S2: the first data received are sent to control chip by UART Universal Asynchronous Receiver Transmitter interface, in order to The first data received are processed by described control chip;
S3: the second data sent by control chip are forwarded to USB (universal serial bus) through UART Universal Asynchronous Receiver Transmitter interface Human interface devices interface;
S4: by described second data by described USB (universal serial bus) human interface devices interface, and by general Serial bus interface sends to computer, in order to described second data are processed by described computer.
Described control chip has the controller modular converter of the first mode of operation and the second mode of operation;Described First mode of operation is that the first control port in the first port and first group of USB control port connects, described Second mode of operation is that the first control port in the first port and second group of USB control port connects;Work as knowledge After not going out the USB device that the USB device being connected with described first port is permission use, control described control Device modular converter processed is switched to the second mode of operation by the first mode of operation.
The present invention at least has the advantage that the present invention uses USB (universal serial bus) human interface devices interface to connect Receive the first data that computer is sent by USB (universal serial bus);The first data received are passed through general different Step transceiver interface sends to control chip, in order to the first data received are carried out by described control chip Process, owing to computer system of the prior art acquiescence is with the driver of HID interface, therefore, nothing Opinion computer whether already installed with the driver of terminal, then can identification terminal, and lead to terminal Letter.
The above is only the preferred embodiment of the present invention, is not limited to the present invention, it is noted that For those skilled in the art, on the premise of without departing from the technology of the present invention principle, also Can make some improvement and modification, these improve and modification also should be regarded as protection scope of the present invention.

Claims (2)

1. a terminal and the method for compunication, it is characterised in that comprise the following steps:
S1: use USB (universal serial bus) human interface devices interface computer to be connect by USB (universal serial bus) The first data that mouth sends;
S2: the first data received are sent to control chip by UART Universal Asynchronous Receiver Transmitter interface, in order to The first data received are processed by described control chip;
S3: it is total that the second data sent by control chip are forwarded to general serial through UART Universal Asynchronous Receiver Transmitter interface Line human interface devices interface;
S4: by described second data by described USB (universal serial bus) human interface devices interface, and by general Serial bus interface sends to computer, in order to described second data are processed by described computer.
Terminal the most according to claim 1 and the method for compunication, it is characterised in that described control Coremaking sheet has the controller modular converter of the first mode of operation and the second mode of operation;Described first Working mould Formula is that the first control port in the first port and first group of USB control port connects, described second Working mould Formula is that the first control port in the first port and second group of USB control port connects;When identifying with described After the USB device that first port connects is the USB device allowing use, control described controller modulus of conversion Block is switched to the second mode of operation by the first mode of operation.
CN201510594989.8A 2015-09-18 2015-09-18 Method for communication between terminal and computer Pending CN105938463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510594989.8A CN105938463A (en) 2015-09-18 2015-09-18 Method for communication between terminal and computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510594989.8A CN105938463A (en) 2015-09-18 2015-09-18 Method for communication between terminal and computer

Publications (1)

Publication Number Publication Date
CN105938463A true CN105938463A (en) 2016-09-14

Family

ID=57152795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510594989.8A Pending CN105938463A (en) 2015-09-18 2015-09-18 Method for communication between terminal and computer

Country Status (1)

Country Link
CN (1) CN105938463A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287798A (en) * 2017-01-09 2018-07-17 中兴通讯股份有限公司 A kind of USB driving adaptation method, apparatus and system
CN112292672A (en) * 2019-11-05 2021-01-29 深圳市大疆创新科技有限公司 Switching control method, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040083685A1 (en) * 2002-03-18 2004-05-06 Knoerzer Anthony Robert Vertical stand-up pouch with zipper seal quick change module
CN102426558A (en) * 2011-11-11 2012-04-25 青岛海信移动通信技术股份有限公司 Communication method of terminal and computer through universal serial bus (USB), terminal, and computer
CN102542192A (en) * 2011-01-04 2012-07-04 联想(北京)有限公司 Method and device for carrying out selective starting on USB (Universal Serial Bus) device, and computer terminal
CN104077255A (en) * 2013-12-29 2014-10-01 国家电网公司 Method for terminal to communicate with computer through USB
CN104298631A (en) * 2013-12-29 2015-01-21 新疆信息产业有限责任公司 Method for terminal to be in communication with computer through USB

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040083685A1 (en) * 2002-03-18 2004-05-06 Knoerzer Anthony Robert Vertical stand-up pouch with zipper seal quick change module
CN102542192A (en) * 2011-01-04 2012-07-04 联想(北京)有限公司 Method and device for carrying out selective starting on USB (Universal Serial Bus) device, and computer terminal
CN102426558A (en) * 2011-11-11 2012-04-25 青岛海信移动通信技术股份有限公司 Communication method of terminal and computer through universal serial bus (USB), terminal, and computer
CN104077255A (en) * 2013-12-29 2014-10-01 国家电网公司 Method for terminal to communicate with computer through USB
CN104298631A (en) * 2013-12-29 2015-01-21 新疆信息产业有限责任公司 Method for terminal to be in communication with computer through USB

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287798A (en) * 2017-01-09 2018-07-17 中兴通讯股份有限公司 A kind of USB driving adaptation method, apparatus and system
CN112292672A (en) * 2019-11-05 2021-01-29 深圳市大疆创新科技有限公司 Switching control method, electronic equipment and computer readable storage medium
WO2021087749A1 (en) * 2019-11-05 2021-05-14 深圳市大疆创新科技有限公司 Switching control method, electronic device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103916537B (en) Bluetooth device and quick pairing method and system thereof
CN101751361B (en) Switchover method for controlling data transmission interface in mobile terminal and terminal equipment
CN106453383A (en) UART (universal asynchronous receiver/transmitter)-based master-slave multi-processor communication system and method
KR100720708B1 (en) Wireless universal serial bus dual role device system
CN104321757A (en) Device connect detection
CN107391419A (en) Support the universal serial bus hub equipment of more main frames and automobile-used main frame
CN102426558A (en) Communication method of terminal and computer through universal serial bus (USB), terminal, and computer
CN106130856A (en) A kind of self adaptation baud rate RS485 communications protocol
CN105938463A (en) Method for communication between terminal and computer
CN109918328A (en) A kind of USB Type C interface is realized with a low cost structure and implementation method
CN207571202U (en) A kind of device for being applied to detection USB and turning serial port module
CN104731737A (en) Hub, operating system and control method
CN103577362A (en) Method for improving data transmission and related computer system
CN102929830A (en) Software simulation rapid communication protocol
CN102445981B (en) Data transmission system and data transmission method
CN104077255A (en) Method for terminal to communicate with computer through USB
CN107370651A (en) A kind of communication means between SPI slaves
RU2018145653A (en) SYSTEMS AND METHODS FOR INITIALIZING THE CONFIGURATION OF DEVICES WORKING IN INDUSTRIAL AUTOMATION ENVIRONMENTS
CN102567249A (en) Electronic device and data transmission method thereof
CN202975797U (en) On-board diagnostic data acquisition system
CN107819705A (en) A kind of implementation method of the data exchange based on Microblaze cores
CN104850512A (en) Method and apparatus for implementing USB OTG function without ID pin
CN104298631A (en) Method for terminal to be in communication with computer through USB
CN104468041A (en) Data processing device and method based on SWP data link
CN203277916U (en) A junction box

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160914

WD01 Invention patent application deemed withdrawn after publication