Re: [gentoo-user] tethering an htc incredible
I've got a Droid X with Verizon, here's what works for me: With phone connected to computer via USB cable... 1. Open the 3G Mobile Hotspot app. 2. Click on Mobile Wi-Fi hotspot.. should say turning on mobile hotspot for a bit, displaying a green checked box when done. 3. Hit the back button (or whatever the Incredible uses to send the app to the background). 4. Now if you drag down the status bar, there should be an entry for tethering or hotspot active. Click on this, and now you should have a new entry for USB tethering. Check this option, and uncheck the Wi-Fi hotspot. Now, on the computer, just run ifconfig usb0 up, then dhcpcd usb0, and you should be in business. usb0 will never come up for me until I do the above with the phone connected. Hope this helps, Al
Re: [gentoo-user] tethering an htc incredible
I should first add that I have verizon and that I have not contacted them. I am willing to contact them and pay a monthly fee if necessary for the times I am away from normal wifi access (basically two weeks on a NH island). I should also add that in all my attempts I have never had ifconfig report a usb0 entry (or any usbN) and have never had a /dev/usb0 (or usbN). Thank you all for your help. On Sun, Jun 19 2011, Matthew Finkel wrote: Yea, I have the Nexus S, and it's pretty much as close to plug-n-play as I've found on linux... These are the steps I take in order to get usb tethering to work: 1) Plug the phone into the computer via usb cable 2) From the Setting-Wireless netwoks submenu I enable USB Tethering I do not see a tethering option. I do see 3G mobile hotspot and 3G modbile hotspot settings. These seem to relate to having the phone act as a wireless access point. This requires contacting verizon, but does not seem to be the option in question since it is for wireless access not usb access. I do see mobile broadband connect. When I select it, it does show that the USB connection has been changed to mobile broadband connect. But nothing extra appears in dmesg. I have previously set this option permanently on the phone for testing (rather than changing to it after plugging in the usb cable) also with no success. This is the reason I feel that I must have some kernel option missing. I do have the ones suggested in a forum post (now they are built in, I also tried as modules). CONFIG_USB_NET_CDCETHER=y CONFIG_USB_NET_CDC_EEM=y CONFIG_USB_ARMLINUX=y CONFIG_USB_ACM=y CONFIG_USB_WDM=y 3) I wait until the device settles (just monitor dmesg) There are no changes to dmesg output after I enable mobile connect 4) After it's ready, ifconfig will show an available but non-configured device (usb0 in my case) 5) I run dhclient usb0 and once it pulls an IP, I'm up and running. When you plug in your phone to tether it, do you see any error messages in the logs? When I plug in the phone dmesg gives [ 1825.633094] usb usb1: usb auto-resume [ 1825.633100] ehci_hcd :00:1a.0: resume root hub [ 1825.653000] hub 1-0:1.0: hub_resume [ 1825.653018] hub 1-0:1.0: port 1: status 0507 change [ 1825.653043] hub 1-0:1.0: state 7 ports 3 chg evt [ 1825.653048] usb 1-1: usb auto-resume [ 1825.679038] ehci_hcd :00:1a.0: GetStatus port:1 status 001005 0 ACK POWER sig=se0 PE CONNECT [ 1825.689895] usb 1-1: finish resume [ 1825.690167] hub 1-1:1.0: hub_resume [ 1825.690920] ehci_hcd :00:1a.0: reused qh 880225c15080 schedule [ 1825.690929] usb 1-1: link qh256-0001/880225c15080 start 1 [1/0 us] [ 1825.691112] hub 1-1:1.0: state 7 ports 6 chg evt [ 1828.278413] hub 1-1:1.0: hub_suspend [ 1828.278428] usb 1-1: unlink qh256-0001/880225c15080 start 1 [1/0 us] [ 1828.278674] usb 1-1: usb auto-suspend [ 1830.284525] hub 1-0:1.0: hub_suspend [ 1830.284535] usb usb1: bus auto-suspend [ 1830.284537] ehci_hcd :00:1a.0: suspend root hub [ 1841.081945] ISO 9660 Extensions: Microsoft Joliet Level 3 [ 1841.148575] ISOFS: changing to secondary root [ 6992.873688] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj. [20763.850372] hub 2-1:1.0: state 7 ports 8 chg evt 0004 [20763.850599] hub 2-1:1.0: port 2, status 0101, change 0001, 12 Mb/s [20763.953937] hub 2-1:1.0: debounce: port 2: total 100ms stable 100ms status 0x101 [20763.964882] hub 2-1:1.0: port 2 not reset yet, waiting 10ms [20764.026740] usb 2-1.2: new high speed USB device number 7 using ehci_hcd [20764.038696] hub 2-1:1.0: port 2 not reset yet, waiting 10ms [20764.119521] usb 2-1.2: default language 0x0409 [20764.125501] usb 2-1.2: udev 7, busnum 2, minor = 134 [20764.125507] usb 2-1.2: New USB device found, idVendor=0bb4, idProduct=0ff9 [20764.125512] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [20764.125516] usb 2-1.2: Product: Android Phone [20764.125520] usb 2-1.2: Manufacturer: HTC [20764.125523] usb 2-1.2: SerialNumber: HT05THJ06550 [20764.125645] usb 2-1.2: usb_probe_device [20764.125648] usb 2-1.2: configuration #1 chosen from 1 choice [20764.126855] usb 2-1.2: adding 2-1.2:1.0 (config #1, interface 0) [20764.126919] usb-storage 2-1.2:1.0: usb_probe_interface [20764.126923] usb-storage 2-1.2:1.0: usb_probe_interface - got id [20764.126974] scsi6 : usb-storage 2-1.2:1.0 [20764.127048] drivers/usb/core/inode.c: creating file '007' [20765.127160] scsi 6:0:0:0: Direct-Access HTC Android Phone0100 PQ: 0 ANSI: 2 [20765.127352] sd 6:0:0:0: Attached scsi generic sg2 type 0 [20765.133013] sd 6:0:0:0: [sdb] Attached SCSI removable disk
Re: [gentoo-user] tethering an htc incredible
Am 20.06.2011 22:00, schrieb Matthew Finkel: Hrm. I do not have an incredible, so I don't know this for certain, but it seems as if the incredible may not support tethering by default... I took a look at some forums and articles, and it seems like in order to get tethering working, some people downloaded an app called PDAnet[0] I know stock android 2.2 supported tethering (such as on the Nexus One [1]), but it sounds as if htc disabled it. Maybe a way would be to update the Android with a Mod. I run Cyanogenmod on my Motorola Milestone and my girlfriends HTC Tattoo without any problems here, so I can absolutly recommend it. http://wiki.cyanogenmod.com/index.php?title=HTC_Incredible With that the wired tether app can be used http://code.google.com/p/android-wired-tether/ That works flawless here in combination with Gentoo. Greetings Sebastian Beßler signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] tethering an htc incredible
On 20 June 2011, at 21:10, Sebastian Beßler wrote: Am 20.06.2011 22:00, schrieb Matthew Finkel: ... I took a look at some forums and articles, and it seems like in order to get tethering working, some people downloaded an app called PDAnet[0] I know stock android 2.2 supported tethering (such as on the Nexus One [1]), but it sounds as if htc disabled it. Maybe a way would be to update the Android with a Mod. I run Cyanogenmod on my Motorola Milestone and my girlfriends HTC Tattoo without any problems here, so I can absolutly recommend it. http://wiki.cyanogenmod.com/index.php?title=HTC_Incredible With that the wired tether app can be used http://code.google.com/p/android-wired-tether/ That works flawless here in combination with Gentoo. Seb: where did you get this phone? Did you buy it outright? Did you get it from a carrier? Is it possible they disabled tethering? Although I'm sure the Cyanogenmod builds are very good, I was conservative and I installed a stock international HTC firmware image on my Desire after rooting it. There are official builds available that carry none of the carrier's customisations. Best bet might be the XDAdevelopers forums. It seemed like the author of the HOWTO I followed missed out parts because he was so familiar with the rooting / flashing process himself, and he didn't bother to double- and triple-check it to make sure the steps were absolutely clear and precise so they could be followed by a beginner like me. However I was able to muddle through, and it does seem like the XDAdevelopers forums are the central and complete repository of Android information. There are a lot of idiots there, too, cluttering the place up with dumb questions, so that does make information harder to find, but if you read thoroughly you will probably be able to find if your carrier has applied any restrictions (such as this) to your handset. Even though I paid (practically) full price for my Desire, it featured the carrier branding and customisations. It came with the 2.1 firmware and tethering was disabled with a greyed out checkbox. When I installed the official-but-rooted 2.2 firmware the wifi tethering option was available. Stroller.
Re: [gentoo-user] tethering an htc incredible
On Mon, Jun 20 2011, strol...@stellar.eclipse.co.uk wrote: On 20 June 2011, at 21:10, Sebastian Beßler wrote: Am 20.06.2011 22:00, schrieb Matthew Finkel: ... I took a look at some forums and articles, and it seems like in order to get tethering working, some people downloaded an app called PDAnet[0] I know stock android 2.2 supported tethering (such as on the Nexus One [1]), but it sounds as if htc disabled it. Maybe a way would be to update the Android with a Mod. I run Cyanogenmod on my Motorola Milestone and my girlfriends HTC Tattoo without any problems here, so I can absolutly recommend it. http://wiki.cyanogenmod.com/index.php?title=HTC_Incredible With that the wired tether app can be used http://code.google.com/p/android-wired-tether/ That works flawless here in combination with Gentoo. Seb: where did you get this phone? Did you buy it outright? Did you get it from a carrier? It is my phone that has the problem and I bought it from verizon. None of the boxes are greyed out. However, I don't see a tethering option. I do see a mobile broadband option that seems to be tethering and I can set it. This changes the connection type to mobile broadband connect (share phone's mobile network with the PC). One preliminary question remains. When you mod the linux kernel and don't even have the phone plugged in (or don't even have a phone), are you supposed to get the usb0 interface. I do not get such an interface, which is why I suspect the problem may be on the linux end. Is it possible they disabled tethering? Although I'm sure the Cyanogenmod builds are very good, I was conservative and I installed a stock international HTC firmware image on my Desire after rooting it. There are official builds available that carry none of the carrier's customisations. Best bet might be the XDAdevelopers forums. It seemed like the author of the HOWTO I followed missed out parts because he was so familiar with the rooting / flashing process himself, and he didn't bother to double- and triple-check it to make sure the steps were absolutely clear and precise so they could be followed by a beginner like me. However I was able to muddle through, and it does seem like the XDAdevelopers forums are the central and complete repository of Android information. There are a lot of idiots there, too, cluttering the place up with dumb questions, so that does make information harder to find, but if you read thoroughly you will probably be able to find if your carrier has applied any restrictions (such as this) to your handset. Even though I paid (practically) full price for my Desire, it featured the carrier branding and customisations. It came with the 2.1 firmware and tethering was disabled with a greyed out checkbox. When I installed the official-but-rooted 2.2 firmware the wifi tethering option was available. Stroller. None of my boxes are grayed out. allan
Re: [gentoo-user] tethering an htc incredible
On 21 June 2011, at 01:16, Allan Gottlieb wrote: ... It is my phone that has the problem and I bought it from verizon. None of the boxes are greyed out. However, I don't see a tethering option. I do see a mobile broadband option that seems to be tethering and I can set it. This changes the connection type to mobile broadband connect (share phone's mobile network with the PC). On 2.2 on the Desire it's under Settings Wireless networks. Towards the bottom of the screen there is Portable Wi-Fi hotspot and then right at the bottom there's a USB tethering tickbox. This menu structure obviously varies between Android versions, because these screenshots show are both a little different to mine: http://i.imgur.com/6MkdO.png http://i.imgur.com/AmCQH.jpg (I think the grey bar shows what sub-menu of settings this is in: in the first pic I think you would have got there via Settings Wireless Controls and the second one via Settings Tethering portable hotspot) Now, I hadn't looked at this before this reply, but the USB tethering tickbox was greyed out when I did so. So I plugged it into my Mac via USB and a how do you want to connect? pop-up appeared on the phone: http://i.imgur.com/r4t4g.png (note I have never installed any drivers for my phone on my Mac). The pop-up disappears after a moment, but subsequently the USB tethering tickbox in Settings is no longer greyed out. Note that you can choose a different option by pressing on Charge only in the notifications menu: http://i.imgur.com/AbHUD.png Having written all this, I took a moment to Google, and it seems you *are* indeed looking in the right place: http://tinyurl.com/5sx327k [1] but I also get the impression this is indeed a Verizon customisation, and it's so that they can charge you extra: http://tinyurl.com/6kkzpsc [2] All I did was google incredible verizon tethering and I found plenty of discussions of this all around the net: http://tinyurl.com/6h2halo [3] http://tinyurl.com/67vtoze [4] One preliminary question remains. When you mod the linux kernel and don't even have the phone plugged in (or don't even have a phone), are you supposed to get the usb0 interface. I do not get such an interface, which is why I suspect the problem may be on the linux end. I think that you should get some kind of notification when you connect the USB cable to the phone. I don't think my Mac is in any way recognising my HTC when I plug it in. Stroller. [1] http://www.zdnet.com/blog/btl/htc-droid-incredible-solves-the-verizon-wireless-tethering-conundrum/33207 [2] http://www.zdnet.com/blog/cell-phones/htc-droid-incredible-tethering-to-cost-10-or-25-per-month/3692 [3] http://www.incredibleforum.com/forum/htc-incredible-general-discussion/9191-what-did-verizon-do-tethering.html [4] http://www.incredibleforum.com/forum/htc-incredible-general-discussion/7324-tether-question.html
Re: [gentoo-user] tethering an htc incredible
On 21 June 2011, at 02:23, Stroller wrote: ... One preliminary question remains. When you mod the linux kernel and don't even have the phone plugged in (or don't even have a phone), are you supposed to get the usb0 interface. I do not get such an interface, which is why I suspect the problem may be on the linux end. I think that you should get some kind of notification when you connect the USB cable to the phone. In fact this is described, using your phrase mobile broadband connect, in the 3rd one of these links: http://www.google.com/search?q=incredible%20verizon%20tethering%20linux However the Ubuntu link looks very thorough, too. Stroller.
Re: [gentoo-user] tethering an htc incredible
On Mon, Jun 20 2011, strol...@stellar.eclipse.co.uk wrote: On 21 June 2011, at 01:16, Allan Gottlieb wrote: ... It is my phone that has the problem and I bought it from verizon. None of the boxes are greyed out. However, I don't see a tethering option. I do see a mobile broadband option that seems to be tethering and I can set it. This changes the connection type to mobile broadband connect (share phone's mobile network with the PC). On 2.2 on the Desire it's under Settings Wireless networks. Towards the bottom of the screen there is Portable Wi-Fi hotspot and then right at the bottom there's a USB tethering tickbox. This menu structure obviously varies between Android versions, because these screenshots show are both a little different to mine: http://i.imgur.com/6MkdO.png http://i.imgur.com/AmCQH.jpg (I think the grey bar shows what sub-menu of settings this is in: in the first pic I think you would have got there via Settings Wireless Controls and the second one via Settings Tethering portable hotspot) My options are different. Under wireless and settings I have Airplane mode Wi-Fi Wi-Fi Bluetooth Bluetooth settings 3G Mobile Hotspot 3G Mobile Hotspot settings VPN Settings Mobile network Mobile networks Mobile broadband connect I examined each one and the word tethering does not appear. The mobile hotspot states that I need something from verizon. But this is used to create a wireless access point so that laptops can connect via wifi. The mobile broadband connect changes the (USB) connection type to mobile broadband connect (share phone's mobile network with PC), which are the same words you had for USB tethering. The other possibilities are charge only, htc sync, and disk drive. I have used the first and third. But when mobile broadband connect is selected, I see nothing new on the laptop's dmsg. It still ends with [60846.989994] sd 17:0:0:0: [sdb] Attached SCSI removable disk This is why I keep thinking the trouble is on the linux side. It looks as though the phone is trying. It is also why I keep asking what others do on linux (and why I find your comment below about your MAC so interesting) Now, I hadn't looked at this before this reply, but the USB tethering tickbox was greyed out when I did so. So I plugged it into my Mac via USB and a how do you want to connect? pop-up appeared on the phone: http://i.imgur.com/r4t4g.png (note I have never installed any drivers for my phone on my Mac). The pop-up disappears after a moment, but subsequently the USB tethering tickbox in Settings is no longer greyed out. Note that you can choose a different option by pressing on Charge only in the notifications menu: http://i.imgur.com/AbHUD.png Having written all this, I took a moment to Google, and it seems you *are* indeed looking in the right place: http://tinyurl.com/5sx327k [1] but I also get the impression this is indeed a Verizon customisation, and it's so that they can charge you extra: http://tinyurl.com/6kkzpsc [2] All I did was google incredible verizon tethering and I found plenty of discussions of this all around the net: http://tinyurl.com/6h2halo [3] http://tinyurl.com/67vtoze [4] One preliminary question remains. When you mod the linux kernel and don't even have the phone plugged in (or don't even have a phone), are you supposed to get the usb0 interface. I do not get such an interface, which is why I suspect the problem may be on the linux end. I think that you should get some kind of notification when you connect the USB cable to the phone. I don't think my Mac is in any way recognising my HTC when I plug it in. I would be willing to pay the fee since I need it only one month per year. But I worry that even with this, it won't work since everyone seems to be saying that the usb0 interface appears without the phone doing anything so I must have something wrong in the kernel. allan
Re: [gentoo-user] tethering an htc incredible
On Mon, Jun 20 2011, strol...@stellar.eclipse.co.uk wrote: On 21 June 2011, at 02:23, Stroller wrote: ... One preliminary question remains. When you mod the linux kernel and don't even have the phone plugged in (or don't even have a phone), are you supposed to get the usb0 interface. I do not get such an interface, which is why I suspect the problem may be on the linux end. I think that you should get some kind of notification when you connect the USB cable to the phone. In fact this is described, using your phrase mobile broadband connect, in the 3rd one of these links: http://www.google.com/search?q=incredible%20verizon%20tethering%20linux However the Ubuntu link looks very thorough, too. Thanks. I will give the ubuntu link a try on wednesday. allan
Re: [gentoo-user] tethering an htc incredible
On Sat, Jun 18 2011, David Abbott wrote: If you open up wicd = Preferences = General Settings = Wired interface the defaultis eth0. That is what I have. Are you suggesting I should change it to usb0? I did not have to manually create any symlink as I think wicd does any majic that is needed on its own. One think to consider is that your phone does not have tethering enabled, that your carrier has blocked it. Ah. Does this mean that I will not even see the usb0 interface on linux if I have not had my phone and service enabled for tethering? I had thought that I could deal with any phone/verizon issues only after I had the linux setup correct and the usb interface was there. thanks again, allan
Re: [gentoo-user] tethering an htc incredible
On Sun, Jun 19, 2011 at 06:25:00AM -0400, Allan Gottlieb wrote: On Sat, Jun 18 2011, David Abbott wrote: If you open up wicd = Preferences = General Settings = Wired interface the defaultis eth0. That is what I have. Are you suggesting I should change it to usb0? I did not have to manually create any symlink as I think wicd does any majic that is needed on its own. One think to consider is that your phone does not have tethering enabled, that your carrier has blocked it. Ah. Does this mean that I will not even see the usb0 interface on linux if I have not had my phone and service enabled for tethering? I had thought that I could deal with any phone/verizon issues only after I had the linux setup correct and the usb interface was there. Unless they've made some changes in the last two months, Verizon just presents you with a EULA for tethering rates before allowing you to access the web. Tethering with a blackberry via USB (using the BB as a USB modem) is extremely easy, not sure why your HTC is so stubborn... -- caveat utilitor ♫ ❤ ♫ ❤ ♫ ❤ ♫
Re: [gentoo-user] tethering an htc incredible
On Sun, Jun 19, 2011 at 6:40 AM, Indi thebeelzebubtrig...@gmail.com wrote: Tethering with a blackberry via USB (using the BB as a USB modem) is extremely easy, not sure why your HTC is so stubborn... Yea, I have the Nexus S, and it's pretty much as close to plug-n-play as I've found on linux... These are the steps I take in order to get usb tethering to work: 1) Plug the phone into the computer via usb cable 2) From the Setting-Wireless netwoks submenu I enable USB Tethering 3) I wait until the device settles (just monitor dmesg) 4) After it's ready, ifconfig will show an available but non-configured device (usb0 in my case) 5) I run dhclient usb0 and once it pulls an IP, I'm up and running. When you plug in your phone to tether it, do you see any error messages in the logs?
Re: [gentoo-user] tethering an htc incredible
On Fri, Jun 17 2011, David Abbott wrote: I am currently connected with a Google Nexus One. I am going to attach two files, my current lsmod and /usr/src/linux/.config Also I use wicd to connect. I had to add the wired network usb0 HTH David Thank you very much. I will work on this starting monday. But one question. What do you mean by I had to add the wired network usb0? I have created the symlink net.lo -- net.usb0, but I don't seem to get any usb0 interface. Did you do anything else? I do run wicd. I am guessing it is kernel options, but just want to make sure that there isn't some command I am forgetting to issue. Thanks again, allan
Re: [gentoo-user] tethering an htc incredible
On Sat, Jun 18, 2011 at 11:06 AM, Allan Gottlieb gottl...@nyu.edu wrote: On Fri, Jun 17 2011, David Abbott wrote: I am currently connected with a Google Nexus One. I am going to attach two files, my current lsmod and /usr/src/linux/.config Also I use wicd to connect. I had to add the wired network usb0 HTH David Thank you very much. I will work on this starting monday. But one question. What do you mean by I had to add the wired network usb0? I have created the symlink net.lo -- net.usb0, but I don't seem to get any usb0 interface. Did you do anything else? I do run wicd. I am guessing it is kernel options, but just want to make sure that there isn't some command I am forgetting to issue. Thanks again, allan If you open up wicd = Preferences = General Settings = Wired interface the defaultis eth0. I did not have to manually create any symlink as I think wicd does any majic that is needed on its own. One think to consider is that your phone does not have tethering enabled, that your carrier has blocked it. All the best, David
Re: [gentoo-user] tethering an htc incredible
On Thursday 16 Jun 2011 23:13:28 Allan Gottlieb wrote: On Thu, Jun 16 2011, Mick wrote: On Thursday 16 Jun 2011 15:38:30 Allan Gottlieb wrote: I have an htc incredible and want to use it to act as a modem for my gentoo laptop. [snip...] I haven't seen any howtos for tethering directly with gentoo. I don't have your phone to provide detailed instructions, but this is how I have tethered phones in the past to connect to the Internet using IrDA or Bluetooth. thanks for the information. The forum post paul sent me too claims that this is very easy with a usb connection. But to date, I haven't got it working. Others definitely have so there is probably something wrong with configuration (quite possible the kernel). thanks again, allan Well, what I'm suggesting should also work with a usb connection (instead of bluetooth or IrDA) but unlike what is suggested in the forum I would not think that it needs the particular MSWindows usb modem driver to create a virtual ethernet interface. Unless that is the phone is locked down in its firmware and will not run DUN - over bluetooth you would use 'sdptool browse MAC_address to find out what services the phone offers. I think that Linux *should* be able to manage the connection directly over ppp, using what ever usb device udev creates when you connect your phone. However, I don't have access to such phone to try it out on this end. Good luck. :-) -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] tethering an htc incredible
On Fri, Jun 17 2011, Mick wrote: On Thursday 16 Jun 2011 23:13:28 Allan Gottlieb wrote: On Thu, Jun 16 2011, Mick wrote: On Thursday 16 Jun 2011 15:38:30 Allan Gottlieb wrote: I have an htc incredible and want to use it to act as a modem for my gentoo laptop. [snip...] I haven't seen any howtos for tethering directly with gentoo. I don't have your phone to provide detailed instructions, but this is how I have tethered phones in the past to connect to the Internet using IrDA or Bluetooth. thanks for the information. The forum post paul sent me too claims that this is very easy with a usb connection. But to date, I haven't got it working. Others definitely have so there is probably something wrong with configuration (quite possible the kernel). thanks again, allan Well, what I'm suggesting should also work with a usb connection (instead of bluetooth or IrDA) but unlike what is suggested in the forum I would not think that it needs the particular MSWindows usb modem driver to create a virtual ethernet interface. Unless that is the phone is locked down in its firmware and will not run DUN - over bluetooth you would use 'sdptool browse MAC_address to find out what services the phone offers. I think that Linux *should* be able to manage the connection directly over ppp, using what ever usb device udev creates when you connect your phone. However, I don't have access to such phone to try it out on this end. Good luck. :-) The forum post does not involve any ms windows code (in is a gentoo forum). Indeed it seems perfect ... ... except that for me it doesn't work. I has worked for others so I must have some configuration (probably the kernel) wrong. thanks again for trying to help. I appreciate it. allan
Re: [gentoo-user] tethering an htc incredible
On Friday 17 Jun 2011 11:52:03 Allan Gottlieb wrote: On Fri, Jun 17 2011, Mick wrote: On Thursday 16 Jun 2011 23:13:28 Allan Gottlieb wrote: On Thu, Jun 16 2011, Mick wrote: On Thursday 16 Jun 2011 15:38:30 Allan Gottlieb wrote: I have an htc incredible and want to use it to act as a modem for my gentoo laptop. [snip...] I haven't seen any howtos for tethering directly with gentoo. I don't have your phone to provide detailed instructions, but this is how I have tethered phones in the past to connect to the Internet using IrDA or Bluetooth. thanks for the information. The forum post paul sent me too claims that this is very easy with a usb connection. But to date, I haven't got it working. Others definitely have so there is probably something wrong with configuration (quite possible the kernel). thanks again, allan Well, what I'm suggesting should also work with a usb connection (instead of bluetooth or IrDA) but unlike what is suggested in the forum I would not think that it needs the particular MSWindows usb modem driver to create a virtual ethernet interface. Unless that is the phone is locked down in its firmware and will not run DUN - over bluetooth you would use 'sdptool browse MAC_address to find out what services the phone offers. I think that Linux *should* be able to manage the connection directly over ppp, using what ever usb device udev creates when you connect your phone. However, I don't have access to such phone to try it out on this end. Good luck. :-) The forum post does not involve any ms windows code (in is a gentoo forum). Indeed it seems perfect ... ... except that for me it doesn't work. I has worked for others so I must have some configuration (probably the kernel) wrong. thanks again for trying to help. I appreciate it. allan Hmm ... http://en.wikipedia.org/wiki/RNDIS http://msdn.microsoft.com/en-us/windows/hardware/gg463293 I'm not saying that the code running on Linux is MSWindows (the protocol is) and RNDIS is of course faster than e.g. a USB-serial connection, but I still think that you should be able to use USB directly without the RNDIS plug 'n play protocol. PPP will allow you to do the dialling part over USB. It may take longer to configure than using RNDIS, but it should work all the same and at the same IO speeds. Anyhow, if the problem you are trying to solve is how to get RNDIS going, what I suggest is more of a work-around than the solution you are seeking. Hope you crack this soon. :) -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] tethering an htc incredible
On Fri, Jun 17 2011, Mick wrote: On Friday 17 Jun 2011 11:52:03 Allan Gottlieb wrote: The forum post does not involve any ms windows code (in is a gentoo forum). Indeed it seems perfect ... ... except that for me it doesn't work. I has worked for others so I must have some configuration (probably the kernel) wrong. thanks again for trying to help. I appreciate it. allan Hmm ... http://en.wikipedia.org/wiki/RNDIS http://msdn.microsoft.com/en-us/windows/hardware/gg463293 I'm not saying that the code running on Linux is MSWindows (the protocol is) and RNDIS is of course faster than e.g. a USB-serial connection, but I still think that you should be able to use USB directly without the RNDIS plug 'n play protocol. PPP will allow you to do the dialling part over USB. It may take longer to configure than using RNDIS, but it should work all the same and at the same IO speeds. Anyhow, if the problem you are trying to solve is how to get RNDIS going, what I suggest is more of a work-around than the solution you are seeking. Hope you crack this soon. :) Thank you for this extra information. allan
[gentoo-user] tethering an htc incredible
I have an htc incredible and want to use it to act as a modem for my gentoo laptop. The htc manual says that I first must install htc sync. When I go to the htc web site, I find that htc sync is only available for ms windows. I believing others on this group have tethered their incredibles and I wonder how. I see in google some attempts to use wine or other ms windows emulators / virtualizers. I do not need to sync contacts/mail/calendar since I do that with google. I haven't seen any howtos for tethering directly with gentoo. thanks in advance. allan
Re: [gentoo-user] tethering an htc incredible
On Thu, Jun 16, 2011 at 9:38 AM, Allan Gottlieb gottl...@nyu.edu wrote: I have an htc incredible and want to use it to act as a modem for my gentoo laptop. I haven't seen any howtos for tethering directly with gentoo. Check out this forum post: https://forums.gentoo.org/viewtopic-t-843255-start-0.html
Re: [gentoo-user] tethering an htc incredible
On Thu, Jun 16 2011, Paul Hartman wrote: On Thu, Jun 16, 2011 at 9:38 AM, Allan Gottlieb gottl...@nyu.edu wrote: I have an htc incredible and want to use it to act as a modem for my gentoo laptop. I haven't seen any howtos for tethering directly with gentoo. Check out this forum post: https://forums.gentoo.org/viewtopic-t-843255-start-0.html I have tried both builtin and modules for the kernel options mentioned in the forum, with no success. The phone is recognized and if I set the option (on the phone) to have the connection act as a disk, that works file. But the phone option for mobile broadband does not work. I see the phone in dmesg but the usb0 network port is not created (I do have net.usb0 -- net.lo). thanks, allan
Re: [gentoo-user] tethering an htc incredible
On Thursday 16 Jun 2011 15:38:30 Allan Gottlieb wrote: I have an htc incredible and want to use it to act as a modem for my gentoo laptop. The htc manual says that I first must install htc sync. When I go to the htc web site, I find that htc sync is only available for ms windows. I wouldn't think that this is necessary unless you want to sync contacts, messages, etc. Opensync may work with that phone - but I do know for sure. I believing others on this group have tethered their incredibles and I wonder how. I see in google some attempts to use wine or other ms windows emulators / virtualizers. I do not need to sync contacts/mail/calendar since I do that with google. I haven't seen any howtos for tethering directly with gentoo. I don't have your phone to provide detailed instructions, but this is how I have tethered phones in the past to connect to the Internet using IrDA or Bluetooth. 1. Establish a connection between your phone and the laptop. I assume you will use Bluetooth for this, so you will need to edit /etc/bluetooth/rfcomm.conf as follows: # # RFCOMM configuration file. # rfcomm0 { # # Automatically bind the device at startup # bind no; bind yes; # # Bluetooth address of the device # device 11:22:33:44:55:66; device XX:XX:XX:XX:XX:XX; --your phone's b'tooth MAC address # # # RFCOMM channel for the connection # channel 1; #channel 1; # # Description of the connection # comment Example Bluetooth device; comment HTC Incredible; --your phone's name } To find the MAC address run hcitool with various parameters like, scan, dev, inq. Then create a ppp connection on your PC and point it to /dev/rfcomm0. First check though that the device is being created and if not, check the /etc/conf.d/bluetooth file, this is mine: # Bluetooth configuraton file # Bind rfcomm devices (allowed values are true and false) RFCOMM_ENABLE=true # Config file for rfcomm RFCOMM_CONFIG=/etc/bluetooth/rfcomm.conf The tricky part with the ppp connection is using the correct string for running the modem on the phone. On mine I dial up *99# and that activates GPRS on the phone. You may also need special initialisation commands for the phone's modem. Some googling on these specifics should get you there. Other than that enable bluetooth on both devices, establish a connection using bluetooth and entering a pin and then run ppp on your laptop. If all goes as expected you should be online. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] tethering an htc incredible
On Thu, Jun 16 2011, Mick wrote: On Thursday 16 Jun 2011 15:38:30 Allan Gottlieb wrote: I have an htc incredible and want to use it to act as a modem for my gentoo laptop. The htc manual says that I first must install htc sync. When I go to the htc web site, I find that htc sync is only available for ms windows. I wouldn't think that this is necessary unless you want to sync contacts, messages, etc. Opensync may work with that phone - but I do know for sure. I believing others on this group have tethered their incredibles and I wonder how. I see in google some attempts to use wine or other ms windows emulators / virtualizers. I do not need to sync contacts/mail/calendar since I do that with google. I haven't seen any howtos for tethering directly with gentoo. I don't have your phone to provide detailed instructions, but this is how I have tethered phones in the past to connect to the Internet using IrDA or Bluetooth. thanks for the information. The forum post paul sent me too claims that this is very easy with a usb connection. But to date, I haven't got it working. Others definitely have so there is probably something wrong with configuration (quite possible the kernel). thanks again, allan 1. Establish a connection between your phone and the laptop. I assume you will use Bluetooth for this, so you will need to edit /etc/bluetooth/rfcomm.conf as follows: # # RFCOMM configuration file. # rfcomm0 { # # Automatically bind the device at startup # bind no; bind yes; # # Bluetooth address of the device # device 11:22:33:44:55:66; device XX:XX:XX:XX:XX:XX; --your phone's b'tooth MAC address # # # RFCOMM channel for the connection # channel 1; #channel 1; # # Description of the connection # comment Example Bluetooth device; comment HTC Incredible; --your phone's name } To find the MAC address run hcitool with various parameters like, scan, dev, inq. Then create a ppp connection on your PC and point it to /dev/rfcomm0. First check though that the device is being created and if not, check the /etc/conf.d/bluetooth file, this is mine: # Bluetooth configuraton file # Bind rfcomm devices (allowed values are true and false) RFCOMM_ENABLE=true # Config file for rfcomm RFCOMM_CONFIG=/etc/bluetooth/rfcomm.conf The tricky part with the ppp connection is using the correct string for running the modem on the phone. On mine I dial up *99# and that activates GPRS on the phone. You may also need special initialisation commands for the phone's modem. Some googling on these specifics should get you there. Other than that enable bluetooth on both devices, establish a connection using bluetooth and entering a pin and then run ppp on your laptop. If all goes as expected you should be online.