|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
结构体 | |
| struct | ext_wifi_p2p_peer_info |
| struct | ext_wifi_p2p_user_conf |
| struct | ext_wifi_p2p_status_info |
| struct | ext_wifi_p2p_dhcps_ifconfig |
| struct | ext_wifi_p2p_client_info |
| struct | ext_wifi_p2p_connect |
| struct | p2p_persistent_ssid |
| struct | p2p_persistent_config |
| struct | p2p_user_persistent |
| struct | ext_p2p_persistent_group |
宏定义 | |
| #define | WPS_DEV_NAME_MAX_LEN 32 |
| #define | WPS_SERIAL_NUMBER_MAX_LEN 32 |
| #define | WPS_MANUFACTURER_MAX_LEN 64 |
| #define | WPS_MODEL_NAME_MAX_LEN 32 |
| #define | WPS_MODEL_NUMBER_MAX_LEN 32 |
| #define | WPS_MODE_MAX_LEN 15 |
| #define | WPS_STATE_MAX_LEN 19 |
| #define | WPS_IP_MAX_LEN 15 |
| #define | WPS_PINCODE_MAX_LEN 9 |
| #define | P2P_INVALID_VAL (-1) |
函数 | |
| int | uapi_wifi_p2p_start (char *ifname, int *len) |
| Start Start wifi p2p.CNcomment:开启P2P.CNend | |
| int | uapi_wifi_p2p_stop (void) |
| Close wifi p2p.CNcomment:关闭P2P.CNend | |
| int | uapi_wifi_p2p_find (int sec) |
| Start p2p scan.CNcomment:开始p2p查找 。CNend | |
| int | uapi_wifi_p2p_listen (int period, int interval) |
| Start p2p listen.CNcomment:开始p2p监听。CNend | |
| int | uapi_wifi_p2p_stop_find (void) |
| Stop p2p find.CNcomment:停止p2p查找。CNend | |
| int | uapi_wifi_p2p_log_level (char *log_level) |
| Set p2p log level.CNcomment:设置P2P的日志级别。CNend | |
| int | uapi_wifi_p2p_connect (ext_wifi_p2p_connect con) |
| Connect to specific p2p device.CNcomment:连接指定的p2p设备。CNend | |
| int | uapi_wifi_p2p_reject (const unsigned char *peer_addr, unsigned char addr_len) |
| reject to specific p2p device.CNcomment:拒绝指定的p2p设备。CNend | |
| int | uapi_wifi_p2p_invite (int persistent_id, const unsigned char *peer_addr, unsigned char addr_len) |
| 1.Enabling a fixed p2p device network.CNcomment:启用永久网络。CNend 2.Invite other devices to join the group.CNcomment:邀请其他设备加入网络。CNend | |
| int | uapi_wifi_p2p_peers (ext_wifi_p2p_peer_info *p2pList, unsigned int *peer_num) |
| show information of peer.CNcomment:显示对端信息.CNend | |
| int | uapi_wifi_p2p_status (ext_wifi_p2p_status_info *status) |
| Show connect status of p2p.CNcomment:显示p2p的连接状态信息。CNend | |
| int | uapi_wifi_p2p_get_connected_client (ext_wifi_p2p_client_info *client_list, unsigned int *client_num) |
| Get all client's information of p2p go.CNcomment:p2p go获取已连接的client的信息.CNend | |
| int | uapi_wifi_p2p_remove_client (const unsigned char *peer_dev_addr, unsigned char addr_len) |
| go deauth user by peer device address.CNcomment:go指定断开连接的client网络.CNend | |
| int | uapi_wifi_p2p_cancel (void) |
| Cancel an ongoing P2P group formation and joining-a-group related operation. CNcomment:取消正在进行的P2P群组组建和入群相关操作。CNend | |
| int | uapi_wifi_p2p_remove_group (void) |
| disconncet for p2p network.CNcomment:断开p2p连接。CNend | |
| int | uapi_wifi_p2p_user_config (ext_wifi_p2p_user_conf updateConfig) |
| Update p2p configuration.CNcomment:p2p可修改的参数。CNend | |
| int | uapi_wifi_p2p_get_user_config (ext_wifi_p2p_user_conf *GetConfig) |
| Get p2p configuration.CNcomment:获取p2p的参数。CNend | |
| int | uapi_wifi_p2p_user_accept (ext_wifi_p2p_connect con, int assoc) |
| user accept p2p .CNcomment:p2p是否接受连接。CNend | |
| int | uapi_wifi_set_peer_connect_choose (ext_wifi_p2p_peer_connect_choose flag) |
| Set the status that P2P automatically accepts connections or manually receives connections. CNcomment:设置p2p是自动接收连接还是手动接收连接.CNend | |
| ext_wifi_p2p_peer_connect_choose | uapi_wifi_get_peer_connect_choose (void) |
| Get the status that P2P automatically accepts connections or manually receives connections. CNcomment:返回目前p2p是自动接收连接还是手动接收连接.CNend | |
| int | uapi_wifi_p2p_get_persistent_conf (p2p_user_persistent *conf) |
| Get the configuration information of P2P persistent network.CNcomment:获取p2p永久网络配置信息。CNend | |
| int | uapi_wifi_p2p_set_persistent_conf (p2p_user_persistent conf) |
| Get the configuration information of P2P persistent network.CNcomment:设置p2p永久网络配置信息。CNend | |
| int | uapi_wifi_p2p_get_persistent_info (ext_p2p_persistent_group *info, int *info_num) |
| Get the nformation of P2P persistent network.CNcomment:获取永久网络信息给用户。CNend | |
| int | uapi_wifi_p2p_del_persistent_info (int id) |
| Get the configuration information of P2P persistent network.CNcomment: 删除永久网络信息。CNend | |
| int | uapi_wifi_p2p_wps_pbc (void) |
| Starting WPS PBC.CNcomment: 启动wps pbc。CNend | |
| #define P2P_INVALID_VAL (-1) |
p2p invalid value.CNcomment:P2P无效参数CNend
| #define WPS_DEV_NAME_MAX_LEN 32 |
max wps dev name length.CNcomment:WPS dev name最大长度CNend
| #define WPS_IP_MAX_LEN 15 |
max wps ip length.CNcomment:WPS IP最大长度CNend
| #define WPS_MANUFACTURER_MAX_LEN 64 |
max wps manufacturer length.CNcomment:WPS manufacturer最大长度CNend
| #define WPS_MODE_MAX_LEN 15 |
max wps mode length.CNcomment:WPS mode最大长度CNend
| #define WPS_MODEL_NAME_MAX_LEN 32 |
max wps model name length.CNcomment:WPS model name最大长度CNend
| #define WPS_MODEL_NUMBER_MAX_LEN 32 |
max wps model number length.CNcomment:WPS model number最大长度CNend
| #define WPS_PINCODE_MAX_LEN 9 |
max wps ip length.CNcomment:WPS IP最大长度CNend
| #define WPS_SERIAL_NUMBER_MAX_LEN 32 |
max wps serial number length.CNcomment:WPS serial number最大长度CNend
| #define WPS_STATE_MAX_LEN 19 |
max wps state length.CNcomment:WPS state最大长度CNend
| enum ext_wifi_p2p_mode |
| enum ext_wifi_p2p_state |
| enum wifi_mode |
wifi mode.CNcomment:wifi模式。
| ext_wifi_p2p_peer_connect_choose uapi_wifi_get_peer_connect_choose | ( | void | ) |
Get the status that P2P automatically accepts connections or manually receives connections. CNcomment:返回目前p2p是自动接收连接还是手动接收连接.CNend
| NULL |
| EXT_WIFI_P2P_PEER_CONNECT_AUTO | or EXT_WIFI_P2P_PEER_CONNECT_MANUAL. |
| int uapi_wifi_p2p_cancel | ( | void | ) |
Cancel an ongoing P2P group formation and joining-a-group related operation. CNcomment:取消正在进行的P2P群组组建和入群相关操作。CNend
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_connect | ( | ext_wifi_p2p_connect | con | ) |
Connect to specific p2p device.CNcomment:连接指定的p2p设备。CNend
| con | [IN] Type ext_wifi_p2p_connect,associated parameter structure.CNcomment:p2p连接入参结构体。CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_del_persistent_info | ( | int | id | ) |
Get the configuration information of P2P persistent network.CNcomment: 删除永久网络信息。CNend
| id | [IN] Type #int, network id. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_find | ( | int | sec | ) |
Start p2p scan.CNcomment:开始p2p查找 。CNend
| sec | [IN] Type int, scan time(unit s).CNcomment:查找时间。CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_get_connected_client | ( | ext_wifi_p2p_client_info * | client_list, |
| unsigned int * | client_num | ||
| ) |
Get all client's information of p2p go.CNcomment:p2p go获取已连接的client的信息.CNend
| client_list | [IN/OUT] Type ext_wifi_p2p_client_info *, client information.CNcomment:client信息.CNend |
| client_num | [IN/OUT] Type #unsigned int *, client number.CNcomment:client个数.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_get_persistent_conf | ( | p2p_user_persistent * | conf | ) |
Get the configuration information of P2P persistent network.CNcomment:获取p2p永久网络配置信息。CNend
| conf | [IN] Type p2p_user_persistent *, configuration need be got. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_get_persistent_info | ( | ext_p2p_persistent_group * | info, |
| int * | info_num | ||
| ) |
Get the nformation of P2P persistent network.CNcomment:获取永久网络信息给用户。CNend
| info | [IN/OUT] Type ext_p2p_persistent_group *, infomation of persistent group. info_num [IN/OUT] Type #int *, number of persistent group. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_get_user_config | ( | ext_wifi_p2p_user_conf * | GetConfig | ) |
Get p2p configuration.CNcomment:获取p2p的参数。CNend
| updateConfig | [OUT] Type ext_wifi_p2p_user_conf. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_invite | ( | int | persistent_id, |
| const unsigned char * | peer_addr, | ||
| unsigned char | addr_len | ||
| ) |
1.Enabling a fixed p2p device network.CNcomment:启用永久网络。CNend 2.Invite other devices to join the group.CNcomment:邀请其他设备加入网络。CNend
| persistent_id | [IN] Type #int connect network for persistent save value. CNcomment:永久网络id,邀请其他网络的时候为-1。CNend peer_addr [IN] Type #const unsigned char * peer mac address.CNcomment:对端device地址。CNend addr_len [IN] Type #unsigned char len of peer mac address. CNcomment:对端device地址长度。CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_listen | ( | int | period, |
| int | interval | ||
| ) |
Start p2p listen.CNcomment:开始p2p监听。CNend
| period | [IN] Type int, listen time once(int ms). CNcomment:每次监听时间。CNend interval [IN] Type int, listen time interval once (int ms). CNcomment:每次间隔时间时间。CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_log_level | ( | char * | log_level | ) |
Set p2p log level.CNcomment:设置P2P的日志级别。CNend
| log_level |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_peers | ( | ext_wifi_p2p_peer_info * | p2pList, |
| unsigned int * | peer_num | ||
| ) |
show information of peer.CNcomment:显示对端信息.CNend
| p2pList | [IN/OUT] Type ext_wifi_p2p_peer_info * p2p find result.CNcomment:p2p发现的结果.CNend |
| peer_num | [IN/OUT] Type #unsigned int *, number of scan result.CNcomment:p2p发现的网络数目.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_reject | ( | const unsigned char * | peer_addr, |
| unsigned char | addr_len | ||
| ) |
reject to specific p2p device.CNcomment:拒绝指定的p2p设备。CNend
| peer_addr | [IN] Type #const unsigned char *, peer device address.CNcomment:对端device地址。CNend addr_len [IN] Type #unsigned char , len of peer device address .CNcomment:对端device地址长度。CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_remove_client | ( | const unsigned char * | peer_dev_addr, |
| unsigned char | addr_len | ||
| ) |
go deauth user by peer device address.CNcomment:go指定断开连接的client网络.CNend
| peer_dev_addr | [IN] Type #const unsigned char *, gc mac address.CNcomment:MAC地址.CNend addr_len [IN] Type #unsigned char, len of gc mac address.CNcomment:MAC地址.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_remove_group | ( | void | ) |
disconncet for p2p network.CNcomment:断开p2p连接。CNend
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_set_persistent_conf | ( | p2p_user_persistent | conf | ) |
Get the configuration information of P2P persistent network.CNcomment:设置p2p永久网络配置信息。CNend
| conf | [IN] Type p2p_user_persistent, configuration need be set. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_start | ( | char * | ifname, |
| int * | len | ||
| ) |
Start Start wifi p2p.CNcomment:开启P2P.CNend
| ifname | [IN/OUT] Type #char *, device name.CNcomment:接口名.CNend |
| len | [IN/OUT] Type #int *, length of device name.CNcomment:接口名长度.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_status | ( | ext_wifi_p2p_status_info * | status | ) |
Show connect status of p2p.CNcomment:显示p2p的连接状态信息。CNend
| status | [OUT] Type ext_wifi_p2p_status_info *, device information. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_stop | ( | void | ) |
Close wifi p2p.CNcomment:关闭P2P.CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_stop_find | ( | void | ) |
Stop p2p find.CNcomment:停止p2p查找。CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_user_accept | ( | ext_wifi_p2p_connect | con, |
| int | assoc | ||
| ) |
user accept p2p .CNcomment:p2p是否接受连接。CNend
| con | [IN] Type ext_wifi_p2p_connect, associated parameter structure. CNcomment:连接入参结构体。CNend assoc [IN] Type #int assoc, accept or reject.CNcomment:p2p是否接受连接。CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed.
|
| int uapi_wifi_p2p_user_config | ( | ext_wifi_p2p_user_conf | updateConfig | ) |
Update p2p configuration.CNcomment:p2p可修改的参数。CNend
| updateConfig | [IN] Type ext_wifi_p2p_user_conf, configuration need update. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_p2p_wps_pbc | ( | void | ) |
Starting WPS PBC.CNcomment: 启动wps pbc。CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_set_peer_connect_choose | ( | ext_wifi_p2p_peer_connect_choose | flag | ) |
Set the status that P2P automatically accepts connections or manually receives connections. CNcomment:设置p2p是自动接收连接还是手动接收连接.CNend
| flag | [IN] Type ext_wifi_p2p_peer_connect_choose CNcomment:设置p2p是自动连接还是手动连接的标志.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |