Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev v0.6.2 #175

Merged
merged 35 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5a5074f
fix: fix debug lib error
wwhai Aug 14, 2023
0578d56
dev: add RMD_ISTMP10 Device rule demo
wwhai Aug 14, 2023
9640b62
dev: add a device app demo
wwhai Aug 14, 2023
e8467ff
dev: remove opencv import
wwhai Aug 14, 2023
9019b5f
dev: ubuntu network config support
wwhai Aug 15, 2023
ceaf2cc
dev: design system interface config
wwhai Aug 16, 2023
99c45bb
dev: update system network config
wwhai Aug 17, 2023
cb168e5
dev: update wifi config
wwhai Aug 18, 2023
33853ef
dev: update wifi support
wwhai Aug 18, 2023
f3d387a
dev: support set volume and time
wwhai Aug 18, 2023
1eb3e63
dev: update
wwhai Aug 18, 2023
29b2ae8
dev: support ubuntu16.04 config WIFI
wwhai Aug 18, 2023
acbfac9
fix: fix get wifi config API
wwhai Aug 19, 2023
c25639a
fix: fix wrong spell
wwhai Aug 19, 2023
947a15a
dev: multi os API select support
wwhai Aug 19, 2023
2547f3b
dev: add some AGPL license to header
wwhai Aug 19, 2023
c84830a
dev: add h3 test script
wwhai Aug 19, 2023
3287984
dev: remove ithings support
wwhai Aug 19, 2023
31606e4
dev: add s805 rgb demo
wwhai Aug 19, 2023
a45424b
fix: fix file write failed
wwhai Aug 20, 2023
bd5b94a
dev: add bacnet document
wwhai Aug 20, 2023
4b86a34
fix: fix opcua
wwhai Aug 20, 2023
b281a98
fix: fix bacnet log info
wwhai Aug 20, 2023
6dc4965
fix: fix bacnet device cancel context
wwhai Aug 21, 2023
02819d9
doc: add doc
wwhai Aug 21, 2023
2de29d9
demo: add IEC103 device parse demo
wwhai Aug 21, 2023
3afc7cc
dev: bump bacnet version to v0.2.1
wwhai Aug 21, 2023
05740eb
Merge branch 'master' of https://github.com/hootrhino/rulex into dev-…
wwhai Aug 21, 2023
74dde40
dev: add apply network config
wwhai Aug 22, 2023
b82ab85
dev: change to short uuid
wwhai Aug 22, 2023
24e2437
fix: fix point empty error
wwhai Aug 22, 2023
08b095e
doc: add plugin develop guide document
wwhai Aug 22, 2023
cc8eb27
doc: add excel modbus sheet import support
wwhai Aug 22, 2023
d05db58
doc: update modbus excel document
wwhai Aug 22, 2023
d79687b
doc: update document
wwhai Aug 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions aibase/aibase_runtime.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package aibase

