PDA

Ver la Versión Completa : [ CONSULTA ] Activar y usar ethernet (red) en nuestro G3?


eakew
03/09/14, 09:46:17
Hola,
Estoy intentando hacer una cosa, usar un adaptador USB-RJ45 en nuestro LG G3. Para qué? :risitas:, en principio para nada especial, aunque si logro que funcione, se me ocurren algunas ideas :D. El tema es que tengo un adaptador de esos, tengo el cable OTG y me he puesto a hacer pruebas.
Si lo conecto sin más, no pasa nada, no veo que detecte nada o se active algo (en ajustes/conexión a redes, por ejemplo).

Me pongo a leer, y veo que gente lo consigue vía script:


You need busybox,USB Ethernet adapter, and a otg cable
I used Root Explorer to Execute the script just F.Y.I

All you need to do is edit a few lines

Change eth0 192.168.0.102 to the the ip you want like eth0 192.168.1.115 just make sure the ip you chosed is not being used.
Then change gw 192.168.0.1 and net.dns1 192.168.0.1 to your routers ip like gw 192.168.1.1 and net.dns1 192.168.1.1
After that turn off your phone's WiFi then plug in your OTG cable and USB Ethernet adapter
Then run the script and you're golden.

just make sure that the 192.168.(>1<).xxx is the same as your router's.

INJOY!


#!/system/bin/sh
busybox ifconfig eth0 192.168.0.102 netmask 255.255.255.0
route add default gw 192.168.0.1 dev eth0
setprop net.dns1 192.168.0.1

Lets say your router's ip is 192.168.2.1
then it will be for an example:

#!/system/bin/sh
busybox ifconfig eth0 192.168.2.102 netmask 255.255.255.0
route add default gw 192.168.2.1 dev eth0
setprop net.dns1 192.168.2.1

Y realmente funciona, es más, con esto hace uso de dhcp y obtiene ip del router automáticamente sin problemas:

#!/system/bin/sh
busybox ifconfig eth0 up
dhcpcd eth0

En XDA hay alguien que ha hecho una aplicación para lanzar el script y demás:
XDA --> http://forum.xda-developers.com/showthread.php?p=51644327#post51644327
App --> https://play.google.com/store/apps/details?id=xda.usbhost.test

Funciona, activa ethernet, obtiene IP ... pero a partir de ahí viene el problema. Ya lo de ping no funciona y a pesar de tener conexión, ip y demás, no logro que ninguna aplicación use esa conexión.

No se si tengo que hacer algo más, incluso pienso que puede ser algún tipo de limitación de la ROM de LG.

Alguien ha probado? o se le ocurre qué puedo probar ...

Gracias!

El adaptador es tipo este:
http://ecx.images-amazon.com/images/I/417mJ9yfOyL._SY300_.jpg

robto
03/09/14, 21:29:08
Oye! Suena divertido :)

Sorry, técnicamente no puedo ayudarte, pero se me ocurrió mirar en Amazon. Por los comentarios parece que funciona....

Ya lo habrá s mirado pero porsiaca

SODIAL(R) Adaptador Micro USB 5 Pin 10/100 Mbps RJ45 LAN Ethernet para Tablet Ordenador Portatil https://www.amazon.es/dp/B00H3CSLV8/ref=cm_sw_r_awd_sT2bub1CWT1WV

eakew
04/09/14, 09:44:16
Sí ... el problema es que con el G3 no logro que funcione, por lo que creo que es una particularidad de ls ROM, algo que han "capado",



Algo así estaría bien X-D

http://image1.geekbuying.com/content_pic/201212/20111001034907.jpg

legalizacion_24
15/11/14, 21:55:23
yo tambie estoy interesado en este tema :silbando::palomitas: