jwise / HoRNDIS

Android USB tethering driver for Mac OS X
Other
2.98k stars 328 forks source link

Link speed capped at 480Mbps #130

Open hy1o opened 3 years ago

hy1o commented 3 years ago

Thanks for the driver! I appreciate your work.

I have an RNDIS cable that supports USB3 interface and thus it can support the speed up to 5Gbps. I'm using it to connect two computers. I'm aware of the fact that this is not the purpose of HoRNDIS but I could use your help.

On Windows side, the Ethernet(over USB) link speed is indeed 5Gbps. On macOS side, it is capped at 480Mbps (in Network Utility)

I found out that the max speed(480Mbps) is hard-coded in HoRNDIS source code. medium = IONetworkMedium::medium(kIOMediumEthernetAuto, 480 * 1000000); The maximum speed I could get by playing with this was 705.033 Mbps.

Is there any RNDIS or USB parameters to increase the link speed?

Belcarra commented 3 years ago

What RNDIS USB-3 cable are you using?

Is your problem displayed speed or the actual measured transfer speed?

On Wed, Oct 28, 2020 at 3:23 AM Saehanseul Yi notifications@github.com wrote:

Thanks for the driver! I appreciate your work.

I have an RNDIS cable that supports USB3 interface and thus it can support the speed up to 5Gbps. I'm using it to connect two computers. I'm aware of the fact that this is not the purpose of HoRNDIS but I could use your help.

On Windows side, the Ethernet(over USB) link speed is indeed 5Gbps. On macOS side, it is capped at 480Mbps (in Network Utility)

I found out that the max speed(480Mbps) is hard-coded in HoRNDIS source code. medium = IONetworkMedium::medium(kIOMediumEthernetAuto, 480 * 1000000); The maximum speed I could get by playing with this was 705.033 Mbps.

Is there any RNDIS or USB parameters to increase the link speed?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALJH5GRVJAHDCYUCU2X3RTSM7WIRANCNFSM4TCDYE7Q .

-- Belcarra Embedded USB Software Stuart_Lynne sl@belcarra.com 604-461-7532 Alternates: 604-283-7475 and 604-518-1749(cell) http://usblan.belcarra.com http://www.belcarra.com

hy1o commented 3 years ago

I'm using Streaming Cable from LattePanda.. https://www.dfrobot.com/product-1851.html http://docs.lattepanda.com/content/streaming_cable/get_started/

Well, I felt some lagging in remote desktop but the actual file transfer speed was 50MB/s. I think that exceeds typical, real-life USB 2.0 speed which is, if I recall correctly, around 20MB/s. (Theoretically it's still under 480Mbps? 50MB*8=400Mbps) However, USB 3.0 speed in my experience was near 100MB/s so there's some room for improvement.

alekssze commented 2 years ago

I would also want to find a way for faster speed. Usb link speed: Up to 480Mb/s

Which seems are max speeds of USB 2.0

Maybe there is a way to get to speed of USB 3.0 ?