我有一台运行 Ubuntu 20.04 LTS 服务器的 Raspberry Pi 4。我想通过交叉电缆将 PoE(以太网供电)IP 摄像头(Amcrest IP8M-T2499EW-40MM)连接到我的 Raspberry Pi。我需要 Raspberry Pi 通过热点 Wi-Fi 连接到互联网。
我需要在 Raspberry Pi 4 上安装的软件将查找摄像头并通过 IP 地址连接到它。PoE IP 摄像头单独连接到电源,我只需要弄清楚 Raspberry Pi 4 如何识别摄像头。
我的目标是 Raspberry Pi 4 将是无头的,并将拥有使用 PoE IP 摄像头查找车牌然后通过 Wi-Fo 热点发送数据的软件。
网络布局...
蜂窝热点 <-(wifi)-> Raspberry Pi <-(以太网) IP 摄像头
Starting Nmap 7.80 ( https://nmap.org ) at 2020-12-31 22:36 PST
Nmap scan report for _gateway (192.168.1.1)
Host is up (0.0024s latency).
Nmap scan report for ubuntu (192.168.1.2)
Host is up (0.00064s latency).
Nmap scan report for 192.168.1.4
Host is up (0.021s latency).
Nmap scan report for ubuntu (192.168.1.21)
Host is up (0.00019s latency).
Nmap done: 256 IP addresses (4 hosts up) scanned in 3.14 seconds
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
eth0:
dhcp4: false
addresses: [192.168.1.21/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
optional: true
version: 2
wifis:
wlan0:
access-points:
Verizon:
password: ''
dhcp4: false
addresses: [192.168.1.2/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
optional: false
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.21 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::dea6:32ff:fe66:558 prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:66:05:58 txqueuelen 1000 (Ethernet)
RX packets 1268 bytes 106936 (106.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17 bytes 1202 (1.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 30342 bytes 1986060 (1.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30342 bytes 1986060 (1.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::dea6:32ff:fe66:559 prefixlen 64 scopeid 0x20<link>
inet6 2600:1011:b02d:a13d:dea6:32ff:fe66:559 prefixlen 64 scopeid 0x0<global>
ether dc:a6:32:66:05:59 txqueuelen 1000 (Ethernet)
RX packets 3176 bytes 432340 (432.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4530 bytes 1673427 (1.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth 端口上的 IP 已更改
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.21.21 netmask 255.255.255.0 broadcast 192.168.21.255
inet6 fe80::dea6:32ff:fe66:558 prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:66:05:58 txqueuelen 1000 (Ethernet)
RX packets 20 bytes 1998 (1.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 656 (656.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 433 bytes 30166 (30.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 433 bytes 30166 (30.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::dea6:32ff:fe66:559 prefixlen 64 scopeid 0x20<link>
inet6 2600:1011:b02d:a13d:dea6:32ff:fe66:559 prefixlen 64 scopeid 0x0<global>
ether dc:a6:32:66:05:59 txqueuelen 1000 (Ethernet)
RX packets 121 bytes 30262 (30.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 121 bytes 35725 (35.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0