AP模式配网一直打印IP Address:Netmask:等信息

IPC/NVR/可视门铃等具备多媒体能力的设备,扫地机/AGV等机器人设备


Post Reply
leon
Posts: 4

ipc6.2.8sdk,app可以扫描设备并连接,发送wifi名称和密码后,设备还是一直打印如下信息
Gateway: 192.168.31.255
WIFI mode[1] Get IP:192.168.31.1
WIFI Get Mode [Master] 3
Interface: wlan0
IP Address: 192.168.31.1
Netmask: 255.255.255.0
Gateway: 192.168.31.255
WIFI mode[1] Get IP:192.168.31.1
WIFI Get Mode [Master] 3
Interface: wlan0
IP Address: 192.168.31.1
Netmask: 255.255.255.0
Gateway: 192.168.31.255
WIFI mode[1] Get IP:192.168.31.1
Interface: wlan0
IP Address: 192.168.31.1
Netmask: 255.255.255.0
Gateway: 192.168.31.255
WIFI mode[1] Get IP:192.168.31.1

Attachments
session.log
(216.78 KiB) Downloaded 5 times

Tags:
郭老庄
Posts: 279

Re: AP模式配网一直打印IP Address:Netmask:等信息

附件是ap配网方式吗?日志上看,APP没有把配网信息发给设备。设备是如何拿到配网信息的?

leon
Posts: 4

Re: AP模式配网一直打印IP Address:Netmask:等信息

是AP配网,日志上没有看到配网信息,实际上APP已经操作到等待2分钟连接的页面了

郭老庄
Posts: 279

Re: AP模式配网一直打印IP Address:Netmask:等信息

tkl_wifi_start_ap 的入参cfg->ip 是ap热点的ip相关信息,要按这个地址起ap

leon
Posts: 4

Re: AP模式配网一直打印IP Address:Netmask:等信息

WIFI mode[1] Get IP:192.168.176.1
WIFI Get Mode [Master] 3
Interface: wlan0
IP Address: 192.168.176.1
Netmask: 255.255.255.0
Gateway: 192.168.176.255
目前情况还是一样,改了ip为192.168.176.1,Gateway也要改为192.168.176.1吗

Attachments
session.log
(44.38 KiB) Downloaded 2 times
郭老庄
Posts: 279

Re: AP模式配网一直打印IP Address:Netmask:等信息

是的。如果还是不行,上传日志以及ap配网时候的录屏

leon
Posts: 4

Re: AP模式配网一直打印IP Address:Netmask:等信息

这个问题已经解决了,是因为我的udhcpd.conf文件分配的ip网段和wlan ip不在同一个网段。
现在可以收到APP传过来的ssid和passwd,但是好像没有调用到tkl_wifi_station_connect,AP配网失败。
tkl_wifi_station_get_status这个函数要填充吗
OPERATE_RET tkl_wifi_station_get_status(WF_STATION_STAT_E *stat)
{
if(NULL == stat){
return OPRT_INVALID_PARM;
}
*stat = WSS_GOT_IP; //Be sure to return in real time
//Reserved
return OPRT_OK;
}

Attachments
session.log
(115.87 KiB) Downloaded 1 time
Post Reply