Panasonic PAN9520 Integration Manual page 20

Embedded wi-fi module
Hide thumbs Also See for PAN9520:
Table of Contents

Advertisement

PAN9520 Wi-Fi Module
6.1.1.2
Country Code Setting with ESP32-S2 AT Firmware
Instead of developing an embedded software for the PAN9520, an AT firmware provided by
Espressif can be used. This is based on the ESP-IDF and is available as source code or
precompiled binary.
This section explains how the country code settings can be applied if the AT firmware is used.
There are two commands related to the country code setting. These are
will query the current country code information, and
code configuration and store it into flash. The input parameters are similar to those, used in
ESP-IDF
( 6.1.1.1 Country Code Setting with
following.
For further details, please refer to
v2.1.0.0_esp32s2/AT_Command_Set/Wi-Fi_AT_Commands.html#at-cwcountry-configures-the-
wi-fi-country-code.
country_policy
0: Identical to
1: Identical to
country_code
String of variable length (maximum 3) containing the country code. Please note that quotation
marks must be used to identify the parameter as string. Similar to
start_channel
Index of first channel allowed to use. Identical to
total_channel_count
Number of channels that can be used. The index of the last channel is
start_channel + total_channel_count – 1. Identical to
Example (Canada, Manual Policy)
This example illustrates the configuration via AT commands. The country code has been
chosen to be CA for Canada and the range of allowed channels are set to "1" to "11"
accordingly. The device shall always use the configured country code settings, which causes
the parameter country_policy to be one.
Module Integration Guide Rev. 1.1
https://docs.espressif.com/projects/esp-at/en/release-
WIFI_COUNTRY_POLICY_AUTO
WIFI_COUNTRY_POLICY_MANUAL
6 Regulatory and Certification Information
AT+CWCOUNTRY
, which will set the country
ESP-IDF) and are only explained briefly in the
option in ESP-IDF
option in ESP-IDF
[0-2]
cc
schan
in ESP-IDF.
nchan
AT+CWCOUNTRY?
, which
in ESP-IDF.
in ESP-IDF.
Page 20 of 44

Advertisement

Table of Contents
loading

Table of Contents