DHCP Address on WiFi

by Ashwin Bihari » Wed, 10 Feb 2010 22:51:16 GMT


Sponsored Links
 Greetings,

I have a board with onboard WiFi available through the SDIO slot. I've
got the appropriate Kernel driver made available within Android 1.6
and through numerous searches have figured out what I need to do to
get wpa_supplicant to come up and stay up. I can now goto the Android
Network control settings area, turn on WiFi and can get a list of
wireless AP's in my area. The piece that seems to be eluding me is
DHCP. I get a message of "init: no service 'dhcpcd'" on the screen
while Android is trying to obtain an address and it eventually times
out and gives up..

I've also got a regular Ethernet port on this device and in my init.rc
file, I'm running ethmonitor on that device and when I plug in a RJ45
cable, I immediately get the DHCP functionality to occur and an IP
address to be assigned to me..

I have, however, tried to manually start /system/bin/dhcpcd on my WiFi
device of wlan0 and that seems to kick start the DHCP process and it
does get an address, but once added, the WiFi device removes that
address..

What are the correct steps in getting the IP address assigned through
DHCP to my WiFi interface??

Regards
-- Ashwin

-- 



DHCP Address on WiFi

by Qipeng » Wed, 10 Feb 2010 23:37:52 GMT


 hi, Ashwin

there is some questions for your check.

(1) is there the right dhcp conf file on your file system? pay
attention to the interface of network, such as eth0 or wlan0.
(2) in your init.rc, is the dhcp set to the right permission, or a
proper directory for the temp data of dhcp?

good luck to you.




-- 


Sponsored Links


DHCP Address on WiFi

by Ashwin Bihari » Thu, 11 Feb 2010 08:15:20 GMT


 Hi Qipeng,

I added a dhcpcd.conf file to the 'system/etc/dhcpcd' directory and it
simply contains:

      # dhcpcd configuration for Android Wi-Fi interface
      # See dhcpcd.conf(5) for details.

      interface wlan0
      # dhcpcd-run-hooks uses these options.
      option subnet_mask, routers, domain_name_servers

In my init.rc file, I have a line to start up wpa_supplicant and
another to start up dhcpcd on the wlan0 device.

When I login to the device and type "ps", I see the various services
that I'm starting up from init.rc, but I don't see the dhcpcd service.
Should I have to create the directory where dhcpcd stores it's leases
and all that as well?

Is there some document that describes ALL the pieces that I need to
setup for this to completely work? I appreciate the help..

Regards
-- Ashwin







-- 



DHCP Address on WiFi

by Qipeng » Thu, 11 Feb 2010 10:56:11 GMT


 hi,

now i remember a URL about this, it will be useful for you i think.

Japanese web:
 http://labs.beatcraft.com/ja/index.php?bc9 %2FSoftware%2FAndroid%2FAndroid-1.5r3#ed198993






-- 



DHCP Address on WiFi

by Ashwin Bihari » Sat, 13 Feb 2010 03:35:20 GMT


 i Qipeng,

That link was VERY useful and allowed me to get everything
operational. I had all the pieces together except the trigger in
WiFi.c to cause the dhcpcd to start up when I felt the WiFi device was
available..

Thanks
-- Ashwin



On Wed, Feb 10, 2010 at 9:31 PM, Qipeng <zhang.qip...@furuno-dl.com> wrote:

--



Other Threads

1. RatingBar size issues on high-density screens (Droid, Nexus One)

Hello Group -

 I am hoping someone that has formatted rating bars on a Droid, or
Nexus One can help me.

I had a few users with Droid s report oddities with rating bars in my
application.  Everything looked fine on my G1 but when I recently
upgraded to a Nexus One ( for $49 !! ) and I see the issue they are
talking about.

You only see the top half of 3 stars. When it should be a full 5 star
bank. The user must rotate for a landscape layout to see all 5.

(image) http://images.webbmaster.org/device.png

My layout is pretty standard, this is a dialog (pastebin) 
http://pastebin.org/79473;
------
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/active_rating_layout"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:orientation="vertical">
<RatingBar android:id="@+id/ActiveRatingBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"/>
<Button android:background="@drawable/no_interest_drk"
android:paddingLeft="24px"
android:layout_below="@id/ActiveRatingBar"
android:layout_centerHorizontal="true"
android:layout_marginTop="45dp"
android:layout_marginBottom="50dp"
android:paddingRight="5dp"
android:text="@string/no_thanks" android:id="@+id/no_thanks"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></Button>
</RelativeLayout>
----



The Market rating bar fits the screen just fine.  - I am just not sure
how they are doing it...

Perhaps a custom layout for those type of screens - but what do i set
differently?
Do I need to override the measure function, or specify something
differently for Droid and Nexus type screens?

Regards!
Eddie

2. Able to get bad star rating removed?

I've had a one star rating on a new theme I released and as It's the
only rating it looks terrible. I would accept it if they just didn't
like the theme but they say it force closes and does not work which
after thorough testing, I have never been able to replicate, whats
even more annoying is that in the listing we have put our email incase
anyone gets problems then they can contact us to get them rectified!

Thanks in advance.

3. How to deal with BuiltInZoomControl with custom controls in android google map?

4. Application Crash..:(

5. MMS from/to location?

6. Why aren't ACTION_UP and ACTION_MOVE Touch Events passed through to custom views?

7. MP4 Composer Node configuration question