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. Open source and diagramming

Dear open source contributors,

I am Eunyoung Chung, a Masters student at Oregon State University. I
am currently doing a research to understand how contributors
communicate and collaborate in Open Source Software (OSS) projects,
including diagramming practices.

We are seeking volunteers for a quick survey on this topic. Any person
who is actively working on a OSS project is eligible. The survey takes
approximately 10-15 minutes, and the 5 volunteers will be picked to
receive a $30 Amazon gift certificate. Your participation is anonymous
(unless you consent to have us contact you)

Here is the survey address.

https://secure.engr.oregonstate.edu/limesurvey/58564/lang-en

We really appreciate your help!

--~--~---------~--~----~------------~-------~--~----~

2. Android App Widgets

HI

I have recently started using android and wanted to try App Widgets. I
have coded all the primary features for the app widget (in the
manifest file, xml resources..). But I dont know how do I publish my
app widget in another application. And does my App Widget always need
to be a broadcaster receiver or can it launch another application as
well.

Thanks

prat

--~--~---------~--~----~------------~-------~--~----~

3. Bug? Geo fix and sdk 1.5

4. Android Market??

5. Passing in a Bitmap as the EXTRA_STREAM parameter when launching an Intent

6. Sensor and Compass APIDemo failing on emulator 1.5

7. AdSense for mobile