How to download the program and test the effect after installing the LINUX compilation environment

How to download the program and test the effect after installing the LINUX compilation environment

According to the previous document "About Alibaba Bluetooth MESH Chip TG7100B LINUX Development Environment Tower Building Graphic Instructions", after all the commands have been run and passed, the specified SDK file can be compiled. I am using the latest version genie-bt-mesh-sdk-rel_1.2.0 certified by Alibaba. I put the file in a folder created by my virtual machine LINUX and shared with the WIN7 system.

The first step: After decompressing the SDK, use instructions to view the root directory in the LINUX environment. It must be the same as the picture 1 below:
Insert picture description here

Figure 1
Step 2: On the basis of the first step, we can view the root directory of the SDK file under our shared files, and then we can run the compilation command in the directory just now
aos make bluetooth.light_ctl@tg7100b
As shown in Figure 2
Insert picture description here

Figure 2 The
third step is to use the latest official designated ISP download tool to download the program. The "TG71XX_Programmer" interface settings are as follows, as shown in Figure 3. Follow the order in my picture to do the operations. For details, please refer to the official "TG_B_7101_ product manual V1.5"
Insert picture description here

Figure 3
Step 4 Connect the TM pin of the chip from the previous VCC to GND. Then disconnect the serial port connection of the downloader, open the serial debugging assistant tool, open the serial port and set the serial port baud rate to 512000. First send an AT command to the module to see if it returns. Figure 4 below
Insert picture description here

Figure 4
Step 5: Send the triplet information set by the Tmall Wizard server through commands as shown in Figure 5. The specific triple information is subject to your own, and you can apply through the relevant instructions of Alibaba Cloud and Tmall Wizard servers:
Insert picture description here

Figure 5
Step 6: You can control the LED on and off on the board through the Tmall wizard. Figure 6 is a screenshot and effect of the chip module I used.
Insert picture description here

Figure 6
Step 7 After the above six steps are completed, when the device is controlled by voice or Tmall Genie APP, the corresponding data will be sent back on the serial port as shown in Figure 7
Insert picture description here

Figure 7

Note: Each of the above instructions must be successful after running. If it is unsuccessful, run it several times, or go to Baidu to search for solutions according to the error code prompted.
Welcome to the technical exchange of Bluetooth MESH and Ali Tmall Wizard docking. WX: 180 8608 6621

Yang Rongguo 2020 10 23

Guess you like

Origin blog.csdn.net/weixin_44862509/article/details/109244431