CYW43438 ・ wiced_wps_enrollee function can't get credentials for WiFi channels 12 and 13

Tip / ログイン to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
KEKA_4568351
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

In the following environment, with the wiced_wps_enrollee function, a phenomenon has occurred in which credentials for channels 12 and 13 of WiFi cannot be obtained.

Channels 1 to 11 are connected to a credential acquisition and WiFi connection.

Channels 12 and 13 cannot have credentials and cannot call subsequent WIFI connections (wifi_utils_join function).

The wps_host_scan function is implemented to scan the channel list for "1-14".

(43xxx_Wi-Fi \ WICED \ security \ BESL \ host \ WICED \ wiced_wps.c)

Here are the questions.

■ QA

・ Is it possible to obtain credentials for channels 12 and 13 with the CYW43438 chipset?

・ How do I get credentials for channels 12 and 13?

■ Environment

・ Chip set: CYW43438

  https://japan.cypress.com/documentation/datasheets/cyw43438-single-chip-ieee-80211ac-bgn-macbaseband...

  https://www.cypress.com/file/298076/download

・ WICED Studio: 6.4.0

・ Router: WSR-2533DHPL-C

  https://www.buffalo.jp/product/detail/wsr-2533dhpl-c.html

■ Step

1. wiced_wps_enrollee function call

2. Press WPS button

3. Timeout occurred and the wiced_wps_enrollee function terminated

■ Refer to the image for the router channel setting.

0 件の賞賛
1 解決策

Those who have solved the problem have solved it.

Since "wifi_config_dct.h" is used and "WICED_COUNTRY_CODE" is "WICED_COUNTRY_UNITED_STATES", it seems that WPS connection of ch12 and 13 could not be made.

Sorry, Thank you very much.

◆wifi_config_dct.h

#define WICED_COUNTRY_CODE    WICED_COUNTRY_UNITED_STATES

↓↓↓↓↓

#define WICED_COUNTRY_CODE    WICED_COUNTRY_JAPAN

<Japanese>

問題の方、解決しました。

「wifi_config_dct.h」を使用しており、「WICED_COUNTRY_CODE」が「WICED_COUNTRY_UNITED_STATES」されていたため、ch12、13のWPS接続ができなかったようです。

失礼しました。ありがとうございました。

元の投稿で解決策を見る

0 件の賞賛
20 返答(返信)
KEKA_4568351
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

<Japanese>

CYW43438・wiced_wps_enrollee関数で、WiFiの12、13チャンネルの資格情報(credentials)が取得できない

以下の環境、wiced_wps_enrollee関数で、WiFiの12、13チャンネルの資格情報(credentials)が取得できない現象が発生しています。

1~11チャンネルまでは、資格情報(credentials)取得&WiFi接続されます。

12、13チャンネルは、資格情報(credentials)できず、以降のWIFI接続(wifi_utils_join関数)をコールすることができない。

wps_host_scan関数では、チャンネルリストを「1~14」をスキャンするように実装されています。

(43xxx_Wi-Fi\WICED\security\BESL\host\WICED\wiced_wps.c)

以下、質問です。

■QA

・CYW43438のチップセットで、12、13チャンネルの資格情報(credentials)は、取得可能でしょうか。

・12、13チャンネルの資格情報(credentials)を取得するには、どのようにしたらよいでしょうか。

■環境

・チップセット:CYW43438

  https://japan.cypress.com/documentation/datasheets/cyw43438-single-chip-ieee-80211ac-bgn-macbaseband...

  https://www.cypress.com/file/298076/download

・WICED Studio:6.4.0

・ルータ:WSR-2533DHPL-C

  https://www.buffalo.jp/product/detail/wsr-2533dhpl-c.html

■手順

1.wiced_wps_enrollee関数コール

2.WPSボタン押下

3.タイムアウトとなり、wiced_wps_enrollee関数終了

■ルータのチャンネルの設定は、画像を参照。

WiFi_13channel.png

・WiFi_12channel.png

・WiFi_13channel.png

The default country code is US which supports only ch. 1-11. So with US country code, ch. 12 and 13 are not expected to transmit signals. Ideally the product should be programmed with the country where it is deployed. So if your place of deployment of product is Japan, you can change the country code to WICED_COUNTRY_JAPAN in wiced_defaults.h. Check if changing the country code solves this issue.

