Increase the speed of file transfers with usb ethernet. #4

Closed
opened 2018-11-20 17:13:13 -08:00 by shankerzhiwu · 2 comments
shankerzhiwu commented 2018-11-20 17:13:13 -08:00 (Migrated from github.com)

By adding ecm to /sys/devices/virtual/android_usb/android0/functions, a 100Base-T ethernet over usb can be enabled.

Commands for reference:

cp /usr/local/bin/usb_target.sh /tmp
sed -i 's/acm,mass_storage/acm,mass_storage,ecm/' /tmp/usb_target.sh
/tmp/usb_target.sh &

After that, the USB device will be detached and re-attached with an ethernet interface. The tty in the USB modem should be logged in again.

By adding `ecm` to `/sys/devices/virtual/android_usb/android0/functions`, a 100Base-T ethernet over usb can be enabled. Commands for reference: ``` cp /usr/local/bin/usb_target.sh /tmp sed -i 's/acm,mass_storage/acm,mass_storage,ecm/' /tmp/usb_target.sh /tmp/usb_target.sh & ``` After that, the USB device will be detached and re-attached with an ethernet interface. The tty in the USB modem should be logged in again.
HappyZ commented 2018-11-20 18:03:13 -08:00 (Migrated from github.com)

great! thanks for that!

great! thanks for that!
HappyZ commented 2018-12-08 06:44:45 -08:00 (Migrated from github.com)

used mass_storage

used mass_storage
Sign in to join this conversation.
No description provided.