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. Mobile Dev Camp

I was kindly invited by Bubble Foundry's Peter Robinett to give a
workshop on Android at Mobile Dev Camp this 29th November 2008 in
Amsterdam.
We will be introducing the Android platform and how to start
developing applications keeping an eye on Test Driven Development.
More information and registration can be found at http://www.mobiledevcamp.nl
and http://dtmilano.blogspot.com

Looking forward to seeing you.


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

2. Problems writing to SD card of physical T-Mobile G1?

In writing a small audio file to the root of the SD card, a T-Mobile
G1 was found to fail. The exact same code works fine on the SDK 1.0 r1
emulator with its emulated SD card. Moreover, that same T-Mobile G1
had no problem writing the audio file to internal flash (in my app
this is an automatic fallback option, activated once writing to SD
card fails).
Have others encountered problems writing to the SD card of a G1? I do
not own or have direct access to this or any other G1 myself, so I
cannot extensively test or provide detailed error messages. Hence my
question whether others have experienced any problems writing to the
SD card of a G1? (The owner of this particular G1 had experienced the
same problem with another app.)

Thanks!

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

3. acceptable range of ports for DatagramSocket in Android SDK

4. Tab Appearance

5. How do you associate a file type to open with an application?

6. Content Provider: create/open a file in the overrided "openFile" function

7. Drawing lines in the whole EditText view