20-101-1246 Rabbit Semiconductor, 20-101-1246 Datasheet - Page 73

CORE MODULE RCM5400W

20-101-1246

Manufacturer Part Number
20-101-1246
Description
CORE MODULE RCM5400W
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-101-1246

Module/board Type
MPU Core Module
Wireless Frequency
73.73 MHz
For Use With/related Products
RCM5400W
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
316-1148
User’s Manual
WIFISCAN.C
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
WIFISCANASSOCIATE.C
ifconfig IFS_WIFI_SCAN
callback function when it is done. The callback function is specified using
IFS_WIFI_SCAN
Before you run this sample program, configure the Dynamic C
library and your
Now compile and run the sample program. Follow the menu options displayed in the
Dynamic C
Note that
the scan takes a fair amount of time. Instead, callback functions are used. The callback
function is passed to
1. Use macro definitions in the “Defines” tab in the Dynamic C Options > Project
2. If you are using DHCP, change the definition of the TCPCONFIG macro to 5. The default
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.
value of 1 indicates Wi-Fi with a static IP address.
ifconfig(IF_WIFI0, IFS_WIFI_SCAN, scan_callback, IFS_END);
window.
ifconfig IFS_WIFI_SCAN
STDIO
Press s to scan available access points
Press a to scan access points and associate
Press m to print WIFI MAC status
—initializes the RCM5400W and scans for other Wi-Fi devices that are
_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"
TCPCONFIG
.
window.
ifconfig()
— demostrates how to scan Wi-Fi channels for SSIDs using
macro.
. This takes a while to complete, so
as the only parameter to
function calls do not return data directly since
IFS_WIFI_SCAN
TCP_CONFIG.LIB
ifconfig()
ifconfig
.
calls a
67

Related parts for 20-101-1246