Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Rabbit-Semi | CCMP/WPA2 on RCM5600W

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

CCMP/WPA2 on RCM5600W - Taj Morton - Aug 13 11:01:37 2009

Hello,
I've been banging my head against this one for a few days now with no luck.

I've been attempting to get the RCM5600W to connect to a WPA2/CCMP encrypted network (using DC 10.56), but it just refuses to connect. I can connect fine to unencrypted, WEP, or WPA (TKIP) networks, just no WPA2. I've tried both the compile-time and run-time configurations, but get the same result each way.

Typically, the program runs, calculate the hex version of the key correctly (confirmed using PSK generator from a site), then sock_init_or_exit() just runs forever.

My compile-time config looks like this:
#define TCPCONFIG 5
#define _PRIMARY_STATIC_IP "10.10.6.100"
#define _PRIMARY_NETMASK "255.255.255.0"
#define MY_GATEWAY "10.10.6.1"
#define MY_NAMESERVER "10.10.6.1"
#define IFC_WIFI_SSID "wetlabs-n"
#define WIFI_USE_WPA
#define WIFI_AES_ENABLED
#define IFC_WIFI_ROAM_ENABLE 1
#define IFC_WIFI_ROAM_BEACON_MISS 20
#define IFC_WIFI_MODE IFPARAM_WIFI_INFRASTRUCTURE
#define IFC_WIFI_REGION IFPARAM_WIFI_REGION_AMERICAS
#define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_CCMP
#define IFC_WIFI_AUTHENTICATION IFPARAM_WIFI_AUTH_WPA_PSK
#define IFC_WIFI_WPA_PROTOCOL IFPARAM_WIFI_WPA_PROTOCOL_WPA2
#define IFC_WIFI_WPA_PSK_PASSPHRASE ""
#define WIFI_VERBOSE_PASSPHRASE

and the runtime one like this:
ifconfig(IF_WIFI0,
IFS_DOWN,
IFS_DHCP, 1,
IFS_WIFI_SSID, strlen("wetlabs-n"), "wetlabs-n",
IFS_WIFI_REGION, IFPARAM_WIFI_REGION_AMERICAS,
IFS_WIFI_MODE, IFPARAM_WIFI_INFRASTRUCTURE,
IFS_WIFI_ENCRYPTION, IFPARAM_WIFI_ENCR_CCMP,
IFS_WIFI_WPA_PSK_PASSPHRASE, "",
IFS_WIFI_CHANNEL, 11,
IFS_WIFI_AUTHENTICATION, IFPARAM_WIFI_AUTH_WPA_PSK,
//IFS_WIFI_WPA_PROTOCOL, IFPARAM_WIFI_WPA_PROTOCOL_WPA2,
IFS_UP,
IFS_END);

Anyone see anything that could cause problems with the above configs? When I connect to the WPA/TKIP network, I just change the SSID, passphrase, and WIFI_ENCRYPTION to IFPARAM_WIFI_ENCR_TKIP, and it works fine.

I turned on verbose mode, and the program looks like this:
IP: pkt_init reserved 32 buffers at 000E0580
Generating PSK from passphrase (takes 40 sec or so)... ...done
Sick of waiting?... then use the following instead:
IFS_WIFI_WPA_PSK_HEXSTR, "41783F197C513C76AB733B748856C4E7D2827A6AA3DD31660F6F
C65B9E197DF5"
which is valid for passphrase " when used with SSID "wetlabs-n".
IP: i/f 0 using hwa :00:90:C2:D9:79:00
ARP: router_add 0A0A0601 - new entry
ARP: created new entry 0 (for 0A0A0601 on i/f 0)
ARP: loaded entry:
0 1 0 10.10.6.1 00:00:00:00:00:00 0 GW
TCP: -490530ms since last call to tcp_tick!
sock_init_or_exit: waiting for interface...
sock_init_or_exit: waiting for interface...

Any ideas of things to try?
Thank you!
- Taj

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )