Re: [beagleboard] Re: broke something with wlan when trying to reduce connection drops

2018-04-17 Thread ags
So are you saying that using the old method of setting MAC address, for the 
initial boot the MAC value was read (from where?) and then incremented 
and/or modified in some way? If every BBB started with the same initial 
value, how did that not end up in collisions? (Clearly I'm 
misunderstanding).

On Monday, April 16, 2018 at 12:48:58 PM UTC-7, RobertCNelson wrote:
>
> On Mon, Apr 16, 2018 at 2:41 PM, ags  
> wrote: 
> > @RobertCNelson thanks for that info. IMO it is preferable to use a 
> built-in 
> > (guaranteed unique and immutable??) MAC address so I will stay with the 
> new 
> > method. I've configured my router for the new address anyway. 
>
> So the nice thing about using the built-in wl1835 mac address, on 
> "first" bootup it saves around 30 seconds. 
>
> With the old mac, we'd have to read it, +1/etc to the value, patch the 
> firmware, update the initramfs, then load the module.. 
>
> With the new mac method, the kernel knows how to load it from the 
> wl1835.. (the trick was patching the firmware with a mac of 00:00...00 
> and the kernel knew what to do, it just wasn't documented very well) 
>
> On 2nd/3rd/++ boot no change. 
>
> > 
> > Any insight or ideas where to look on the continued dropped connection 
> > problem? This ... 
> > 
> > $ arp 192.168.1.12 
> > bbbw (192.168.1.12) at (incomplete) on en0 ifscope [ethernet] 
> > 
> > I can't figure out why the arp table entry would expire so quickly. Some 
> > references I found on the subject say the default is 20 minutes. Even if 
> the 
> > entry expires, an ARP packet should be able to quickly reestablish the 
> > IP/MAC binding. 
>
> This might be power-managment related.. 
>
> i'd try: 
>
> sudo iwconfig wlan0 power off 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/01d8bc46-29ec-46e5-85ef-0b0dfcc267a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: broke something with wlan when trying to reduce connection drops

2018-04-16 Thread Robert Nelson
On Mon, Apr 16, 2018 at 2:41 PM, ags  wrote:
> @RobertCNelson thanks for that info. IMO it is preferable to use a built-in
> (guaranteed unique and immutable??) MAC address so I will stay with the new
> method. I've configured my router for the new address anyway.

So the nice thing about using the built-in wl1835 mac address, on
"first" bootup it saves around 30 seconds.

With the old mac, we'd have to read it, +1/etc to the value, patch the
firmware, update the initramfs, then load the module..

With the new mac method, the kernel knows how to load it from the
wl1835.. (the trick was patching the firmware with a mac of 00:00...00
and the kernel knew what to do, it just wasn't documented very well)

On 2nd/3rd/++ boot no change.

>
> Any insight or ideas where to look on the continued dropped connection
> problem? This ...
>
> $ arp 192.168.1.12
> bbbw (192.168.1.12) at (incomplete) on en0 ifscope [ethernet]
>
> I can't figure out why the arp table entry would expire so quickly. Some
> references I found on the subject say the default is 20 minutes. Even if the
> entry expires, an ARP packet should be able to quickly reestablish the
> IP/MAC binding.

This might be power-managment related..

i'd try:

sudo iwconfig wlan0 power off

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYherH--rtxMBzcBjk7JN%3DzbGL_Pw6Vtwk%3DMBsbc%3D1cBUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: broke something with wlan when trying to reduce connection drops

2018-04-16 Thread ags
@RobertCNelson thanks for that info. IMO it is preferable to use a built-in 
(guaranteed unique and immutable??) MAC address so I will stay with the new 
method. I've configured my router for the new address anyway.

Any insight or ideas where to look on the continued dropped connection 
problem? This ...

$ arp 192.168.1.12
bbbw (192.168.1.12) at (incomplete) on en0 ifscope [ethernet]

I can't figure out why the arp table entry would expire so quickly. Some 
references I found on the subject say the default is 20 minutes. Even if 
the entry expires, an ARP packet should be able to quickly reestablish the 
IP/MAC binding.


On Monday, April 16, 2018 at 11:44:41 AM UTC-7, RobertCNelson wrote:
>
> On Mon, Apr 16, 2018 at 1:12 PM, ags  
> wrote: 
> > 
> > Update: I realized that the MAC address for wlan0 had changed - didn't 
> > expect that. Will it remain the same until another firmware upgrade? 
>
> Yes the mac address did change (for new installs)..  For old installs 
> with package updates, thru apt there is no change.. 
>
> It turns out the wl1835 has a built-in mac address.. So instead of 
> generating our own unique mac address on first boot-up and using 
> custom one, we use the wl1835 one.. 
>
> You can disable this new mac address via editing: 
>
> /etc/default/bb-wl18xx 
>
> Change: 
>
> USE_INTERNAL_WL18XX_MAC_ADDRESS=yes 
> to 
>
> #USE_INTERNAL_WL18XX_MAC_ADDRESS=yes" 
>
> and reboot and it will return to the old address. 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/c2be902b-404c-48af-9cc6-12dbd0976b99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: broke something with wlan when trying to reduce connection drops

2018-04-16 Thread Robert Nelson
On Mon, Apr 16, 2018 at 1:12 PM, ags  wrote:
>
> Update: I realized that the MAC address for wlan0 had changed - didn't
> expect that. Will it remain the same until another firmware upgrade?

Yes the mac address did change (for new installs)..  For old installs
with package updates, thru apt there is no change..

It turns out the wl1835 has a built-in mac address.. So instead of
generating our own unique mac address on first boot-up and using
custom one, we use the wl1835 one..

You can disable this new mac address via editing:

/etc/default/bb-wl18xx

Change:

USE_INTERNAL_WL18XX_MAC_ADDRESS=yes
to

#USE_INTERNAL_WL18XX_MAC_ADDRESS=yes"

and reboot and it will return to the old address.

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYhqUWc6%2B3zLQRpHE3OHh%3D7w1jTtOWLS0U877JO7k7gVFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: broke something with wlan when trying to reduce connection drops

2018-04-16 Thread ags

Update: I realized that the MAC address for wlan0 had changed - didn't 
expect that. Will it remain the same until another firmware upgrade?

debian@BBB:~$ connmanctl

connmanctl> tether wifi disable

connmanctl> enable wifi

connmanctl> scan wifi

connmanctl> services

connmanctl> agent on

connmanctl> connect 

connmanctl> quit


#are these settings "sticky" or do I need to put them in 
/etc/network/interfaces to persist past a reboot?


and modified router settings with the new wlan0 MAC address. So now I can 
connect...


...but the connection remains unreliable. Once a connection is established, 
if not active (e.g. ssh with command line being used or constant pinging) 
it is dropped. A subsequent ping will fail - but then waiting a few minutes 
and trying again will succeed.


When the connection is up, arp on another machine on the same network 
reports:


$ arp 192.168.1.12

bbbw (192.168.1.12) at  on en0 ifscope [ethernet]


and when down:


$ arp 192.168.1.12

bbbw (192.168.1.12) at (incomplete) on en0 ifscope [ethernet]



-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/76bb6224-0517-4b45-881a-d2e78982%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.