Author Topic: Htc Universal  (Read 694261 times)

Sam Liddicott

  • Newbie
  • *
  • Posts: 44
    • View Profile
Htc Universal
« Reply #465 on: June 19, 2008, 03:16:21 am »
Quote from: domi007
Hi EB!
Finally I got my TitchyMobile working (based on the package from shikomura).
But, I cannot connect to the internet via USB.
I have a Debian install in a virtual PC. I connected the PDA to the virtual PC (and the connection was successful: Windows didn't see it anymore), applied all the commands, found in wiki.neilandtheresa.co.uk, but no success.

Do you have any ideas?
Thanx!
DOMy

Try using tcpdump on the debian pc; maybe try booting from a live CD.

My xda network interfaces is:

Code: [Select]
allow-hotplug usb0
iface usb0 inet static
  address 192.168.2.2
  netmask 255.255.255.0
  gateway 192.168.2.1
  post-up echo nameserver 192.168.2.1 > /etc/resolv.conf

and on my desktop pc:

Code: [Select]
allow-hotplug usb0
auto usb0
iface usb0 inet static
        address 192.168.2.1
        netmask 255.255.255.0
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward; iptables -D FORWARD -j ACCEPT; iptables -A FORWARD -j ACCEPT; iptables -t nat -D POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE; iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE

I still have to do
 ifdown usb0 ; ifup usb0
if I re-connect the xda, but it works on it's own the first time round.

Sam

linuxFreq

  • Newbie
  • *
  • Posts: 13
    • View Profile
Htc Universal
« Reply #466 on: June 19, 2008, 07:14:21 am »
Hi,

Was just wondering about the acx driver. Does titchy come with the latest version?

This tutorial here (http://acx100.sourceforge.net/wiki/Distribution_list/Debian) says that the acx-100 driver is in the contrib repo and was just wondering if i should try install it.

I've found wifi to be stable for browsing simple websites but try an apt-get install xxx and you're lucky if it lasts 20 seconds...

Flameweaver

  • Newbie
  • *
  • Posts: 1
    • View Profile
Htc Universal
« Reply #467 on: June 19, 2008, 08:33:16 am »
Hi all,

Firstly great job on getting Debian running on the Universal, might squeeze some more life out of the handset yet.
I am a linux beginner, but quite happy with commanline stuff and happily have Titchy installed on my dual partitioned SD card.
I'd like to get UMTS data working as I'm on an unlimited data plan so no problems apt-get'ing over the air.

I have edited /etc/default/titchy-phone-daemon.conf to GPRS_APN="general.t-mobile.uk"
And I've also added "user" and "pass" to the chap and pap secrets files.

When running:

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']pppd pty 'socat - tcp:127.0.0.1:1702' noauth defaultroute usepeerdns debug nodetach[/div]

Everything looks positive, primary and secondary dns are picked up but the following lines do appear:
Could not determine remote IP address: defaulting to 10.64.64.64
Cannot determine ethernet address for proxy ARP

The terminal finishes with a flashing cursor after:
Script /etc/ppp/ip-up finished (pid 1486). status = 0x0

I have to Ctrl-C to get back to prompt... Any suggestions where to go next?

Many thanks!
Alex
« Last Edit: June 19, 2008, 08:33:52 am by Flameweaver »

domi007

  • Newbie
  • *
  • Posts: 21
    • View Profile
Htc Universal
« Reply #468 on: June 19, 2008, 09:53:05 am »
Quote from: linuxFreq
Hi,

Was just wondering about the acx driver. Does titchy come with the latest version?

This tutorial here (http://acx100.sourceforge.net/wiki/Distribution_list/Debian) says that the acx-100 driver is in the contrib repo and was just wondering if i should try install it.

I've found wifi to be stable for browsing simple websites but try an apt-get install xxx and you're lucky if it lasts 20 seconds...

I heard, that it isn't so easy: the chip in the Universal is not the same as the chip supported by this driver.
Therefore you must have other/modified files also (mem.c for example), and this files aren't debugged, but they are from the driver originally written for the hp hx4700, which is also a little bit different as the Uni. So, the small differences and the modified files together cause the stability problems. I tried to contact with the last people, who has updated and modified the driver, but he doesn't answer....


Sam Liddicott:
Thank you, but how can I write > character with the keyboard of the Universal?  

MOD:
I could do it already (i mounted the partition, and modified the file with my pc), but it isn't working nevertheless. I applied all the settings, but nothing. Ping command says:
ping www.google.com
ping: unknown host www.google.com

But, in Windows, it says already that "USB Network is connected", but I cannot ping anything. (I also shared my network connection with the "USB Network")

ifconfig usb0 up says nothing bad, runs normal without error messages.

DOMy
« Last Edit: June 19, 2008, 11:25:08 am by domi007 »

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #469 on: June 19, 2008, 10:24:12 am »
Quote from: Flameweaver
The terminal finishes with a flashing cursor after:
Script /etc/ppp/ip-up finished (pid 1486). status = 0x0

I have to Ctrl-C to get back to prompt... Any suggestions where to go next?

Many thanks!
Alex
At that point you are connected.  Move to a different terminal (alt+right/left) and try to ping something.  Alternatively remove "debug noattach" from the pppd command and it will run in the background.

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #470 on: June 19, 2008, 10:30:31 am »
Quote from: datathief
Quote from: ShiroiKuma
Other than that, no criticism intended, I think MMS support is much more necessary than these eye-candy things, but that might be a tough cookie to implement from what I've read in various places so far.
I have no need for MMS support, but it should be possible to pass the URL from a "push" SMS message to something that can download it and decode it.  Sending MMS, IIRC, is done via an internet connection.  The software to do all this may already exist.
Uploaded a new version of titchy-phone-daemon.  If an MMS message is received, it will be treated as SMS, but the URL of the MMS will be passed to the event.d scripts as $4.  What happens next is someone else's problem, I'm afraid, but I think downloading and decoding a simple picture message should be quite simple.

Edit: This project can apparently encode, decode and send MMS.
« Last Edit: June 19, 2008, 10:40:29 am by datathief »

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #471 on: June 19, 2008, 11:32:57 am »
Quote from: domi007
Thank you, but how can I write > character with the keyboard of the Universal?  
http://wiki.neilandtheresa.co.uk/Titchy_Linux/Tips/Keyboard

domi007

  • Newbie
  • *
  • Posts: 21
    • View Profile
Htc Universal
« Reply #472 on: June 19, 2008, 12:47:45 pm »
Quote from: datathief
Quote from: domi007
Thank you, but how can I write > character with the keyboard of the Universal?  
http://wiki.neilandtheresa.co.uk/Titchy_Linux/Tips/Keyboard


Thank you, second time too!

But, could someone say something to this:
[!--quoteo(post=0:date=:name=domi007)--][div class=\'quotetop\']QUOTE(domi007)[/div][div class=\'quotemain\'][!--quotec--]MOD:
I could do it already (i mounted the partition, and modified the file with my pc), but it isn't working nevertheless. I applied all the settings, but nothing. Ping command says:
ping www.google.com
ping: unknown host www.google.com

But, in Windows, it says already that "USB Network is connected", but I cannot ping anything. (I also shared my network connection with the "USB Network")

ifconfig usb0 up says nothing bad, runs normal without error messages.
[/quote]

Thanks!
DOMy

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #473 on: June 20, 2008, 05:25:07 am »
Quote from: domi007
I could do it already (i mounted the partition, and modified the file with my pc), but it isn't working nevertheless. I applied all the settings, but nothing. Ping command says:
ping www.google.com
ping: unknown host www.google.com

But, in Windows, it says already that "USB Network is connected", but I cannot ping anything. (I also shared my network connection with the "USB Network")

ifconfig usb0 up says nothing bad, runs normal without error messages.
Does:
Code: [Select]
ping 66.102.9.147do anything?

Can you post the output of running ipconfig on the Windows machine, and ifconfig on the phone?

domi007

  • Newbie
  • *
  • Posts: 21
    • View Profile
Htc Universal
« Reply #474 on: June 20, 2008, 12:56:02 pm »
Quote from: datathief
Does:
Code: [Select]
ping 66.102.9.147do anything?

Can you post the output of running ipconfig on the Windows machine, and ifconfig on the phone?

No, "Destination Host is Unreachable".

ipconfig on my Windows machine (translated)

Code: [Select]
Windows IP configuration


Ethernet-adapter VMware Network Adapter VMnet8:

        Connection-specific DNS Suffix. . . . :
        IP-adress. . . . . . . . . . . . . . . . : 192.168.1.100
        Subnet Mask. . . . . . . . . . . : 255.255.255.0
        Default Gateway. . . . . . . . : 192.168.1.1

Ethernet-adapter Local Connection:

        Connection-specific DNS Suffix. . . . :
        IP-adress. . . . . . . . . . . . . . . . : 10.0.0.40
        Subnet mask. . . . . . . . . . . : 255.255.255.0
        Default gateway. . . . . . . . : 10.0.0.40

PPP-adapter [my_internet_connection]:

        Connection-specific DNS Suffix. . . . :
        IP-adress. . . . . . . . . . . . . . . . : 212.183.66.233
        Subnet mask. . . . . . . . . . . : 255.255.255.255
        Default gateway. . . . . . . . : 212.183.66.233

Ethernet-adapter USB Network:

        Connection-specific DNS Suffix. . . . :
        IP-adress. . . . . . . . . . . . . . . . : 192.168.0.1
        Subnet mask. . . . . . . . . . . : 255.255.255.0
        Default gateway. . . . . . . . :

ifconfig on my HTC Universal (only the usb0 connection):
Code: [Select]
usb0             Link encap:Ethernet   HWADDR 42:41:9C:2e:14:79
                 inet addr: 192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
                 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
                 RX packets:82 errors:0 dropped:0 overruns:0 frame:0
                 TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
                 collisions:0 txqueuelen:1000
                 RX bytes:20439 (19.9KiB)   TX bytes: 5675 (5.5 KiB)

That's it, thank you!
DOMy

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #475 on: June 20, 2008, 06:13:50 pm »
Quote from: domi007
ifconfig on my HTC Universal (only the usb0 connection):
Code: [Select]
usb0             Link encap:Ethernet   HWADDR 42:41:9C:2e:14:79
                 inet addr: 192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
                 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
                 RX packets:82 errors:0 dropped:0 overruns:0 frame:0
                 TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
                 collisions:0 txqueuelen:1000
                 RX bytes:20439 (19.9KiB)   TX bytes: 5675 (5.5 KiB)

That's it, thank you!
DOMy
The phone's IP address is wrong.  Try:
Code: [Select]
ifconfig usb0 192168.0.2

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #476 on: June 20, 2008, 06:18:21 pm »
I've added a package of network settings and scripts.

It takes care of the USB settings, GPRS (including dial-on-demand), and WiFi (including powering it down on suspend, and lowering the speed for extra stability).

It's not fully tested at this stage.  Anyone want to give it a try?

Edit: Also fixed a bug in titchy-phone-daemon that stopped GPRS working.

Edit2: Another titchy-phone-daemon update.  Running "/etc/init.d/titchy-phone-daemon stop" now unregisters from the network, allowing "flight mode".
« Last Edit: June 21, 2008, 07:23:14 pm by datathief »

domi007

  • Newbie
  • *
  • Posts: 21
    • View Profile
Htc Universal
« Reply #477 on: June 21, 2008, 11:04:05 am »
Hi datathief,
First of all, if you think, you can add my installation guide to the Wiki page.
Here can you find it: http://forum.xda-developers.com/showpost.p...;postcount=2056

Second I tried the IP address, but the ping command says now:
Code: [Select]
connect: Network is unreachable
DOMy

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #478 on: June 21, 2008, 07:16:46 pm »
Quote from: domi007
Second I tried the IP address, but the ping command says now:
Code: [Select]
connect: Network is unreachable
Maybe you need to do:
Code: [Select]
route add default gw 192.168.0.1
Or you could try installing titchy-network-settings and just:
Code: [Select]
ifup usb0

domi007

  • Newbie
  • *
  • Posts: 21
    • View Profile
Htc Universal
« Reply #479 on: June 22, 2008, 04:49:51 am »
Quote from: datathief
Quote from: domi007
Second I tried the IP address, but the ping command says now:
Code: [Select]
connect: Network is unreachable
Maybe you need to do:
Code: [Select]
route add default gw 192.168.0.1
Or you could try installing titchy-network-settings and just:
Code: [Select]
ifup usb0

I will try titchy-network-settings.

But, dpkg says, that titchy-network-settings depends on titchy-phone-daemon and titchy-hardware-support. If I try to install these packages, dpkg says, that they are already installed by htcunid package (therefore there is a conflict). Should I replace the htcunid packages with the two, mentioned above?

Mod:
I had to uninstall the htcunid package, and now I have all the packages installed, and I did ifup usb0, it said: ifup: interface usb0 already configured, but ping doesn't work....I have to think, that something with my Windows isn't okay, but I don't know, what.
I shared the internet connection with the USB network, whatelse can I do..?
It is very nerve-racking.

Thank You!
DOMy
« Last Edit: June 22, 2008, 08:43:57 am by domi007 »