I changed my country code to "WICED_COUNTRY_JAPAN" but could not get credentials.

wiced_defaults.h

/************************************************************************

* Country code */

//#define WICED_DEFAULT_COUNTRY_CODE            ( WICED_COUNTRY_UNITED_STATES )

#define WICED_DEFAULT_COUNTRY_CODE            ( WICED_COUNTRY_JAPAN )

0 件の賞賛

With Japan country code, do you see your AP on ch. 12 or 13 with:

1. "scan" command?

2. "scan_wps" command?

Scan_wps (command_console_wps.c), scan (command_console_wifi.c) function?

I don't know how to use it.

Please let me know if you have any samples.

<Japanese>

scan_wps(command_console_wps.c)、scan(command_console_wifi.c)の関数のことでしょうか?

使い方を知りません。

サンプルがあれば、教えてください。

0 件の賞賛

Build and run the test.console application like test.console-BCM943438WCD1 download run. After that, in the console, type scan and then type scan_wps. I presume the country code is still JP. Can you see your AP on ch. 12 or 13 in scan results? This will confirm that the 43438 STA interface can communicate on those channels. Can you see your AP in scan_wps list? It appears to me that the wps_host_scan() is not picking up your AP.

12ch was detected by the scan command.

> scan_wps

0: ・・・

3: Buffalo-G-35E8    ★Router

8: ・・・

> scan

Waiting for scan results...

  # Type  BSSID              RSSI Rate Chan Security               SSID                            CCode    Flag

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

・・・

16 Infra 50:C4:DD:6F:35:E9 -23 288.8   12   WPA2 AES PSK         Buffalo-G-35E8                   JP      PROBE         ★12ch

End of scan results, found 17 APs

<Japanese>

scanコマンドで、12chが検知されました。

0 件の賞賛

Attach the confirmed source.

確認したソースを添付します。

0 件の賞賛

13ch was also detected.

> scan

Waiting for scan results...

  # Type  BSSID              RSSI Rate Chan Security               SSID                            CCode    Flag

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

  9 Infra 50:C4:DD:6F:35:E9 OFF 288.8   13   WPA2 AES PSK         Buffalo-G-35E8                   JP      PROBE

<Japanese>

13chも検知しました。

0 件の賞賛

What is the situation?

With covid-19, work may be delayed, but please tell us the situation.

状況は、どうでしょうか。

covid-19で、作業が滞っているかもしれませんが、状況を教えてください。

0 件の賞賛

Thanks for the information. It basically means that wps scan is able to detect your AP on ch. 12 or 13. I tested snip.wps_enrollee with 4343W where I configured the following values in default_wifi_config_dct.h:

#define CLIENT_AP_SSID       "softAP123"

#define CLIENT_AP_PASSPHRASE "12345678"

#define CLIENT_AP_BSS_TYPE   WICED_BSS_TYPE_INFRASTRUCTURE

#define CLIENT_AP_SECURITY   WICED_SECURITY_WPS_SECURE

#define CLIENT_AP_CHANNEL    12

#define CLIENT_AP_BAND       WICED_802_11_BAND_2_4GHZ

I configured another device as softAP to run WPS registrar. After building and running the wps_enrollee snip, I pressed the WPS button on softAP when prompted and the join was successful as shown below:

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

WPS enrollment was successful

Joining : softAP123

Successfully joined : softAP123

Obtaining IPv4 address via DHCP

L1420 : dhcp_client_init() : DHCP CLIENT hostname = [WICED IP]

IPv4 network ready IP: 192.168.0.2

Setting IPv6 link-local address

IPv6 network ready IP: FE80:0000:0000:0000:8E45:00FF:FED6:391A

Associated on channel: 12

I repeated a similar test on ch. 13 and the WPS join was successful. Can you please follow the above steps except softAP setup and check if you are able to join your AP?

I checked the following "default_wifi_config_dct.h", but could not connect.

■default_wifi_config_dct.h

/**

* This is the default AP the device will connect to (as a client)

*/

#define CLIENT_AP_SSID       "Buffalo-G-35E8"

#define CLIENT_AP_PASSPHRASE "sda8e7sfns7ux"

