Back to All
Project

UART AT Commands w/ QCA4020 Dev Kit


Skill Level Area of Focus Operating System Platform/Hardware
Beginner Bluetooth, Education, Embedded, IoT, Smart Home RTOS QCA 402x WiFi/BLE/ZigBee

This project is designed to get you familiar with the QCA4020 System-On-Chip (SoC) Product Development kit. The QCA4020 IoT solution offers Wi-Fi, Bluetooth low energy (BLE), and 802.15.4 capable radios in a single-chip package.

“QCLI_uart_at_demo” is a demo application that provides the AT commands for exercising the functionality of the board and provides the capability for a MCU with low memory foot print to use QCA402x modules over UART interface with standard AT commands defined for the modules.

Objective

The objective of this demo is to learn how AT commands can be used to communicate with the QCA402x chipset that is loaded with the AT Command firmware and connected to host via a serial interface. These commands are designed to provide access to the capabilities of the QCA402x chipset to an external host over a serial interface. This offloads BLE, Zigbee, WLAN & TCP/IP (in QCA4020) and network management overhead to the QCA402x chipset and facilitates a small embedded host, based on microcontrollers like 8051, PIC, MSP430, AVR, etc., that have a serial interface, to communicate with other hosts on the network using the available radio technologies. These serial hosts use a simple command interface to configure and create the wireless and network connections.

Materials Required / Parts List / Tools

Source Code / Source Examples / Application Executable

Additional Resources

Build / Assembly Instructions

In the Box

Contents

The contents of the QCA4020 Development kit, as seen above, include:

  • QCA4020 development board
  • USB to Micro USB cables
  • Power supply
  • Jumpers
  • Setup guide

If this is your first time using the QCA4020 Development kit, we recommend you install the software components and set up the development environment on your computer by following the detailed instructions listed in the “Hello World with QCA4020 Development Kit” project. Following instructions listed in the Hello World project will include these steps:

  1. Setup the development environment.
  2. Import sample “QCLI_uart_at_demo” application.
Example: <path>/target/quartz/demo/QCLI_uart_at_demo

3.  Build the application.

4.  Flash the Application on the QCA4020 development board using JTAG and Eclipse.

 

Usage Instructions

Run the application in Autoboot mode

The Autoboot mode refers to the mode where the system boots up on a power cycle and no JTAG connectivity is required. Follow the below steps to run the application in Autoboot mode.

  1. Remove the jumper on J31.
    This was connected to flash the image on the board.
  2. Power cycle the system.

Once the board powers up, open a serial console on your host PC.

Connect it to the com port number assigned to the USB-serial connection with the following settings.

  1. Baud Rate: 115200
  2. Data Bits: 8
  3. Parity: None
  4. Stop bit: 1
  5. Flow Control: None

You will see the Console and the QCA4020 Board will be ready to accept AT Commands.

AT

Below are a few handy pointers to keep in mind while getting used to the AT Command Setup.

  • Wi-Fi related commands begin with the “ATW” prefix
  • Wireless P2P related commands begin with the “ATP2P” prefix
  • Network related commands begin with the “ATN” prefix
  • MQTT related commands begin with the “ATMQTT” prefix
  • OTA related commands begin with the “ATOTA” prefix
  • BLE related commands begin with the “ATBLE” prefix
  • Zigbee related commands begin with the “ATZB” prefix
  • Thread related commands begin with the “ATTH” prefix

Please refer to the QCA4020 Development Kit User’s Guide for full list of AT commands supported by the demo.

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries ("Qualcomm"). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.

Project Authors
Staff Engineer, Qualcomm Technologies, Inc.

Sign up for the Developer Newsletter.

Get software and hardware tool resources to help optimize your development delivered to your inbox weekly.

Qualcomm relentlessly innovates to deliver intelligent computing everywhere, helping the world tackle some of its most important challenges. Our leading-edge AI, high performance, low-power computing, and unrivaled connectivity deliver proven solutions that transform major industries. At Qualcomm, we are engineering human progress.

Stay connected

Get the latest Qualcomm and industry information delivered to your inbox.

Subscribe
Manage your subscription

© Qualcomm Technologies, Inc. and/or its affiliated companies.

Snapdragon and Qualcomm branded products are products of Qualcomm Technologies, Inc. and/or its subsidiaries. Qualcomm patented technologies are licensed by Qualcomm Incorporated.

Note: Certain services and materials may require you to accept additional terms and conditions before accessing or using those items.

References to "Qualcomm" may mean Qualcomm Incorporated, or subsidiaries or business units within the Qualcomm corporate structure, as applicable.

Qualcomm Incorporated includes our licensing business, QTL, and the vast majority of our patent portfolio. Qualcomm Technologies, Inc., a subsidiary of Qualcomm Incorporated, operates, along with its subsidiaries, substantially all of our engineering, research and development functions, and substantially all of our products and services businesses, including our QCT semiconductor business.

Materials that are as of a specific date, including but not limited to press releases, presentations, blog posts and webcasts, may have been superseded by subsequent events or disclosures.

Nothing in these materials is an offer to sell or license any of the services or materials referenced herein.