Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: Negative impact on wifi connectivity (mar...@savcom.co.uk)
   2. Re: Negative impact on wifi connectivity (Damian)
   3. Re: Negative impact on wifi connectivity (mar...@savcom.co.uk)
   4. Re: Negative impact on wifi connectivity (Damian)
   5. Re: Negative impact on wifi connectivity (Damian)
   6. Re: Negative impact on wifi connectivity (Richard Bown)


----------------------------------------------------------------------

Message: 1
Date: Sun, 25 Oct 2020 09:33:09 -0000
From: <mar...@savcom.co.uk>
To: "'Motion discussion list'" <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Negative impact on wifi connectivity
Message-ID: <001701d6aab1$da4c86f0$8ee594d0$@savcom.co.uk>
Content-Type: text/plain;       charset="utf-8"

Hi Damian

Is there a web interface on the WiFi access point (AP) that your camera is 
connecting to?  Does that AP show the connection to your camera and can it 
display any statistics about traffic/bandwidth?  It's very likely that you have 
Wi-Fi congestion on the link to the camera, rather than anything wrong on the 
PI Zero.

Hope that helps

Martin


-----Original Message-----
From: MrDave <motionmrd...@gmail.com> 
Sent: 25 October 2020 03:55
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Negative impact on wifi connectivity

I do not know of any setting being activated that would impact the wifi 
connection.

The webcontrol and stream are implemented in Motion using the libmicrohttpd 
library.  You can deactivate it from being started by specifying the 
webcontrol_port and stream_port to zero.  This would at least help in 
identification of whether it in that library or if it is with opening of the 
USB camera.

Dave

On 10/24/2020 1:09 PM, Damian via Motion-user wrote:
> Hello list,
>
> I have some Raspberry Pi Zero W's running motion, one of which is at a 
> spot with suboptimal wifi reception.
> It is sufficient to get decent throughput and a stable ssh session, 
> though. Without motion, that is.
>
> When I start motion, wifi connectivity goes out of the window. First 
> there is packet loss, some time later the Pi may even lose AP 
> association. Luckily I also have serial console access via another 
> Zero W that does not run motion, so I can make experiments.
> Odd thing is, this is not about cpu load or memory or apparent IO: The 
> issue remains even when I SIGSTOP motion - the cpu goes idle, but the 
> wifi is still broken. I have to actually terminate motion to get wifi 
> back.
>
> So I am wondering, does motion activate some settings that could 
> impact the internal wlan interface even without reading camera output 
> (when SIGSTOPped)?
>
> Damian
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user


_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
https://motion-project.github.io/

Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user




------------------------------

Message: 2
Date: Sun, 25 Oct 2020 11:16:47 +0100
From: Damian <motion-u...@arcsin.de>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Negative impact on wifi connectivity
Message-ID: <fa8ec4ec-f8d2-74f2-250b-bf00e126f...@arcsin.de>
Content-Type: text/plain; charset=utf-8; format=flowed

> It's very likely that you have Wi-Fi congestion on the link to the camera, 
> rather than anything wrong on the PI Zero.

The camera is connected via USB to the Pi Zero.



------------------------------

Message: 3
Date: Sun, 25 Oct 2020 10:25:55 -0000
From: <mar...@savcom.co.uk>
To: "'Motion discussion list'" <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Negative impact on wifi connectivity
Message-ID: <00f901d6aab9$39041990$ab0c4cb0$@savcom.co.uk>
Content-Type: text/plain;       charset="us-ascii"

Damian.

I was treating the camera and Pi Zero as a unit and referring to that unit
as the camera.  Re-consider my point and change 'camera' to read 'Pi zero'.
That may clarify things.

Sorry for the misunderstanding.



-----Original Message-----
From: Damian via Motion-user <motion-user@lists.sourceforge.net> 
Sent: 25 October 2020 10:17
To: motion-user@lists.sourceforge.net
Cc: Damian <motion-u...@arcsin.de>
Subject: Re: [Motion-user] Negative impact on wifi connectivity

> It's very likely that you have Wi-Fi congestion on the link to the camera,
rather than anything wrong on the PI Zero.

The camera is connected via USB to the Pi Zero.


_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
https://motion-project.github.io/

Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user




------------------------------

