Hi,John. Thank you very much. And I compared to other phone whose wifi works well,and found that: mine: cat /proc/meminfo MemTotal: 92436 kB MemFree: 4636 kB
other: MemTotal: 199664 kB MemFree: 2888 kB *By the way its logcat also includes these:* *D/ConnectivityService( 1409): Dropping ConnectivityChange for WIFI: CONNECTING/AUTHENTICATING* * So I don't think it is the memory.Any more ideas? I have been bothered by the problem for 7 days.Any suggestion will be appreciated! * Here is its full logcat: I/wpa_supplicant( 1916): Trying to associate with 00:e0:4c:b8:73:24 (SSID='HG231f-B8731C' freq=2422 MHz) I/wpa_supplicant( 1916): CTRL-EVENT-STATE-CHANGE id=-1 state=3 V/WifiMonitor( 1409): Event [Trying to associate with 00:e0:4c:b8:73:24 (SSID='HG231f-B8731C' freq=2422 MHz)] V/WifiMonitor( 1409): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3] V/WifiStateTracker( 1409): Changing supplicant state: SCANNING ==> ASSOCIATING D/NetworkStateTracker( 1409): setDetailed state, old =SCANNING and new state=CONNECTING D/ConnectivityService( 1409): ConnectivityChange for WIFI: CONNECTING/CONNECTING I/wpa_supplicant( 1916): CTRL-EVENT-STATE-CHANGE id=0 state=4 V/WifiMonitor( 1409): Event [CTRL-EVENT-STATE-CHANGE id=0 state=4] V/WifiStateTracker( 1409): Changing supplicant state: ASSOCIATING ==> ASSOCIATED D/NetworkStateTracker( 1409): setDetailed state, old =CONNECTING and new state=CONNECTING I/wpa_supplicant( 1916): Associated with 00:e0:4c:b8:73:24 V/WifiMonitor( 1409): Event [Associated with 00:e0:4c:b8:73:24] I/wpa_supplicant( 1916): CTRL-EVENT-STATE-CHANGE id=0 state=5 V/WifiMonitor( 1409): Event [CTRL-EVENT-STATE-CHANGE id=0 state=5] V/WifiStateTracker( 1409): Changing supplicant state: ASSOCIATED ==> FOUR_WAY_HANDSHAKE D/NetworkStateTracker( 1409): setDetailed state, old =CONNECTING and new state=AUTHENTICATING D/ConnectivityService( 1409): Dropping ConnectivityChange for WIFI: CONNECTING/AUTHENTICATING I/wpa_supplicant( 1916): CTRL-EVENT-STATE-CHANGE id=0 state=5 V/WifiMonitor( 1409): Event [CTRL-EVENT-STATE-CHANGE id=0 state=5] V/WifiStateTracker( 1409): Changing supplicant state: FOUR_WAY_HANDSHAKE ==> FOUR_WAY_HANDSHAKE I/wpa_supplicant( 1916): CTRL-EVENT-STATE-CHANGE id=0 state=6 V/WifiMonitor( 1409): Event [CTRL-EVENT-STATE-CHANGE id=0 state=6] V/WifiStateTracker( 1409): Changing supplicant state: FOUR_WAY_HANDSHAKE ==> GROUP_HANDSHAKE I/wpa_supplicant( 1916): WPA: Key negotiation completed with 00:e0:4c:b8:73:24 [PTK=CCMP GTK=CCMP] I/wpa_supplicant( 1916): CTRL-EVENT-STATE-CHANGE id=0 state=7 I/wpa_supplicant( 1916): CTRL-EVENT-CONNECTED - Connection to 00:e0:4c:b8:73:24 completed (auth) [id=0 id_str=] V/WifiMonitor( 1409): Event [WPA: Key negotiation completed with 00:e0:4c:b8:73:24 [PTK=CCMP GTK=CCMP]] V/WifiMonitor( 1409): Event [CTRL-EVENT-STATE-CHANGE id=0 state=7] V/WifiMonitor( 1409): Event [CTRL-EVENT-CONNECTED - Connection to 00:e0:4c:b8:73:24 completed (auth) [id=0 id_str=]] D/NetworkStateTracker( 1409): setDetailed state, old =AUTHENTICATING and new state=AUTHENTICATING V/WifiStateTracker( 1409): Changing supplicant state: GROUP_HANDSHAKE ==> COMPLETED V/WifiStateTracker( 1409): New network state is CONNECTED D/NetworkStateTracker( 1409): setDetailed state, old =AUTHENTICATING and new state=OBTAINING_IPADDR D/ConnectivityService( 1409): Dropping ConnectivityChange for WIFI: CONNECTING/OBTAINING_IPADDR E/Tethering( 1409): attempting to remove unknown iface (usb0), ignoring D/WifiService( 1409): ACTION_BATTERY_CHANGED pluggedType: 1 D/WifiStateTracker( 1409): DhcpHandler: DHCP request started E/Tethering( 1409): attempting to remove unknown iface (usb0), ignoring D/WifiService( 1409): ACTION_BATTERY_CHANGED pluggedType: 1 D/dhcpcd ( 2003): dhcpcd 4.0.15 starting D/dhcpcd ( 2003): hardware address = b4:07:f9:a9:2b:05 D/dhcpcd ( 2003): executing `/system/etc/dhcpcd/dhcpcd-run-hooks', reason PREINIT D/dalvikvm( 1891): GC_FOR_MALLOC freed 15630 objects / 855696 bytes in 240ms D/dhcpcd ( 2003): host does not support a monotonic clock - timing can skew D/dhcpcd ( 2003): broadcasting for a lease D/dhcpcd ( 2003): sending DHCP_DISCOVER with xid 0xaf4bbfcc, next in 3.21 seconds D/dhcpcd ( 2003): offered 192.168.1.112 from 192.168.1.100 D/dhcpcd ( 2003): sending DHCP_REQUEST with xid 0xaf4bbfcc, next in 4.15 seconds D/dhcpcd ( 2003): acknowledged 192.168.1.112 from 192.168.1.100 D/dhcpcd ( 2003): checking 192.168.1.112 is available on attached networks D/dhcpcd ( 2003): sending ARP probe (1 of 3), next in 1.79 seconds I/wpa_supplicant( 1916): CTRL-EVENT-SCAN-RESULTS Ready D/Genie ( 1820): Can not get the location from network D/dhcpcd ( 2003): sending ARP probe (2 of 3), next in 1.08 seconds D/dhcpcd ( 2003): sending ARP probe (3 of 3), next in 2.00 seconds D/Genie ( 1820): Request location failed, requesting data without location. D/Genie ( 1820): Requesting data... D/Genie ( 1820): Request failed at, 12:51pm, August 24 next auto-refresh time =21600000 D/Genie ( 1820): Commited FileCache, deleted 0 obselete files and kept 0 files. D/Genie ( 1820): UpdateReceiver.onReceive D/Genie ( 1820): Starting refresh services D/Genie ( 1820): No last fix, requesting location fix... D/dhcpcd ( 2003): leased 192.168.1.112 for 86400 seconds D/dhcpcd ( 2003): adding IP address 192.168.1.112/24 D/dhcpcd ( 2003): adding route to 0.0.0.0/0 via 192.168.1.100 D/dhcpcd ( 2003): executing `/system/etc/dhcpcd/dhcpcd-run-hooks', reason BOUND D/dhcpcd ( 2003): forking to background I/logwrapper( 2002): /system/bin/dhcpcd terminated by exit(0) V/WifiStateTracker( 1409): DhcpHandler: DHCP request succeeded D/NetworkStateTracker( 1409): setDetailed state, old =OBTAINING_IPADDR and new state=CONNECTED V/WifiStateTracker( 1409): IP configuration: ipaddr 192.168.1.112 gateway 192.168.1.100 netmask 255.255.255.0 dns1 192.1 68.1.100 dns2 192.168.1.100 DHCP server 192.168.1.100 lease 86400 seconds D/ConnectivityService( 1409): ConnectivityChange for WIFI: CONNECTED/CONNECTED V/NetworkStateTracker( 1409): Setting TCP values: [4095,87380,110208,4096,16384,110208] which comes from [net.tcp.buffer size.wifi] D/ConnectivityService( 1409): adding dns 192.168.1.100 for WIFI D/ConnectivityService( 1409): adding dns 192.168.1.100 for WIFI D/WifiWatchdogService( 1409): (android.server.ServerThread) HG231f-B8731C (00:e0:4c:b8:73:24) does not require the watch dog D/Tethering( 1409): Tethering got CONNECTIVITY_ACTION D/Tethering( 1409): MasterInitialState.processMessage what=3 E/HierarchicalStateMachine( 1409): TetherMaster - unhandledMessage: msg.what=3 I/MediaUploader( 1810): No need to wake up I/wpa_supplicant( 1916): CTRL-EVENT-SCAN-RESULTS Ready I/GTalkService( 1606): [ServiceAutoStarter] --- connectivity changed I/GTalkService( 1606): [ServiceAutoStarter] --- start GTalk service --- D/GTalkService( 1606): [GTalkService.1] onStartCommand: found 0 connections, force audit connections... D/GoogleLoginService( 1606): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.logi nservice.GoogleLoginService } W/GoogleLoginService( 1606): Device has no accounts: sending Intent { act=com.google.android.gsf.LOGIN_ACCOUNTS_MISSING } D/GTalkService( 1606): [GTalkService.26] account missing D/dhcpcd ( 2037): sending ARP announce (1 of 2), next in 2.00 seconds I/CheckinService( 1606): Preparing to send checkin request I/EventLogService( 1606): Accumulating logs since 1314190089780 V/CheckinRequestBuilder( 1606): pre-froyo android id is 0 I/CheckinTask( 1606): Sending checkin request (10485 bytes) 2011/8/27 john halewood <john.halew...@gmail.com> > On 26 August 2011 16:50, weihongcsu li <liweihong...@gmail.com> wrote: > > Anyone knows?Any suggestion will be appreciated.I have a new logcat with > > more debug msg: > > ######################## click connect #################################3 > (lots of snips) > > I/ActivityManager( 200): Low Memory: No more background processes. > > D/ConnectivityService( 200): Dropping ConnectivityChange for WIFI: > >> I/ActivityManager( 200): Process com.google.android.apps.uploader (pid > >> 750) has died. > >> I/ActivityManager( 200): Low Memory: No more background processes. > > These bits (along with other parts of the log) suggest that you are > establishing a DHCP connection, but the system is running out of > memory and terminating background processes (of which dhcp is one). > I'd strip out all ephemeral processes from the startup and see if it > will work. Looks like there's not enough RAM in the system to support > a full Android system, so you'll either have to increase the RAM or > build a very minimal operating environment. > > cheers > john > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting