No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S7700 and S9700 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
IoT AP Configuration Commands

IoT AP Configuration Commands

Command Support

  • Only the X series interface cards of S7700 and S9700 support WLAN-AC commands.

  • IoT AP configuration commands take effect only for the AP4050DN-E, AP7052DN, AP7152DN, and R250D-E.

card connect-type

Function

The card connect-type command configures the connection type between IoT cards and APs.

The undo card connect-type command restores the default connection type between IoT cards and APs.

By default, IoT cards communicate with APs through serial interfaces.

Format

card connect-type { ethernet | serial }

undo card connect-type

Parameters

Parameter

Description

Value

ethernet

Configures IoT cards to communicate with APs through Ethernet interfaces.

-

serial

Configures IoT cards to communicate with APs through serial interfaces.

-

Views

AP system profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When an IoT card communicates with an AP through the serial interface, the communication rate between the IoT card and AP does not exceed the maximum baud rate of the serial interface, that is, 115200 bit/s. This connection type is applicable to scenarios without high traffic volume. When an IoT card communicates with an AP through an Ethernet interface, the communication rate of 10 Mbit/s is supported. This connection mode is applicable to electronic shelf label (ESL) scenarios.

Precautions

The modified connection type takes effect only after the AP is restarted.

Currently, only the AP4050DN-E supports this command.

Example

# Configure IoT cards to communicate with APs through Ethernet interfaces.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] ap-system-profile name ab
[HUAWEI-wlan-ap-system-prof-ab] card connect-type ethernet

config-agent permit ip-address

Function

The config-agent permit ip-address command configures trusted host computers.

The undo config-agent permit ip-address command deletes the configuration of trusted host computers.

By default, no trusted host computer is configured.

Format

config-agent permit ip-address ip-address { net-mask | mask-len }

undo config-agent permit ip-address

Parameters

Parameter

Description

Value

ip-address

Specifies the IP address of a trusted host computer.

The value is in dotted decimal notation.

net-mask

Specifies the mask of the IP address of a trusted host computer.

The value is in dotted decimal notation.

mask-len

Specifies the mask length.

The value is an integer that ranges from 0 to 32.

Views

IoT profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To prevent unauthorized devices from attacking an AP, you can configure trusted host computers. In this way, only hosts within the specified IP address range can communicate with the AP functioning as a server and send the AP the configuration to be delivered to the IoT card.

If no trusted host computer is configured, any host computers with reachable routes to the AP can communicate with the AP, which brings security risks to the AP.

Precautions

After the type cas-edu command is executed to set the card type to cas-edu, the config-agent permit ip-address command cannot be executed.

Example

# Configure the IP address of a trusted host computer and its mask.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] iot-profile name wlan-iot
[HUAWEI-wlan-iot-prof-wlan-iot] config-agent permit ip-address 10.2.3.4 255.255.255.0

display ap card

Function

The display ap card command displays details about AP cards.

Format

display ap ap-id card { all | card-number | usb }

Parameters

Parameters

Description

Value

ap-id

Specifies the AP ID.

The AP ID must exist.

all

Specifies all AP cards.

-

card-number

Specifies the number of an interface on an IoT card.

The interface number must exist.

usb

Specifies the USB interface on an IoT card.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run the this command to query details about AP cards.

Example

# Display details about AP cards.

<HUAWEI> display ap 0 card all
Connected-status: The match status indicates that the card connection type matches   
that on the device. Otherwise, mismatch is displayed. To modify the effective connection  
type, run the card connect-type {serial|ethernet} command and restart the device.
-------------------------------------------------------------------------------- 
 Card                     : 1 
-------------------------------------------------------------------------------- 
 IOT card status          : absent 
-------------------------------------------------------------------------------- 
 Card                     : 2 
-------------------------------------------------------------------------------- 
 IOT card status          : present 
 Card connect type        : Serial
 Connected status         : mismatch
 Support card information : YES 
 Protocol version         : 1 
 Wireless standard        : RFID 
 Frequency                : 433M 
 Vendor name              : ENJOYOR 
 Card type                : TOEAPV1.2 
 Hardware version         : VA 
 Firmware version         : 0.1.0.1 
 Card serial number       : 0000000000000001 
-------------------------------------------------------------------------------- 
 Card                     : 3 
