No description, website, or topics provided.
Processing
Switch branches/tags
Nothing to show
Clone or download

README.md

Japanese README

MoekadenRoom - An ECHONET Lite Emulator

It contains 6 kinds of home equipments: air conditioner, lighting, electric blinds, electronic lock, thermometer, smart meter. It is made with Processing.

Download executables

Please download the desired version from the links below. Java runtime is necessary except Win32 ver. To execute in Processing IDE, you need two libraries: OpenECHO for Processing and ControlP5. Put those in the libraries folder. For the Linux version, set runnable permission to the file named MoekadenRoom.

  • I could not export for Mac. Please execute in Processing IDE.
  • The license of the source code is MIT.
  • Do not use the image resources for other purposes.
  • OpenECHO is also MIT. ControlP5 is LGPL.

Usage

  • This application accepts two kinds of input. 1. from ECHONET Lite protocol, 2. User's mouse input through GUI.
  • According to the ECHONET Lite spec, temperature sensor value should not be changed by external input, but for convenience, we made it possible by moving the slider located right of the thermometer.
  • If you can not see the device objects through ECHONET Lite, antivirus software or the firewall may be blocking the packets. ECHONET Lite uses UDP 3610 port.
  • Do not boot more than one emulators on one PC.

Implemented objects/ important properties

Object name (EOJ) Property (EPC) Values(EDT)
(Boldface is the initial value)
Home Air Conditioner
0x0130
Power
0x80
[0x31]:Off
[0x30]:On
Operating mode
0xb0
[0x41]:Auto
[0x42]:Cool
[0x43]:Heat
[0x44]:Dry
[0x45]:Wind
Temperature setting
0xb3
[20](=20 degree)
Lighting
0x0290
Power
0x80
[0x31]:Off
[0x30]:On
Electric blind
0x0260
Open/Close
0xe0
[0x41]:Open
[0x42]:Close
Electronic lock
0x026F
State
0xe0
[0x41]:Locked
[0x42]:Unlocked
Thermometer
0x0011
Temperature
0xe0
Signed temperature in Celsius as big endian 2bytes (Unit=0.1C)
[0,220] (= 22.0C)
Smart meter
0x0288
Number of effective digits
0xd7
1~8:[8]
Don't trust the emulator value ^^;
Cumulative electric energykWh
0xe0
Currently return the latest value of 30 minute interval sample
Unit of integrated electric energy
0xe1
0x0~0x0D.
[0x02]:0.01kWh
Integrated power history (forward direction)
0xe2
1st and 2nd byte: Collection date 0x0000 to 0x0063 (0 to 99) 3 rd bytes or later: Integrated electric energy measurement value (48 samples in 4 bytes.Big Endian. 0xFFFFFFFE is returned where there is no data)
Accumulation history collection date
0xe5
0:Today 1~99:Past days
[0]:Today
Instantaneous power measurement value
0xe7
Unit = Watt. 4 bytes
Random
Instantaneous current measurement value
0xea
Unit=0.1A.2 bytes for R phase, T phase each
[Instantaneous power measurement value/100]
  • The smart meter will generate and return random values for instantaneous power and history. When turning on / off the air conditioner or lighting it rises about 300W, 100W respectively. However, no matter how you modify the instantaneous value, historical data will be completely randomly added. If you want to set a specific value, call getInstantaneousEnergy () or getCumlativeEnergy () at the end of the SoftElectricEnergyMeter class.

Contributors

Shigeru Owada
Fumiaki Tokuhisa
Issekiamp san
ikesato san

Updates

2017/9/20 ControlP5はWindowsやLinuxで動かした際にもOutdatedだったので、いっそのことmisc/RequiredLibs.zipに入れました。Mac版の特別な説明を削除しました。
2017/9/6 zipの中身が古かったのでexportし直しました。あと_f_Back/も全zipに追加しました。Mac向け解説をREADMEに追加しました。@ikesatoさんありがとうございます!
2016/12/5 スマートメーターの実装をちょっとだけよくしたのと瞬時値・履歴データを画面に表示するようにしました。
2016/12/2 Processing3に対応しました。一石アンプさんありがとうございます!
2015/12/25 適当ですがスマートメーターオブジェクトを加えました。