← AppsSmart Irrigation
SMART FARM · CONTROL · SIMULATOR
Smart Irrigation
Simulator
ทดลอง controller cycle ของระบบให้น้ำหลายโซนจาก Measurement → Decision → Command Owner → Runtime → Feedback → Event เพื่อดูว่าเหตุใดระบบจึง Start, Continue, Block หรือเข้า Fault
DETERMINISTIC MODEL — NOT LIVE CONTROLSimulator นี้ไม่สั่ง Pump หรือ Valve จริง
ใช้ domain core เดียวกับ Smart Irrigation Project เพื่อทดสอบ policy และ failure behavior เท่านั้น Protection ทางไฟฟ้า, motor protection, dry-run protection และ physical interlock ต้องอยู่ในระบบจริงแยกต่างหาก
02 / CONTROLLER CYCLE
System state
03 / ZONES
Decision และ runtime ต่อ Zone
Decision เกิดทุก Zone แต่มีเพียง owner ที่ได้ใช้ shared Pump ใน cycle นั้น
| Zone | Request | Soil | Decision | Reason | Owner | Runtime | Fault |
|---|---|---|---|---|---|---|---|
| zone-a | soil-policy · evaluate | 26.0% | start | automatic-start-threshold | OWNER | watering · start-watering | — |
| zone-b | soil-policy · evaluate | 28.0% | start | automatic-start-threshold | QUEUED | idle · idle-no-request | — |
04 / EVENT TIMELINE
เหตุผลที่ตรวจย้อนหลังได้
Event contract เก็บ decision, feedback, state transition และ command-owner change ต่อเนื่องทุก tick โดยใช้ machine-readable code
{"action":"start","requestSource":"soil-policy","requestIntent":"evaluate","requestedAt":"2026-10-15T13:55:00Z","soilFreshness":"fresh"}{"from":"idle","to":"watering","commandActive":true}{"action":"start","requestSource":"soil-policy","requestIntent":"evaluate","requestedAt":"2026-10-15T13:56:00Z","soilFreshness":"fresh"}{"previousOwner":null,"nextOwner":"zone-a"}05 / SESSION HISTORY
State progression หลาย tick
History สรุป owner, feedback และ runtime state ต่อ cycle เพื่อเทียบกับ event timeline และใช้ replay/regression ภายหลัง
| Tick | Time | Owner before | Owner after | Feedback | Tank | Zone states |
|---|---|---|---|---|---|---|
| 1 | 14:00:00 | none | zone-a | unexpected-flow | available | zone-a:watering · zone-b:idle |