-------------------------------------------------------------------------------- 
 IOT card status          : absent 
-------------------------------------------------------------------------------- 
 Card                     : usb
-------------------------------------------------------------------------------- 
 USB status               : disabled
 IOT card status          : absent 
-------------------------------------------------------------------------------- 
Table 11-222  Description of the display ap card command output

Item

Description

IOT card status

Card status.

  • Present: An IoT card is installed.
  • absent: No IoT card is installed.
Card connect type Connection type between the IoT card and AP.
Connected status Whether the actual connection type of an IoT card matches the current initialized connection type of the AP.

Support card information

Whether card information can be queried.

Protocol version

Protocol version. The current version number is 1.

Wireless standard

Wireless protocol supported by a card. The value is a 10-byte ASCII character set, for example, RFID, ANT, ZigBee, BT4.0, and Weightless.

Frequency

Card frequency. The value is an 8-byte ASCII character set, for example, 2.4G, 900M, 2.4/5G, and any value from 433M to 915M.

Vendor name

Vendor code. The value is an 8-byte ASCII character set, for example, ENJOYOR.

Card type

Card model. The value is a 12-byte ASCII character set, for example, TOEAPV1.2.

Hardware version

Hardware version of the card. The value is a 2-byte ASCII character set. The value is fixed in the following pattern: VA for the first version, VB for the second version, VC for the third version, and so on.

Firmware version

Firmware version of the card. The value is a 4-byte number, for example, 00.01.00.01.

Card serial number

Module ID of the card. The value is a 16-byte BCD character set.

USB status

Actual working status of the USB function on an AP.

display ap-card all

Function

The display ap-card all command displays brief information about cards on all the APs.

Format

display ap-card all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To query brief information about cards on all the APs, run the display ap-card all command.

No result is displayed for a card if it does not support query.

Example

# Display brief information about cards on all the APs.

<HUAWEI> display ap-card all
Connected-status: The match status indicates that the card connection type matches that on the device. Otherwise, mismatch is displa
yed. To modify the effective connection type, run the card connect-type {serial|ethernet} command and restart the device.
------------------------------------------------------------------------------------------------------------------------------------
------------
AP ID  Card-number    Wireless-standard    Vendor-name    Card-type       Card-connect-type  Connected-status  Serial-number

------------------------------------------------------------------------------------------------------------------------------------
------------
2      1              RFID                 ENJOYOR        TOEAPV1.2       ethernet(up)        match            0000000000000001
------------------------------------------------------------------------------------------------------------------------------------
------------
Total: 1
Table 11-223  Description of the display ap-card all command output

Item

Description

AP ID

AP ID.

Card-number

Card ID.

Wireless-standard

Wireless protocol supported by a card. The value is a 10-byte ASCII character set, for example, RFID, ANT, ZigBee, BT4.0, and Weightless.

Vendor-name

Vendor code. The value is an 8-byte ASCII character set, for example, ENJOYOR.

Card-type

Card model. The value is a 12-byte ASCII character set, for example, TOEAPV1.2.

Card-connect-type Connection type between the IoT card and AP.
Connected-status Whether the actual connection type of an IoT card matches the current initialized connection type of the AP.

Serial-number

Module ID of the card. The value is a 16-byte BCD character set.

display iot-profile

Function

The display iot-profile command displays the configuration of a specified IoT profile or all IoT profiles.

Format

display iot-profile { name profile-name | all }

Parameters

Parameter

Description

Value

name profile-name

Specifies the name of an IoT profile.

The value is a string of 1 to 35 case-insensitive characters. It does not contain question marks (?) or spaces, and cannot start or end with double quotation marks (" ").

all

Specifies all IoT profiles.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run this command to view the configuration of a specified IoT profile or all IoT profiles.

Example

# Display the configuration of all IoT profiles.

<HUAWEI> display iot-profile all
--------------------------------------------------------------------------------
Profile name                         Reference                                  
--------------------------------------------------------------------------------
1                                    0                                          
profile1                             0                                          
wlan-IoT                             1                                          
--------------------------------------------------------------------------------
Total:3   
Table 11-224  Description of the display iot-profile all command output

Item

Description

Profile name

IoT profile name

Reference

Number of times an IoT profile is referenced.

# Display configuration information about IoT profile wlan-IoT.

