大家好。我已经在装有 Ubuntu 22.04 LT 的 OrangePi 3 LTS 上创建了接入点,并且与 Win10 PC(MSI 笔记本电脑和联想笔记本电脑)的连接没有任何问题。但没有手机能够连接(iPhone 14、三星 A 系列和小米)——尝试连接,但没有成功。有点像密码拒绝。我尝试使用所有选项的 key-mgmt、nmtui 等。完全没有结果。有什么建议可以解决这个问题吗?提前谢谢)
我使用以下命令创建热点:
$ nmcli d wifi hotspot ifname wlan0 ssid MyAP password 12345678
这里有一些数据(也许会有帮助)
$ nmcli d
DEVICE TYPE STATE CONNECTION
wlan0 wifi connected Hotspot
eth0 ethernet connected eth0
enx6a6c3d0875c7 ethernet connected Wired connection 1
p2p-dev-wlan0 wifi-p2p disconnected --
lo loopback unmanaged --
$ nmcli con show
NAME UUID TYPE DEVICE
Hotspot 008e104b-c39e-439f-aa64-5471c8fb72e3 wifi wlan0
eth0 b6e0e584-ee4b-4e3b-8a3d-21598e9c01e9 ethernet eth0
Wired connection 1 dce6d98b-11dd-33be-9777-95d678fd7564 ethernet enx6a6c3d0875c7
Ifupdown (eth0) 681b428f-beaf-8932-dce4-687ed5bae28e ethernet --
/etc/NetworkManager/NetworkManager.conf:
[main]
dns=default
rc-manager=file
plugins=ifupdown,keyfile
[ifupdown]
managed=true
[device]
wifi.scan-rand-mac-address=no
/etc/NetworkManager/system-connections/Hotspot.nmconnection
[connection]
id=Hotspot
uuid=87aec100-99a0-4dbf-9691-8e62fd68063f
type=wifi
interface-name=wlan0
timestamp=1697110741
[wifi]
band=bg
mode=ap
ssid=MyAP
[wifi-security]
key-mgmt=wpa-none;
psk=12345678
[ipv4]
method=shared
[ipv6]
addr-gen-mode=stable-privacy
method=ignore
[proxy]
我尝试了 key-mgmt 选项 none、wpa-psk、wpa-eap、wpa-none,结果是一样的。通过 nmtui 更改此协议,没有帮助。只有一个奇怪的事实 - nmcli 设备 wifi 没有显示两台笔记本电脑(但它们工作正常 - ping orange pi 没有问题)
$ nmcli device wifi
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY
* 90:86:36:28:65:52 MyAP Infra 1 0 Mbit/s 0 ____ WPA2
ifconfig:
$ ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.42.0.1 netmask 255.255.255.0 broadcast 10.42.0.255
inet6 fe80::9286:36ff:fe28:6552 prefixlen 64 scopeid 0x20<link>
ether 90:86:36:28:65:52 txqueuelen 1000 (Ethernet)
RX packets 2272 bytes 496272 (496.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1735 bytes 522464 (522.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
笔记本电脑 ipconfig:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::3b52:600c:f5e8:b61b%25
IPv4 Address. . . . . . . . . . . : 10.42.0.208
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.42.0.1
对 orange pi 进行 ping 操作:
>ping 10.42.0.1
Pinging 10.42.0.1 with 32 bytes of data:
Reply from 10.42.0.1: bytes=32 time=1ms TTL=64
Reply from 10.42.0.1: bytes=32 time=1ms TTL=64
我真的不知道这是否有用