Re: [Dorset] CUPS browsing fails on Wifi access point

2019-07-31 Thread tda

Hi Ralph

On 31/07/2019 11:30, Ralph Corderoy wrote:

Hi Tim,


Basically, it's a toggle setting and toggling the IPv6 resets the
router and I get IPv4 entries in the avahi-browse response (IPv6
enabled or disabled).  Switching to one of the other AP's, and back
again, and I just get IPv6 entries appearing, whether IPv6 is enabled
or disabled on AP0 (which is definitely strange).


Could it be that IPv6 responses are being remembered when talking to a
non-AP0 but then can't be used with AP0?

If the laptop temporarily disabled IPv6 on the Wi-Fi interface then it
would be using IPv4 to all APs?  Something like this should do.
It's temporary, resetting to default on reboot.

 i=wls34# Change to suit.
 ip a s dev $i  # Show the ‘before’.
 sysctl net.ipv6.conf.$i.disable_ipv6
 sudo -i sysctl net.ipv6.conf.$i.disable_ipv6=1
 ip a s dev $i



Just tried this, important to rerun after AP reconnect, and it sheds some light 
on the issue. Connected to AP0 with IPv6 disabled on the laptop and on AP0, I 
get no response to avahi-browse -at

That's to be expected following the earlier test result. However, it's good to 
confirm it.

So I guess that tells us that Avahi browsing is not getting through that router 
on IPv4, and that CUPS is having a problem with Avahi on IPv6?

Couple of things I'll try here. I see the router has a recent firmware update 
which I'll flash. And I have a similar Draytek router at work. I'll see if I 
get the same issues there.


Cheers

Tim

--
 Next meeting: BEC, Bournemouth, Tuesday, 2019-08-06 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Speeding up HTML response

2019-07-31 Thread Ralph Corderoy
Hi Peter,

> I have now got my RC car running with the Raspberry Pi, but it is slow
> to respond.  I am wondering if I use a better tablet, or is there a
> faster browser to use than firefox, or other means of making it
> respond faster.

Ditch the tablet and Firefox to rule them out.  Prod the Flask web
server with curl(1) instead.  So if it serves a ‘forward’ entry point,
Logo like, responding to GETs on it then try

time curl -sSgv --trace-time http://$ip:$port/forward

That will show the HTTP query being sent, and the HTTP reply, with each
line time-stamped, and the overall time at the end, though that includes
curl's execution time.

That will show if the Pi is replying quickly.

You could run that command on the Pi itself using the IP address of the
loopback interface, 127.0.0.1, to cut out the Wi-Fi interface too.

If that's still slow then perhaps your Python needs improving.  :-)

-- 
Cheers, Ralph.

-- 
  Next meeting: BEC, Bournemouth, Tuesday, 2019-08-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] CUPS browsing fails on Wifi access point

2019-07-31 Thread Ralph Corderoy
Hi Tim,

> Basically, it's a toggle setting and toggling the IPv6 resets the
> router and I get IPv4 entries in the avahi-browse response (IPv6
> enabled or disabled).  Switching to one of the other AP's, and back
> again, and I just get IPv6 entries appearing, whether IPv6 is enabled
> or disabled on AP0 (which is definitely strange).

Could it be that IPv6 responses are being remembered when talking to a
non-AP0 but then can't be used with AP0?

If the laptop temporarily disabled IPv6 on the Wi-Fi interface then it
would be using IPv4 to all APs?  Something like this should do.
It's temporary, resetting to default on reboot.

i=wls34# Change to suit.
ip a s dev $i  # Show the ‘before’.
sysctl net.ipv6.conf.$i.disable_ipv6
sudo -i sysctl net.ipv6.conf.$i.disable_ipv6=1  
ip a s dev $i   

-- 
Cheers, Ralph.

-- 
  Next meeting: BEC, Bournemouth, Tuesday, 2019-08-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Speeding up HTML response

2019-07-31 Thread PeterMerchant via dorset

I have now got my RC car  running with the Raspberry Pi, but it is slow to 
respond. I am wondering if I use a better tablet, or is there a faster browser 
to use than firefox, or other means of making it respond faster.

This is a python app with HTML front end using Flask, and the R-Pi also 
configured as an Access Point.


Here it is: https://www.youtube.com/watch?v=jsj-cnHkr_k=119s

Peter



--
 Next meeting: BEC, Bournemouth, Tuesday, 2019-08-06 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk