< Home

Configuring Parameters for APs to Communicate with the Host Computer

Context

An AP communicates with a healthcare management host computer bidirectionally.
  • Before the AP reports data to the host computer, configure the domain name, IP address, and port number for the host computer. If these parameters are not configured, serial port data reported by the AP will be discarded.
  • Before the AP receives configurations delivered by the host computer to IoT cards, configure trusted hosts. In this way, only hosts with specified IP addresses can communicate with the AP and deliver configurations, protecting the AP against attacks. If no trusted host is configured, other hosts can also deliver IoT card configurations to the AP.

To enhance communication security, you can configure a shared key for encrypting communication data between the AP and host computers. The shared key must be the same on the AP and host computers.

IoT card slots are identified by the UDP port number, which is the mandatory parameter for communication between the AP and host computer.

Perform the following configurations on an AC:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run wlan

    The WLAN view is displayed.

  3. Run iot-profile name profile-name

    An IoT profile is created and the IoT profile view is displayed.

    By default, no IoT profile is created.

  4. Run type common

    The IoT card type is set to common.

    The default type of an IoT card is common.

  5. Run management-server { domain domain-name | server-ip server-ip } server-port server-port-num

    The IP address and port number of a host computer is configured.

    By default, no host computer is configured.

  6. (Optional) Run config-agent permit ip-address ip-address { net-mask | mask-len }

    The host computer trusted by the AP is configured.

    By default, no trusted host computer is configured.

  7. (Optional) Run share-key key-value

    A shared key is configured.

    By default, no shared key is configured.

  8. Run quit

    Return to the WLAN view.

  9. Apply configurations to an IoT card interface.

    • Bind an IoT profile in the IoT card interface view of an AP group.
      1. Run the ap-group name group-name command to enter the AP group view.
      2. Run the card { card-number | usb } command to enter the IoT card interface view.
      3. Run the iot-profile profile-name config-agent { tcp | udp } port port [ ext-port ext-port ] command to bind an IoT profile and configure the local port number for the IoT card interface when the AP functions as a server.

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

        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.

    • Bind an IoT profile in the IoT card interface view of an AP.
      1. Run the ap-id ap-id, ap-mac ap-mac, or ap-name ap-name command to enter the AP view.
      2. Run the card { card-number | usb } command to enter the IoT card interface view.
      3. Run the iot-profile profile-name config-agent { tcp | udp } port port [ ext-port ext-port ] command to bind an IoT profile and configure the local port number for the IoT card interface when the AP functions as a server.

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

        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.

Verifying the Configuration

  • Run the display iot-profile { name profile-name | all } command to check the IoT profile configuration.
  • Run the display reference iot-profile name profile-name command to check reference information about the IoT profile.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >