robinpaulson / SimpleRT

Simple Reverse Tethering utility for Android
GNU General Public License v3.0
905 stars 101 forks source link

How to solve "bulk transfer error: Input/Output Error"? #5

Closed dmitry closed 7 years ago

dmitry commented 7 years ago

Once I accept on the android device I get:

libusb callback registered!
Device supports AOA 2.0!
Sending identification to the device
...
...
Found accessory 18d1:2d00
accessory connected!
libusb callback deregistered!
net.ipv4.ip_forward = 1
bulk transfer error: Input/Output Error

tun returns File descriptor in bad state and that signs it's ready:

cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state

Any ideas how to solve issue?

vvviperrr commented 7 years ago

cat /dev/net/tun cat: /dev/net/tun: File descriptor in bad state

it's ok, tun dev exists only for ioctl's.

what device do you have? some china manufacturers dont support VpnApi in theirs firmware. Threre is no such checks yet.

ps. maybe something in dmesg?

dmitry commented 7 years ago

Samsung Galaxy S2.

After bulk transfer error: Input/Output Error I noticed that logs were written:

==> /var/log/syslog <==
Aug  2 13:26:30 dmitry NetworkManager[1182]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
Aug  2 13:26:30 dmitry NetworkManager[1182]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
Aug  2 13:26:30 dmitry NetworkManager[1182]: <warn> /sys/devices/virtual/net/tun0: couldn't determine device driver; ignoring...
vvviperrr commented 7 years ago

I'm afraid, i can't help right now, more checks needs to be supported. I'll try do it asap. If you interesting, try it with another device.

dmitry commented 7 years ago

@vvviperrr hehe, I don't have other android devices, just that one.

vvviperrr commented 7 years ago

@dmitry cli and apk updated, with dialog messages on errors and more precisely logs.

dmitry commented 7 years ago

Haven't noticed anything new :(

vvviperrr commented 7 years ago

ok, run simple-rt with -d param, connect device and store output here.

btw, do you have stock firmware or custom, like cyanogenmod?

dmitry commented 7 years ago

stock firmware

vvviperrr commented 7 years ago

really strange. from u previous log seems like everything is fine. maybe -d param can reveal something

kocoman1 commented 7 years ago

same error for No name 7 inch tablet (debug and lspci) rterror.txt simplerterr2.txt

thanks

vvviperrr commented 7 years ago

kocoman1 thanks for respond. u have different problem. as i can see in logs, initialization of you device was successfull, but for some reason usb timeout occurs. seem like you device does not respong via accessory protocol.

there is newer version of simplert (checkout multi_tether branch). it is supports timeouts handling. u can try it.

kocoman1 commented 7 years ago

Hi still same error with multi version, please see log file, thanks multierr.txt

vvviperrr commented 7 years ago

hi again.

there was one major improvement commited in 0a3ff8a46

dont really sure, if this will fix you issue, but give it a try. thanks.

kocoman1 commented 7 years ago

Hi the cli program now works but the internet connection is not working on the tablet. I am using ubuntu 16

` ip addr show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:19:21:e5:c3:b8 brd ff:ff:ff:ff:ff:ff inet 192.168.3.131/24 brd 192.168.3.255 scope global dynamic enp3s0 valid_lft 83310sec preferred_lft 83310sec inet6 fe80::b468:56f3:d6c9:c90c/64 scope link valid_lft forever preferred_lft forever 3: wlp1s6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether 00:0d:88:35:b9:54 brd ff:ff:ff:ff:ff:ff 11: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 500 link/none inet 10.1.1.1/24 scope global tun0 valid_lft forever preferred_lft forever default via 192.168.3.1 dev enp3s0 proto static metric 100 10.1.1.0/24 dev tun0 proto kernel scope link src 10.1.1.1 169.254.0.0/16 dev enp3s0 scope link metric 1000 192.168.3.0/24 dev enp3s0 proto kernel scope link src 192.168.3.131 metric 100 `

I change the eth0 to enp3s0 in the xxxx.sh file

thanks

vvviperrr commented 7 years ago

I change the eth0 to enp3s0 in the xxxx.sh file

don't do that. check out -i option in cli tool (and -h). or u have old src tree? update master branch.

everything is seems ok from cli side.

kocoman1 commented 7 years ago

ok its working now thanks I had to set up a dummy access point