Using WPS to connect two WICED modules

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I am using Wiced SDK 2.4.1 on two SN8200 eval boards.

I am trying to get one board to connect to the other using WPS push button mode, but it doesn't seem to work.  I load the wps_enrollee snip on one module, and the wps_registrar snip on the other without modification to the snips.  I then restart them at the same time and get the output below.  This should work, correct?

Starting Wiced v2.4.1

Started ThreadX v5.5

Initialising NetX_Duo v5.6

Creating Packet pools

WWD SDIO interface initialised

WLAN MAC Address : 00:0B:6C:41:73:FD

WLAN Firmware    : wl0: Feb 10 2014 11:29:55 version 5.90.230.7 FWID 01-555f783e

Starting WPS Enrollee in PBC mode. Press the WPS button on your AP now.

Starting WPS Enrollee

Joining 'WPS_REGISTRAR_EXAMPLE'

WPS Procedure failed. Restarting with 113 seconds left

Joining 'WPS_REGISTRAR_EXAMPLE'

Joining 'WPS_REGISTRAR_EXAMPLE'

WPS Procedure failed. Restarting with 95 seconds left

Joining 'WPS_REGISTRAR_EXAMPLE'

Joining 'WPS_REGISTRAR_EXAMPLE'

WPS Procedure failed. Restarting with 77 seconds left

Joining 'WPS_REGISTRAR_EXAMPLE'

Joining 'WPS_REGISTRAR_EXAMPLE'

WPS Procedure failed. Restarting with 59 seconds left

Joining 'WPS_REGISTRAR_EXAMPLE'

Joining 'WPS_REGISTRAR_EXAMPLE'

WPS Procedure failed. Restarting with 41 seconds left

Joining 'WPS_REGISTRAR_EXAMPLE'

Joining 'WPS_REGISTRAR_EXAMPLE'

WPS Procedure failed. Restarting with 23 seconds left

Joining 'WPS_REGISTRAR_EXAMPLE'

Joining 'WPS_REGISTRAR_EXAMPLE'

WPS Procedure failed. Restarting with 6 seconds left

Joining 'WPS_REGISTRAR_EXAMPLE'

WPS timed out

WPS enrollment was not successful

Starting Wiced v2.4.1

Platform SN8200x initialised

Started ThreadX v5.5

Initialising NetX_Duo v5.6

Creating Packet pools

WWD SDIO interface initialised

WLAN MAC Address : 00:0B:6C:41:74:4D

WLAN Firmware    : wl0: Feb 10 2014 11:29:55 version 5.90.230.7 FWID 01-555f783e

Starting access point

Setting IPv6 link-local address

IPv4 network ready IP: 192.168.10.1

Starting WPS Registrar in PBC mode

Starting WPS Registrar

WPS Procedure failed. Restarting with 107 seconds left

WPS Procedure failed. Restarting with 89 seconds left

WPS Procedure failed. Restarting with 71 seconds left

WPS Procedure failed. Restarting with 53 seconds left

WPS Procedure failed. Restarting with 35 seconds left

WPS Procedure failed. Restarting with 17 seconds left

WPS Procedure failed. Restarting with 0 seconds left

WPS timed out

WPS enrollment was not successful

0 Likes
5 Replies
GregG_16
Employee
Employee
50 sign-ins 25 sign-ins 25 comments on KBA

I tried with broadcom 43362 based EVK and had no issue.

WPS timed out


12:22:42.178: Platform BCM943362WCD4 initialised

12:22:42.178: Started ThreadX v5.5

12:22:42.194: Initialising NetX v5.6

12:22:42.194: Creating Packet pools

12:22:42.194: Starting Wiced v2.4.0

12:22:42.194: WWD SDIO interface initialised

12:22:42.610: WLAN MAC Address : 40:2C:F4:AF:32:D4

12:22:42.610: Starting access point

12:22:42.610: Setting IPv6 link-local address

12:22:42.658: IPv4 network ready IP: 192.168.10.1

12:22:42.674: Starting WPS Registrar in PBC mode

12:22:42.674: Starting WPS Registrar

12:22:45.137: Sending Identity request

12:22:47.217: Sending WSC Start

12:22:47.521: Sending nonce

12:22:50.029: Sending hashes

12:22:52.172: WPS completed successfully

12:22:57.373: WPS enrollment was successful

12:22:58.317:

Platform BCM943362WCD4 initialised

Started ThreadX v5.5

Initialising NetX v5.6

Creating Packet pools

Starting Wiced v2.4.0

WWD SDIO interface initialised

WLAN MAC Address : 40:2C:F4:AF:32:F9

Starting WPS Enrollee in PBC mode. Press the WPS button on your AP now.

Starting WPS Enrollee

Joining 'WPS_REGISTRAR_EXAMPLE'

Sending EAPOL start

Sending Identity

Sending nonce

Sending hashes

Storing credentials for WPS_REGISTRAR_EXAMPLE

Sending WSC Done

WPS completed successfully

WPS enrollment was successful

Joining : WPS_REGISTRAR_EXAMPLE

Successfully joined : WPS_REGISTRAR_EXAMPLE

Obtaining IPv4 address via DHCP

Setting IPv6 link-local address

IPv4 network ready IP: 192.168.10.2

Can you attach wifi_config_dct.h files from each?

0 Likes
Anonymous
Not applicable

My issue comes from the following call:

        /* Process the message */

        result = wps_process_event( workspace, &message );

result gets the error WPS_ERROR_NO_RESPONSE on both the registrar and the enrollee.  I don't have the source code for wps_process_event though, so I am stuck at this point.

Did you try having two eval boards, one with the registrar and another with the enrollee?  Also, do you have SN8200 eval kits you could try it with?

Also, if I attempt to connect to the wps_registrar snip with my Windows 7 PC, it connects just fine.  The issue then lies either in the wps_enrollee snip, or from using attempting to connect the two together.

0 Likes

Yes, I tried with two WICED modules and had no issues.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Here they are.

GregG_16
Employee
Employee
50 sign-ins 25 sign-ins 25 comments on KBA

Open new discussion if needed.

0 Likes