<HUAWEI> display iot-profile name wlan-IoT
--------------------------------------------------------------------------------
Type                          : common
Agent permit IP address       : 10.23.102.253                                   
Agent permit net-mask         : 255.255.255.0                                   
Management server IP address  : 10.23.102.254                                   
Management server port        : 3000                                            
Share key                     : ******                                          
--------------------------------------------------------------------------------
Table 11-225  Description of the display iot-profile name wlan-IoT command output

Item

Description

Type Card type.

To configure this parameter, run the type (IoT profile view) command.

Agent permit IP address

IP address of a trusted host computer.

To configure this parameter, run the config-agent permit ip-address command.

Agent permit net-mask

Mask of the IP address of a trusted host computer.

To configure this parameter, run the config-agent permit ip-address command.

Management server IP address

IP address of the host computer.

To configure this parameter, run the management-server command.

Management server port

Port number of the host computer.

To configure this parameter, run the management-server command.

Share key

Shared key.

To configure this parameter, run the share-key command.

display references iot-profile

Function

The display references iot-profile command displays reference information about an IoT profile.

Format

display references iot-profile name profile-name

Parameters

Parameter

Description

Value

name profile-name

Specifies the name of an IoT profile.

The IoT profile name must exist.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run this command to view reference information about an IoT profile.

Example

# Display reference information about IoT profile wlan-IoT.

<HUAWEI> display references iot-profile name wlan-IoT
--------------------------------------------------------------------------------
Reference type     Reference name                      Reference card           
--------------------------------------------------------------------------------
AP group           ap-group1                           Card-1               
--------------------------------------------------------------------------------
Total:1  
Table 11-226  Description of the display references iot-profile name wlan-IoT command output

Item

Description

Reference type

Type of the object to which the IoT profile is bound.

Reference name

Name of the object to which the IoT profile is bound.

Reference card

Card to which the IoT profile is bound.

display references serial-profile

Function

The display references serial-profile command displays reference information about an IoT card serial profile.

Format

display references serial-profile name profile-name

Parameters

Parameter

Description

Value

name profile-name

Specifies the name of a serial profile.

The serial profile name must exist.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run this command to view reference information about an IoT card serial profile.

Example

# Display reference information about serial profile wlan-serial.

<HUAWEI> display references serial-profile name wlan-serial
--------------------------------------------------------------------------------
Reference type     Reference name                      Reference card           
--------------------------------------------------------------------------------
AP group           ap-group1                           Card-1               
--------------------------------------------------------------------------------
Total:1  
Table 11-227  Description of the display references serial-profile name wlan-serial command output

Item

Description

Reference type

Type of the profile to which the serial profile is bound.

Reference name

Name of the profile to which the serial profile is bound.

Reference card

Card to which the serial profile is bound.

display serial-profile

Function

The display serial-profile command displays configuration information about a specified IoT card serial profile or all serial profiles.

Format

display serial-profile { name profile-name | all }

Parameters

Parameter

Description

Value

name profile-name

Specifies the name of a serial profile.

The value is a string of 1 to 35 case-insensitive characters. It does not contain question marks (?) or spaces, and cannot start or end with double quotation marks (" ").

all

Specifies all serial profiles.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run this command to view the configuration information about a specified IoT card serial profile or all serial profiles.

Example

# Display the configuration of all serial profiles.

<HUAWEI> display serial-profile all
--------------------------------------------------------------------------------
Profile name                         Reference                                  
--------------------------------------------------------------------------------
profile1                             1                                          
wlan-serial                          1                                          
preset-enjoyor-toeap                 13                                         
--------------------------------------------------------------------------------
Total:3  
Table 11-228  Description of the display serial-profile all command output

Item

Description

Profile name

Profile name.

Reference

Number of times a serial profile is referenced.

# Display configuration information about serial profile wlan-serial.

<HUAWEI> display serial-profile name wlan-serial
--------------------------------------------------------------------------------
Speed(Unit:bps)             : 19200                                             
Parity                      : odd                                               
Stop bits                   : 2                                                 
Frame format                : frame-start-stop                                  
Frame length(Unit:Byte)     : 270                                               
Frame start                 : 0xbb                                              
Frame stop                  : 0xcc                                              
--------------------------------------------------------------------------------
Table 11-229  Description of the display serial-profile name wlan-serial command output

