Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: Using HTC Diamond as a Rndis modem

  1. #1
    Join Date
    Sep 2006
    Location
    Leeds, UK
    Beans
    127
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Using HTC Diamond as a Rndis modem

    Hi, after a small amount of investigation I have finally got the HTC Diamond working as a Rndis modem over the USB port.

    What this means is that you can use the Internet connection sharing function of the Diamond to get a computer onto the Internet using the H or G phone data connection.

    Please note that the first steps of this guide will work for any ACTIVESYNC connected HTC phone that has the Connection Sharing (it's in the Connection Manager on other HTC phones)

    Obviously using data on your mobile costs money so be aware of this and make sure you have a package that has reasonable charges.

    finally I have only tested this on an ORANGE HTC Diamond in the UK.

    The reason you have to modify the source is that if you don't the rndis fails with an error like (this is seen in the /var/log/syslog)

    Code:
    [355.215268] rndis_host 5-3:1.0: dev can't take 1558 byte packets (max 1536)

    you need a working internet connection to set this up

    1. Install Pre-requisites
    2. Get the Source
    3. Modify the source (Diamond only)
    4. Compile and make and install
    5. Start the Internet Connection Sharing
    6. Plug in the Phone (USB)


    Once you have done steps 1-4 you will only ever need to do steps 5 & 6 to get re-connected.



    Step 1 - Install Pre-requisites

    open a terminal (use same terminal in next steps)

    Code:
    sudo apt-get install subversion
    Step 2 - Get the Source

    Code:
    svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
    cd usb-rndis-lite/
    Step 3 - Modify the source (Diamond only)

    Code:
    gedit rndis_host.c
    on line 524, find this bit

    Code:
           if (tmp < dev->hard_mtu) {
    		dev_err(&intf->dev,
    			"dev can't take %u byte packets (max %u)\n",
    			dev->hard_mtu, tmp);
    		goto fail;
    	}
    change it to this

    Code:
           if (tmp < dev->hard_mtu) {
    		dev_err(&intf->dev,
    			"dev can't take %u byte packets (max %u)\n",
    			dev->hard_mtu, tmp);
    		retval = -EINVAL;  
                    /* goto fail;*/
    	}
    save the file

    Step 4 - Compile and make and install

    Code:
    make
    sudo ./clean.sh
    sudo make install
    Step 5 - Start the Internet Connection Sharing

    On OLD Tytn II's open Comm Manager on your phone and click on the Internet Sharing Now make sure USB is selected and choose connect

    On Diamonds it's a seperate program called Internet Connection Sharing

    Step 6 - Plug in the Phone (USB)

    Plug the phone in, once the Phone has a data connection the Internet connection sharing will say connecting, then connected.

    If this takes a while the dhcp may timeout and you will have to run the following command.

    Code:
    sudo dhclient
    You should then see that you have an ip on the rndis device

    Code:
    ipconfig

    Thanks for this fix goes to
    http://www.solariz.de/blog/91-htc-to...ing-fuer-linux
    Last edited by StevenHarper; October 1st, 2008 at 05:45 PM. Reason: Added thanks

  2. #2
    Join Date
    Jul 2005
    Beans
    17

    Re: Using HTC Diamond as a Rndis modem

    hi steven,
    i'm evaluating the diamond as my next smartphone, but i have some unresolved questions.

    do you easily sync agenda-calendar with ubuntu?

    can you use it as external storage?

    if yes, how you can do that? wifi, bluetooth, usb?

    and finally, all reviews talk about really short battery life, sluggish interface and overheating, what's your opinion using it daily?

    thanks a lot!

  3. #3
    Join Date
    Mar 2006
    Location
    Frisco, TX
    Beans
    114
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Using HTC Diamond as a Rndis modem

    I get it to connect, however i can't get an IP Address when i do sudo dhclient. What gives?!?! I'm not getting the error anymore though Using an HTC Kaiser using WM 6.1 and ICS. Also, think this update to rndis will make its way into Intrepid Ibex?
    Last edited by bimmerd00d; October 2nd, 2008 at 12:45 AM.
    Mine ---Dell Latitude D820 - 8.10 - Core2Duo T7400, 3GB
    G/f's --- Dell Studio 15 - 8.10 - Core2Duo T8400, 4GB, intel GMA Xeleventybillion.

  4. #4
    Join Date
    Sep 2006
    Location
    Leeds, UK
    Beans
    127
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Using HTC Diamond as a Rndis modem

    Quote Originally Posted by jazzroy View Post
    hi steven,
    i'm evaluating the diamond as my next smartphone, but i have some unresolved questions.

    do you easily sync agenda-calendar with ubuntu?

    can you use it as external storage?

    if yes, how you can do that? wifi, bluetooth, usb?

    and finally, all reviews talk about really short battery life, sluggish interface and overheating, what's your opinion using it daily?

    thanks a lot!
    I have not tried the sync functionality.

    Yes you can choose it to mount as a USB2 drive (the phone can't see it when its mounted)

    This can only be done over USB

    The speed is improved with the ROM update
    ORANGES is here

    http://www1.orange.co.uk/diamond/RUU...25.05_Ship.exe

    DONT use that if your not using UK ORANGE DIAMOND HTC

    They do seem to get warm, but I have not heard of a overheating one.

    Daily use, I prefer my HTC TytnII, the Diamond has a great screen but I NEED a keyboard, I will probably get the Diamond Pro (With Keyboard) in the long run.

  5. #5
    Join Date
    Jul 2005
    Beans
    17

    Re: Using HTC Diamond as a Rndis modem

    thanks for the reply!

    just one more question, battery life is really an issue as someone says?

    thanks again!

  6. #6
    Join Date
    Aug 2007
    Location
    Bremen, Germany
    Beans
    3
    Distro
    Gutsy Gibbon Testing

    Re: Using HTC Diamond as a Rndis modem

    Quote Originally Posted by jazzroy View Post
    thanks for the reply!

    just one more question, battery life is really an issue as someone says?

    thanks again!
    I'd say depends. If you just use as a normal phone, you can get three days. If you use GPS or WiFi or generally play around with it a lot, it needs to be charged every night. The good thing is that the phone charges when connected to usb (in fact, the charger itself is nothing but a usb-port).

    I sync my contacts and calendar following this guide. It generally works ok, most of the time. There even is a gvfs-plugin, so that you can browse the storage of the phone, even if it's not in usb-mode (when in usb-mode you can't access the internal storage from the phone - bit of a nuisance when you've got software installed there).

    Generally, I like the phone a lot. You have to get used with the interface, but after that it's really neat. And speed improved a lot with the last ROM-Upgrade, which every supplier should be offering up to now.

  7. #7
    Join Date
    Aug 2006
    Beans
    Hidden!

    Re: Using HTC Diamond as a Rndis modem

    So have any of you gotten rndis to work under intrepid. I had it working fine under hardy but I've gotten no where in ibex. What's weird is that I can get it to resolve domain names but I still can't reach the internet. Like I can type:
    Code:
    ping yahoo.com
    and it will say:
    Code:
    PING yahoo.com (206.190.60.37) 56(84) bytes of data.
    So DNS is working but nothing else. Which leads me to believe it's a problem with some sort of routing setting.

  8. #8
    Join Date
    Aug 2006
    Beans
    Hidden!

    Re: Using HTC Diamond as a Rndis modem

    Got it working. Turns out it was a problem with the phone. I was running a custom ROM on it and something must have been messed up. Any one know how to get back the original modules for rndis that came with intrepid?

  9. #9
    Join Date
    Aug 2008
    Location
    Gnarp
    Beans
    2
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Using HTC Diamond as a Rndis modem

    Many thanks for this solution! I am using a HTC Touch Diamond in Swedish network Hi3G and it's working just fine with the help from this post.

    Great job and thanks again!

  10. #10
    Join Date
    Aug 2007
    Location
    Missouri
    Beans
    30
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Using HTC Diamond as a Rndis modem

    Quote Originally Posted by jazzroy View Post
    hi steven,
    i'm evaluating the diamond as my next smartphone, but i have some unresolved questions.

    do you easily sync agenda-calendar with ubuntu?

    can you use it as external storage?

    if yes, how you can do that? wifi, bluetooth, usb?

    and finally, all reviews talk about really short battery life, sluggish interface and overheating, what's your opinion using it daily?

    thanks a lot!
    I love my diamond but when i bought it from Sprint the battery life did suck,but I put one of Juicys roms on it and the problem was solved


    i

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •