WIFISCAN.C —initializes the RCM5400W and scans for other Wi-Fi devices that are opera" />
參數(shù)資料
型號: 20-101-1246
廠商: Rabbit Semiconductor
文件頁數(shù): 92/120頁
文件大小: 0K
描述: CORE MODULE RCM5400W
產(chǎn)品培訓模塊: WiFi Authentication
特色產(chǎn)品: RCM5400 Family RabbitCore?
標準包裝: 50
系列: RabbitCore®
模塊/板類型: MPU 核心模塊
適用于相關(guān)產(chǎn)品: RCM5400W
其它名稱: 316-1148
User’s Manual
67
WIFISCAN.C
—initializes the RCM5400W and scans for other Wi-Fi devices that are
operating in either the ad-hoc mode or through access points in the infrastructure mode.
No network parameter settings are needed since the RCM5400W does not actually join
an 802.11 network. This program outputs the results of the scan to the Dynamic C
STDIO
window.
WIFISCANASSOCIATE.C
— demostrates how to scan Wi-Fi channels for SSIDs using
ifconfig IFS_WIFI_SCAN
. This takes a while to complete, so ifconfig() calls a
callback function when it is done. The callback function is specified using ifconfig
IFS_WIFI_SCAN
.
Before you run this sample program, configure the Dynamic C TCP_CONFIG.LIB
library and your TCPCONFIG macro.
1. Use macro definitions in the “Defines” tab in the Dynamic C Options > Project
Options menu to modify any parameter settings.
If you are not using DHCP, set the IP parameters to values appropriate to your network.
Set the macro IFC_WIFI_SSID= to define a C-style string to set the SSID of your
access point as, for example,
or use an empty string, "", to associate with the strongest BSS available.
Alternatively, you may create your own CUSTOM_CONFIG.LIB library modeled on the
Dynamic C TCP_CONFIG.LIB library. Then use a TCPCONFIG macro greater than or
equal to 100, which will invoke your CUSTOM_CONFIG.LIB library to be used.
Remember to add the CUSTOM_CONFIG.LIB library to LIB.DIR.
2. If you are using DHCP, change the definition of the TCPCONFIG macro to 5. The default
value of 1 indicates Wi-Fi with a static IP address.
Now compile and run the sample program. Follow the menu options displayed in the
Dynamic C STDIO window.
Note that ifconfig IFS_WIFI_SCAN function calls do not return data directly since
the scan takes a fair amount of time. Instead, callback functions are used. The callback
function is passed to ifconfig() as the only parameter to IFS_WIFI_SCAN.
ifconfig(IF_WIFI0, IFS_WIFI_SCAN, scan_callback, IFS_END);
_PRIMARY_STATIC_IP = "10.10.6.100"
_PRIMARY_NETMASK = "255.255.255.0"
MY_NAMESERVER = "10.10.6.1"
MY_GATEWAY = "10.10.6.1"
IFC_WIFI_SSID = "My Access Point"
Press s to scan available access points
Press a to scan access points and associate
Press m to print WIFI MAC status
相關(guān)PDF資料
PDF描述
20-101-1260 BL5S220 SBC (RCM5400-BASED)
20-101-1319 MINCORE MODULE RCM6710
20-668-0024 IC CPU RABBIT4000 128-LQFP
5AGXMB3G6F31C6NES IC ARRIA V FPGA 362K 896FBGA
5CGXFC7D7F31C8NES IC CYCLONE V FPGA 150K 896-FBGA
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
20-101-1247 功能描述:模塊化系統(tǒng) - SOM RCM5450W RABBITCORE MODULE RoHS:否 制造商:Digi International 外觀尺寸:ConnectCore 9P 處理器類型:ARM926EJ-S 頻率:150 MHz 存儲容量:8 MB, 16 MB 存儲類型:NOR Flash, SDRAM 接口類型:I2C, SPI, UART 工作電源電壓:3.3 V 最大工作溫度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
20-101-1252 功能描述:開發(fā)板和工具包 - 其他處理器 RCM56/57 Prototyping Board RoHS:否 制造商:Freescale Semiconductor 產(chǎn)品:Development Systems 工具用于評估:P3041 核心:e500mc 接口類型:I2C, SPI, USB 工作電源電壓:
20-101-1253 功能描述:開發(fā)板和工具包 - 其他處理器 RCM56/57XX Serial Comm Board RoHS:否 制造商:Freescale Semiconductor 產(chǎn)品:Development Systems 工具用于評估:P3041 核心:e500mc 接口類型:I2C, SPI, USB 工作電源電壓:
20-101-1254 功能描述:子卡和OEM板 RCM56/57XX Digital I/O Board RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-1255 功能描述:單板計算機 BL4S100 512K w/ XBee RoHS:否 制造商:Ampro By ADLINK 外觀尺寸:EPIC 處理器類型:Intel Atom D510 頻率:1.66 GHz 存儲容量:2 GB (max) 存儲類型:DDR2, L2 Cache 接口類型:Ethernet, PS/2, SATA, Serial, USB 工作電源電壓:5 V, 12 V 功耗:13 W 最大工作溫度:+ 70 C 尺寸:165.1 mm x 114.3 mm