Item

Description

Speed(Unit:bps)

Baud rate in bps.

To configure this parameter, run the speed (serial profile view) command.

Parity

Parity bit.

To configure this parameter, run the parity (serial profile view) command.

Stop bits

Stop bits.

To configure this parameter, run the stopbits (serial profile view) command.

Frame format

Frame format.

To configure this parameter, run the frame-format (serial profile view) command.

Frame length(Unit:Byte)

Frame length in byte.

To configure this parameter, run the frame-length (serial profile view) command.

Frame start

Frame start flag.

To configure this parameter, run the frame-start (serial profile view) command.

Frame stop

Frame stop flag.

To configure this parameter, run the frame-stop (serial profile view) command.

frame-format (serial profile view)

Function

The frame-format command configures the format for serial frames on an IoT card interface.

The undo frame-format command restores the configured format for serial frames to the default value.

By default, the frame format is frame-start-stop.

Format

frame-format { fixed-length | frame-start-stop }

undo frame-format

Parameters

Parameter

Description

Value

fixed-length

Specifies a fixed frame length.

-

frame-start-stop

Specifies the start and stop flags for frames.

-

Views

Serial profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If parameter settings in preset profiles cannot meet your needs, you can create new serial profiles, customize serial communication parameters and framing parameters, and apply the settings to IoT card interfaces.

Precautions

If the serial frame length on an IoT card interface is set to 1 byte using the frame-length (serial profile view) command, the serial frame format must be fixed-length.

Example

# Configure a fixed-length frame format.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] serial-profile name profile1
[HUAWEI-wlan-serial-prof-profile1] frame-format fixed-length

frame-length (serial profile view)

Function

The frame-length command configures the length for serial frames on an IoT card interface.

The undo frame-length command restores the configured length for serial frames to the default value.

By default, the frame length is 512 bytes.

Format

frame-length frame-length-value

undo frame-length

Parameters

Parameter

Description

Value

frame-length-value
  • If the frame format adopts a fixed length, this parameter is used for framing.
  • If the frame format is set to frame-start-stop, this parameter specifies the maximum frame length used to verify the validity of framing.

The value is an integer that ranges from 1 to 280, in bytes.

Views

Serial profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If parameter settings in preset profiles cannot meet your needs, you can create new serial profiles, customize serial communication parameters and framing parameters, and apply the settings to IoT card interfaces.

Precautions

If the serial frame format on an IoT card interface is set to frame-start-stop using the frame-format (serial profile view) command, the serial frame length must be at least 2 bytes.

Example

# Set the frame length to 270 bytes.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] serial-profile name profile1
[HUAWEI-wlan-serial-prof-profile1] frame-length 270

frame-start (serial profile view)

Function

The frame-start command configures the start flag byte for serial frames on an IoT card slot.

The undo frame-start command restores the configured start flag byte to the default value.

By default, the start flag byte is aa.

Format

frame-start frame-start-value

undo frame-start

Parameters

Parameter

Description

Value

frame-start-value

Specifies the start flag byte of a frame.

The value ranges from 0 to ff.

Views

Serial profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If parameter settings in preset profiles cannot meet your needs, you can create new serial profiles, customize serial communication parameters and framing parameters, and apply the settings to IoT card slots.

Prerequisites

This parameter is valid only when the frame format is set to frame-start-stop.

Example

# Set the start flag byte to bb.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] serial-profile name profile1
[HUAWEI-wlan-serial-prof-profile1] frame-start bb

frame-stop (serial profile view)

Function

The frame-stop command configures the stop flag byte for serial frames on an IoT card slot.

The undo frame-stop command restores the configured stop flag byte to the default value.

By default, the stop flag byte is 7e.

Format

frame-stop frame-stop-value

undo frame-stop

Parameters

Parameter

Description

Value

frame-stop-value

Specifies the stop flag byte of a frame.

The value ranges from 0 to ff.

Views

Serial profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If parameter settings in preset profiles cannot meet your needs, you can create new serial profiles, customize serial communication parameters and framing parameters, and apply the settings to IoT card slots.

Prerequisites

This parameter is valid only when the frame format is set to frame-start-stop.

Example

# Set the stop flag byte to ff.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] serial-profile name profile1
[HUAWEI-wlan-serial-prof-profile1] frame-stop ff

