-------------------------------------------------------------------------------- CyBroMiniScada (c) 2011-2019 Cybrotech Ltd. -------------------------------------------------------------------------------- CyBroMiniScada is visualization system for Cybro controllers. It can be used for industry, solar plants, building management, home automation, or any other application where Cybro controllers are used. Both Cybro-2 and Cybro-3 are supported. Function and appearance are defined by xml configuration file, and external images. Configuration (config.xml) is a standard text file in xml format. Images are standard graphic files in png or jpg format. Png transparency is fully suported. Both local (phone---cybro) and internet (phone---server---cybro) connection is supported. Local connection is always available. Internet connection is based on a secure server which is not available for public access. To check the commercial options, please contact your sales agent. When app is installed, default configuration is automatically activated. To check other examples, follow instructions on Play store. Each configuration can also be downloaded to PC, to learn how the given function is realized. To control your local Cybro controller, simple demo application is available. To start demo, follow the instructions: CyPro - set alias address to 1000 - send empty program Mini Scada for Android - read from "www.cybrotech.com" configuration "landemo" - set Home Network to "Any SSID" To edit configuration file with your phone, install some text editor and open: /Android/data/com.cybrotech.miniscada/landemo/config.xml For a more advanced development, the recommended toolchain is: - use PC to create xml and graphic files - use Mini Scada for Windows to position objects - rename CyBroMiniScada.xml to config.xml, modify for Android - copy configuration to your phone To distribute your configuration, zip all files (without directory), and upload to your server download directory. Here is an example: - configuration: solar.zip - server address: www.solar-cybro.com - file location on server: /home/users/cybrotech/data/solar.zip - download URL for browser: http://www.solar-cybro.com/data/solar.zip - download with mini scada: www.solar-cybro.com, solar Note that configuration name is entered without ".zip" extension. Pages -------------------------------------------------------------------------------- Page is a basic unit of organization. It can be rendered in canvas or list mode. Canvas mode: graphical screen, position of each object is specified by x and y coordinates. Canvas is always displayed full screen. It may keep aspect ratio (keep), or stretch in both directions (fill). Icon and description tags are not displayed. List mode: scrollable list of objects. Icon is displayed to the left, then name and description, and value to the right. If description tag is not specified, variable description from plc program is used. www.solar.com guest guest canvas 1280 720 keep #000000 help.txt Page ... ... ... Page ... ... ... Page rendering, size and background can be defined on root level or page level. Page level has precedence. Page to page transition is performed by sliding left-right, or using menu system based on "page" action. Both methods are available in list and canvas mode. Objects -------------------------------------------------------------------------------- Each object may have a name and description. Total power reactive Roboto 42 0 0 center middle #7F7F7F #000000 In canvas mode, name is aligned to the body: over o---------------------------------- | top | | | left|inner-l center/middle inner-r|right | | | bottom | ----------------------------------- below In list mode, each object may also have an icon, aligned to the left: power.png 100 List of available objects -------------------------------------------------------------------------------- Bitmap - display a static bitmap (canvas mode only). bitmap background.png Coordinates are defined in canvas pixels, relative to top left. Bitlist - display one of specified bitmaps, depending on variable value. bitlist kitchen c1000.output lightbulb off.png lightbulb on.png bitlist HVAC mode c1000.hvac_mode 0 1 2 hvac_off.png hvac_heating.png hvac_cooling.png Button - display button used to trigger an action. button Reset all button red 32x96.png Text - display static text, dynamic text and decimal numbers. text Temp: c1000.temperature 4 1 1 \n Hvac: c1000.hvac_mode 0 1 2 Off Heating Cooling Bargraph - display bargraph and value. Minimum and maximum are related to actual variable content, not displayed value. bargraph Power usage vertical 0 c1000.output_power 0 2500 #00FF00 #1F1F1F 50 400 Spacer - static spacer between groups (list mode only). spacer Heating & cooling Events and actions -------------------------------------------------------------------------------- Default function of an object is to display a value. With events and actions, object can also change variables, or execute an additional task. Each object may contain multiple events, each event may contain multiple actions. Available events: 25 25 Available actions: Write - write a single value write c1000.write_req 1 Toggle - toggle between specified values toggle c1000.mode toggle c1000.mode 0 1 2 Increment - increment/decrement by a specified value increment c1000.setpoint 100 300 5 Combo - popup dialog, list of specified options combo c1000.mode 0 1 2 off heating cooling Incdec - popup dialog, +/- buttons to change value incdec c1000.setpoint 100 300 5 1 0 Slider - popup dialog, linear slider to change value slider c1000.setpoint 100 300 5 1 0 Knob - popup dialog, rotational slider to change value knob c1000.setpoint 100 300 5 1 0 Decimal - popup dialog, numeric keypad to enter value decimal c1000.setpoint 100 300 1 Tag has fthe following function: 0: dialog has "Ok"/"Cancel" buttons, value is written when Ok is pressed 1: dialog has "Close" button, value is written immediately with each change Page - jump to a page referenced by page name page heating Link - open a specified URL link http://192.168.1.117/camera_stream.mp4 Link can specify an IP camera stream, or an web application of choice. It can also be used to directly trigger an action within a web application. Command - start a specified app command com.android.calculator2 App is specified by package name and optional activity name. To get the name, open Android settings, apps, running, and check for process name. Another method is to open Play store, navigate to application, then check id within URL. When activity is empty, default is executed. List of available activities can be obtained from internet activity dbase, by a specialized application, or directly from the develper. Windows/Android differences -------------------------------------------------------------------------------- Android version supports, Windows not - connection over internet - automatic switching LAN/WAN - list rendering mode - spacer object - support for jpg images - page background color - link action - custom help file Windows version supports, Android not - fullscreen, setresolution, closetotray, showhints - imagedir (separate directory for image files) - direct (ethernet connection using limited broadcast) - timeout, retrycount (communication parameters) - verbose (error log file) - bitevent (event executed when variable is changed) - pageindex (current page indicator) - editenable, gridsize (page editor, ctrl E) - style definitions - template definitions - password-protected page - led object - slider object - gauge object - bittable object - timeplot object - alarmtable object - thermostat object - fan-coil object - weather object - webbox object - statustale object - template object - text object tag - keypad action - blankscreen action - editmode action - exit action