To use the Gizwits Serial Port Debugger, you need to create a product in Gizwits Developer Center. See here for reference.
Take ESP8266 as an example. On how to download GAgent firmware, please refer to: Firmware downloading for ESP8266 via serial port.
According to the following schematic, connect ESP8266 to your PC using a USB-to-TTL converter.
Download it here: https://download.gizwits.com/en-us/p/98/119
Find the productkey corresponding to the product in Gizwits Developer Center and fill in the blank of Gizwits Serial Port Debugger and save it.
As shown in the figure, when the ESP8266 module is powered on for the first time, the following message will be printed in the receiving box.
Here you can use your mobile phone number to register for an account or simply click Skip to jump to the next step.
Select the corresponding module model which defaults to Espressif, and enter the SSID and password of the router that your mobile phone connected to. Then click Next.
Click AirLink on the Command Screen, and the PC simulates the MCU function of sending a command to inform the module to enter AirLink mode.
The figure below shows the output of the Wi-Fi module after entering the AirLink mode.
After the above steps are completed, check the “Done above operations” on the App and click Next.
At this point the App will issue a configuration package and display that it is discovering devices.
Observe the receiving box of the serial port tool. When the following two commands are output, it indicates that the Wi-Fi module has successfully received the configuration information sent by the App, and connected to the router and Gizwits IoT Cloud.
After the Wi-Fi module is successfully connected to the router, it will broadcast a success message. After App receives the success message, it will show a device list page in which the Wi-Fi device locates.
Clicking the device on the device list page will take you to the device control page.
Toggle “Turn on/off red light” button on the App to issue commands to control the red light.
When you see the following command in Gizwits Serial Port Debugger, it means that the App controlled the device successfully.
Change the infrared detection value on Gizwits Serial Port Debugger to “1”, click Report Data to mimic the MCU behavior of reporting the device status actively.
After the App received the reported data, the “Infrared Detection” toggle button is switched on, which indicates that the MCU reported data to the App successfully.