Editing Networking

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
== Built-in wifi (Managed) ==
+
'''The Comprehensive Alternative Networking Guide'''
-
The built-in wireless card is pictured in detail here: http://talk.maemo.org/showthread.php?t=30032
+
A lot of the alternative networking methods on this wiki and in the forum have out-date information. This guide is for OS2008 Diablo. For more detailed information on a specific interface see the relevant wiki page or search the forums.
-
This interface is wlan0 and uses the closed-source cx3110x driver. For the NITdroid project an open-source driver http://stlc45xx.garage.maemo.org was created. As it stands, the internal wifi chipset is not capable of injection with either of these drivers.
+
(FYI: to add a new page to the wiki just navigate to it http://wiki.maemo.org/your-new-page this was not obvious to me until I remembered how wikipedia is set up)
 +
-------------------------
-
A useful utility is [http://maemo.org/downloads/product/OS2008/wifiinfo WifiInfo] which shows signal strength, internal IP address, power savings toggle and a AP scan option.
+
'''We will cover:'''
 +
built-in wifi (Managed), external USB wifi (r8187), ethernet (via USB), bluetooth PAN, usb networking, and forwarding traffic to a wired computer.
-
Some people have reported difficulty connecting to university wifi systems which use PEAP+MSCHAPv2 authentication. See the [[PEAP+MSCHAPv2 WiFi authentication setup]] page for how to resolve this issue.
+
== Built-in wifi (Managed) ==
 +
The built-in wireless card is pictured in detail here: http://talk.maemo.org/showthread.php?t=30032
-
=== ad hoc wifi ===
+
This interface is wlan0 and uses the closed-source cx3110x driver. For the NITdroid project an open-source driver http://stlc45xx.garage.maemo.org was created. As it stands, the internal wifi chipset is not capable of injection with either of these drivers.
-
{{main|N900 ad hoc wifi hotspot}}
+
A useful utility is [http://maemo.org/downloads/product/OS2008/wifiinfo WifiInfo] which shows signal strength, internal IP address, power savings toggle and a AP scan option.
== External USB wifi (r8187) ==
== External USB wifi (r8187) ==
Line 18: Line 21:
The Alfa goes for about $35, while the knock-off is about $25.
The Alfa goes for about $35, while the knock-off is about $25.
-
You are going to need more power than the N810 can provide for itself. There are many ways to do this. [http://talk.maemo.org/showthread.php?t=31117] of power injection
+
You are going to need more power than the N810 can provide for itself. There are many ways to do this. [http://maemo.org/ EXAMPLES] of power injection
-
Download the archive attached to [http://talk.maemo.org/showthread.php?t=30838 this post].
+
Download and untar this archive containing the compiled drivers.
-
Untar it somewher (for example to Documents)
+
For example, download [http://p7230.homelinux.com/os2008/rtl8187_diablo.tar here] to Documents
  # cd /home/user/MyDocs/.documents/
  # cd /home/user/MyDocs/.documents/
  # tar -xvf rtl8187_diablo.tar
  # tar -xvf rtl8187_diablo.tar
Line 30: Line 33:
Script:
Script:
-
<source lang="bash">
 
  echo host > /sys/devices/platform/msusb_hdrc/mode
  echo host > /sys/devices/platform/msusb_hdrc/mode
  insmod ieee80211_crypt-rtl.ko
  insmod ieee80211_crypt-rtl.ko
Line 36: Line 38:
  insmod r8187.ko
  insmod r8187.ko
  echo -n 1 > /sys/bus/usb/devices/1-1/bConfigurationValue
  echo -n 1 > /sys/bus/usb/devices/1-1/bConfigurationValue
-
</source>
 
The first line tells the N810 to set the USB mode as host
The first line tells the N810 to set the USB mode as host
Line 95: Line 96:
which should point to your router's admin page (default gateway).
which should point to your router's admin page (default gateway).
-
===nefarious use===
+
---------
 +
===nefarious use warning===
while on the subject, instead of connecting to router, let's change the mode from Managed to Monitor (injection-capable)
while on the subject, instead of connecting to router, let's change the mode from Managed to Monitor (injection-capable)
Line 124: Line 126:
== Ethernet ==
== Ethernet ==
 +
Wired Networking using USB host mode and OS 2008
-
{{main|USB to ethernet networking}}
+
'''Legacy Instructions:'''
-
== Bluetooth DUN ==
+
Save the following .deb packages [http://p7230.homelinux.com/os2008/dbus-scripts_1.0.3_armel.deb dbus-scripts] and [http://p7230.homelinux.com/os2008/usbLAN_0.4.6_armel.deb usbLAN] to Documents.
-
{{main|Bluetooth DUN}}
+
# cd /home/user/MyDocs/.documents/
 +
# dpkg -i dbus-scripts_1.0.3_armel.deb
 +
# dpkg -i usbLAN_0.4.6_armel.deb
 +
 
 +
If you have a USB=>Ethernet dongle with the RTl8150 chipset, specifically the Linksys USB100M (ebay about $15 w/ shipping) then it should be plug and play. Plug ethernet cable into adapter dongle, dongle into USB OTG cable and OTG cable into N810. It should automatically connect to the dummy IAP "WIRED" and then "Unable to to connect, no file system available" should popup. At this point, you should be able to ping google.com and web browse.
 +
 
 +
'''Current Instructions:'''
 +
 
 +
Thanks to the USB Host mode it's possible to setup and utilize a wired network connection for those times when you want to use your IT but don't have access to wifi (or there just isn't any wifi around to use). A good example of this type of scenario is in hotel rooms while traveling around; most have wired high speed connections in the rooms but don't offer any kind of wifi connectivity. Although it's possible to carry around a small wifi router, it can be a bit more cost effective and convenient to connect the tablet to the wired connection directly.
 +
 
 +
In order to do this you need to make sure that you have USB Host mode up and working properly (whether via cable to software switch; see the [http://www.internettablettalk.com/wiki/index.php/HOWTO:_USB_Host_mode_on_the_N800_using_OS_2008 HOWTO: USB Host mode on the N800 using OS 2008] entry for details). OS 2008 natively supports USB adapters based upon the RTL8150 chipset such as the Linksys USB100M; however it's possible to find other devices that are supported by custom compiled modules.
 +
 
 +
If you're looking for a "ready to go" solution simply pick up a supported USB100M along with your USB OTG adapter from [http://www.electronicproductonline.com/catalog/product_info.php?cPath=35_67&products_id=2043 here].
 +
 
 +
Once you've got some compatible hardware ready to go, the easiest step is to next install the USB LAN Package. The USB LAN Package has been updated to overcome the OTG removal problem. You can get a copy of the updated package to install into the Application Manager [http://www.electronicproductonline.com/~electron/catalog/supportFiles/usbLAN_0.4.6_armel.deb here]. The updated version of the package utilizes the dbus-scripts package, which can also be easily installed by following [http://www.electronicproductonline.com/~electron/catalog/supportFiles/dbus-scripts_1.0.3_armel.deb this link] on your tablet.
 +
 
 +
The USB LAN Package has been updated to support the latest version of Diablo as of 08/21/08; if you're having problems make sure that you have version 0.4.6 installed.
 +
 
 +
The package will setup a few scripts and install all of the additional USB LAN drivers that are available for the OS:
 +
 
 +
catc.ko
 +
dm9601.ko
 +
kaweth.ko
 +
mcs7830.ko
 +
pegasus.ko
 +
rt73.ko (Added in 0.4.6 for external USB Wifi adapters)
 +
(Anyone who knows other commonly supported and tested working devices using these drivers, please add them to the end of this entry).
 +
 
 +
Contents
 +
1 Step by Step
 +
2 Performance
 +
3 Tested Devices
 +
4 Wishlist
 +
 +
 
 +
Step by Step
 +
Install Dbus-scripts by clicking [http://www.electronicproductonline.com/~electron/catalog/supportFiles/dbus-scripts_1.0.3_armel.deb here]
 +
Install USB LAN Package by clicking [http://www.electronicproductonline.com/~electron/catalog/supportFiles/usbLAN_0.4.6_armel.deb here]
 +
Once the packages are installed any RTL8150 device will operate as follows:
 +
 
 +
Connect USB device to LAN cabling.
 +
Connect USB device to ITT.
 +
Wait for USB messages to popup ("USB Device Not Supported", "No Filesystem Found").
 +
Launch your web browser or whatever application you want to use. As soon as you connect the adapter the "WIRED" connection will automatically be selected.  Surf and enjoy.
 +
 
 +
For devices other than those based on the RTL8150 you'll manually need to call "usbEthUp.sh" after you connect your device, and "usbEthDown.sh" after you remove it to get the network settings in place. These scrips can be found at /usr/sbin
 +
 
 +
When you're done with your wired connection simply unplug the network adapter from the USB host cable (this lets the tablet recognize that the adapter has been unplugged), then disconnect your host cable from the tablet (and manually set it out of host mode if required). Also, don't forget to choose "Disconnect" from the connection window (click on the little wifi icon), or your tablet will try to stay connected to "WIRED" until you restart or manually force a new connection.
 +
 
 +
--------------------------------------------------------------------------------
 +
 
 +
Performance
 +
Do not expect a wired connection to help you gain faster transfer speeds. In testing I've found that the CPU on the tablet maxes out at approximate 5-7 Mbps, well beneath the threshold of Wired networks or USB connectivity. (Can others support to debunk this?)
 +
 
 +
This is also an important consideration regarding the type of network adapter you select to use. The Linksys USB100M for example is only listed as USB 1.1, not 2.0, but still functions above the maximum sustainable speed of the tablet. Conversely, while the 2.0 version of the same device should work, it required additional drivers and actually requests more power than the USB OTG chip in the Tablet is willing to provide, so you'd end up needing an externally powered USB hub to use it. Thus while the USB 2.0 adapter might seem better, in actually for the ITs it's a worse choice.
 +
 
 +
(Information about setting up static IPs/etc requested).
 +
 
 +
--------------------------------------------------------------------------------
 +
 
 +
Tested Devices
 +
How to test:
 +
 
 +
1. Make sure you have the latest driver and scripts installed as noted above. You will also need becomeroot installed
 +
2. Open xterm on your internet tablet
 +
3. Connect your usb adapters (including OTG adapter if you are using that product)
 +
4. Connect your usb ethernet device
 +
5. You will see error messages that can be ignored
 +
6. Type sudo becomeroot into xterm and press Enter
 +
7. Type /usr/sbin/usbEthUp.sh into xterm and press Enter
 +
8. Note messages. A successful connection will be indicated by an acquired IP address (Lease xxx.xxx.xxx.xxx obtained, where xxx. represents parts of an IP address)
 +
9. Type dmesg into xterm and press Enter
 +
10. Scroll up through messages until you discover text describing the ethernet adapter, containing codes prefixed by v (vendor code) and p (product code). The characters following v and p will be entered into the appropriate fields as shown below
 +
11. Any unknown information should be added after the corresponding field as Unknown
 +
 
 +
 
 +
The following usb ethernet devices have been tested with this solution:
 +
 
 +
Model: Crystal Blue USB to Ethernet 10/100 LAN Adapter
 +
Ethernet chipset: Davicom DM9601 USB Ethernet http://www.davicom.com.tw/page1.aspx?no=143762
 +
Vendor ID: 0a46
 +
Product ID: 9601
 +
External power required: No
 +
Functionality: Success is sporadic with these; they are technically okay, but lacking in reliability. Out of 4 tested by me, 2 worked
 +
Cost: Low to very low
 +
Status: Not recommended
 +
Notes: This adapter is seen all over ebay, usually in translucent blue but variants are also found in clear, white and black. FYI, a freebsd patch to get it to work on that OS is posted at http://readlist.com/lists/freebsd.org/freebsd-current/10/52177.html
 +
Tested by: Texrat
 +
 
 +
Model: SMC EZ Connect USB 2202USB/ETH
 +
Ethernet chipset: ADMtek ADM8511
 +
Vendor ID: 0707
 +
Product ID: 0200
 +
External power required: No
 +
Functionality: Works very well, very quick internet access
 +
Cost: Moderate to low
 +
Status: Highly recommended
 +
Notes: Adapter did not work with earlier releases of tablet driver. Uses detachable usb pigtail
 +
Tested by: Texrat
 +
 
 +
Model: Targus ACP50 universal notebook hub (various ports; US and European versions available)
 +
Ethernet chipset: ADMtek 8515
 +
Vendor ID: 0451 (hub)
 +
Product ID: 2036 (hub)
 +
Vendor ID: 07a6 (ethernet)
 +
Product ID: 8515 (ethernet)
 +
External power required: Yes
 +
Functionality: Works well, very stable
 +
Cost: High to moderately high
 +
Status: Recommended
 +
Notes: Hub loses ethernet and usb functionality if it is simultaneously used as USB charging solution for tablet
 +
Tested by: Texrat
 +
 
 +
Model: Trendnet TU-ET100C
 +
Ethernet chipset: ADMtek ADM8511 "Pegasus II"
 +
Vendor ID: 07a6
 +
Product ID: 8511
 +
External power required: No
 +
Functionality: Works well, very stable
 +
Cost: US$15-25 as of October 2008
 +
Status: Recommended
 +
Notes: Non-detachable tail, approximately 3 feet long. Only one light. Addendum by Texrat: noted by one tester as drawing an unusually high amount of current ("more than N810's 192 mA limit"). See http://internettablettalk.com/forums/showpost.php?p=242053&postcount=88
 +
Tested by: SKarp
 +
 
 +
Model: Netgear EA101 USB Ethernet
 +
Ethernet chipset: Kawasaki LSI KL5KLUSB101B
 +
Vendor ID: 0846
 +
Product ID: 1001
 +
External power required: No
 +
Functionality: Works well, quick internet access
 +
Cost: Moderate to low
 +
Status: Recommended
 +
Notes: Form factor is a bit bulky, but it has indicator lights for power, link/activity and packet collisions. Uses detachable usb pigtail. Other adapters that use this chipset are the LinkSys USB10T, the 3Com 3c19250, the ADS Technologies USB-10BT, the Peracom USB Ethernet Adapter, the Entrega NET-USB-E45 and NET-HUB-3U1E, the ATen UC10T, the D-Link DSB-650, Corega USB-T and the SMC 2102USB and 2104USB (from http://www.mavetju.org/mail/view_message.php?list=freebsd-doc&id=1493000)
 +
Tested by: Texrat
 +
 
 +
Model: DIGITUS 10/100 Mbps Fast Ethernet USB adapter DN-3015
 +
Ethernet chipset: RTL8150 Fast Ethernet Adapter
 +
Vendor ID: 0x0bda Realtek Semiconductor Corp
 +
Product ID: 0x8150 RTL8150 Fast Ethernet Adapter
 +
External power required: No
 +
Functionality: Works well
 +
Cost: EUR 13.- (Feb. 2009)
 +
Status: Recommended
 +
Tested by: walto
 +
 
 +
--------------------------------------------------------------------------------
 +
 
 +
Wishlist
 +
 
 +
-automatic detection and activation of all devices passing functionality test (i.e., plug and play)
 +
 
 +
-advanced control panel configuration (helpful for static IP, etc)
== Bluetooth PAN ==
== Bluetooth PAN ==
 +
On the host computer, install blueman. [http://www.blueman-project.org/downloads.html BlueMan]. Not bluemon (installed by default).
 +
Reboot (or you could open a terminal and run blueman-applet).
-
{{main|Bluetooth PAN}}
+
*Blueman>Local Services>Network>
 +
**Check "Group Network" and "Network Access Point (NAP)".
 +
**Select dnsmasq, change IP address to 192.168.3.14.
 +
**Check "Enable Routing (NAT)"
 +
**Finally select "Let Blueman handle the network interfaces"
 +
*Apply.
 +
 
 +
Pair tablet with computer.
 +
*Select BT applet>Devices>New.
 +
*Select your computing device and Pair.
 +
**The computer will popup (sometimes minimized) asking for the passcode that the tablet provides. Make sure "trusted" is checked. If you SElinux installed it may ask if you want to always set as trusted, do so.
 +
 
 +
Go [http://pc-connectivity.garage.maemo.org here] and follow directions to install PC Connectivity Manager packages.
 +
 
 +
*Settings>Control Panel>PC-Connectivity Manager>Advanced
 +
**Select [...] next to Environments>New>Name it bluetooth.
 +
***Connection type>Bluetooth>Options select enable.
 +
****Under "Bluetooth address" click Search to pair with your computer.
 +
*Click Save>Basic (make sure Bluetooth is checked)>Apply.
 +
 
 +
*If you SElinux installed on your computer it may ask if you want to always set as trusted, do so.
 +
 
 +
*The BT icon/applet should now be blue.
 +
 
 +
Now open nano or your favorite text editor as root
 +
# nano /etc/resolv.conf
 +
and add the router's IP/gateway to the file on a new line
 +
NAMESERVER 192.168.1.1
 +
CTRL+X then y and enter
 +
 
 +
You should now be able to ping google.com
== USB networking ==
== USB networking ==
 +
Make sure you have the wonderful PC Connectivity Manager installed on the tablet.
 +
 +
* Main Menu>Settings>Control Panel>PC Connectivity Manager
 +
** Advanced>
 +
*** Select Environments [...] and New and input USB
 +
** Select USB Network>Options>drop-down next to Mass Storage change to Network
 +
**Default values here will work, should be:
 +
***IP adress 192.168.2.15
 +
***Gateway 129.68.2.14
 +
***Network Mask: 255.255.255.0
 +
**Save>Apply
 +
 +
===Fedora===
 +
 +
*System>Administration>Network>(Input root password)
 +
**>New>Ethernet connection>Forward>Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget (usb0)
 +
**>Forward>Select Statically set IP addresses>
 +
***Address: 192.168.2.14
 +
***Subnet mask: 255.255.255.0
 +
***Default gateway address: 192.168.2.14
 +
***Primary DNS: 209.18.47.61 (or 4.2.2.2 or whatever DNS server you like)
 +
***Secondary DNS: 209.18.47.62
 +
**>Forward>Apply
 +
 +
NetworkManager should now successfully connect to it (initially networkmanager should have seen the USB connection but fail at connecting)
 +
 +
From the tablet ping 192.168.2.14 if that works, then it's time to let the tablet open to the Internet
 +
*System>Administration>Firewall>(Input root password)>
 +
** Hit OK to warning dialog (actually it says Close)>Trusted Interfaces>
 +
** Check usb0>Apply
 +
Now you should be able to ping google.com from the tablet. If google.com can't be pinged try 4.2.2.2 to see if you picked a faulty DNS server.
 +
 +
 +
XP & Debian-based (Ubuntu)
 +
 +
Follow directions [[USB_networking here]]
 +
 +
Vista
 +
 +
You are out of luck (AFAIK). RDNIS gadget drivers seem to be unsupported.
 +
Use adhoc instead, if the Windows driver for your laptop's card supports it.
 +
 +
 +
----
 +
Extras
 +
 +
http://www.electronicproductonline.com/catalog/supportFiles/hydra_0.5.4_armel.deb (Hydra)
 +
 +
 +
----
-
{{main|USB networking}}
+
Special Thanks to:
-
[[Category:Power users]]
+
qwerty12, paulkoan, texrat, Patrik Flykt, the PC Connectivity team and everyone else involved.
-
[[Category:Connectivity]]
+
[[Category:Users]]
 +
[[Category:Networking]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: