I just set zoneminder up on Fedora 23 and attempt to figure out how stuff works. The attachment file is a goal but I have doubts about the bandwidth for USB WiFi hotspot.
But first, I was surprised that zoneminder could see my Android IP Camera App after the following tweaking:
1. installation and configuration of hostapd, service started
2. installation and configuration of dnsmasq, service started
3. configuration of ifcfg-wlan0 to assign ip address 192.168.1.1 to USB WiFi Hotspot
4. zoneminder and httpd services started on 192.168.0.18/24
There is no bridge or routing setup and yet the Ip Camera (android app) can easily be added to zoneminder and works perfectly.
Could anyone explain which configuration files have been responsible for such succcesfull setup? I assume it is about httpd listening on all interfaces or something similar, but I am not sure. Let me give you some info:
As can be seen there is no default route set for ip cameras in 192.168.1.0/24, no gateway for IP cameras on wireless wlp0s26f7u1 interface, and yet it works.[root@localhost ~]# nmcli device show wlp0s26f7u1
GENERAL.DEVICE: wlp0s26f7u1
GENERAL.TYPE: wifi
GENERAL.HWADDR: 60:E3:27:10:C8:84
GENERAL.MTU: 1500
GENERAL.STATE: 10 (unmanaged)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: 192.168.1.1/24
IP4.GATEWAY:
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1003
IP6.GATEWAY:
The dnsmasq.config:[root@localhost ~]# ip route show
default via 192.168.0.1 dev enp0s25 proto static metric 100
192.168.0.0/24 dev enp0s25 proto kernel scope link src 192.168.0.18 metric 100
192.168.1.0/24 dev wlp0s26f7u1 proto kernel scope link src 192.168.1.1
The hostapd.conf:root@localhost ~]# grep "^[^#].*" /etc/dnsmasq.d/vidcams.conf
port=0
interface=wlp0s26f7u1
dhcp-range=192.168.1.50,192.168.1.150,12h
conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig
Now, how about the network bandwidth? Is there a rough estimate how many 640x480 24bit 50fps cameras can talk to the Hotspot without problems?[root@localhost ~]# grep "^[^#].*" /etc/hostapd/hostapd.conf
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
wpa_passphrase=mysecretpassword
driver=nl80211
interface=wlp0s26f7u1
hw_mode=g
channel=6
ssid=VideoCams_linforPros
Is there a formula to calculate that? Ignoring perhaps protocol overheads? The hotspot is unfortuanetly a 54Mbps only and USB - and don;t know how that will affect throughtput, either.
Thank you for any hints* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (disabled)
* 2472 MHz [13] (disabled)
* 2484 MHz [14] (disabled)
LinforPros