card

Function

The card command displays the IoT card interface view.

Format

card { card-number | usb }

Parameters

Parameter

Description

Value

card-number

Specifies the IoT card interface number.

The value is an integer that ranges from 1 to 3.

usb

Specifies the USB interface of an IoT card.

-

Views

AP group view, AP specific view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the communication parameters are configured between an AP and an IoT card, and between an AP and a host computer, you need to bind corresponding configuration profiles in the IoT card interface view to make the parameters take effect.

Prerequisites

The USB function of the AP has been enabled using the usb enable command.

Precautions

Only the AP4050DN-E, AP7052DN, AP7152DN, and R250D-E support IoT cards connected to USB interfaces.

IoT cards of the cas-edu type do not support the USB interface.

Example

# Display the IoT card interface view.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] ap-group name group1
[HUAWEI-wlan-ap-group-group1] card 1
[HUAWEI-wlan-group-card-group1/1]

iot-profile (WLAN view)

Function

The iot-profile command creates an IoT profile and displays the IoT profile view.

The undo iot-profile command deletes an IoT profile.

By default, no IoT profile is created.

Format

iot-profile name profile-name

undo iot-profile { name profile-name | all }

Parameters

Parameter

Description

Value

name profile-name

Specifies the name of an IoT profile.

The value is a string of 1 to 35 case-insensitive characters. It does not contain question marks (?) or spaces, and cannot start or end with double quotation marks (" ").

all

Specifies all IoT profiles.

-

Views

WLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An AP functions as a server or client to communicate with the host computer in bi-directional mode. When the AP reports data to the host computer, the AP functions as a client and the host computer functions as a server. When the AP receives data from the host computer, the AP functions as a server and the host computer functions as a client.

Example

# Create IoT profile profile1 and display the IoT profile view.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] iot-profile name profile1
[HUAWEI-wlan-iot-prof-profile1]

iot-profile (IoT card interface view)

Function

The iot-profile command binds an IoT profile.

The undo iot-profile command deletes an IoT profile.

By default, no IoT profile is bound to an IoT card interface.

Format

iot-profile profile-name config-agent { udp-port udp-port | tcp-port tcp-port }

undo iot-profile

Parameters

Parameter

Description

Value

profile-name

Specifies the name of an IoT profile.

The value is a string of 1 to 35 case-insensitive characters. It does not contain question marks (?) or spaces, and cannot start or end with double quotation marks (" ").

config-agent udp-port udp-port

Specifies the UDP port number.

The value is an integer that ranges from 1025 to 55535.
NOTE:

A port number within the range from 50200 to 50202 is recommended. If another port number is used, a port conflict may occur and an alarm is generated.

config-agent tcp-port tcp-port

Specifies the TCP port number.

When the card type is cas-edu, this parameter is not supported.

The value is an integer that ranges from 1025 to 55535.
NOTE:

A port number within the range from 50200 to 50202 is recommended. If another port number is used, a port conflict may occur and an alarm is generated.

Views

IoT card interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The IoT card interface corresponds to the local UDP and TCP port numbers when the IoT profile is bound and the AP functions as a server.

Example

# Bind IoT profile profile1 and set the local UDP port number to 50200.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] ap-group name group1
[HUAWEI-wlan-ap-group-group1] card 1
[HUAWEI-wlan-group-card-group1/1] iot-profile profile1 config-agent udp-port 50200

management-server

Function

The management-server command configures a host computer.

The undo management-server command deletes the host computer configuration.

By default, no host computer is configured.

Format

management-server server-ip server-ip server-port server-port-num

undo management-server server-ip server-ip [ server-port server-port-num ]

Parameters

Parameter

Description

Value

server-ip server-ip

Specifies the IP address of a host computer.

The value is in dotted decimal notation.

server-port server-port-num

Specifies the port number of a host computer.

The value is an integer that ranges from 1025 to 55535.

Views

IoT profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An AP functions as a server or client to communicate with a host computer in bi-directional mode. When the AP reports data to the host computer, the AP functions as a client and the host computer functions as a server. When the AP receives data from the host computer, the AP functions as a server and the host computer functions as a client. The IP address and one port of at least one host computer must be configured. Otherwise, serial data reported by the AP will be discarded.

