4536|5

75

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

WIFI连接的问题 [复制链接]

将设备移出AP覆盖范围,重新再移入AP覆盖范围后,微软的连接程序(netui)如何做到自动重新连接的?是定时器吗?

最新回复

WZC_CONTEXT Send Feedback on this topic to the authors Developing a Device Driver > Windows CE Drivers > Network Drivers > Network Driver Reference > Automatic Configuration Reference > Automatic Configuration Structures This structure stores all the global service options that can be customized. Note   Any timer member that is set to 0xffffffff is automatically replaced with default value. Default values are defined in Wzcsapi.h. typedef struct _wzc_context_t {   DWORD dwFlags;   DWORD tmTr;   DWORD tmTc;   DWORD tmTp;   DWORD tmTf;   DWORD tmTd; } WZC_CONTEXT, *PWZC_CONTEXT; Members dwFlags Context control flags. Note   This member is not used in Windows CE. The application must call the WZCQueryContext function to get the initial value, and then set the new value by calling the WZCSetContext function. For more information see the WZC_CONTEXT_CTL_TIMER flags described in Automatic Configuration Constants. tmTr Timeout value in milliseconds until a rescan operation completes. Default value is TMMS_DEFAULT_TR (0x00000bb8). If this value is set to 0, WZCSVC does not issue an OID_802_11_BSSID_LIST_SCAN request to the underlying driver but rely exclusively on the list of BSSIDs cached by the driver. For more information about the cached BSSID values, see OID_802_11_BSSID_LIST. tmTc Timeout value in milliseconds to retry a valid configuration. Default value is TMMS_DEFAULT_TC (0x70000000). tmTp Timeout value in milliseconds to expect a media connect for a selected configuration. Default value is TMMS_DEFAULT_TP (0x000007d0). tmTf Timeout value in milliseconds to recover from a failed configuration. Default value is TMMS_DEFAULT_TF (0x0000ea60). tmTd Timeout value in milliseconds to wait before State Soft Reset (SSr) processing. Default value is TMMS_DEFAULT_TF (0x00001388). Requirements OS Versions: Windows CE .NET 4.2 and later. Header: Wzcsapi.h.   详情 回复 发表于 2009-12-10 12:23
点赞 关注

回复
举报

78

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
断开的时候,貌似没60秒按顺序尝试连接首选项列表里的AP

你看下WZCQueryContext和WZCSetContext这两个api

如果没记错的话,重新连接的参数在WZC_CONTEXT里面

找到了set一下
 
 

回复

67

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
这部分工作应该是wifi模块来完成的。wifi模块周期发送信号搜索网络,找到后通知体统。
 
 
 

回复

65

帖子

0

TA的资源

一粒金砂(初级)

4
 
To suwyhoho:
WZC_CONTEXT的5个时间参数分别代表什么意思?
tmTd,tmTc,tmTf,tmTp,tmTr? wzctool.cpp中的英文解释看得不太明白;如果我把它们全部设置成INFINITE,会有问题吗?

 
 
 

回复

62

帖子

0

TA的资源

一粒金砂(初级)

5
 
        WCHAR *szHelp[] = {
            L"tmTr  Scan time out.\n"
            L"      WZC requests BSSID scan to the miniport driver then waits for 'tmTr'\n",
            L"      until wireless miniport finishes scanning.\n",
            L"      default = 3 sec (3000 ms)\n",
            L"tmTp  Association time out.\n",
            L"      WZC requests wifi adapter to associate to the given SSID.\n",
            L"      If wifi adapter does not finish association within time 'tmTp',\n",
            L"      WZC tries next SSID in the [Preferred Networks].\n",
            L"      default = 2 sec (2000 ms)\n",
            L"tmTc  Periodic scan when connected.\n",
            L"      The scanning requires channel switching on wireless card.\n",
            L"      in order to listen beaconing packets on all channels.\n",
            L"      The channel switching is not preferable when STA is in connected-state\n",
            L"      since wireless packets transfer is blocked during the scanning.\n",
            L"      This timer is set to possible maximum value INFINITE by default.\n",
            L"      default = INFINITE (0x70000000=1879048192)\n",
            L"tmTf  Periodic scan when disconnected.\n",
            L"      This is the interval that WZC sends scanning requests\n",
            L"      to find connection candidate SSIDs given by [Preferred Networks].\n",
            L"      default = 1 min (60000 ms)\n",
            L"\n",
            L"usage:\n",
            L"wzctool -set -tmtr 1000\n",
            L"      set 'tmTr' timer to 1000 mili-second\n",
            L"wzctool -set -tmtr 1000 -tmtf 2000\n",
            L"      set 'tmTr' = 1000 mili-second, 'tmTf' = 2000 mili-second\n",
            L"wzctool -set -tmtr 0\n",
            L"      will set back to the default value.\n",
            L"wzctool -set -tmtr -1\n",
            L"      will set to INFINITE number.\n",
            L"\n",
        };
 
 
 

回复

74

帖子

0

TA的资源

一粒金砂(初级)

6
 
WZC_CONTEXT
Send Feedback on this topic to the authors

Developing a Device Driver > Windows CE Drivers > Network Drivers > Network Driver Reference > Automatic Configuration Reference > Automatic Configuration Structures

This structure stores all the global service options that can be customized.

Note   Any timer member that is set to 0xffffffff is automatically replaced with default value. Default values are defined in Wzcsapi.h.
typedef struct _wzc_context_t
{
  DWORD dwFlags;
  DWORD tmTr;
  DWORD tmTc;
  DWORD tmTp;
  DWORD tmTf;
  DWORD tmTd;
} WZC_CONTEXT, *PWZC_CONTEXT;
Members
dwFlags
Context control flags.
Note   This member is not used in Windows CE. The application must call the WZCQueryContext function to get the initial value, and then set the new value by calling the WZCSetContext function. For more information see the WZC_CONTEXT_CTL_TIMER flags described in Automatic Configuration Constants.
tmTr
Timeout value in milliseconds until a rescan operation completes. Default value is TMMS_DEFAULT_TR (0x00000bb8). If this value is set to 0, WZCSVC does not issue an OID_802_11_BSSID_LIST_SCAN request to the underlying driver but rely exclusively on the list of BSSIDs cached by the driver. For more information about the cached BSSID values, see OID_802_11_BSSID_LIST.
tmTc
Timeout value in milliseconds to retry a valid configuration. Default value is TMMS_DEFAULT_TC (0x70000000).
tmTp
Timeout value in milliseconds to expect a media connect for a selected configuration. Default value is TMMS_DEFAULT_TP (0x000007d0).
tmTf
Timeout value in milliseconds to recover from a failed configuration. Default value is TMMS_DEFAULT_TF (0x0000ea60).
tmTd
Timeout value in milliseconds to wait before State Soft Reset (SSr) processing. Default value is TMMS_DEFAULT_TF (0x00001388).
Requirements
OS Versions: Windows CE .NET 4.2 and later.
Header: Wzcsapi.h.
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表