0

I have a MacBook Air (13-inch, 2017; 7,2) with Ubuntu 22.04 and two USB 3.0 ports which they offer a 5 Gbps per second data transfer. And I have a USB 3.0 cable compatible with the same data transfer rate.

I use this interface for streaming real time signal process data from my smartphone ZTE Blade A5 2020.

The problem is that I believe I can’t take advantage of the data transfer rate of my USB 3.0 connection because my smartphone only has support for USB 2.0, so it offers 480 Mbps per second.

What happens in this case?

  • My data transfer performance tends to maximum data transfer performance offered by my computer (which is 5 Gbps per second)?
  • Or does it decrease speed to minimum offered by my smartphone’s USB 2.0 (which is 480 Mbps per second)?
  • Or (what I believe is happening) my data transfer performance is the average of the two USB interfaces?

That is:

(480 Mbps + 5,120 Mbps (5 Gbps)) / 2 = 2,800 Mbps?

I am implementing a digital signal processing system in real time and I need to have a minimum latency so that the human factor does not detect any delay.

Is my hypothesis correct? Or does the rate of performance decrease to the one offered by my ZTE USB 2.0 (480 Mbps)? Or does it increase to the one offered by my laptop which is 5 Gbps?

Or in all case, exist of a way of take advantage of all the performance power computing offer for my smartphone and my MacBook Air? I need to stream real time data without delay or low/null latency.

I someone can help me clarify my thoughts and concerns.

mashuptwice
  • 3,395

2 Answers2

1

USB data connections are only as fast as the slowest part of the connection.

This can be said about many other data connections, but since this question is USB it focuses on USB.

When you state this, that is the answer:

“Or does it decrease to minimum speed offered by my smartphone’s USB 2.0 (which is 480 Mbps per second)?”

Speed will decrease to minimum speed offered by my smartphone’s USB 2.0.

If you have a USB 2.0 device like your smartphone and it is connected to a USB 3.0 connection on your MacBook Air, the speed will only top out at USB 2.0. So you will never reach USB 3.0 speeds between your smartphone and your MacBook Air.

That said, in some cases USB 2.0 connections via USB 3.0 ports can be more efficient than a regular USB 2.0 connection. This is due to the USB 3.0 controller being a bit more efficient at what it does compared to a USB 2.0 controller. But the speed difference might not be that much or even noticeable.

For more details, look at this other answer I posted to another question on the topic of USB 2.0 devices seeming too be “faster” on USB 3.0 connections.

Giacomo1968
  • 58,727
0

Think of it as your car: Just because it is rated to be able to drive at 200km/h, you won't be able to do that all the time. If there is a speed limit of 100km/h, you can't (shouldn't) drive faster than that. Think of your USB3 PC being the car and your USB2 device being the road with a speed limit. You will only be able to drive at 100km/h.

Lets say your car is only able to drive at 50km/h, but the road would allow you to drive with 100km/h. You will only be able to drive with 50km/h.

In any case the situation will force you to use the lower speed, the same thing happens with a USB connection. If one device is slower than the other, the lower bitrate will be used.

If one device would "talk too fast" for the other to understand the communication, they cannot communicate at all. USB is backwards compatible, so to ensure that two devices understand each other, they will negotiate the fastest bitrate that everyone can understand. When using a USB1.1 device on a USB3 port, they will communicate at 12MBit/s. Also a USB3 device on a USB2 port will only be able to communicate at 480MBit/s.

As USB3 is an entirely different protocol with more data lanes and a different architecture, it incorporates techniques to lower the latency. Here you can find some basic information about that.

If you need detailed information, you should consider reading the relevant USB specifications.

mashuptwice
  • 3,395