Message: 4
Date: Sun, 25 Oct 2020 11:33:21 +0100
From: Damian <motion-u...@arcsin.de>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Negative impact on wifi connectivity
Message-ID: <11ad0050-1d3f-a9ad-2b85-7e7a02b25...@arcsin.de>
Content-Type: text/plain; charset=utf-8; format=flowed

> You could also load tcpdump , start that with motion turned off, then turn 
> motion on and see what is using the the wlan.

When motion is turned on, wlan0 disassociates from the access point after a 
while, so there is literally nothing to be dumped.

> root@z:~ iwconfig
> wlan0     IEEE 802.11  ESSID:off/any
>           Mode:Managed  Access Point: Not-Associated   Tx-Power=31 dBm
>           Retry short limit:7   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:on
> 
> lo        no wireless extensions.

> root@z:~ ip a s wlan0 | head -n1
> 2: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state 
> DOWN group default qlen 1000

> root@z:~ time tcpdump -ni wlan0
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytes
> ^C
> 0 packets captured
> 0 packets received by filter
> 0 packets dropped by kernel
> 
> real    0m26.129s
> user    0m0.015s
> sys     0m0.022s
wlan0 is not able to re-associate with the access point until I terminate 
motion, so the cause cannot be competing wlan0 traffic.



------------------------------

Message: 5
Date: Sun, 25 Oct 2020 11:36:19 +0100
From: Damian <motion-u...@arcsin.de>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Negative impact on wifi connectivity
Message-ID: <e024c22f-25bb-79fe-dc75-3f1079b80...@arcsin.de>
Content-Type: text/plain; charset=utf-8; format=flowed

> I was treating the camera and Pi Zero as a unit and referring to that unit
> as the camera.  Re-consider my point and change 'camera' to read 'Pi zero'.

Then please see my answer to Richard Bown regarding tcpdump. This is not a 
congestion issue.



------------------------------

Message: 6
Date: Sun, 25 Oct 2020 11:00:39 +0000
From: Richard Bown <rich...@g8jvm.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Negative impact on wifi connectivity
Message-ID: <11229e61-6e50-236e-886f-2dcdca156...@g8jvm.com>
Content-Type: text/plain; charset=utf-8; format=flowed

You are looking for the instance when motion is turned on, so tcpdump 
WILL show this up to the point your wlan goes down.

You can also run tcpdump on another computer using the same WiFi 
connection to your router to watch whats happening.

try saving the output of tcpdump to a file so you can see what is happening

Richard

On 25/10/2020 10:33, Damian via Motion-user wrote:
>> You could also load tcpdump , start that with motion turned off, then 
>> turn motion on and see what is using the the wlan.
>
> When motion is turned on, wlan0 disassociates from the access point 
> after a while, so there is literally nothing to be dumped.
>
>> root@z:~ iwconfig
>> wlan0???? IEEE 802.11? ESSID:off/any
>> ????????? Mode:Managed? Access Point: Not-Associated Tx-Power=31 dBm
>> ????????? Retry short limit:7?? RTS thr:off?? Fragment thr:off
>> ????????? Encryption key:off
>> ????????? Power Management:on
>>
>> lo??????? no wireless extensions.
>
>> root@z:~ ip a s wlan0 | head -n1
>> 2: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc 
>> pfifo_fast state DOWN group default qlen 1000
>
>> root@z:~ time tcpdump -ni wlan0
>> tcpdump: verbose output suppressed, use -v or -vv for full protocol 
>> decode
>> listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 
>> bytes
>> ^C
>> 0 packets captured
>> 0 packets received by filter
>> 0 packets dropped by kernel
>>
>> real??? 0m26.129s
>> user??? 0m0.015s
>> sys???? 0m0.022s
> wlan0 is not able to re-associate with the access point until I 
> terminate motion, so the cause cannot be competing wlan0 traffic.
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user

-- 
  Best wishes /73
  Richard Bown
  
  Email : rich...@g8jvm.com

  HTTP  :  http://www.g8jvm.com
  
  ######################################################################

  Ham Call: G8JVM . QRV: 50-432 MHz + Microwave
  Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W
  QRV 6mtrs 200W, 4mtrs 150W, 2mtrs 300W, 70cms 200W,
  Microwave 1296MHz 110W, 2320MHz 100W, 5760MHz 10W & 10368MHz 5W
  OS: Linux Mint 20, on a Dell Inspiron 3580 laptop
  ######################################################################




------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 172, Issue 14
********************************************

Reply via email to