Screenshot of SecureCRT showing serial port settings for AT commands.

How to use AT Over Com for Industrial Routers

Written by: Anson Feng

|

Published on

|

Time to read 5 min

Anson Feng, Technical Support Engineer at Robustel

Anson Feng is a Technical Support Engineer at Robustel, where he specializes in helping customers deploy and troubleshoot industrial IoT solutions. With a deep focus on edge computing and wireless connectivity, he provides expert guidance on integrating gateways, sensors, and cloud platforms to build reliable and scalable systems. 

Summary

In my experience, many engineers rely solely on a router's web interface for configuration.

But there's a more powerful, direct way to control the cellular modem: using AT commands.

This guide will show you how to leverage this foundational tool to unlock advanced functionality on your Robustel industrial router, including remote SMS messaging, status checks, and troubleshooting, all via the serial port.

Introduction

Let's be clear: when you're working with industrial IoT devices in the field, you need every tool at your disposal. While modern routers offer sleek web GUIs for easy setup, sometimes you need to get down to the brass tacks. That's where AT commands come in. They are a set of basic instructions used to control a modem, originally derived from the "attention" prefix. Think of them as the command-line interface for your cellular module. In my past projects, I've seen countless situations where being able to send a simple AT command via the serial port was the real "aha!" moment that solved a tricky problem. This isn't just about technical flair; it's about reliable, on-the-spot problem-solving that can save you a costly truck roll.

What is AT over COM?

AT over COM is a method for controlling a cellular modem by sending standard AT commands through a serial communication interface, such as a COM port on a PC. This approach gives you direct access to the modem's core functions, bypassing the router's main operating system. It's a foundational technique used by engineers for everything from initial diagnostics to developing custom applications.

This process is a prime example of the kind of granular control that makes industrial-grade routers, like those from Robustel, so valuable. It's not just a black box; it's a fully transparent tool. For instance, using the AT over COM method, you can:

  • Check network status: Verify signal strength, network registration, and IP address assignment.
  • Send and receive SMS messages: A perfect solution for sending remote alerts or receiving basic control commands in scenarios where data connectivity is unstable.
  • Debug network issues: Pinpoint why a connection is failing or why a network switch isn't working as expected.

How to Use AT Commands on Your Robustel Router

To get started with AT commands on a Robustel router, you'll need to use the "AT Over COM" app. This software module provides the bridge between your modem and the serial port, so you can interact with it directly. For my team, the process usually looks like this:


Screenshot showing how to via APP Center to install Apps.


  1. Install the "AT Over COM" app: First, you'll need to find and install the "AT over COM" application from the router's App Center. This module is essential for enabling the direct serial communication with the cellular modem.
  1. Configure the COM port: Once the app is installed, you'll need to access the router's web interface and configure the serial port settings for AT Over COM. This involves setting parameters like the baud rate (e.g., 115200), data bits, parity, and stop bits.

Screenshot of SecureCRT showing serial port settings for AT commands.


  1. Access the modem with a terminal program: Now, you're ready to connect to the router's serial port using a terminal program like SecureCRT or PuTTY on your PC. Once connected, you can input standard AT commands. For example, entering AT should receive an OK response.

Screenshot showing a successful AT command output in a terminal, with "OK" responses.


  1. Send SMS via AT commands: One of the most common and useful applications for this method is sending SMS alerts. This is critical for remote maintenance, especially when data connectivity is unreliable. By using the AT+CMGS command, you can send text messages to a predefined number to alert your team of a system event, like an equipment failure or a sensor reading that is out of range.

You can also leverage this method for automated applications. For example, a third-party application on a connected computer can use the COM port to send an AT command that triggers a system reboot or changes network settings. This is a crucial capability for mission-critical deployments where manual intervention isn't always possible. The Robustel R5020 Lite is a great example of a router that supports these advanced functions, offering a secure, Linux-based RobustOS and a comprehensive suite of VPNs to protect your data during these operations.

Why This is a Game-Changer for Industrial IoT

In the world of industrial automation, a lot can go wrong. A simple network hiccup can lead to a costly outage. This is where direct control via the serial port becomes a real asset. My team has used this method to resolve issues without ever having to dispatch a technician to a remote site.

For example, on one project, we had a router that was failing to connect to the network after a power cycle. By connecting to the serial port and sending a few diagnostics commands, we were able to quickly pinpoint a misconfigured APN setting that wasn't visible in the web UI. We were able to fix it in minutes, saving a full day of travel and labor costs. This is the kind of efficiency gain you can get when you treat your router as a powerful, multi-purpose tool, not just a simple network appliance. This level of access and flexibility is why industrial-grade devices are so different from consumer-grade ones, and why they're so integral to the success of IIoT projects.

Frequently Asked Questions

Q1: What's the difference between using AT commands and the web GUI?

A: The web GUI is a user-friendly, abstracted interface that simplifies common tasks like setting up a VPN or configuring basic network settings. AT commands provide a raw, direct interface to the cellular modem itself, allowing for deeper diagnostics, troubleshooting, and direct control over modem-specific functions that may not be exposed through the web interface.

Q2: What is "AT Over COM" and is it secure?

A: "AT Over COM" is simply a software application that enables the use of AT commands over a standard serial port. While the commands themselves are not encrypted, the router and its connection can be secured. For instance, using a secure VPN tunnel, like the one offered by the Robustel Cloud Manager Service (RCMS), ensures that all data transmitted over the network is encrypted and secure, even when you are debugging a local issue. This is how you protect your OT network from threats.

Q3: Can I use AT commands to send sensor data to the cloud?

A: Absolutely. While modern IoT platforms often use protocols like MQTT for data transmission, AT commands can be a fallback for sending simple data or alerts via SMS. This is particularly useful in low-bandwidth or intermittent connectivity scenarios where a full data session isn't possible. Some devices, like Robustel's EG5120 edge gateways, combine this with powerful local processing to handle a variety of industrial protocols and send filtered data to the cloud.