HaaS100 WiFi/BT MAC address setting method

1. Overview

The HaaS100 development board is pre-burned with the MAC address of WiFi and Bluetooth before leaving the factory. If the developer wants to modify the MAC address on the board, he can use the method described in this article to set it up.

 

2. Setting method

1 ) Pull the latest code from the dev_3.1.0_haas branch of github.

git clone https://github.com/alibaba/AliOS-Things.git -b dev_3.1.0_haas

2 ) Use helloworld_demo or linkkit_demo, or other apps to compile a firmware and burn it to the haas100 board.

aos make helloworld_demo@haas100 -c config

aos make

4 ) After burning the new firmware, restart the board, in the serial shell, enter the following command to set the MAC address of WIFI and Bluetooth:

  •     Set WIFI MAC address command:
aos_mac WIFI XX:XX:XX:XX:XX:XX

    XX is a hexadecimal number

    An example of setting the WiFi mac address to 2C:16:BD:D0:C0:27 is shown in the figure below:

   

    As shown in the figure above, print out set WIFI mac success! which means the setting is successful.

 

  •     Set the Bluetooth MAC address command:

    aos_mac BT XX:XX:XX:XX:XX:XX

    XX is a hexadecimal number

An example of setting the BT mac address to 2C:16:BD:D0:C0:28 is shown in the following figure:

As shown in the figure above, the printout of set BT mac success! means that the setting is successful.

 

3. Query the MAC address

    Restart the board and check whether the MAC addresses of WIFI and Bluetooth are the same as the addresses set before restarting

  •     Query the MAC address of WIFI command:
aos_mac WIFI

Examples of     WiFi mac address query are as follows:

   

    The printed mac address should be consistent with the mac address set before restarting.

 

  •     Query Bluetooth MAC address command:
 aos_mac BT

Examples of     BT mac address query results are as follows:

   

 

Developer technical support

If you need more technical support, you can join the DingTalk developer group, or follow the WeChat public account

For more technology and solution introduction, please visit the Aliyun AIoT homepage https://iot.aliyun.com/

Guess you like

Origin blog.csdn.net/HaaSTech/article/details/114435571