Usage Example for Arduino-Modify Baud Rate
Last revision 2025/12/30
This article offers a comprehensive guide on modifying the baud rate for Arduino projects using the SIM7600G 4G Module. It provides essential hardware and software setup instructions, complete with connection diagrams and step-by-step instructions, ensuring successful serial communication through properly adjusted baud rates.
Hardware Preparation
- TEL0161 SIM7600G 4G Module x 1
- DFR0216 DFRduino UNO R3 x 1
- Windows 11 PC x1
- SIM card x1
- 5V-12V external power supply
Software Preparation
- Download Arduino IDE: Click to download Arduino IDE
- Download and install the driver: Click to download driver
Connection Diagram and Steps

| Mainboard | Pin name | Module | Pin name |
|---|---|---|---|
| DFRduino UNO R3 | 5 | SIM7600G 4G Module | RX |
| DFRduino UNO R3 | 4 | SIM7600G 4G Module | TX |
| DFRduino UNO R3 | 5V | SIM7600G 4G Module | + |
| DFRduino UNO R3 | GNG | SIM7600G 4G Module | - |
Steps
- Insert the SIM card into the expansion board and connect it to the DFRduino UNO R3 mainboard as shown in the diagram. Connect an external power supply as well.
- Wait for the SIM card to register on the network. The NET status indicator LED should start flashing rapidly (once every 1 second).
- Download the program below to the DFRduino UNO R3 and open the serial monitor, setting the baud rate to 115200.
#include "SoftwareSerial.h"
SoftwareSerial softSerial(/*rx =*/4, /*tx =*/5);
void setup() {
Serial.begin(115200); // Initialize the hardware UART
softSerial.begin(115200); // Initialize the software UART
Serial.println("For example, if you type AT\\r\\n, OK\\r\\n will be responsed!");
Serial.println("Enter your AT command :");
}
void loop() {
if (softSerial.available()) {
char data = softSerial.read(); // Read data from the software UART
Serial.write(data); // Transmit to the hardware UART
}
if (Serial.available()) {
char data = Serial.read(); // Read data from the hardware UART
softSerial.write(data); // Transmit to the software UART
}
}

Transmitting AT commands, receiving "OK" as the serial response, signifies successful communication.

Please note that when using an Arduino UNO for serial communication, the module's default communication rate is 115200. The oscillation frequency of the external crystal can result in significant baud rate errors, causing data corruption. It is necessary to set both the module's baud rate and the program's baud rate to 9600.
To achieve this, send the command "AT+IPREX=9600" to set the module's baud rate to 9600 after a restart.

Subsequently, modify the UNO's serial communication rate and re-upload the program.
#include "SoftwareSerial.h"
SoftwareSerial softSerial(/*rx =*/4, /*tx =*/5);
void setup() {
Serial.begin(9600); // Initialize the hardware UART
softSerial.begin(9600); // Initialize the software UART
Serial.println("For example, if you type AT\\r\\n, OK\\r\\n will be responsed!");
Serial.println("Enter your AT command :");
}
void loop() {
if (softSerial.available()) {
char data = softSerial.read(); // Read data from the software UART
Serial.write(data); // Transmit to the hardware UART
}
if (Serial.available()) {
char data = Serial.read(); // Read data from the hardware UART
softSerial.write(data); // Transmit to the software UART
}
}
Using a baud rate of 9600, send "AT" and "AT+IPREX?" to the serial port, which should return "OK" and the current baud rate value of 9600, confirming the successful modification of the communication rate.

Was this article helpful?
