
RYLR998 LoRa Module Library for Proteus Simulation

Hello friends, I hope you all are doing great. Today, I am going to share the new RYLR998 LoRa Module Library for Proteus Simulation. LoRa sends small messages over kilometres on very little power, and the RYLR998 makes it simple: a complete LoRa transceiver for 868 / 915 MHz that you drive with plain text AT commands over a serial port - no radio registers, no driver library. With this library you can run a full Proteus simulation of these modules: the AT commands and their answers, the radio settings, the time each packet spends on the air, and the signal strength and signal-to-noise ratio a receiver reports at a given distance.
RYLR998 LoRa Module Library for Proteus
Latest version: V1.0 (November 2026, this tutorial)
Helping Tools
- Serial Monitor Advance: a serial terminal window for the UART of your board
- Serial Monitor Expert: the serial monitor with extra debugging tools
- LCD Library for Proteus V3.0: 16x2, 20x4 and I2C LCDs to show your readings
Two modules on one sheet hear each other through the simulation's shared air. The demo is a small LoRa network: a sensor node sends a reading every four seconds to a gateway 1.2 km away, which prints it with its RSSI and SNR, blinks an LED and answers.
NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the LoRa board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the RYLR998 LoRa Module Library for Proteus Simulation:
What Is the RYLR998 LoRa Module?
The RYLR998 is a small LoRa transceiver module: a radio chip, a microcontroller that runs the AT command firmware, and a connector for the antenna, all on an 18 x 15 mm board with six pins. Your board never touches the radio directly - it writes text commands to the UART and reads text answers back. That makes LoRa possible on any board with a serial port, from an Arduino UNO to a PC with a USB adapter.
| RYLR998 LoRa module | |
|---|---|
| Radio | LoRa, 820 - 1020 MHz (868 / 915 MHz bands), up to 22 dBm |
| Interface | UART, 115200 baud from the factory, AT commands |
| Settings | band, SF / BW / CR / preamble, address, network ID, password, power |
| Payload | up to 240 bytes a message |
| Supply | 3.3 V (a few mA listening, more while transmitting) |
| Uses | sensor networks, remote meters, alarms, farm and city IoT |
AT Commands, One Line Each
Every command ends with CR LF - Serial.println adds them - and every command gets a line back: +OK, a value, or an error such as +ERR=5. AT+ADDRESS sets the module's own address (0 - 65535), AT+NETWORKID the network (3 - 15 or 18), AT+BAND the frequency in Hz, AT+PARAMETER the spreading factor, bandwidth, coding rate and preamble, AT+CRFOP the power and AT+CPIN an optional password. AT+SEND=<address>,<length>,<data> sends a message; on the other side it arrives as +RCV=<address>,<length>,<data>,<RSSI>,<SNR>.
Spreading Factor, Bandwidth and Time on Air
LoRa trades speed for range. A higher spreading factor (SF) makes each symbol longer and the link more sensitive, but every message spends more time on the air; a wider bandwidth does the opposite. The factory setting, 9,7,1,12, means SF9, 125 kHz, a coding rate of 4/5 and 12 preamble symbols: a short message takes about 0.2 s. While a packet is on the air the module cannot start the next one - an AT+SEND too soon earns +ERR=17. Two modules only hear each other when band, SF, bandwidth, coding rate, network ID and password all match.
RSSI and SNR
A receiver reports how strong the packet was (RSSI, in dBm) and how far it stood above the noise (SNR, in dB). The RSSI falls with distance; when it drops below the receiver's sensitivity - about -129 dBm at SF9 and 125 kHz - nothing arrives at all. LoRa can decode packets below the noise floor, which is why it reaches so far.
Features of the RYLR998 LoRa Module Library for Proteus Simulation
- A real-looking module: the 18 x 15 mm module at its real size, the shield can, the antenna connector and whip, the six pins, TX and RX LEDs.
- The real commands: AT, AT+RESET, AT+MODE, AT+IPR, AT+BAND, AT+PARAMETER, AT+ADDRESS, AT+NETWORKID, AT+CPIN, AT+CRFOP, AT+SEND, AT+UID?, AT+VER?, AT+FACTORY, the queries, +RCV and the +ERR codes.
- A real radio link: the modules on one sheet hear each other with matching settings; addresses, networks and passwords filter the packets.
- Real timing: the time on air from the SF, bandwidth, coding rate, preamble and length; overlapping packets are lost.
- Real signal levels: RSSI from the distance between the modules (the DISTANCE property), SNR from the noise floor, the sensitivity from the SF.
- A pop-up: the UART log and ten tiles - address, band and power, parameters, time on air, the last RSSI and SNR, packets, losses, UART and distance, the last send and the last error - graphs, an event log and a check page.
- A complete package: about 2.0 MB with the library, our Arduino UNO V4.0 and the two-board demo, without the source code of the model.
The RYLR998 in Proteus
The device is RYLR998TEP in TEPRYLR998.LIB, under Modules > LoRa, with the prefix U and the model TEPRYLR998.DLL. Search RYLR998 or LoRa in Pick Devices. Six pins on the left: VDD, NRST, RXD, TXD, NC and GND. Two properties: BAUD is the UART rate stored in the module (115200 from the factory), and DISTANCE places the module on a line in metres - the link distance between two modules is the difference.
Download RYLR998 LoRa Module Library for Proteus Simulation
Click the button below to download RYLR998-LoRa-Module-Library-for-Proteus-v1.0.zip (about 2.0 MB, without the source code of the models):
RYLR998 LoRa Module Library for Proteus V1.0- README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
- Proteus Library Files:
TEPRYLR998.LIB,TEPLED5MM.LIB,TEPRESISTOR.LIBandArduinoV4TEP.LIB. - Proteus Model Files:
TEPRYLR998.DLL,TEPLED5MM.DLL,TEPRESISTOR.DLLandTEPARDUINO.DLL. - Arduino Code: the node and gateway sketches (no LoRa library).
- Proteus Simulation: the demo project, its two HEX files and copies of the DLLs.
No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.
How to Install RYLR998 LoRa Module Library for Proteus Simulation
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy the files from Proteus Model Files into the MODELS folder.
- Delete
TEPRYLR998.IDXfrom the LIBRARY folder if it is there. - Start Proteus, press P and search for RYLR998.
Proteus Simulation of a LoRa Node and Gateway
The demo uses an A3 sheet with two of our Arduino UNO Library for Proteus V4.0 boards. On the left, ARD1 is the sensor node with U1; on the right, ARD2 is the gateway with U2 and an LED on D5. Each module's TXD goes to D8 and RXD to D9 of its board (AltSoftSerial), VDD and NRST to +3.3V. U1 has DISTANCE 0 and U2 DISTANCE 1200, so they are 1.2 km apart. Both modules were set to 9600 baud once with AT+IPR=9600 - the BAUD property is that stored rate - because a software serial port cannot keep up with 115200 on an UNO. Each Arduino has its own built-in monitor, the same window as our TEP Serial Monitor Advance for Proteus. Open RYLR998-Node-Gateway-ArduinoUnoV4.pdsprj.
The Sketches
Both sketches talk to the module the same way: send a command with println, read one line back, print both:
void cmd(const char* c) { lora.println(c); readLine(1000); Serial.print(c); Serial.print(F(" -> ")); Serial.println(line); lineN = 0; } // (line[] is free again)
The node sets address 1 and the radio parameters; the gateway sets address 2 with the same band, network and parameters:
cmd("AT+PARAMETER=9,7,1,12"); // SF9, 125 kHz, 4/5, 12 preamble symbols
cmd("AT+ADDRESS=2");
Every four seconds the node builds its message and sends it to address 2, with the exact length the module checks:
char c[64]; snprintf(c, sizeof c, "AT+SEND=2,%d,%s", (int)strlen(data), data);
Reading +RCV needs care: the data itself may contain commas, so the sketch reads the length field and takes exactly that many characters before the RSSI and SNR:
const int len = atoi(p); p = strchr(p, ',') + 1;
char data[64]; const int n = min(len, (int)sizeof data - 1); memcpy(data, p, n); data[n] = 0; p += len + 1;
The gateway answers each reading with ACK and a counter, back to the address the packet came from:
char c[48]; snprintf(c, sizeof c, "AT+SEND=%d,%d,%s", from, (int)strlen(ack), ack);
RYLR998 Simulation Results
Open the project and press Run. The demo runs 16.4 simulated seconds and took about three minutes on our PC with the pop-ups open and the pictures being taken. Click either module for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships.
The Start
Both modules start like real ones: +READY 102 ms after power-on, which the node prints as "Module: +READY". Then each sketch sends its settings, and every command gets its +OK: the node takes address 1, network 18, 915 MHz and SF9 / 125 kHz / 4/5 / 12, and asks AT+PARAMETER? to be sure - "+PARAMETER=9,7,1,12". The gateway does the same with address 2. The pop-up's UART card lists each command and each answer as it happens.
The First Packet
At 4.1 s the node sends its first reading, "T=23.9,H=59.2" - 13 bytes - with AT+SEND=2,13,... and gets +OK at once. The packet then spends 181 ms on the air: the TX LED on the module glows and the banner turns to TRANSMITTING. At SF9 and 125 kHz that is what a short message costs; at SF7 it would be about a quarter of it.
The Gateway
When the packet ends, the gateway's module puts it out as +RCV=1,13,T=23.9,H=59.2,-80,12: from address 1, 13 bytes, the data, an RSSI of -80 dBm and an SNR of 12 dB - the signal of a 22 dBm transmitter after 1.2 km. The sketch prints the reading with its signal, lights the LED on D5 for 300 ms and answers ACK,1. The same happens at 8.1, 12.1 and 16.1 s, with RSSI between -79 and -80 dBm. The answers are shorter - 5 bytes, 140 ms on the air.
The Answers
About 0.45 s after each of its sends the node hears the answer: "From 2: ACK,1 (RSSI -79 dBm, SNR 12 dB)", then ACK,2 and ACK,3. Because the node finishes transmitting before the gateway answers, nothing overlaps: the Lost tile stays at 0 too weak, 0 collided. At 16.4 s the node has sent 4 packets and received 3 answers - the fourth is still on its way - and the gateway has received 4 and sent 3.
The Graphs, the Event Log and the Check Page
The Graphs page shows when the module transmits, when a packet arrives, the last RSSI and the UART traffic. The Event log keeps every send with its time on air and every packet received with its RSSI and SNR. The Check page sums up the run: VDD at 3.30 V, the UART at 9600 baud 8N1 with no framing error, every AT command answered without an error, the radio at 915 MHz, SF9, 125 kHz, 4/5, preamble 12 and 22 dBm with address 1 on network 18, 4 packets sent (181 ms each) and 3 received at -79 dBm and SNR 12 dB, and nothing lost. Every line is green.
The node's monitor shows its side: every command with its answer and every ACK with its signal.
An AT Module, a LoRa Chip or a LoRa Board?
Our SX1278 LoRa Library for Proteus simulates the bare SX1278 radio on an SPI bus: your sketch writes its registers and runs a LoRa library - more work, but full control of every setting. Our Heltec WiFi LoRa 32 V3 Library for Proteus puts an ESP32 and a LoRa radio on one board with a small display, ready for gateways and Wi-Fi bridges. The RYLR998 is the easy way in: any board with a serial port can send a LoRa message with one line of text, and the module looks after the radio.
Try It Yourself
- Set the gateway's DISTANCE to 30000 (30 km): the packets become too weak, and the Event log says so.
- Change the node to AT+PARAMETER=7,7,1,12: the time on air shrinks, and the gateway hears nothing until it uses the same parameters.
- Send to address 0 instead of 2: every module of the network receives it.
- Make the message one character longer than the length you give AT+SEND: +ERR=5.
- Send twice in a row without waiting: the second AT+SEND gets +ERR=17.
Ideas to Extend the Demo
- Three nodes with addresses 1 - 3 and one gateway that keeps a table of their readings.
- A remote switch: the gateway sends commands that turn a relay on at the node.
- A range test: print the RSSI and SNR while you step the DISTANCE property.
Your Own Sketches
The demo sketch is in the zip file, and you can change it in the Arduino IDE. New to Arduino? Start with our Arduino Tutorial for Beginners. Export the compiled binary, and set the UNO's PROGRAM property to the new file. Our guide on How to get the HEX file from Arduino shows you where the file ends up.
Things to Know Before Using a Real RYLR998
- 3.3 V: power the module from 3.3 V and shift the UART levels from a 5 V board.
- The baud rate: it leaves the factory at 115200; for a software serial port store 9600 once with AT+IPR=9600.
- The antenna: never transmit without one; a good antenna adds more range than any setting.
- The law: use the band and power allowed where you live, and respect duty-cycle limits (1 % at 868 MHz in much of Europe).
- One network: the same band, parameters, network ID and password on every node.
Troubleshooting
- No answer at all: the baud rate differs (the factory 115200), TXD and RXD crossed wrong, NRST low, or no 3.3 V.
- +ERR=1: the command does not end with CR LF - use println.
- +ERR=5: the length in AT+SEND does not match the data.
- Nothing arrives: a different band, parameters, network ID or password - or the distance is too great for the SF.
- The part is not simulated:
TEPRYLR998.DLLis missing from MODELS and from the project folder.
Limitations of the Simulation
- The UART, the AT commands and answers, the time on air, the address, network and password filters, RSSI and SNR from distance, the sensitivity and collisions follow the module's description; the module is our own drawing.
- Our own choices: the shared air (only RYLR998s on the same sheet hear each other), the module's own header of three bytes, the path loss (free space to 100 m, then an exponent of 2.7), an SNR of at most +12 dB and the LEDs.
- Not modelled: other LoRa devices and LoRaWAN, real duty-cycle limits, the smart receiving power mode.
- Arduino is a name of Arduino; this library is not made or endorsed by Arduino, Labcenter or REYAX.
- Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.
So, that was all about the RYLR998 LoRa Module Library for Proteus Simulation. I hope it helps you get your commands, your settings and your timing right before the first modules arrive - so that your packets travel kilometres in the simulation before they travel across your town. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!






















Comments
0