I android4.0.4 added above ethernet support, the practice is in accordance with the patch to android-x86 added. Now there is not hot-swappable network cable problems, the first hot-swappable network is through, beginning from the second network cut off.
The following information is the boot time:
V / EthernetStateTracker (892): Starts ...
V / EthernetStateTracker (892): Successed
V / EthernetStateTracker (892): start to monitor the ethernet devices
I / EthernetStateTracker (892): reset device eth0
I / EthernetStateTracker (892): trigger dhcp for device eth0
D / EthernetStateTracker (892): DhcpHandler: DHCP request started
I / EthernetStateTracker (892): reset device eth0
I / EthernetStateTracker (892): trigger dhcp for device eth0
E / EthernetStateTracker (892): DhcpHandler: DHCP request failed: Timed out waiting for dhcpcd to start == mzhu property_set ( ; ctl.start == dhcpcd_eth0 ==) TOE2: toe2_isr () => isr (0x00001C23).
D / EthernetStateTracker (892): DhcpHandler: DHCP request started
I / EthernetStateTracker (892): report new state DISCONNECTED on dev eth0
V / EthernetStateTracker (892): update network state tracker
I / EthernetStateTracker (892): report new state DISCONNECTED on dev eth0
V / EthernetStateTracker (892): update network state tracker
I / EthernetStateTracker (892): received disconnected events, stack = false HW = false
I / EthernetStateTracker (892): received disconnected events, stack = false HW = false
V / EthernetStateTracker (892): report interface is up for eth0
I / EthernetStateTracker (892): interface up event, kick off connection request
I / EthernetStateTracker (892): trigger dhcp for device eth0
I / EthernetStateTracker (892): report new state CONNECTED on dev eth0
V / EthernetStateTracker (892): update network state tracker
I / EthernetStateTracker (892): received HW connected, stack = false HW = false
D / EthernetStateTracker (892): DhcpHandler: DHCP request succeeded: addr: 192.168.9.192/24 mRoutes: 0.0.0.0 / 0 -> 192.168.9.254 | dns: 192.168.9.11,192.168.9.10 dhcpServer: 192.168.9.250 leaseDuration: 7200
I / EthernetStateTracker (892): received configured succeeded, stack = false HW = true
D / EthernetStateTracker (892): DhcpHandler: DHCP request started
E / EthernetStateTracker (892): DhcpHandler: DHCP request failed: Timed out waiting for DHCP to finish
The following is the first hot-swap information.
I / EthernetStateTracker (892): report new state DISCONNECTED on dev eth0
V / EthernetStateTracker (892): update network state tracker
I / EthernetStateTracker (892): received disconnected events, stack = false HW = true
I / EthernetStateTracker (892): stop dhcp and interface
V / EthernetStateTracker (892): report interface is up for eth0
I / EthernetStateTracker (892): interface up event, kick off connection request
I / EthernetStateTracker (892): trigger dhcp for device eth0
D / EthernetStateTracker (892): DhcpHandler: DHCP request started
D / EthernetStateTracker (892): DhcpHandler: DHCP request succeeded: addr: 192.168.9.192/24 mRoutes: 0.0.0.0 / 0 -> 192.168.9.254 | 0.0.0.0 / 0 -> 192.168.9.254 | dns: 192.168.9.11,192.168.9.10 dhcpServer: 192.168.9.250 ; leaseDuration: 7200
I / EthernetStateTracker (892): received configured succeeded, stack = false HW = false
The following is the second hot-swappable Information:
I / EthernetStateTracker (892): report new state DISCONNECTED on dev eth0
V / EthernetStateTracker (892): update network state tracker
I / EthernetStateTracker (892): received disconnected events, stack = true HW = false
V / EthernetStateTracker (892): report interface is up for eth0
I / EthernetStateTracker (892): interface up event, kick off connection request
I / EthernetStateTracker (892): trigger dhcp for device eth0
D / EthernetStateTracker (892): DhcpHandler: DHCP request started
E / EthernetStateTracker (892): DhcpHandler: DHCP request failed: Timed out waiting for DHCP to finish
I caught at the source, after the discovery rundhcp seems to be read / system / etc / dhcpcd / dhcpcd.conf this file, but I look at this file only two lines:
interface wlan0
option subnet_mask, routers, domain_name_servers
is not supposed to be here to join ethernet information? If yes, how should I add?
trouble you heroes, thank
------ Solution ---------------------- ----------------------
please refer to the following links for the eighth part
http://blog.csdn.net/kitty6620/article/details/7986852
------ For reference only ----------------- ----------------------
accordance with the above changed after, waitforevent return to a do not know what ah, nor is it a null value:
V / EthernetMonitor (892): get event
V / EthernetMonitor (892): go poll events
network or unreasonable. Would you have tried to modify it so?
------ For reference only -------------------------------------- -
Yes, but I do in the 2.3, not 4.04, you still have to look at whether there is under the management of the difference between the two.
That is just a reference
------ For reference only ------------------------------ ---------
I do not see the link you gave before changes can be received each time the plug network cable PHY_UP this event is received after this event, it is now in front of the normal two hot-swappable, from the first three starts, unplug the network cable after, EthernetStateTracker receive EVENT_HW_DISCONNECTED event does not execute this function to perform stopInterface setState go quite to the service dhcp a (hot swap is performed in front of two of these), connect the wire mesh on the Internet illogical at E / EthernetStateTracker (892): DhcpHandler: DHCP request failed: Timed out waiting for DHCP to finish this error. But this time if you manually stop and then start it to dhcp, network function normally again. Very strange place EthernetStateTracker executed only after receipt of EVENT_HW_DISCONNECTED event setState this road to go, I do not know why it does not go
------ For reference only ----------- ----------------------------
wrong, is there to setState here, just because mNetworkInfo.isConnected ()! = state this condition does not hold, so nothing had to do
------ For reference only ---------------------------------------
According to this idea in 4.1.1 modification, testing can not. Joyce_Qin_1986, did not get to the final?
没有评论:
发表评论