yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] famewolf:
Glad you got it working! For those using tether alot I highly recommend a cacheing web proxy called "polipo" and make sure you use "poor mans multiplexing" which reuses connections..this helps to cut down on the latency of the connection alot! It also does pipelining and of course the cache helps speed things up.
[Windows Mobile Software Development] dferreira:
How about setting it the other way around? I want to use the laptop internet connection to give to the PDA internet access.

Laptop connection -> PDA

Bluetooth or USB would be nice :)
[Windows Mobile Software Development] famewolf:
Thats out of the scope of this thread but if you have internet sharing enabled on the pc (you didn't specify windows pc or linux) and connect via wifi to a router it works fine. Feel free to start another thread.
[Windows Mobile Software Development] schettj:
Just another "yep, it works" post

Wm6 mogul/6800/titan

CentOS 5.x on Compaq 8510w laptop

So, I have both bluetooth (pand) and rndis working. Given BT2.0 speeds and usb 2.0 speeds, which would be better to use speed wise, and has anyone made the usbmodem (wmodem) work just for the trifecta? I used to have that working on the apache running wm6, but that same setup does not work with the mogul.

Anywhoo, thanks for the post!
[Windows Mobile Software Development] famewolf:
USB (Even 1.1) is faster than bluetooth due to the fact your connection already has high latency and bluetooth adds even MORE. If you get a OPTIMAL 3g connection (which will almost never happen in the real world) you can actually lose speed using bluetooth as 3G's upper end is higher than bluetooth's. Also you will note the usb driver is using a mtu of 8050 so it's transferring more in "bursts" which translates to faster response for you.

The old bluetooth dun and usb dun both continue to work as they did in the past. Usb dun is supported via /dev/ttyUSB0 by loading the usbserial and ipaq modules. Bluetooth dun is supported via /dev/rfcomm0. Both require you to setup a dial up networking config and use the proper port. Internet sharing makes this process alot easier.

<we now pause for station identification> ;)
[Windows Mobile Software Development] dferreira:
Actually, I'm using Ubuntu 7.10. I did some search about how to enable bluetooth internet sharing from the laptop to the PDA, but it never shows up on the PDA as an available service. Sorry about hijacking the thread, but this is the only thread that has something about internet sharing between linux and our devices... And as I see it, you seem to know what's going on :)

I'll continue my search... in case I manage to get to work, I'll let you know.
[Windows Mobile Software Development] corwinckler:
Problem getting rndis0 working...

[ 1682.740000] usb 2-1: new full speed USB device using uhci_hcd and address 3

[ 1682.916000] usb 2-1: configuration #1 chosen from 1 choice

[ 1683.024000] usbcore: registered new interface driver cdc_ether

[ 1684.748000] rndis0: register 'rndis_host' at usb-0000:00:1d.1-1, RNDIS device, 80:00:60:0f:e8:00

[ 1684.748000] usbcore: registered new interface driver rndis_host

BUT, I dont see rndis0 when i do ifconfig.

When I restart networking i get (amongst other things):

IOCSIFADDR: No such device

rndis0: ERROR while getting interface flags: No such device

rndis0: ERROR while getting interface flags: No such device

Bind socket to interface: No such device

Failed to bring up rndis0.

What did I miss?

--Cor
[Windows Mobile Software Development] famewolf:
You have not configured rndis0 by creating a config file in /etc/sysconfig/network or wherever your particular distro puts it.
[Windows Mobile Software Development] corwinckler:
Im on ubuntu, and I did add to /etc/network/interfaces:

---

iface rndis0 inet dhcp

auto rndis0

----

As someone sugested. This is exactly what eth1 and eth0 looks like also.

But it does not seem to associate this with the new module that was compiled.

lsmod |grep rndi

rndis_host 8320 0

cdc_ether 7552 1 rndis_host

usbnet 20104 2 rndis_host,cdc_ether

usbcore 138632 7 hci_usb,rndis_host,cdc_ether,usbnet,ehci_hcd,uhci_hcd

--Cor

HTC TytnII - Ubuntu Gutsy
[Windows Mobile Software Development] corwinckler:
Is there a command/tool I can invoke to see whether the new device rndis0 'exists'?

Can someone who has done this ubuntu and got it working please post their interfaces (or equivalent) file?
[Windows Mobile Software Development] watson540:
hey guys. first off apologies for my ugly text formatting as im writing this on my phone

i figured this out months ago. yes its also possible to sync your phone as well with synce.