Precautions

You can configure multiple host computers. An RFID card of the common type supports a maximum of four host computers. After four host computers have been configured, you need to delete a host computer before adding a new host computer. Host computers can only be deleted or added, but cannot be modified. An IoT card of the cas-edu type supports only one host computer.

When multiple host computers are configured, the device automatically select one available host computer for link establishment rather than establish links with multiple host computers.

Example

# Configure the IP address and port number of a host computer.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] iot-profile name profile1
[HUAWEI-wlan-iot-prof-profile1] management-server server-ip 10.1.1.2 server-port 3000

parity (serial profile view)

Function

The parity command configures the parity bit for serial data on an IoT card slot.

The undo parity command restores the configured parity bit to the default value.

By default, the parity bit is set to none on an IoT card slot.

Format

parity { none | odd | even | mark | space }

undo parity

Parameters

Parameter

Description

Value

none

Indicates no parity.

-

odd

Indicates odd parity.

-

even

Indicates even parity.

-

mark

Indicates mark parity.

-

space

Indicates space parity.

-

Views

Serial profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If parameter settings in preset profiles cannot meet your needs, you can create new serial profiles, customize serial communication parameters and framing parameters, and apply the settings to IoT card slots.

Example

# Set parity to odd parity.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] serial-profile name profile1
[HUAWEI-wlan-serial-prof-profile1]parity odd

serial-profile (WLAN view)

Function

The serial-profile command creates a serial profile and displays the serial profile view.

The undo serial-profile command deletes a serial profile.

By default, serial profile preset-enjoyor-toeap is bound to an IoT card interface.

Format

serial-profile name profile-name

undo serial-profile { name profile-name | all }

Parameters

Parameter

Description

Value

name profile-name

Specifies the name of a serial profile.

The value is a string of 1 to 35 case-insensitive characters. It does not contain question marks (?) or spaces, and cannot start or end with double quotation marks (" ").

all

Specifies all serial profiles.

-

Views

WLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If parameter settings in preset profiles cannot meet your needs, you can create new serial profiles, customize serial communication parameters and framing parameters, and apply the settings to IoT card slots. User-defined profiles cannot start with "preset-".

Precautions

Preset serial profiles can be bound to facilitate the card configuration. A preset profile name is in the format of "preset-vendor name-model", which cannot be modified or deleted. User-defined profiles cannot start with "preset-".

Example

# Create serial profile profile1 and display the serial profile view.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] serial-profile name profile1
[HUAWEI-wlan-serial-prof-profile1]

serial-profile (IoT card interface view)

Function

The serial-profile command binds a serial profile to an AP or AP group.

The undo serial-profile command deletes the serial profile bound to an AP or AP group.

By default, serial profile preset-enjoyor-toeap is bound to an AP group, and no serial profile is bound to an AP.

Format

serial-profile profile-name

undo serial-profile

Parameters

Parameter

Description

Value

profile-name

Specifies the name of a serial profile.

The value is a string of 1 to 35 case-insensitive characters. It does not contain question marks (?) or spaces, and cannot start or end with double quotation marks (" ").

Views

IoT card interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If parameter settings in preset profiles cannot meet your needs, you can create new serial profiles, customize serial communication parameters and framing parameters, and apply the settings to IoT card slots.

Example

# Bind serial profile profile1 to AP group group1.

<HUAWEI>system-view
[HUAWEI]wlan
[HUAWEI-wlan-view]ap-group name group1
[HUAWEI-wlan-ap-group-group1]card 1
[HUAWEI-wlan-group-card-group1/1]serial-profile profile1

share-key

Function

The share-key command configures a shared key.

The undo share-key command deletes a shared key.

By default, no shared key is configured.

Format

share-key key-value

undo share-key

Parameters

Parameter

Description

Value

key-value

Specifies a shared key.

The value is a string of characters.
  • The key in plaintext contains 6 to 32 characters.
  • The key in ciphertext contains 48 or 68 characters.
NOTE:
To ensure security, a shared key must be a combination of at least two of the following: digits, lowercase letters, uppercase letters, and special characters.

Views

IoT profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can configure a shared key to improve data communication security and ensure completeness of packets exchanged between an AP and host computers. The shared key must be the same on the AP and host computers.

Precautions

