Bug #3514
2.4.11.下挂设备上线通知功能边界测试 步骤4下挂设备达到最大值后手动接入一个新设备dbus-monitor和cloudclient.log里的设备mac信息不对
0%
Description
步骤
1.测试电脑Telnet连接网关,打开dbus-monitor:dbus-monitor --system &;
2.使用TMAC或同类软件修改测试电脑的MAC地址,使得LANHost达到网关支持的最大值(默认64个,不必所有LANHost实例都在线);
3.达到最大值后,使用dbus命令查看下挂设备清单;
4.手动接入一个新设备到网关,观察dbus-monitor信号,查看是否有对应的实例增加的信号释放;
5.cat /tmp/.uci/cloudclient.log 查看网关中间件日志,查看对应设备的NewDeviceNotification通知;
实际结果:
新接入设备dbus-monitor和cloudclient.log里的设备mac信息不对,实际mac为B6:C1:FD:93:99:20
object path "/com/ctc/igd1/Config/LANHosts/2"
array [
string "com.ctc.igd1.LANHost"
]
signal time=1749713750.537664 sender=:1.1 -> destination=(null destination) serial=546 path=/com/ctc/igd1/Config/LANHosts; interface=com.ctc.igd1.ObjectManager; member=InterfacesAdded
object path "/com/ctc/igd1/Config/LANHosts/2"
array [
dict entry(
string "com.ctc.igd1.LANHost"
array [
dict entry(
string "MAC"
variant string "F2FEB05605EC"
)
dict entry(
string "HostName"
variant string "OPPO-K9-5G"
)
dict entry(
cat /tmp/.uci/cloudclient.log
2025-06-12 15:35:50.537 [INFO] > {"RPCMethod":"NewDeviceNotification","ID":"1ca5b7cc-aa9e-4af1-bba5-3ea1158668f0","DevList":[{"Time":"20250612153550","DevName":"test 22","DevType":"phone","MAC":"F2FEB05605EC","IP":"192.168.1.192","ConnectType":"1","Port":"9","Brand":"荣耀","OS":"android"}]} (260) {"Result":0,"Ack":"NewDeviceNotification","ID":"1ca5b7cc-aa9e-4af1-bba5-3ea1158668f0"} (86)
2025-06-12 15:35:50.559 [INFO] <
/ #
预期结果:
新接入设备上报的mac等信息应该与实际的一致