i remember you postiing in one of my topics pertaining to this famewolf ...and great job on making good instructions for those out there.

however. i did want to clarify that when i did this on my gentoo box..all i had to do was compile usb-rndis-lite from synce svn.

as far as the extra config files you have specified..these are not necessary. the only file i had to edit was resolv.conf ..and if you run networkmanager you shouldnt even have to edit that!

it should connect just fine without having to set all those aliases and extra steps.

also it is good to note that you will need the rndis driver and usb gadget stuff compiled into your kernel for this to work
[Windows Mobile Software Development] gjherbiet:
This works just fine !

I tried it on a Ubuntu Gutsy Gibbon (7.10) with a HTC TyTN II (Kaiser) and it just worked !

Before, when I plugged the USB cable, another "Wired network" entry was appearing in the network manager applet but it disconnected as soon as I was starting the GPRS connection using the internet sharing app on the HTC.

After compilation from svn and modprobing cdc_ether, rndis_host and usbnet it works just fine.

Note : On Ubuntu, no file edition is required (and it is recommended not to touch /etc/network/interfaces for network manager applet to work properly).

The working procedure (after download from svn, compiling and modprobing) :

1) connect HTC via usb cable

2) start connection using internet sharing app on HTC

3) select the wired network with "unknown USB interface" on network manager applet on Ubuntu

4) Surf the web !