#define CLIENT_AP_BSS_TYPE   WICED_BSS_TYPE_INFRASTRUCTURE

#define CLIENT_AP_SECURITY   WICED_SECURITY_WPS_SECURE

#define CLIENT_AP_CHANNEL    12

#define CLIENT_AP_BAND       WICED_802_11_BAND_2_4GHZ

<Japanese>

以下の「default_wifi_config_dct.h」で確認しましたが、接続できませんでした。

0 件の賞賛

No logs have been output from the WICED library.

<Japanese>

WICEDライブラリからのログも出力されていません。

0 件の賞賛

I checked the AP settings in your first description. The data rate has been set to 346.7Mbps but CYW43438 only supports PHY data rate from 1Mbps to 96Mbps. Can you please lower the data rate in your AP settings and repeat the test? If you want to enable WPS prints for further debugging, please enable the following macros in wiced_defaults.h:

#define WPRINT_ENABLE_WPS_INFO

#define WPRINT_ENABLE_WPS_DEBUG

#define WPRINT_ENABLE_WPS_ERROR

Sorry I made you wait

I tried to display the log.

"WPS timed out" is displayed.

Below are the settings.

◆Log

Starting WPS Enrollee

WPS timed out

●Setting

◆wiced_defaults.h

#define WPRINT_ENABLE_WPS_INFO

#define WPRINT_ENABLE_WPS_DEBUG

#define WPRINT_ENABLE_WPS_ERROR

#define WICED_DEFAULT_COUNTRY_CODE            ( WICED_COUNTRY_JAPAN )

◆default_wifi_config_dct.h

#define CLIENT_AP_SSID       "Buffalo-G-35E8"

#define CLIENT_AP_PASSPHRASE "sda8e7sfns7ux"

#define CLIENT_AP_BSS_TYPE   WICED_BSS_TYPE_INFRASTRUCTURE

#define CLIENT_AP_SECURITY   WICED_SECURITY_WPS_SECURE

#define CLIENT_AP_CHANNEL    12

#define CLIENT_AP_BAND       WICED_802_11_BAND_2_4GHZ

<Japanese>

お待たせしました。

ログを表示してみました。

「WPS timed out」が表示されました。

0 件の賞賛

Bands of 12 and 13ch have been changed to 800Mbps (40MHz) and 346.7Mbps (20MHz).

The result was NG.

Attached file reference.

<Japanese>

12、13chの帯域は、800Mbps(40MHz)、346.7Mbps(20MHz)に変更しました。

結果はNGでした。

添付ファイル参照。

0 件の賞賛

40MHz bandwidth is not supported in JP/0. And 4343W supports MCS 0 to 7 rates in 20MHz bandwidth. Could you please lower the AP data rate below the supported data rates for 4343W?

The "Baffalo WSR-2533DHPL-C" router does not seem to be set to lower the data rate.

Is support difficult?

The image of the setting is attached.

・Router: WSR-2533DHPL-C

  https://www.buffalo.jp/product/detail/wsr-2533dhpl-c.html

<Japanese>

「Baffalo・WSR-2533DHPL-C」ルータでは、データレートを下げる設定はなさそうです。

サポートは、難しいでしょうか。

設定の画像を添付します。

0 件の賞賛

CYW43438 supports 802.11n data rates up to MCS7. The data rate of 346.7Mbps is much higher and not supported in CYW43438. Does the join process work with that AP in other security modes such as WPA2? Also can you consider to use WPA2 or WPA3 instead of WPS for your application?

Those who have solved the problem have solved it.

Since "wifi_config_dct.h" is used and "WICED_COUNTRY_CODE" is "WICED_COUNTRY_UNITED_STATES", it seems that WPS connection of ch12 and 13 could not be made.

Sorry, Thank you very much.

◆wifi_config_dct.h

#define WICED_COUNTRY_CODE    WICED_COUNTRY_UNITED_STATES

↓↓↓↓↓

#define WICED_COUNTRY_CODE    WICED_COUNTRY_JAPAN

<Japanese>

問題の方、解決しました。

「wifi_config_dct.h」を使用しており、「WICED_COUNTRY_CODE」が「WICED_COUNTRY_UNITED_STATES」されていたため、ch12、13のWPS接続ができなかったようです。

失礼しました。ありがとうございました。

0 件の賞賛