import (
Expand Down
15 changes: 15 additions & 0 deletions aibase/ann_base.go
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package aibase
15 changes: 15 additions & 0 deletions aibase/body_pose_recognition.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package aibase

import (
Expand Down
15 changes: 15 additions & 0 deletions aibase/common_utils.go
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package aibase
17 changes: 16 additions & 1 deletion aibase/rnn_base.go
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
package aibase
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package aibase
15 changes: 15 additions & 0 deletions aibase/typex.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package aibase

/*
Expand Down
15 changes: 15 additions & 0 deletions appstack/appstack_runtime.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package appstack

import (
Expand Down
25 changes: 19 additions & 6 deletions appstack/lua_runtime.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package appstack

import (
Expand Down Expand Up @@ -84,9 +99,7 @@ func LoadAppLib(app *typex.Application, e typex.RuleX) {
// 消息转发
addAppLib(app, e, "applib", "DataToHttp", rulexlib.DataToHttp(e))
addAppLib(app, e, "applib", "DataToMqtt", rulexlib.DataToMqtt(e))
// DataToIthings 专门为Ithings支持的
// vendor: 三方支持命名空间
addAppLib(app, e, "vendor", "DataToIthings", rulexlib.DataToMqtt(e))

addAppLib(app, e, "applib", "DataToUdp", rulexlib.DataToUdp(e))
// JQ
addAppLib(app, e, "applib", "JqSelect", rulexlib.JqSelect(e))
Expand Down Expand Up @@ -173,9 +186,9 @@ func LoadAppLib(app *typex.Application, e typex.RuleX) {
//------------------------------------------------------------------------
// 注册GPIO操作函数到LUA运行时
//------------------------------------------------------------------------
// EEKIT
addAppLib(app, e, "eekit", "GPIOGet", rulexlib.EEKIT_GPIOGet(e))
addAppLib(app, e, "eekit", "GPIOSet", rulexlib.EEKIT_GPIOSet(e))
// EEKIT H3
addAppLib(app, e, "eekith3", "GPIOGet", rulexlib.EEKIT_GPIOGet(e))
addAppLib(app, e, "eekith3", "GPIOSet", rulexlib.EEKIT_GPIOSet(e))
// 树莓派4B
addAppLib(app, e, "raspi4b", "GPIOGet", rulexlib.RASPI4_GPIOGet(e))
addAppLib(app, e, "raspi4b", "GPIOSet", rulexlib.RASPI4_GPIOSet(e))
Expand Down
2 changes: 1 addition & 1 deletion appstack/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ AppDESCRIPTION = "A demo app"
-- 必须包含 APPMain(arg) 函数作为 app 启动点
function Main(arg)
while true do
local value, err = eekit:GPIOGet(6)
local value, err = eekith3:GPIOGet(6)
if err ~= nil
then
print(err)
Expand Down
2 changes: 1 addition & 1 deletion bspsupport/eekit_adda_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

//-----------------------------------------------
// 这是E-EKIT网关的DI-DO支持库
// 这是EEKIT网关的DI-DO支持库
//-----------------------------------------------
/*
pins map
Expand Down
24 changes: 14 additions & 10 deletions bspsupport/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ ARCHSUPPORT=EEKITH3 rulex run

## 支持硬件列表

| 硬件名 | 环境参数 | 示例 |
| --------------- | -------- | ------------------------------- |
| EEKITH3版本网关 | EEKITH3 | `ARCHSUPPORT=EEKITH3 rulex run` |
| 树莓派4B、4B+ | RPI4 | `ARCHSUPPORT=RPI4B rulex run` |
| 玩客云S805 | WKYS805 | `ARCHSUPPORT=WKYS805 rulex run` |
| 硬件名 | 环境参数 | 示例 |
| ------------------ | --------- | --------------------------------- |
| EEKIT H3版本网关 | EEKITH3 | `ARCHSUPPORT=EEKITH3 rulex run` |
| EEKIT T507版本网关 | EEKITT507 | `ARCHSUPPORT=EEKITT507 rulex run` |
| EEKIT T113版本网关 | EEKITT113 | `ARCHSUPPORT=EEKITT113 rulex run` |
| 树莓派4B、4B+ | RPI4 | `ARCHSUPPORT=RPI4B rulex run` |
| 玩客云S805 | WKYS805 | `ARCHSUPPORT=WKYS805 rulex run` |

> 警告: 这些属于板级高级功能,和硬件架构以及外设有关,默认关闭。 如果你自己需要定制,最好针对自己的硬件进行跨平台适配, 如果没有指定平台,可能会导致预料之外的结果。

Expand All @@ -37,7 +39,7 @@ ARCHSUPPORT=EEKITH3 rulex run
1. GPIO 设置

```lua
eekit:GPIOSet(Pin, Value)
eekith3:GPIOSet(Pin, Value)
```
参数表

Expand All @@ -48,7 +50,7 @@ ARCHSUPPORT=EEKITH3 rulex run
2. GPIO 获取

```lua
eekit:GPIOGet(Pin)
eekith3:GPIOGet(Pin)
```
| 参数名 | 类型 | 说明 |
| ------ | ---- | -------- |
Expand All @@ -67,13 +69,15 @@ function Main(arg)
end

```
2. EEKIT 网关
>必须使用这个系统:Linux aml-s812 5.9.0-rc7-aml-s812 #20.12 SMP Sun Dec 13 22:50:05 CST 2020 armv7l GNU/Linux, Armbian 20.12 Buster \l

1. EEKIT 网关
```lua
function Main(arg)
while true do
eekit:GPIOSet(6, 1)
eekith3:GPIOSet(6, 1)
applib:Sleep(2000)
eekit:GPIOSet(7, 0)
eekith3:GPIOSet(7, 0)
applib:Sleep(2000)
end
end
Expand Down
12 changes: 0 additions & 12 deletions common/source_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ type GenericIoTHUBMqttConfig struct {
Username string `json:"username" validate:"required" title:"连接账户"`
Password string `json:"password" validate:"required" title:"连接密码"`
}
type IThingsMqttConfig struct {
Mode string `json:"mode" validate:"required" title:"模式:GW(网关)|DC(直连)"`
ProductId string `json:"productId" validate:"required" title:"产品名"`
DeviceName string `json:"deviceName" validate:"required" title:"设备名"`
//
Host string `json:"host" validate:"required" title:"服务地址"`
Port int `json:"port" validate:"required" title:"服务端口"`
//
ClientId string `json:"clientId" validate:"required" title:"客户端ID"`
Username string `json:"username" validate:"required" title:"连接账户"`
Password string `json:"password" validate:"required" title:"连接密码"`
}

/*
*
Expand Down
15 changes: 15 additions & 0 deletions core/cfg.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package core

import (
Expand Down
15 changes: 15 additions & 0 deletions core/device_namager.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package core

import "github.com/hootrhino/rulex/typex"
Expand Down
15 changes: 15 additions & 0 deletions core/lua_validator.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package core

import (
Expand Down
15 changes: 15 additions & 0 deletions core/resource_manager.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package core

import "github.com/hootrhino/rulex/typex"
Expand Down
15 changes: 15 additions & 0 deletions core/store.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package core

import (
Expand Down
15 changes: 15 additions & 0 deletions core/target_manager.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2023 wwhai
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package core

import "github.com/hootrhino/rulex/typex"
Expand Down
Loading
Loading