Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to transfer data in batches between linux and USB equipment

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Bulk OUT transfer (host host to usb device)

The host host sends the out flag packet to the device, followed by the packet

The device receives the data correctly and responds to an ACK. If the device breakpoint is not ready to receive data, it will discard the data sent by the host and respond to a NAK to show that it is not ready.

Counter register OUTnBC: first, it is just how many bytes of data the device has just received in a batch transmission; second, it indicates that the next batch of out data transfer can be carried out.

Status register OUTnCS: indicates whether the endpoint is currently busy.

two。 Bulk IN transfer (usb device to host device)

The host host sends an IN flag packet to request an IN transmission.

When the device is ready, the data is transmitted to the host host. Write a byte counter to show that the device is ready. If the device is not ready, respond to the NAK package to indicate that it is not ready.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report