Fixed :) . additional to all the setting mention in the post , i have to restart the dhcp server on my Ubuntu PC which was creating the problem, restarting my dhcp server fix the problem . And to access he internet one more step is to setprop @android board : setprop net.dns1 8.8.8.8
On Tuesday, November 13, 2012 11:13:41 AM UTC+8, Robin Gujjar wrote: > > Hi Pavan, > > Thanks for the reply. I have setup the GM role ( not using NAP) for > ubuntu PC, android board as a PANU. and trying to access ubuntu PC Internet > on my android board. > > I was not having bnep iface into the list of up-streamble interface, but > now i added it. I can see a "Bluetooth tethering"( sharing this tablet's > Internet connection) option in setting now. but no good luck. still i can > not share the PC internet with this board. via both the method setting > static Ip or dhcp . i added the below item from > config.xml at > [device/ti/blaze.git]<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;hb=refs/heads/d-jb-mr0-release> > / > overlay<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay;hb=refs/heads/d-jb-mr0-release> > / > frameworks<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks;hb=refs/heads/d-jb-mr0-release> > / > base<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base;hb=refs/heads/d-jb-mr0-release> > / > core<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base/core;hb=refs/heads/d-jb-mr0-release> > / > res<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base/core/res;hb=refs/heads/d-jb-mr0-release> > / > res<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base/core/res/res;hb=refs/heads/d-jb-mr0-release> > / > values<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base/core/res/res/values;hb=refs/heads/d-jb-mr0-release> > / > config.xml > > <string-array translatable="false" name="networkAttributes"> > <item>"mobile_bluetooth,7,7,1,-1,true"</item> > </string-array> > <string-array translatable="false" name="radioAttributes"> > <item>"7,1"</item> > </string-array> > <integer-array translatable="false" name="config_tether_upstream_types"> > <item>7</item> > </integer-array> > <string-array translatable="false" name="config_tether_bluetooth_regexs"> > <item>"bnep\\d"</item> > </string-array> > > I do not know fully below steps: > > 1) About the GM and NAP , which one to use for sharing ubuntu PC on > android phone , i am able to use successfully ":GM" for internet between > two ubuntu PC. so which on to use in case of android any restriction in > android? > > 2) Does any setting required for dhcpcd to use for benp in config.xml or > [ #dhcpcd -d benp0 ] is enough ? to get the Ip form remote server ? > 3) any other setting in android build system ? > > thanks > Robin > > On Monday, November 12, 2012 10:34:36 PM UTC+8, Pavan - ಪವನ್ wrote: >> >> Did you happen to add bnep iface into the list of up-stremable interfaces >> ? >> Can you be more precise in terms of NAP and PANU roles instead of >> master/slave ? >> I suppose from mail above you are trying PANU from Android and NAP is >> your ubuntu PC. >> >> Generally if the Android Settings Menu shows that the remote PC has >> internet connection and attempts to connect to NAP role, Ubuntu PC will pop >> up a message asking "Is it ok to share PC's internet connection". >> Look into settings inside config.xml at >> [device/ti/blaze.git]<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;hb=refs/heads/d-jb-mr0-release> >> / >> overlay<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay;hb=refs/heads/d-jb-mr0-release> >> / >> frameworks<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks;hb=refs/heads/d-jb-mr0-release> >> / >> base<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base;hb=refs/heads/d-jb-mr0-release> >> / >> core<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base/core;hb=refs/heads/d-jb-mr0-release> >> / >> res<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base/core/res;hb=refs/heads/d-jb-mr0-release> >> / >> res<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base/core/res/res;hb=refs/heads/d-jb-mr0-release> >> / >> values<http://git.omapzoom.org/?p=device/ti/blaze.git;a=tree;f=overlay/frameworks/base/core/res/res/values;hb=refs/heads/d-jb-mr0-release> >> / >> config.xml >> >> >> On Mon, Nov 12, 2012 at 12:59 AM, Robin Gujjar <[email protected]>wrote: >> >>> Hi All , >>> >>> >>> I am trying to setup the bluetoooth PAN on my devlopment board( Client >>> PANU). Master is running on a Ubuntu PC 12.04 . >>> Master is working fine as i am able to access interbet on another ubuntu >>> PC . >>> >>> But on my android development board i am not able to start a connection, >>> i have done the below steps : >>> >>> On my android board : >>> >>> W/ProcessStats( 1665): Skipping unknown process pid 2239 >>> W/ThrottleService( 1665): unable to find stats for iface rmnet0 >>> I/pand ( 2254): Bluetooth PAN daemon version 4.93 >>> I/pand ( 2254): Connecting to 74:E5:43:51:8C:E6 >>> I/pand ( 2254): bnep0 connected >>> >>> root@android:/ # pand -l >>> bnep0 E6:8C:51:43:E5:74 PANU >>> >>> method 1: >>> Static IP setting : >>> ifconfig bnep0 172.22.22.10 netmask 255.255.255.0 >>> route add default gw 172.22.22.1 dev bnep0 >>> setprop net.dns1 198.95.1.1 >>> >>> >>> 130|root@android:/ # netcfg >>> lo UP 127.0.0.1/8 0x00000049 >>> 00:00:00:00:00:00 >>> sit0 DOWN 0.0.0.0/0 0x00000080 >>> 00:00:00:00:00:00 >>> ip6tnl0 DOWN 0.0.0.0/0 0x00000080 >>> 00:00:00:00:00:00 >>> bnep0 UP 172.22.22.10/24 0x00001043 >>> 00:02:72:bc:01:47 >>> >>> Method2 : >>> I also tried the dhcp : >>> >>> 1|root@android:/ # dhcpcd -d >>> bnep0 >>> dhcpcd[2346]: version 5.2.10 starting >>> dhcpcd[2346]: bnep0: using hwaddr 00:02:72:bc:01:47 >>> dhcpcd[2346]: bnep0: executing `/system/etc/dhcpcd/dhcpcd-run-hooks', >>> reason PREINIT >>> dhcpcd[2346]: bnep0: executing `/system/etc/dhcpcd/dhcpcd-run-hooks', >>> reason CARRIER >>> dhcpcd[2346]: host does not support a monotonic clock - timing can skew >>> dhcpcd[2346]: bnep0: reading lease `/data/misc/dhcp/dhcpcd-bnep0.lease' >>> dhcpcd[2346]: bnep0: checking for 169.254.159.45 >>> dhcpcd[2346]: bnep0: sending ARP probe (1 of 3), next in 1.11 seconds >>> dhcpcd[2346]: bnep0: sending ARP probe (2 of 3), next in 1.81 seconds >>> dhcpcd[2346]: bnep0: sending ARP probe (3 of 3), next in 2.00 seconds >>> dhcpcd[2346]: bnep0: using IPv4LL address 169.254.159.45 >>> dhcpcd[2346]: bnep0: adding IP address 169.254.159.45/16 >>> dhcpcd[2346]: bnep0: adding route to 169.254.0.0/16 >>> dhcpcd[2346]: bnep0: writing lease `/data/misc/dhcp/dhcpcd-bnep0.lease' >>> dhcpcd[2346]: bnep0: executing `/system/etc/dhcpcd/dhcpcd-run-hooks', >>> reason IPV4LL >>> dhcpcd[2346]: forking to background >>> dhcpcd[2346]: forked to background, child pid 2370 >>> >>> >>> ===== >>> None of them works for me: i can not ping my master form android >>> client. >>> am i missing any other step ? >>> Please give me soem pointers ? >>> >>> thanks >>> Robin Singh >>> >>> >>> >>> >>> -- >>> unsubscribe: [email protected] >>> website: http://groups.google.com/group/android-porting >>> >> >> >> >> -- >> --Pavan Savoy >> >> -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