After the type cas-edu command is executed to set the card type to cas-edu, the share-key command cannot be executed.

Example

# Set the shared key to aabb0011@11.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] iot-profile name profile1
[HUAWEI-wlan-iot-prof-profile1] share-key aabb0011@11

speed (serial profile view)

Function

The speed command configures the baud rate for serial communications on an IoT card slot.

The undo speed command restores the configured baud rate to the default value.

By default, the baud rate is 115,200 bit/s.

Format

speed speed-value

undo speed

Parameters

Parameter

Description

Value

speed-value

Specifies the baud rate for serial communication on an IoT card slot.

The unit is bit/s and the value can be:

  • 9600 bit/s

  • 19200 bit/s

  • 38400 bit/s

  • 57600 bit/s

  • 115200 bit/s

Views

Serial profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An IoT card and an AP communicate with each other in serial mode. Each IoT card interface uses independent serial communication parameters and framing parameters. By default, an IoT card interface is bound with the preset serial profile preset-enjoyor-toeap.

Example

# Set the baud rate to 57600 bit/s.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] serial-profile name profile1
[HUAWEI-wlan-serial-prof-profile1] speed 57600

stopbits (serial profile view)

Function

The stopbits command configures stop bits for serial data on an IoT card slot.

The undo stopbits command restores the configured stop bits to the default value.

The default stop bit is 1.

Format

stopbits { 1 | 2 }

undo stopbits

Parameters

Parameter

Description

Value

1

Specifies one stop bit.

-

2

Specifies two stop bits.

-

Views

Serial profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If parameter settings in preset profiles cannot meet your needs, you can create new serial profiles, customize serial communication parameters and framing parameters, and apply the settings to IoT card slots.

Example

# Set two stop bits.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] serial-profile name profile1
[HUAWEI-wlan-serial-prof-profile1] stopbits 2

type (IoT profile view)

Function

The type command sets the type for an IoT card.

The undo type command restores the default IoT card type.

The default type of an IoT card is common.

Format

type { cas-edu | common }

undo type

Parameters

Parameter

Description

Value

cas-edu

Specifies an IoT card that complies with IoT standards of the China Academy of Science.

-

common

Specifies an IoT card that complies with Huawei's IoT standards.

-

Views

IoT profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When Huawei ACs are used in the education system solution of the China Academy of Science, set the IoT card type to cas-edu. In other scenarios, set the IoT card type to common.

Precautions

After the IoT card type is modified in an IoT profile, other parameters in this IoT profile will restore to the default values.

If the iot-profile (IoT card interface view) command has been executed to bind an IoT profile, the IoT card type cannot be modified. The IoT card type can be modified only after the IoT profile is unbound.

After the type cas-edu command is executed to set the card type to cas-edu, the config-agent permit ip-address and share-key commands cannot be executed.

Example

# Set the type of an IoT card to cas-edu.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] iot-profile name wlan-iot
[HUAWEI-wlan-iot-prof-wlan-iot] type cas-edu
Warning: After the card type is modified, other configuration items in the profile are cleared.Continue?[Y/N]:y
Related Topics

wired-port-profile (IoT card interface view)

Function

The wired-port-profile command binds a specified AP wired port profile to an IoT card.

The undo wired-port-profile command unbinds the AP wired port profile from an IoT card.

By default, no AP wired port profile is bound to an IoT card.

Format

wired-port-profile profile-name

undo wired-port-profile

Parameters

Parameter

Description

Value

profile-name

Specifies the name of an AP wired port profile.

The AP wired port profile must exist.

Views

IoT card interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When an IoT card communicates with an AP through an Ethernet interface, to configure this Ethernet interface, you can set parameters in an AP wired port profile and bind it to the IoT card.

Prerequisites

The IoT card has been configured to communicate with the AP through an Ethernet interface using the card connect-type ethernet command.

Example

# Bind AP wired port profile wired-port1 to IoT card 1.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] wired-port-profile name wired-port1
[HUAWEI-wlan-wired-port-wired-port1] quit
[HUAWEI-wlan-view] ap-group name group1
[HUAWEI-wlan-ap-group-group1] card 1
[HUAWEI-wlan-group-card-group1/1] wired-port-profile wired-port1
Related Topics
Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178288

Views: 25741

Downloads: 109

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next