مقدمة
In IoT, لا تتحدث جميع الأجهزة نفس "اللغة" عندما يتعلق الأمر بالتوقيت والتواصل. في لوراوان, هناك ثلاث فئات أجهزة محددة - أ, ب, و ج - كل منها بنمط خاص به لإرسال وتلقي البيانات. معرفة الاختلافات مهمة. إنه يؤثر على مدى سرعة استجابة أجهزتك, كم من الوقت يستمرون على البطارية, ومدى تناسب حالة الاستخدام الخاصة بك.
What are LoRa and LoRaWAN?
LoRa is the wireless modulation that carries data over long distances using low power. LoRaWAN is the network protocol that sits on top, defining how devices connect, send, and receive messages through gateways to a network server. LoRa is the physical layer. LoRaWAN is the rules of the conversation.
What are LoRaWAN Classes?
الفئة أ
What is Class A
Class A is the baseline. Every LoRaWAN device supports it. It’s the most power-efficient option, ideal for battery-powered devices.
How does it work?
A device sends an uplink whenever it needs to. Right after that, it opens two short receive windows — RX1 and RX2 — for possible downlinks from the network. If nothing comes in, it goes back to sleep until the next uplink. Downlink messages can only be delivered right after an uplink.
إيجابيات
–Lowest power use
–Works well for devices that send data infrequently
–Simple to deploy and scale
سلبيات
–High downlink latency
–Server can only send data after the device transmits
–Not suitable for real-time control
الفئة ب
What is Class B
Class B builds on Class A by adding scheduled receive slots. It’s a middle ground between Class A’s efficiency and Class C’s responsiveness.
How does it work?
The network sends out regular time-synced beacons. Devices use these منارات IoT رo align their internal clocks. Alongside the two receive windows after an uplink, Class B devices also open “ping slots” at specific times. This lets the network send downlinks on schedule, reducing latency compared to Class A.
إيجابيات
–Lower downlink latency than Class A
–Can do scheduled unicast or multicast messages
–Still possible to run on batteries
سلبيات
–Higher power use than Class A
–Requires network and device time sync–
–Slightly more complex setup
الفئة ج
What is Class C
Class C keeps the receive window open almost all the time. It’s for applications where immediate action matters more than saving power.
How does it work?
Like Class A, there are RX1 and RX2 windows, but RX2 stays open continuously, only closing during an uplink transmission. This means the server can send a downlink almost instantly at any time. The trade-off: much higher energy use, so these devices are usually mains-powered.
إيجابيات
–Lowest downlink latency
–Real-time control possible
–Can receive data at any moment
سلبيات
–High power consumption
–Rarely practical for battery use
–More sensitive to network interference
The Differences of Class A, Class B and Class C?
Class A listens only right after it talks.
Class B listens after it talks and also at agreed times.
Class C listens almost all the time.
Class A uses the least power but has the longest wait for downlink. Class B trades a bit of power for faster responses. Class C is always ready but needs constant power.
Quick Showing of Different LoRaWAN Classes
ميزة | الفئة أ | الفئة ب | الفئة ج |
---|---|---|---|
الوصلة الصاعدة | Anytime | Anytime | Anytime |
Downlink Timing | Only right after an uplink (two short receive windows) |
After uplink and at scheduled ping slots |
Almost anytime except during uplink |
Latency for Downlink | Highest | واسطة | Lowest |
Power Use | Lowest | واسطة | Highest |
Extra Requirements | لا أحد | Network time sync via beacons |
Continuous power التوفر |
الاستخدامات الشائعة | المراقبة البيئية, تتبع الأصول | Utility meters, street lighting | Fire alarms, صناعي control |
التعليمات
Which end device class consumes the lowest power?
Class A — because it spends most of its life asleep and only opens receive windows briefly after sending.
Which device class has the lowest downlink latency?
Class C — its receive window is open nearly all the time, so the network can send commands instantly.
Which device class is synchronized to the network using periodic beacons?
Class B — it listens for network beacons to keep its schedule aligned.