Thanks again, I will use this hack a lot (...and even more when I'll receive my eeePC ;-)
[Windows Mobile Software Development] motersho:
Awesome work on this. I have been looking for support for the rndis driver for linux since I got my verizon xv6800. Here is my issue though.

I have the rndis modules loaded (rndis_host, cdc_ether, and usbnet) I have the device listed when I do and ifconfig. Hell when I start ics on my phone I can even get an IP address (192.168.0.102) My problem is that I cannot get the laptop to communicate with the internet except for dns resolution. Thats right I can ping google.com and ping resolves the ip but doesnt reply. Same with other sites. In firefox I cannot browser any sites. I can dig <hostname> and get all the info that I want.

My question is, what am I missing?

here is some more info the verizon xv6800 does not come with ICS so I found this and was able to get it installed.

http://xdaforums.com/showpost.php?p=1791921&postcount=684

Thanks
[Windows Mobile Software Development] famewolf:
You more than likely have one of the cheap chinese knockoff bluetooth adaptors with a HWADDR of 00:00:00:00:00:00......while these will work fine for Bluetooth DUN they will not work for Bluetooth PAND because the adaptor is emulating a network card now and not just a com port...for a network card the hwaddr does matter. I have 3 or 4 in a box that exibit indenticaly results to yours..get an ip but can't go anywhere...you will either have to use DUN which has been recooked into alot of roms or pay a little more for an adapter...the $15 one I have is an airnet model and it has a unique hwaddr.
[Windows Mobile Software Development] motersho:
Except that i am not doing this via bluetooth. I am trying via the usb cable.
[Windows Mobile Software Development] famewolf:
Sorry....I wrote a bluetooth article also and responded to this in a hurry this morning before going out the door..was still half asleep apparently. I have no idea why you'd get an IP and not be able to go anywhere on USB..all that would be handled by the phone's internet sharing program.
[Windows Mobile Software Development] motersho:
Cool I am going to do a hard reset and see if some of the other crap that I have install is causing this. I will let you know.
[Windows Mobile Software Development] geneman7:
Worked for me with my setup running Ubuntu 7.10 and an HTC Mogul (sprint). I typed in everything in terminal exactly as shown above (hitting the "enter" key after each line). I have no idea what any of those commands mean. Who cares? it works!
[Windows Mobile Software Development] gandotratushar:
it didnt work for me. i am using fedora 8 with NetworkManager. I installed it after checking it out from the svn. My networkmanager detects my kaiser but when i start the internet sharing from kaiser there is no more network in Network Manager. it just stops showing it any connection. any clue???
[Windows Mobile Software Development] JonTheNiceGuy:
Try starting the internet sharing before attaching the Kaiser, or unplug and re-plug it.

Regards,

Jon
[Windows Mobile Software Development] JonTheNiceGuy:
I just wanted to say thanks, and to put a link for eee users

Hi guys,

I just want you to know that I'm really glad these notes were put up online.

I recently bought an Asus EEE PC, and using these notes and a couple of other posts, I got my HTC Kaiser working with the EEE PC. Admittedly, I've had to create an icon to run the dhclient command, but it seems to work OK for me.

If you've got an EEE PC and want to know how I did it, I documented my steps on the EEEUSER wiki - http://wiki.eeeuser.com/howto:install_synce_usb_rndis_lite_drivers

Thanks again,

Jon
[Windows Mobile Software Development] ggoldfingerd:
Help in make command

I receive the following errors when attempting to make in usb-rndis-lite

HPLINUX usb-rndis-lite # make

make -C /lib/modules/2.6.23-gentoo-r8/build SUBDIRS=/root/usb-rndis-lite modules

make[1]: Entering directory '/usr/src/linux-2.6.23-gentoo-r8'

CC [M] /root/usb-rndis-lite/cdc_ether.o

/root/usb-rndis-lite/cdc_ether.c: In function 'usbnet_generic_cdc_bind':

/root/usb-rndis-lite/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'

make[2]: *** [/root/usb-rndis-lite/cdc_ether.o] Error 1

make[1]: *** [_module_/root/usb-rndis-lite] Error 2

make[1]: Leaving directory '/usr/src/linux-2.6.23-gentoo-r8'

make: *** [default] Error 2

I am new to linux, so I am not sure what this means. As you can see, I am use gentoo and I am logged in a root.

Thanks
[Windows Mobile Software Development] famewolf:
You are new to linux and you are starting with gentoo? Glutton for punishment? Have no clue...you'd have to check on the gentoo forums or the synce forums.
[Windows Mobile Software Development] famewolf:
Good Job Jon...glad the thread helped...FYI....no one should have any reason to ask you for those "hex addresses" which are basically the address of your phone....not information I'd give out either. ;)
[Windows Mobile Software Development] ggoldfingerd:
Yea, I am not sure why I chose gentoo, its just want I had installed on my ps3. I may switch. The sad part is that KDE is almost done installing, which is taking a long time.

What do you recommend of a linux system?

I will post this error on the gentoo forums and see what they have to say.

Thanks
[Windows Mobile Software Development] famewolf:
Both Suse and Ubuntu (Kubuntu for kde) are friendly distro's to start with. I personally use Suse.
[Windows Mobile Software Development] famewolf:
Well everything you posted looks good so I'm just gonna throw out a few suggestions for you to try and if any resolve the issue please post back. Have you tried using usb on a windows machine to see if the same problem occurs? This would eliminate whether it was the phone or provider.

First if Verizon has a portal site or even just the normal http:/www.verizon.com navigate to that and see if you can get to it. It's possible the provider is preventing tethering.

Second, grab a knoppix cd and see if you can get the module compiled for it or use another version of linux (ideally have a friend running another copy and try at their house.)

Lastly try a different pc is possible and if you know someone else with a different verizon phone see if you can try using their phone...

All of this is to see where the problem lies.....lastly although not the best solution a possible workaround might be this....I've seen posts (It might have been menneisys and I think I mispelled his name) about an http proxy that runs on the phone...since you have an actual ip address you can try installing that and using the http proxy...one example is toonel.net which even compresses data.

Lastly....try using alternate dns servers such as the opendns.com ones (208.67.222.222 and 208.67.220.220)....these are available to the public and typically are faster than the provider ones anyway.

Hope something helps.....you could also use virtualbox(virtualbox) and install suse or ubuntu into a VM and pass the USB device into the vm to see if it works there. I know this would work as I've ran XP in a vm and passed the usb device in to do things with activesync.
[Windows Mobile Software Development] ReflexNPG:
Compile usb-rndis-lite for Openwrt

Hi!

I am looking for help to connect my trinity to an Asus Wl-500GP.

The problem is, that i have a buildroot environment running, but i dont know how to insert and cross compile the usb-rndis-lite source.

Please help!
[Windows Mobile Software Development] famewolf:
I'm assuming your asus router is running openwrt or ddwrt...you need to talk with them to find out how to compile kernel modules for it.
[Windows Mobile Software Development] ReflexNPG:
@famewolf:

yes, its running with openwrt (i wrote it in the subject of my previous post).

But openwrt is linux, and i thought this thread is also for non x86 systems.
[Windows Mobile Software Development] famewolf:
Thats correct..openwrt is linux..and if you could log in and compile a kernel on openwrt I could help you but since openwrt requires you to compile the code somewhere else you need to talk with the openwrt folks to find out how to do that.
[Windows Mobile Software Development] elrosti:
Hi famewolf:

Sorry for my bad english. I speak spanish. I need some help with this.

I'm usign openSuSE 10.2, I can't install usb-rndis-lite from svn because I'm getting an error, so I install usb-rndis-lite- 0.11.

Later I make the file /etc/sysconfig/network/ifcfg-rndis0 just you say.

when I type "dmesg" i see a lot of information and in the botom something like this

ohci_hcd 0000:02:02.0: wakeup
usb 3-2: new full speed USB device using ohci_hcd and address 4
usb 3-2: new device found, idVendor=0bb4, idProduct=0303
usb 3-2: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-2: Product: Generic RNDIS
usb 3-2: Manufacturer: HTC
usb 3-2: SerialNumber: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
usb 3-2: configuration #1 chosen from 1 choice

but I'm not seeing a line like this

rndis0: register 'rndis_host' at usb-0000:02:02.0-2, RNDIS device, xx:xx:xx:xx:xx:xx

I don't know if this is important.

When I type "ifconfig" I only see 'eth0' and 'lo' sections, but I not see that 'rndis0' section. ¿ I need make other file or modify something ? Your help would be highly apreciated.

Good bye.
[Windows Mobile Software Development] famewolf:
..and this is after you have enabled internet sharing on the phone and clicked connect?

The device will show up in dmesg even when internet sharing is not enabled...but only when it is enabled will the rndis0 device show up.
[Windows Mobile Software Development] elrosti:
famewolf: I was using a corrupted usb-rndis-lite svn version, that was the reason for my compile error, now I compile usb-rndis-lite svn version and all is working good.

Thanks for the tip, Now I can use internet sharing in Linux and don't need reboot in Windows !!!.

Bye
[Windows Mobile Software Development] shade73a:
Late post for others i suppose, but you need to activate some stuff in the kernel, like usb_net .... Then your ready.
[Windows Mobile Software Development] selectakwest:
Hmm. Using Ubuntu I installed the rndis driver and made the entry to netowrk devices file. I get this when I look to restart.

rndis0: ERROR while getting interface flags: No such device

Yet it works as eth2, but it didn't like 15 minutes ago.

dmesg does however recognize that it as an rndis device.

[ 833.776000] usb 2-2: new full speed USB device using uhci_hcd and address 7
[ 833.968000] usb 2-2: configuration #1 chosen from 1 choice
[ 833.972000] ipaq 2-2:1.0: PocketPC PDA converter detected
[ 833.976000] usb 2-2: PocketPC PDA converter now attached to ttyUSB0
[ 1961.692000] usb 2-2: USB disconnect, address 7
[ 1961.692000] ipaq ttyUSB0: PocketPC PDA converter now disconnected from ttyUSB0
[ 1961.692000] ipaq 2-2:1.0: device disconnected
[ 1963.252000] usb 2-2: new full speed USB device using uhci_hcd and address 8
[ 1963.448000] usb 2-2: configuration #1 chosen from 1 choice
[ 1965.088000] rndis0: register 'rndis_host' at usb-0000:00:1d.1-2, RNDIS device (SynCE patched), 80:00:60:0f:e8:00

No idea why it started working, but it did despite it giving me errors that reportedly lead to it not working.

Follow this got me to be able to browse my phone.

http://ohioloco.ubuntuforums.org/showthread.php?t=345176
[Windows Mobile Software Development] selectakwest:
And it has never worked since. Weird. Anyone know what I need to do?
[Windows Mobile Software Development] h0me5k1n:
Many thanks famewolf.

Instead of creating a /etc/sysconfig/network/ifcfg-rndis0 file (the sysconfig directory doesn't exist in Ubuntu) it should be /etc/network/ifcfg-rndis0 before editing the /etc/network/interfaces file - that's what worked for me.

Posting using my mobile connection!! :D
[Windows Mobile Software Development] rubberalmy:
Can't get it to work in Ubuntu 8.04

Tried this but it didn't work on Ubuntu 8.04. The moment I get to trying to make, an error pops up. Below is what comes up:

jack@jack:~/usb-rndis-lite$ make

make -C /lib/modules/2.6.24-16-rt/build SUBDIRS=/home/jack/usb-rndis-lite modules

make[1]: Entering directory `/lib/modules/2.6.24-16-rt/build'

make[1]: *** No rule to make target `modules'. Stop.

make[1]: Leaving directory `/lib/modules/2.6.24-16-rt/build'

make: *** [default] Error 2

Anybody out there know what's happening and if there's a way to fix this? I'm desperate to get this working.
[Windows Mobile Software Development] famewolf:
You have your kernel source installed?
[Windows Mobile Software Development] rubberalmy:
I'm an absolute noob at this. How do I install the kernel source?

I've googled a few places that mentioned installing build essential.....tried that but didn't get the job done either
[Windows Mobile Software Development] famewolf:
I don't run ubuntu...it may be "apt install kernel-souce" on the command line. You will need to do some research.
[Windows Mobile Software Development] tunppi:
Hi.

I managed to get that code work with my HTC wizard fine, but when im trying to share internet with my htc Diamond, computer doesnt get IP-address.

diamond shares internet fine for win xp but not my ubuntu 8.04. any ideas?

both my diamond and asus eee pc tells theyre connected, but eee pc cannot get ip.

halp me :) my main idea is to get rid of htc wiz and this isnt looking good :p

here is what I did:

apt-get install subversion

svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install

/etc/network/interfaces:

iface rndis0 inet dhcp
auto rndis0
[Windows Mobile Software Development] famewolf:
If it works on the wizard but not on the diamond then the problem is the diamond..not the setup. When I switched to my at&t tilt from my wizard it worked out of the box with no changes so if you are running a custom rom I suggest you try another. The assignment of ip is handled by the phone.
[Windows Mobile Software Development] Peter-Flox:
i've just tested the connection with my new HTC Touch Diamond. Unfortunately i have the same problem as tunppi.

Everything works fine on windows xp, just connect, get ip, have fun.

On my ubuntu 8.04 its just connect and have problems ;)

The diamond says connected, and the rndis device appears as interface. Looks fine so far. But i do not get an automatic ip address via DHCP, my ubuntu falls back to something called "ahvi" (i think it was) and i get a private address 169...

I've also tried to manually assign an ip address and to ping the diamond, ubuntu responded with "Destination Host unreachable", although route entries look fine.

Any more suggestions?
[Windows Mobile Software Development] doomasala:
I'm a complete linux noob...

I've got Mandriva One 2008.1 installed in my system and I'd like to use the WM6.1 Internet sharing feature.

I couldn't find the /etc/sysconfig/network/ folder. Maybe the folder is different for this linux distro.

Also- svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite

cd usb-rndis-lite/ -doesn't seem to work.

Can anyone help me out? I'm completely lost when it comes to using Linux shell commands and all.... :(
[Windows Mobile Software Development] famewolf:
To those with the diamond having issues....the only thing I can suggest is making sure you grab the most recent version by rerunning the svn checkout command and compile/install. You may get more support on the synce.org site. I'm just a linux user who wanted his wizard and kaiser to work.

To the Mandriva user...you need to give more information than "it doesn't work"...did it tell you that svn command was not found? You have to install the svn package. As for where the script needs to be....you can do a search for "ifcfg-lo" and wherever that one is, is where you need to put the others (assuming our systems are close enough to use the same filenames).

Lastly if you run internet sharing on your device and click connect where it is showing "waiting on usb connection" prior to connecting it...then when you plug the usb cable in you can run dmesg at the command line to see if it's printing any information about finding the device. Cutting and pasting this info into a message may help us by comparing what shows up for the wizard and kaiser.

The svn co command can take quite a while to grab all the files...the directory won't be there till it finishes...don't just cut and paste the commands but run them one at a time so you can see error messages.

I just grabbed the most recent copy of the module and verified it compiles and works....you will have to have your kernel source installed to compile a kernel module.

Hope some of this helps.
[Windows Mobile Software Development] markuz:
I have the same problem with my HTC Touch Diamond. Internet sharing works on vista, but Ubuntu 8.04 doesn't receive the IP (newest version of usb-rndis!!).

My HTC VOX worked without any problems on the same machine :-(
[Windows Mobile Software Development] doomasala:
Thanks 4 the reply famewolf

I won't be at home for a few days. I shall post in detail when I get back. Again thanks for ur reply....
[Windows Mobile Software Development] cbloo21:
!up

Same problem...no ip on DHCP
[Windows Mobile Software Development] cbloo21:
nothing for Diamond ?
[Windows Mobile Software Development] famewolf:
I've indicated I need to see the dmesg output from when a diamond user connected their phone with internet sharing enabled (and possibly not enabled). Perhaps when one of you gets around to providing that information I can see if I see any differences. As it stands I can't suggest anything on a phone I don't have.