Difference between revisions of "EnOcean Link Solution"
(.) |
(.) |
||
Line 395: | Line 395: | ||
[http://ess-wiki.advantech.com.tw/wiki/images/d/d9/Advantech_EnOcean_light_tower_2018.03.18.pdf http://ess-wiki.advantech.com.tw/wiki/images/d/d9/Advantech_EnOcean_light_tower_2018.03.18.pdf] | [http://ess-wiki.advantech.com.tw/wiki/images/d/d9/Advantech_EnOcean_light_tower_2018.03.18.pdf http://ess-wiki.advantech.com.tw/wiki/images/d/d9/Advantech_EnOcean_light_tower_2018.03.18.pdf] | ||
− | |||
− | |||
− | + | = How to = | |
+ | |||
+ | == Software Requirements == | ||
+ | |||
+ | *USB receiver driver | ||
+ | *MQTT broker | ||
+ | *WISE-Agent | ||
+ | *API-GW | ||
+ | |||
+ | == Software Installation for Windows 10 == | ||
+ | |||
+ | Install Steps | ||
+ | |||
+ | #Install USB receiver driver | ||
+ | #Install MQTT Broker | ||
+ | #Install API-GW | ||
+ | #Install EoLinkManager , edit config, then restart service. | ||
+ | #Install WISE-Agent | ||
+ | |||
+ | Uninstall Steps | ||
+ | |||
+ | *Select the Start button, then select Settings > Apps. Choose the program you want to remove, and then select Uninstall. | ||
+ | |||
+ | #WISE-Agent | ||
+ | #EoLinkManager | ||
+ | #API-GW | ||
+ | #MQTT Broker | ||
+ | |||
+ | == Configuration == | ||
+ | |||
+ | In Windows 10 | ||
+ | |||
+ | *You can edit C:\Program Files (x86)\Advantech\EoLinkManager\EoLinkManager.ini to change setting. | ||
+ | *Notice: Once config is changed, please using Windows Services Manager to restart EoLinkManager service or reboot gateway in order to apply new setting. | ||
+ | |||
+ | {| border="1" cellspacing="1" cellpadding="1" style="width:500px;" | ||
+ | |- | ||
+ | | | ||
+ | [Platform]<br/>InterfaceName=EoLinkReceiver<br/>ServerURL=127.0.0.1<br/>ModuleName=EoLinkManager<br/>SensorName=LightSensor<br/>SerialPort=COM3<br/>ServerPort=1883<br/>Interval=1<br/>#Interval: The time delay between data access round in second. | ||
+ | |||
+ | [Sensors]<br/>NumberOfSensors=2<br/>Sensor0=04016943<br/>Sensor1=0400E889 | ||
+ | |||
+ | |} | ||
+ | |||
+ | == Service control == | ||
+ | |||
+ | '''In Windows''' | ||
+ | |||
+ | Check if EoLinkManager service is running: | ||
+ | |||
+ | *Use Service to check status of EoLinkManager service | ||
+ | |||
+ | Restart EoLinkManager service: | ||
+ | |||
+ | *Use Service to restart EoLinkManager service | ||
+ | |||
+ | Start EoLinkManager service: | ||
+ | |||
+ | *Use Service start EoLinkManager service | ||
+ | |||
+ | Stop EoLinkManager service: | ||
+ | |||
+ | *Use Service stop EoLinkManager service | ||
+ | |||
+ | |||
+ | |||
+ | = Grafana Dashboard = | ||
+ | |||
+ | 1. Sign in WISE-PaaS Dashboard using your User ID and Password: | ||
[[File:Tower Light 03-1.png|640x480px|Tower Light 03-1.png]] | [[File:Tower Light 03-1.png|640x480px|Tower Light 03-1.png]] | ||
Line 486: | Line 552: | ||
[[File:Tower Light 09.png|640x360px|Tower Light 09.png]] | [[File:Tower Light 09.png|640x360px|Tower Light 09.png]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 10:36, 3 May 2019
Contents
- 1 System Architecture:
- 2 EnOcean Sensor and Light Tower (chip & demo kit vendor: ROHM)
- 3 Sensor Communication Protocol:
- 4 Tower Light Data Format:
- 5 EnOcean Sample Program:
- 6 Data type and Data Format:
- 7 Data Capability in JSON:
- 8 Data Upload Format in JSON:
- 9 Protocol Specification:
- 10 How to
- 11 Grafana Dashboard
- 12 Release
System Architecture:
EnOcean Sensor and Light Tower (chip & demo kit vendor: ROHM)
Sensor Communication Protocol:
Lighting Condition Data Format:
First 4 bits = pervious status
Last 4 bits = current status
Lighting Condition Value Definition:
0x0 Light off
0x1 Fast blink (0.5s per blink)
0x2 Blinking medium speed (1s per blink)
0x3 Slow flashing (2s per blink)
0x4 Light on
Tower Light Data Format:
EnOcean Sample Program:
Data type and Data Format:
Agent ID (Sensor ID): String
Sensor Data: Unsigned Integer number
Data Capability in JSON:
{ "susiCommData":{ "infoSpec":{ "SenHub":{ "SenData":{ "e":[ { "n":"Header", "u":"", "v":0, "min":0, "max":255, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"ExtendedTelegramType", "u":"", "v":0, "min":0, "max":255, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"OriginatorID", "u":"", "sv":"", "min":0, "max":0, "asm":"r", "type":"s", "rt":"", "st":"ipso", "exten":"" }, { "n":"FwVersion", "u":"", "v":0, "min":0, "max":255, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"PacketType", "u":"", "v":0, "min":0, "max":15, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"ActionMode", "u":"", "v":0, "min":0, "max":15, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"PacketIndex", "u":"", "v":0, "min":0, "max":255, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"TxType", "u":"", "v":0, "min":0, "max":15, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"BatteryVoltage", "u":"", "v":0, "min":0, "max":15, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"Light1", "u":"State", "v":0, "min":0, "max":4, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"Light2", "u":"State", "v":0, "min":0, "max":4, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"Light3", "u":"State", "v":0, "min":0, "max":4, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"Light4", "u":"State", "v":0, "min":0, "max":4, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" }, { "n":"SignalStrength", "u":"dBm", "v":0, "min":0, "max":255, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" } ], "bn":"SenData" }, "Info":{ "e":[ { "n":"Name", "u":"", "sv":"LightSensor", "min":0, "max":0, "asm":"r", "type":"s", "rt":"", "st":"ipso", "exten":"" }, { "n":"sw", "u":"", "sv":"1.0.00", "min":0, "max":0, "asm":"r", "type":"s", "rt":"", "st":"ipso", "exten":"" } ], "bn":"Info" }, "Net":{ "e":[ { "n":"sw", "u":"", "sv":"2.0.0.0", "min":0, "max":0, "asm":"r", "type":"s", "rt":"", "st":"ipso", "exten":"" }, { "n":"Neighbor", "u":"", "sv":"", "min":0, "max":0, "asm":"r", "type":"s", "rt":"", "st":"ipso", "exten":"" }, { "n":"Health", "u":"", "v":100, "min":0, "max":0, "asm":"r", "type":"d", "rt":"", "st":"ipso", "exten":"" } ], "bn":"Net" }, "Action":{ "e":[ ], "bn":"Action" }, "ver":1 } }, "commCmd":2052, "requestID":2001, "agentID":"0017000004016943", "handlerName":"general", "sendTS":160081024 } }
Data Upload Format in JSON:
{ "susiCommData":{ "data":{ "SenHub":{ "SenData":{ "e":[ { "n":"Header", "v":47 }, { "n":"ExtendedTelegramType", "v":7 }, { "n":"OriginatorID", "sv":"000004016943" }, { "n":"FwVersion", "v":1 }, { "n":"PacketType", "v":0 }, { "n":"ActionMode", "v":0 }, { "n":"PacketIndex", "v":195 }, { "n":"TxType", "v":1 }, { "n":"BatteryVoltage", "v":15 }, { "n":"Light1", "v":0 }, { "n":"Light2", "v":0 }, { "n":"Light3", "v":0 }, { "n":"Light4", "v":0 }, { "n":"SignalStrength", "v":54 } ], "bn":"SenData" }, "ver":1 } }, "commCmd":2055, "requestID":2001, "agentID":"0017000004016943", "handlerName":"general", "sendTS":160081115 } }
Protocol Specification:
http://ess-wiki.advantech.com.tw/wiki/images/d/d9/Advantech_EnOcean_light_tower_2018.03.18.pdf
How to
Software Requirements
- USB receiver driver
- MQTT broker
- WISE-Agent
- API-GW
Software Installation for Windows 10
Install Steps
- Install USB receiver driver
- Install MQTT Broker
- Install API-GW
- Install EoLinkManager , edit config, then restart service.
- Install WISE-Agent
Uninstall Steps
- Select the Start button, then select Settings > Apps. Choose the program you want to remove, and then select Uninstall.
- WISE-Agent
- EoLinkManager
- API-GW
- MQTT Broker
Configuration
In Windows 10
- You can edit C:\Program Files (x86)\Advantech\EoLinkManager\EoLinkManager.ini to change setting.
- Notice: Once config is changed, please using Windows Services Manager to restart EoLinkManager service or reboot gateway in order to apply new setting.
[Platform] [Sensors] |
Service control
In Windows
Check if EoLinkManager service is running:
- Use Service to check status of EoLinkManager service
Restart EoLinkManager service:
- Use Service to restart EoLinkManager service
Start EoLinkManager service:
- Use Service start EoLinkManager service
Stop EoLinkManager service:
- Use Service stop EoLinkManager service
Grafana Dashboard
1. Sign in WISE-PaaS Dashboard using your User ID and Password:
2. Drop down “Home” and select Tower Light Board.
Board name: Advantech EIoT DTOS Tower Light Monitoring
3. You will see the board is showed like this when all lights off:
4. You will see the board is showed like this when all lights on:
5. Drop down “Tower Light” and select “Edit” to edit the widget’s HTML:
6. Define Tower Light Sensor ID in the widget’s HTML:
7. RESTful API and HTML request content:
Dashboard HTML:
RESTful API:
https://portal-rmm.wise-paas.com/rmm/v1/grafana/simplejson/query
Example:
cache: false
url: 'https://portal-rmm.wise-paas.com/rmm/v1/grafana/simplejson/query'
type: "post",
contentType: 'application/json'
dataType: 'json'
data: '{"timezone":"browser","panelId":2,"range":{"from":"2018-04-09T05:46:51.357Z","to":"2018-04-09T09:46:51.357Z","raw":{"from":"now-6h","to":"now"}},"rangeRaw":{"from":"now-6h","to":"now"},"interval":"20s","intervalMs":20000,"targets":[{"target":"00000001-0000-0000-0017-000004016940|SenHub|/SenData/Light1","device":"00000001-0000-0000-0017-000004016940","plugin":"SenHub","sensor":"/SenData/Light1","refId":"A","type":"table"}],"maxDataPoints":960,"scopedVars":{"__interval":{"text":"20s","value":"20s"},"__interval_ms":{"text":20000,"value":20000}}}'
xhrFields: {withCredentials: true}
8. Lights blinking status for the Tower Light:
Release
Index | Version | Date |
Platform |
OS |
Release Note |
Download Link |
1 | 1.0.2 | 2018// | x86_64 CPU |
Windows 10 |
USB receiver driver: Grafana dashboard: Above files are available at local server, please paste file's url in File Explorer to copy file. | |
2 | 1.0.3 | 2019/05/3 | x86_64 CPU | Windows 10 |
|
USB receiver driver: Grafana dashboard: Above files are available at local server, please paste file's url in File Explorer to copy file. |
3 |
| |||||
4 | |
|