Principle of USB dual-machine communication
Since the USB model is a Host-Slave (host-peripheral) master-slave structure, there is no way to make two hosts communicate directly through the USB bus without going through the peripherals. However, the two hosts can communicate using their USB ports by adding a peripheral controller. Each peripheral controller is connected to a different host and uses a shared buffer to exchange data.
Cypress's EZ-Link and Prolific's PL-2301 integrate two peripheral controllers and a shared buffer into a chip as a bridge for two hosts to communicate through the USB bus. Other companies also provide similar control chips. In teaching robots, PL-2301 is used. PL-2301 is a full-speed USB control chip produced by Taiwan Prolific.
Control unit. Under the coordination of handshake signals, they exchange data without blocking through two FIFO buffers. PL-2301 PL-2301 includes two sets of independent USB containing four terminals: the default control terminal (address 00H), the interrupt terminal (address 81H), the block output terminal (address 02H), and the block input terminal (address 83H). Control transmission is used to complete the configuration of PL-2301 during the host enumeration phase and to control the handshake signal of PL-2301 when two hosts communicate. PL-2301 is a full-speed USB control chip produced by Taiwan Prolific Company. The structural block diagram of PL-2301 is shown in Figure 1. (5) TX_REQ block transmission request signal. (6) TX_C block transmission completion indication signal. (7) PEER_E tells the other party that this Under the coordination of these handshake signals, the upper computer and the lower computer can communicate bidirectionally.
Figure 2 is a flow chart of data transmission from host PC A to PC B. These underlying details do not need to be controlled and are completed by the PL-2301 driver.
Keywords:USB
Reference address:The principle of USB dual-machine communication
Since the USB model is a Host-Slave (host-peripheral) master-slave structure, there is no way to make two hosts communicate directly through the USB bus without going through the peripherals. However, the two hosts can communicate using their USB ports by adding a peripheral controller. Each peripheral controller is connected to a different host and uses a shared buffer to exchange data.
Cypress's EZ-Link and Prolific's PL-2301 integrate two peripheral controllers and a shared buffer into a chip as a bridge for two hosts to communicate through the USB bus. Other companies also provide similar control chips. In teaching robots, PL-2301 is used. PL-2301 is a full-speed USB control chip produced by Taiwan Prolific.
Control unit. Under the coordination of handshake signals, they exchange data without blocking through two FIFO buffers. PL-2301 PL-2301 includes two sets of independent USB containing four terminals: the default control terminal (address 00H), the interrupt terminal (address 81H), the block output terminal (address 02H), and the block input terminal (address 83H). Control transmission is used to complete the configuration of PL-2301 during the host enumeration phase and to control the handshake signal of PL-2301 when two hosts communicate. PL-2301 is a full-speed USB control chip produced by Taiwan Prolific Company. The structural block diagram of PL-2301 is shown in Figure 1. (5) TX_REQ block transmission request signal. (6) TX_C block transmission completion indication signal. (7) PEER_E tells the other party that this Under the coordination of these handshake signals, the upper computer and the lower computer can communicate bidirectionally.
Figure 2 is a flow chart of data transmission from host PC A to PC B. These underlying details do not need to be controlled and are completed by the PL-2301 driver.
Previous article:RJ45 interface definition / RJ45 pin definition / RJ45 pin definition
Next article:Firmware Development of USB2.0 Interface Chip CY7C68013
Recommended ReadingLatest update time:2024-11-16 15:35
S3C2440 development board learning - how to use dnw to transfer data via USB
First, connect the serial and USB interfaces of the development board to the PC and start the development board; Secondly, observe the startup process of the development board through SecureCRT, and press the space bar to enter the menu of the development board. The "SEC S3C2440 Test B/D" device appears in the devic
[Microcontroller]
Intel and Apple to adopt new USB 3.0 alternative
Intel and Apple's many partners recently said that the two companies will introduce the input/output technology previously known as Light Peak and name it Thunderbolt, which will provide a high-end, high-performance alternative to the USB 3.0 standard. According to the well-known technology blog igitimes, Intel bega
[Mobile phone portable]
Design and implementation of a USB and DSP fingerprint recognition system
The immutability and uniqueness of fingerprints make fingerprint recognition technology the most widely used identity authentication. In recent years, with the development of the latest information processing technology, the research of algorithm theory, and the high integration and low cost of computer hardware, the
[Embedded]
Synaptics AudioSmart USB-C Codec Earns Industry's First THX Certification
Synaptics (NASDAQ: SYNA), a developer of human interface solutions, today announced that its AudioSmart® CX21988-THX is the industry's first THX -certified USB-C audio codec solution. By offering a THX-certified USB-C audio codec, Synaptics® can provide OEMs with an important building block to enable a significant lea
[Home Electronics]
USB charging latest specifications (V1.1) and testing
Currently, each country is developing its own USB interface
charging specifications
, which leads to a major problem that a USB interface
charging
device manufactured in one country may need to use a different charger when used in another country, which is a serious problem for both users and manufac
[Test Measurement]
MC68HC908JB8 Flash Online Programming Based on USB Bus
ICP is a method of burning and erasing chips on the actual target circuit board, without removing the chip from the target board and reprogramming it to modify the user program. This method is suitable for product development and code upgrades. Many chips on the market (such as Philips' P89C51, P89V51 and LPC932A1,
[Microcontroller]
Application design of wireless communication terminal system based on USB/RS232
1. Introduction Currently, most instruments and equipment use RS232 interfaces to communicate with computers. However, with the development of computer technology, the hot-swappable USB standard interface will replace the RS232 interface. Therefore, computers will be less and less equipped with RS232 interfaces or eve
[Power Management]
Qorvo® Provides USB Fast Charger PMIC for Mobile Devices in Vehicles
Qorvo® (Nasdaq: QRVO), a leading provider of RF solutions that connect the world, today introduced the ACT4751M, a power management integrated circuit (PMIC) that further expands the company's portfolio of in-vehicle charging solutions for fast charging of mobile phones, tablets and laptops. The Qorvo ACT4751M is the
[Embedded]
- Popular Resources
- Popular amplifiers
- Virtualization Technology Practice Guide - High-efficiency and low-cost solutions for small and medium-sized enterprises (Wang Chunhai)
- usb_host_device_code
- Image acquisition and processing system for panoramic map applications
- Teach you to learn 51 single chip microcomputer-C language version (Second Edition) (Song Xuefeng)
Recommended Content
Latest Analog Electronics Articles
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
MoreSelected Circuit Diagrams
MorePopular Articles
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
MoreDaily News
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
Guess you like
- Try it, can you access this website of ST?
- I found the fish's partner - [Electronic Components Artwork]
- ESD protection and elimination methods in switching power supply design and production
- 【TI mmWave Radar Review】+3D Profile Test
- I thought it was washing the phone, but it turned out to be washing the phone
- Medium and low pressure MODS pipes
- EEWORLD University Hall----Live Replay: Microchip Security Series 14 - GoodLock with SAM L11 and TrustFLEX ATECC608 Security Devices
- 【ST NUCLEO-G071RB Review】_02_LED Light Experiment
- Help, MPU6050 freezes and no data output after running for a while
- TC58CVG0S3HxAIx Engineering Data Sheet