การแนะนำ
In IoT, อุปกรณ์บางอย่างไม่ใช่ "ภาษา" เดียวกันเมื่อพูดถึงเวลาและการสื่อสาร. ใน โลราวัน, มีคลาสอุปกรณ์ที่กำหนดสามคลาส - ก, บี, และ C - แต่ละรูปแบบของตัวเองสำหรับการส่งและรับข้อมูล. การรู้ถึงความแตกต่างเป็นเรื่องสำคัญ. มันส่งผลกระทบต่อความรวดเร็วของอุปกรณ์ของคุณ, พวกเขาใช้แบตเตอรี่นานแค่ไหน, และวิธีการใช้งานของคุณดีแค่ไหน.
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
คลาส B
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
คลาส C
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
คุณสมบัติ | คลาสเอ | คลาส B | คลาส C |
---|---|---|---|
อัปลิงค์ | 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, industrial 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.