Skip to content

Commit 3ff0900

Browse files
Release 1.0.0 (#1)
# Release 1.0.0 - Initial version
1 parent f73f407 commit 3ff0900

966 files changed

Lines changed: 234699 additions & 24 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
## Release 0.1.0
5-
- Initial commit
6-
7-
### New features
8-
- ...
9-
10-
### Improvements
11-
- ...
12-
13-
### Bugfix
14-
- ...
4+
## Release 1.0.0
5+
- Initial commit

CSK_1stModule_Logger

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
subtrees/CSK_1stModule_Logger/CSK_1stModule_Logger
Binary file not shown.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<manifest>
3+
<application name="CSK_Application_FlowConfig">
4+
<crown name="CSK_Application_FlowConfig">
5+
<desc>CSK application to provide the FlowConfig feature of CSK modules. +
6+
Check the UI of this CSK application to configure the system. +
7+
{empty} +
8+
Concerning required CSK modules to run this application, please refer to the README within GIT.</desc>
9+
<serves>
10+
<event name="OnNewStatusCSKStyle">
11+
<desc>Notify UI style to use for CSK modules.</desc>
12+
<param desc="UI style" multiplicity="1" name="theme" type="string"/>
13+
</event>
14+
<event name="OnNewStatusWelcomeAppAvailable">
15+
<desc>Notfiy if SICK_WelcomeApp is available on device.</desc>
16+
<param desc="Status" multiplicity="1" name="status" type="bool"/>
17+
</event>
18+
<event name="OnNewStatusModuleVersion">
19+
<desc>Notify version of module.</desc>
20+
<param desc="Version" multiplicity="1" name="version" type="string"/>
21+
</event>
22+
<function name="pageCalled">
23+
<desc>Function to register "OnResume" of the module UI (only as helper function).</desc>
24+
<return desc="Empty string (only needed to simplify binding)." multiplicity="1" name="empty" type="string"/>
25+
</function>
26+
</serves>
27+
</crown>
28+
<meta key="author">SICK AG</meta>
29+
<meta key="version">1.0.0</meta>
30+
<meta key="priority">low</meta>
31+
<meta key="copy-protected">false</meta>
32+
<meta key="read-protected">false</meta>
33+
<meta key="crown2-flow-engine">false</meta>
34+
<meta key="LuaLoadAllEngineAPI">true</meta>
35+
<entry default="CSK_Application_FlowConfig.lua" path="scripts"/>
36+
</application>
37+
</manifest>
Binary file not shown.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
--MIT License
2+
--
3+
--Copyright (c) 2023 SICK AG
4+
--
5+
--Permission is hereby granted, free of charge, to any person obtaining a copy
6+
--of this software and associated documentation files (the "Software"), to deal
7+
--in the Software without restriction, including without limitation the rights
8+
--to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
--copies of the Software, and to permit persons to whom the Software is
10+
--furnished to do so, subject to the following conditions:
11+
--
12+
--The above copyright notice and this permission notice shall be included in all
13+
--copies or substantial portions of the Software.
14+
--
15+
--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
--IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
--FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
--AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
--LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
--OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
--SOFTWARE.
22+
23+
--**************************************************************************
24+
--**********************Start Global Scope *********************************
25+
--**************************************************************************
26+
local welcomeAppAvailable = SICK_WelcomeApp ~= nil or false -- Check if WelcomeApp runs on the device
27+
28+
-- ************************ UI Events Start ********************************
29+
Script.serveEvent('CSK_Application_FlowConfig.OnNewStatusWelcomeAppAvailable', 'FlowConfigApp_OnNewStatusWelcomeAppAvailable')
30+
Script.serveEvent('CSK_Application_FlowConfig.OnNewStatusCSKStyle', 'FlowConfigApp_OnNewStatusCSKStyle')
31+
Script.serveEvent('CSK_Application_FlowConfig.OnNewStatusModuleVersion', 'FlowConfigApp_OnNewStatusModuleVersion')
32+
-- ************************ UI Events End **********************************
33+
34+
local styleForUI = 'None' -- Optional parameter to set UI style
35+
local moduleVersion = Engine.getCurrentAppVersion() -- Version of module
36+
37+
local tmr = Timer.create()
38+
tmr:setExpirationTime(100)
39+
tmr:setPeriodic(false)
40+
41+
--**************************************************************************
42+
--********************** End Global Scope **********************************
43+
--**************************************************************************
44+
--**********************Start Function Scope *******************************
45+
--**************************************************************************
46+
47+
local function handleOnExpired()
48+
Script.notifyEvent("FlowConfigApp_OnNewStatusCSKStyle", styleForUI)
49+
Script.notifyEvent("FlowConfigApp_OnNewStatusWelcomeAppAvailable", welcomeAppAvailable)
50+
Script.notifyEvent("FlowConfigApp_OnNewStatusModuleVersion", 'v' .. moduleVersion)
51+
end
52+
Timer.register(tmr, 'OnExpired', handleOnExpired)
53+
54+
--- Function to react on UI style change
55+
local function handleOnStyleChanged(theme)
56+
styleForUI = theme
57+
Script.notifyEvent("FlowConfigApp_OnNewStatusCSKStyle", styleForUI)
58+
end
59+
Script.register('CSK_PersistentData.OnNewStatusCSKStyle', handleOnStyleChanged)
60+
61+
local function pageCalled()
62+
tmr:start()
63+
return ''
64+
end
65+
Script.serveFunction("CSK_Application_FlowConfig.pageCalled", pageCalled)
66+
67+
local function main()
68+
if not welcomeAppAvailable then
69+
local suc = File.copy('/resources/CSK_Application_FlowConfig/MainApp.bin', '/public/HomeScreen/MainApp.bin')
70+
if suc then
71+
CSK_SensorAppOverview.uploadImage(true)
72+
end
73+
CSK_SensorAppOverview.setMainAppName('CSK_Application_FlowConfig')
74+
75+
if CSK_PersistentData then
76+
CSK_PersistentData.setUIStyle('CSK_Style')
77+
end
78+
end
79+
end
80+
Script.register("Engine.OnStarted", main)
81+
82+
--**************************************************************************
83+
--**********************End Function Scope *********************************
84+
--**************************************************************************

CSK_Module_Commands

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
subtrees/CSK_Module_Commands/CSK_Module_Commands

CSK_Module_DateTime

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
subtrees/CSK_Module_DateTime/CSK_Module_DateTime

CSK_Module_DeviceNetworkConfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
subtrees/CSK_Module_DeviceNetworkConfig/CSK_Module_DeviceNetworkConfig

CSK_Module_DeviceScanner

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
subtrees/CSK_Module_DeviceScanner/CSK_Module_DeviceScanner

0 commit comments

Comments
 (0)