File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,42 @@ B ルート対応 Wi-SUN デバイスにシリアル通信で接続し、消費
15
15
16
16
※ 本アプリケーションは、日本の電波法に準拠しているデバイスで、新たに免許等が必要ないものを接続して、利用する事を想定しています。
17
17
18
+ ### Installation (Ubuntu)
19
+
20
+ #### Deploy binary
21
+
22
+ armv7 用のバイナリを使う場合は次のようになります。
23
+
24
+ ``` sh
25
+ sudo cp ./hems_linux_armv7 /usr/local/bin/
26
+ ```
27
+
28
+ #### Deploy service and udev rule
29
+
30
+ ` hems.service ` で設定されている以下の項目は適切な値に変更してください。
31
+
32
+ ```
33
+ Environment=HEMS_ROUTEB_ID=xxx
34
+ Environment=HEMS_PASSWORD=xxx
35
+ Environment=HEMS_DEVICE=/dev/udg-1-wsne
36
+ ExecStart=/usr/local/bin/hems_linux_armv7
37
+ ```
38
+
39
+ ``` sh
40
+ sudo cp ./example/etc/systemd/system/hems.service /etc/systemd/system/hems.service
41
+ sudo systemctl daemon-reload
42
+ ```
43
+
44
+ ` UDG-1-WSNE ` 以外を使う場合は ` 99-hems.rules ` を修正する必要があります。
45
+
46
+ ``` sh
47
+ sudo cp ./example/etc/udev/rules.d/99-hems.rules /etc/udev/rules.d/99-hems.rules
48
+ sudo udevadm control --reload
49
+ ```
50
+
51
+ USB ドングルを接続すると自動的に hems service が起動します。
52
+ USB ドングルを外すと自動的に停止します。
53
+
18
54
## Build
19
55
20
56
### Raspberry Pi 4
You can’t perform that action at this time.
0 commit comments