Export translations
Views
Special page
From OpenSCADAWiki
Jump to:
navigation
,
search
Settings
Group
About
Documents
Documents/API
Documents/DAQ
Documents/FAQ
Documents/How to
Documents/How to/Build from source
Documents/How to/Crash report
Documents/How to/Create module
Documents/How to/Create multi language project
Documents/How to/Cyclic programming
Documents/How to/Debug
Documents/How to/Install
Documents/How to/Live disk
Documents/How to/Release
Documents/How to/Transferring project configuration
Documents/How to/Violations, alarms and notifications
Documents/Program manual
Documents/Quick start
Documents/Release 0.8.0
Documents/Release 0.8.0/Update10
Documents/Release 0.8.0/Update11
Documents/Release 0.8.0/Update12
Documents/Release 0.8.0/Update13
Documents/Release 0.8.0/Update14
Documents/Release 0.8.0/Update15
Documents/Release 0.8.0/Update16
Documents/Release 0.8.0/Update17
Documents/Release 0.8.0/Update18
Documents/Release 0.8.0/Update19
Documents/Release 0.8.0/Update20
Documents/Release 0.8.0/Update3
Documents/Release 0.8.0/Update4
Documents/Release 0.8.0/Update5
Documents/Release 0.8.0/Update6
Documents/Release 0.8.0/Update7
Documents/Release 0.8.0/Update8
Documents/Release 0.8.0/Update9
Documents/Release 0.9
Documents/Release 0.9/Update 7
Documents/Release 0.9/Update1
Documents/Release 0.9/Update2
Documents/Release 0.9/Update3
Documents/Release 0.9/Update4
Documents/Release 0.9/Update5
Documents/Release 0.9/Update6
Documents/Release 0.9/Updating 0.8.0 LTS
Documents/Terms
Documents/User API
Functions and demands
Home
Libs
Libs/Devices
Libs/Documents
Libs/Electrical elements
Libs/Generic list
Libs/LowLevelDevices
Libs/Main
Libs/Main graphical elements
Libs/Mnemo elements
Libs/Prescriptions
Libs/Regulation elements
Libs/Service procedures
Libs/Technological apparatuses
Modules
Modules/BFN
Modules/BlockCalc
Modules/Comedi
Modules/DAQGate
Modules/DBArch
Modules/DBF
Modules/DBGate
Modules/DCON
Modules/DiamondBoards
Modules/FireBird
Modules/FLibComplex1
Modules/FLibMath
Modules/FLibSYS
Modules/FSArch
Modules/GPIO
Modules/HTTP
Modules/ICP DAS
Modules/JavaLikeCalc
Modules/LDAP
Modules/LogicLev
Modules/ModBus
Modules/MySQL
Modules/OPC UA
Modules/PostgreSQL
Modules/QTCfg
Modules/QTStarter
Modules/SelfSystem
Modules/Serial
Modules/Siemens
Modules/SMH2Gi
Modules/SNMP
Modules/Sockets
Modules/SoundCard
Modules/SQLite
Modules/SSL
Modules/System
Modules/SystemTests
Modules/UserProtocol
Modules/VCAEngine
Modules/Vision
Modules/WebCfg
Modules/WebCfgD
Modules/WebUser
Modules/WebVision
Sub-projects
Sub-projects/Automatic Builder of OpenSCADA
Sub-projects/Automation Linux distributive
Sub-projects/Embedding and PLC
Sub-projects/Server
Sub-projects/VCA
User:RomanSavochenko
Using
Using/HouseSpirit
Using/Kramatorsk Ball Mills
Using/Kramatorsk Water
Using/Model AGLKS
Using/Model Boiler
Using/OpenWrt TELEOFIS RTU968
Using/Yaroslavskij broiler
Works
Works/Road map
Works/Technical Support
Works/Technical Support/Agreement
Works/To do
Language
aa - Afar
ab - Abkhazian
ace - Achinese
ady - Adyghe
ady-cyrl - адыгабзэ
aeb - Tunisian Arabic
aeb-arab - تونسي
aeb-latn - Tûnsî
af - Afrikaans
ak - Akan
aln - Gheg Albanian
am - Amharic
an - Aragonese
ang - Old English
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - تۆرکجه
ba - Bashkir
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba
bcc - Southern Balochi
bcl - Bikol Central
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bg - Bulgarian
bgn - Western Balochi
bho - Bhojpuri
bi - Bislama
bjn - Banjar
bm - Bambara
bn - Bengali
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
bto - Iriga Bicolano
bug - Buginese
bxr - буряад
ca - Catalan
cbk-zam - Chavacano de Zamboanga
cdo - Min Dong Chinese
ce - Chechen
ceb - Cebuano
ch - Chamorro
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cr - Cree
crh - Crimean Turkish
crh-cyrl - Crimean Turkish (Cyrillic script)
crh-latn - Crimean Turkish (Latin script)
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - डोटेली
dv - Divehi
dz - Dzongkha
ee - Ewe
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
ff - Fulah
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gag - Gagauz
gan - Gan Chinese
gan-hans - Simplified Gan script
gan-hant - Traditional Gan script
gd - Scottish Gaelic
gl - Galician
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
got - Gothic
grc - Ancient Greek
gsw - Swiss German
gu - Gujarati
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
ht - Haitian Creole
hu - Hungarian
hy - Armenian
hz - Herero
ia - Interlingua
id - Indonesian
ie - Interlingue
ig - Igbo
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kbd - Kabardian
kbd-cyrl - Адыгэбзэ
kg - Kongo
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - 한국어 (조선)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ku - Kurdish
ku-arab - كوردي (عەرەبی)
ku-latn - Kurdish (Latin script)
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - лакку
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Maori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mo - молдовеняскэ
mr - Marathi
mrj - Western Mari
ms - Malay
mt - Maltese
mus - Creek
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Min Nan Chinese
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
niu - Niuean
nl - Dutch
nl-informal - Nederlands (informeel)
nn - Norwegian Nynorsk
nov - Novial
nrm - Nouormand
nso - Northern Sotho
nv - Navajo
ny - Nyanja
oc - Occitan
olo - Livvi-Karelian
om - Oromo
or - Oriya
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rm - Romansh
rmy - Romani
rn - Rundi
ro - Romanian
roa-tara - tarandíne
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rw - Kinyarwanda
sa - Sanskrit
sah - Sakha
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
shi - Tachelhit
shi-latn - Tašlḥiyt
shi-tfng - ⵜⴰⵛⵍⵃⵉⵜ
si - Sinhala
sk - Slovak
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
su - Sundanese
sv - Swedish
sw - Swahili
szl - Silesian
ta - Tamil
tcy - Tulu
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tn - Tswana
to - Tongan
tokipona - Toki Pona
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - ўзбекча
uz-latn - oʻzbekcha
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
war - Waray
wo - Wolof
wuu - Wu Chinese
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
yi - Yiddish
yo - Yoruba
yue - Cantonese
za - Zhuang
zea - Zeelandic
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - 中文(澳門)
zh-my - 中文(马来西亚)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
qqq - Message documentation
Format
Export for off-line translation
Export in native format
{{DISPLAYTITLE:Библиотеки/НизкоУровневыеУстройства}}<languages/> {| class="wikitable" |- ! Название !! Версия !! Лицензия !! Источник !! Языки !! Автор !! Описание |- <section begin=info /> | [[Special:MyLanguage/Libs/LowLevelDevices|Библиотека низкоуровневых сенсоров и чипов]] | 1.6 || GPLv2 || OscadaLibs.db ([http://oscada.org/svn/trunk/OpenSCADA/data/LibsDB/OscadaLibs.sql SQL], [[:File:OscadaLibs.db.gz|GZip]]) > DAQ.tmplb_LowDevLib || en, uk, ru <section end=info /> | {{Author|[[User:RomanSavochenko|Роман Савоченко]]|Аркадий Кысиль (2017)}} | Библиотека шаблонов предоставления доступа к данным устройств низкоуровневых шин. * '''Основано''': Июль 2016 * '''Изначально создано:''' в [http://wiki.oscada.org/HomePageEn/Using/APIFunctionLibs/LibUserPrtDevs старой Wiki] * '''Использовано:''' [[Special:MyLanguage/Sub-projects/Server|проектами умных домов]] * '''[[Special:MyLanguage/Works/To_do|Задачи (To Do)]]:''' <section begin=ToDo /> :- комбинировать [[Special:MyLanguage/Libs/LowLevelDevices#1W_DS9097|1W шаблоны]] в одном сложном и дополнить 1W работой непосредственно через GPIO. <section end=ToDo /> |} Библиотека устройств пользовательских протоколов создана для предоставления доступа к данным устройств низкоуровневых шин, с протоколом достаточно простым для реализации в [[Special:MyLanguage/Modules/UserProtocol|модуле пользовательского протокола]] или непосредственно на [[Special:MyLanguage/Modules/JavaLikeCalc|внутреннем языке подобном на Java]]. Названия элементов и их параметров доступны на языках: Английский, Украинский и mRussian. Их исходный код написан в языко(человеческий)-независимом режиме с вызовом функции перевода ''tr()'' и перевод этих сообщений также доступен Английским, Украинским и mRussian. Для подключения библиотеки к проекту станции OpenSCADA Вы можете получить файл БД как: * такой что поставляется с готовым и соответствующим пакетом дистрибутива Linux вроде "openscada-libdb-main", "openscada-LibDB.Main"; * наиболее актуальный и непосредственно полученный из [http://oscada.org/svn/trunk/OpenSCADA/data/LibsDB/OscadaLibs.sql репозитория subversion], преобразованный в файл БД SQLite путём: <syntaxhighlight lang="BASH" style="margin-left: 15px"> wget http://oscada.org/svn/trunk/OpenSCADA/data/LibsDB/OscadaLibs.sql sqlite3 -init OscadaLibs.sql OscadaLibs.db .exit </syntaxhighlight> * загрузка [[:File:OscadaLibs.db.gz|прикреплённого тут]]. Этот загруженный файл вы далее можете разместить в каталоге проекта станции и создать объект базы данных модуля БД "SQLite", зарегистрировав файл базы данных в конфигурации. __TOC__ Для DAQ-шаблонов, в целом, вам нужно создать представительский объект устройства в [[Special:MyLanguage/Modules/LogicLev|модуле Логического Уровня]] и выбрать соответствующий шаблон из библиотеки шаблонов. Далее, для корректной конфигурации, придерживайтесь специфики шаблона в персональном описании. {{#lst:Documents/DAQ/ru|userPrt}} Для размещения реализации протокола тут вы должны выполнить и придерживаться приведенных требований: * быть владельцем прав или автором кода и распространять его под любой свободной лицензией, предпочтение предоставляется GPL; * приготовить и сохранить в отдельном файле БД SQLite, или как текстовый файл, на предмет: описания параметров (ВВ), кода процедуры написанного и отформатированного согласно какой нидудь системы; * написать краткое описание и инструкцию подключения устройства по протоколу в способ похожий на другие тут; * написать прямой запрос в тему форума "[http://oscada.org/ru/forum/topics/razrabotka_openscada/ Разработка OpenSCADA]" на предмет размещения протокола тут, включая доказательства его работоспособности от любого разработчика OpenSCADA или краткое демонстрационное видео. {| class="wikitable" <section begin=RDTech /> | {{Anch|RDTech|<h3>BT: RDTech UM24C, UM25C and UM34C ([[Special:MyLanguage/Libs/LowLevelDevices#RDTech|RDTech]])</h3>}} | 1.1 || GPLv2 || * || en,uk <section end=RDTech /> | [[User:RomanSavochenko|Roman Savochenko]] |} [[File:LibsLowLevDevsRDTech.png|right|Result and the operative setup.]] RDTech UM24C/UM25C/UM34C BlueTooth interface template. [[file:at.png]] Tested only on UM24C now. The RDTech (RuiDeng) UM24C, UM25C and UM34C are low-cost USB pass-through power measurement devices, and support a decent number of collection features, as well as full control via Bluetooth. This template implements most exposed commands and data collection available by the device's Bluetooth interface.<br/> [[File:RDTech_UM24C.jpg]] This template in first time uses the new output transports connection function [[Special:MyLanguage/Documents/User_API#SYSTransport|SYS.Transport.outAt()]] and the Bluetooth interface for the data acquisition. * '''Total complexity:''' 0.3 {{CtxDetails|HD|human-days, 1 HD — 10 hours}} * '''Thanks:''' for Ryan Finnie at the protocol initial processing in [https://github.com/smandon/rdumtool RDUMTOOL] {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport || String || Input || Not attribute || Constant || <nowiki>Serial.RD:/dev/rfcomm0:9600||1000:40-20</nowiki> |- | dev || Device to bind Like to "98:D3:31:F8:52:29" for binding by "rfcomm bind {N} 98:D3:31:F8:52:29". | String || Input || Not attribute || Constant || |- | V || Volts || Real || Input || Read only || Variable || |- | A || Amperes || Real || Input || Read only || Variable || |- | W || Watts || Real || Input || Read only || Variable || |- | T || Temperature, °С || Integer || Input || Read only || Variable || |- | R || Resistance, Om || Real || Input || Read only || Variable || |- | rec || Recording || Boolean || Input || Read only || Variable || |- | recAh || Record, Ah || Real || Input || Read only || Variable || |- | recWh || Record, Wh || Real || Input || Read only || Variable || |- | recThr || Record threshold, A [0...0.3] || Real || Input || Full access || Variable || |- | recTm || Record time, seconds || Real || Input || Read only || Variable || |- | grps || Groups || Text || Input || Read only || Variable || |- | grpNext || Group next || Boolean || Input || Full access || Variable || |- | grpClear || Group clear || Boolean || Input || Full access || Variable || |- | chMode || Charging Mode || String || Input || Read only || Variable || |- | scr || Screen, [0...6] || Integer || Input || Read only || Variable || |- | scrNext || Screen next || Boolean || Input || Full access || Variable || |- | scrRot || Screen rotate || Boolean || Input || Full access || Variable || |- | scrTm || Screen timeout, minutes [0...9] || Integer || Input || Full access || Variable || |- | scrBright || Screen brightness, [0...5] || Integer || Input || Full access || Variable || |- | this || Object || Object || Input || Not attribute || Variable || |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_frq || Frequency of calculation of the function, Hz || Real || Input || Not attribute || Variable ||1000 |} [[File:LibsLowLevDevsCfgRDTech.png|right|Configuration.]] {{CntHdr|Configuring and using}} :1. Connection the BlueTooth device: <syntaxhighlight lang="BASH" style="margin-left: 30px"> bluetoothctl #[bluetooth]# scan on # Discovery started # [NEW] Device 98:D3:31:F8:52:29 UM24C # [CHG] Device 98:D3:31:F8:52:29 RSSI: -60 #[bluetooth]# scan off #[bluetooth]# pair 98:D3:31:F8:52:29 # Attempting to pair with 98:D3:31:F8:52:29 # [CHG] Device 98:D3:31:F8:52:29 Connected: yes # Request PIN code # [UM241m[agent] Enter PIN code: 1234 # Pairing successful #[bluetooth]# trust 98:D3:31:F8:52:29 # [CHG] Device 98:D3:31:F8:52:29 Trusted: yes # Changing 98:D3:31:F8:52:29 trust succeeded #[bluetooth]# exit rfcomm bind 0 98:D3:31:F8:52:29 # 0 here for binding to /dev/rfcomm0 </syntaxhighlight> :2. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :3. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select this template for it, one for each the devices. Enable the parameter. :4. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''Transport'' — to the address of the automatically created transport with its parameters after ":", according to [[Special:MyLanguage/Documents/User_API#SYSTransport|the function SYS.Transport.outAt() address format]], where the device address corresponds to the command {{InLineCode|rfcomm bind 0}} in item 1. :* ''Device to bind'' — here you may set the Bluetooth address of the device as "98:D3:31:F8:52:29" to call the {{InLineCode|rfcomm bind {N} }} command when starting the template, where ''N'' is respectively taken from the address of the previous item. ::[[file:at.png]] The '''rfcomm''' command is normally not available to be called by a non-privileged user, and if you want to call it by such a user, you must set a corresponding sign for it as {{InLineCode|chmod u+s /usr/bin/rfcomm}} from the super user. :5. RESULT: The logical parameter object will perform gather data of and trace to modify of the writable properties. {| class="wikitable" <section begin=UC96 /> | {{Anch|UC96|<h3>BT: ATORCH UC96, UD24 ([[Special:MyLanguage/Libs/LowLevelDevices#UC96|UC96]])</h3>}} | 1.2 || GPLv2 || * || en,uk <section end=UC96 /> | [[User:RomanSavochenko|Roman Savochenko]] |} [[File:LibsLowLevDevsUC96.png|right|Result and the operative setup.]] ATORCH UC96, UD24 BlueTooth interface template. The ATORCH UC96, UD24 are low-cost USB pass-through power measurement device with many interfaces and supporting a decent number of collection features, as well as control via Bluetooth. This template implements only the clearing data command and data collection by the device's Bluetooth interface.<br/> [[File:ATORCH_UC96.jpg]] The device sends data packages not at a request and just after establishing the connection, that is broadcasting with one second period. [[File:at.png]] The device may not to send the data packages at enable not in the first screen, so you need to switch the first screen for the data appearance. The data can be missed also after suspending the PC, so this template in the first time implements the data missing detection and reconnection. * '''Total complexity:''' 0.3 {{CtxDetails|HD|human-days, 1 HD — 10 hours}} {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport || String || Input || Not attribute || Constant || <nowiki>Serial.UC96:/dev/rfcomm0:9600||1000:40-20</nowiki> |- | dev || Device to bind Like to "58:F4:04:33:D5:FD" for binding by "rfcomm bind {N} 58:F4:04:33:D5:FD". | String || Input || Not attribute || Constant || |- | noDataTm || No data detection time, seconds || Integer || Input || Not attribute || Constant || 60 |- | V || Volts || Real || Input || Read only || Variable || |- | Vup || Volts maximum || Real || Input || Read only || Variable || |- | Vdwn || Volts minimum || Real || Input || Read only || Variable || |- | A || Amperes || Real || Input || Read only || Variable || |- | W || Watts || Real || Input || Read only || Variable || |- | R || Resistance, Om || Real || Input || Read only || Variable || |- | T || Temperature, °С || Integer || Input || Read only || Variable || |- | Ah || Capacity, Ah || Real || Input || Read only || Variable || |- | Wh || Capacity, Wh || Real || Input || Read only || Variable || |- | Tm || Time, seconds || Integer || Input || Read only || Variable || |- | Dplus || Data+, V || Real || Input || Read only || Variable || |- | Dminus || Data-, V || Real || Input || Read only || Variable || |- | clear || Clear || Boolean || Input || Full access || Variable || |- | this || Object || Object || Input || Not attribute || Variable || |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_frq || Frequency of calculation of the function, Hz || Real || Input || Not attribute || Variable ||1000 |} [[File:LibsLowLevDevsCfgUC96.png|right|Configuration.]] {{CntHdr|Configuring and using}} :1. Connection the BlueTooth device: performed in the standard way of pairing and trusting without PIN and to UC96_SPP :2. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :3. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select this template for it, one for each the devices. Enable the parameter. :4. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''Transport'' — to the address of the automatically created transport with its parameters after ":", according to [[Special:MyLanguage/Documents/User_API#SYSTransport|the function SYS.Transport.outAt() address format]], where the device address corresponds to the command {{InLineCode|rfcomm bind 0}}. :* ''Device to bind'' — here you may set the Bluetooth address of the device as "58:F4:04:33:D5:FD" to call the {{InLineCode|rfcomm bind {N} }} command when starting the template, where ''N'' is respectively taken from the address of the previous item. ::[[file:at.png]] The '''rfcomm''' command is normally not available to be called by a non-privileged user, and if you want to call it by such a user, you must set a corresponding sign for it as {{InLineCode|chmod u+s /usr/bin/rfcomm}} from the super user. :* ''No data detection time'' — here you may set the time of detection of the data missing. :5. RESULT: The logical parameter object will perform gather data of and trace to modify of the writable properties. {| class="wikitable" <section begin=1W /> | {{Anch|1W_DS9097|<h3>One Wire by DS9097 ([[Special:MyLanguage/Libs/LowLevelDevices#1W_DS9097|1W_DS9097]])</h3>}} || 1.2 || GPLv2 || * || en |- | {{Anch|1W_DS9097U|<h3>One Wire by DS9097U ([[Special:MyLanguage/Libs/LowLevelDevices#1W_DS9097U|1W_DS9097U]])</h3>}} || 1.2 || GPLv2 || * || en <section end=1W /> | [[User:RomanSavochenko|Roman Savochenko]] |} [[File:LibsLowLevDevs1WOp.png|right|Result and the operative setup.]] {{Anch|1W|One Wire}} sensors bus implementing by 1Wire-adapter {DS9097,DS9097U}. Supported direct and parasite powering for the temperature sensors.<br/> Supported 1Wire-devices: DS1820, DS1820/DS18S20/DS1920 (not tested), DS1822 (not tested), DS2413, DS2408, DS2450, DS2438.<br/> [[File:ds9097.png]] {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the One Wire bus, Serial || String || Input || Not attribute || Constant || oneWire |- | tmResc || Rescan period, s || Real || Input || Not attribute || Constant || 60 |- | power || Power, for temperature || Boolean || Input || Read only || Variable || |- | this || Object || Object || Input || Not attribute || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} [[File:LibsLowLevDevs1WCfg.png|right|Configuration.]] {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "oneWire", one for each the One Wire bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only for the adapter's serial device like "/dev/ttyS{N}". The serial port speed, asynchronous data format and timeouts will adjust by the template. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each the devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''Transport of the One Wire bus, Serial'' — to the address of the transport into step 1. Tracing for the address changing is supported. :* ''Rescan period, s'' — periodicity of rescaning for new and removed devices search. :6. RESULT: The logical parameter object will perform at first searching to 1Wire devices on the bus and create included parameters to the each found one. Next the logical parameter object will perform gather data of the found devices and trace to modify of the writable device's properties. {| class="wikitable" <section begin=PCF8591 /> | {{Anch|PCF8591|<h3>I2C: PCF8591 ([[Special:MyLanguage/Libs/LowLevelDevices#PCF8591|PCF8591]])</h3>}} || 1.0 || GPLv2 || * || en <section end=PCF8591 /> | [[User:RomanSavochenko|Roman Savochenko]] |} I2C 8-bit 4xA/D and D/A converter. Connects through a Serial output transport into the I2C mode. {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the I2C, Serial || String || Input || Not attribute || Constant || i2c |- | addr || Device address [0...119] || Integer || Input || Not attribute || Constant || 72 |- | vRef || Reference voltage, V || Real || Input || Not attribute || Constant || 3.2 |- | ai0 || AI0 || Real || Input || Read only || Variable || |- | ai1 || AI1 || Real || Input || Read only || Variable || |- | ai2 || AI2 || Real || Input || Read only || Variable || |- | ai3 || AI3 || Real || Input || Read only || Variable || |- | ao || AO || Real || Input || Full access || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each I2C slave devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to the address of the transport into step 1. Tracing for the address changing is supported. :* ''addr'' — the I2C slave device's address [0...119]. :* ''vRef'' — reference voltage of the AIs and AO. :6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the AI attributes and also will take the AO and write to the chip. {| class="wikitable" <section begin=PCF8574 /> | {{Anch|PCF8574|<h3>I2C: PCF8574 ([[Special:MyLanguage/Libs/LowLevelDevices#PCF8574|PCF8574]])</h3>}} || 1.0 || GPLv2 || * || en <section end=PCF8574 /> | [[User:RomanSavochenko|Roman Savochenko]] |} I2C 8-bit 8DIO. Connects through a Serial output transport into the I2C mode. {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport I2C || String || Input || Not attribute || Constant || i2c |- | addr || Device address (0, 119) || Integer || Input || Not attribute || Constant || 39 |- | di0 || DI0 || Boolean || Input || Read only || Variable || |- | di1 || DI1 || Boolean || Input || Read only || Variable || |- | di2 || DI2 || Boolean || Input || Read only || Variable || |- | di3 || DI3 || Boolean || Input || Read only || Variable || |- | di4 || DI4 || Boolean || Input || Read only || Variable || |- | di5 || DI5 || Boolean || Input || Read only || Variable || |- | di6 || DI6 || Boolean || Input || Read only || Variable || |- | di7 || DI7 || Boolean || Input || Read only || Variable || |- | do0 || DO0 || Boolean || Output || Full access || Variable || |- | do1 || DO1 || Boolean || Output || Full access || Variable || |- | do2 || DO2 || Boolean || Output || Full access || Variable || |- | do3 || DO3 || Boolean || Output || Full access || Variable || |- | do4 || DO4 || Boolean || Output || Full access || Variable || |- | do5 || DO5 || Boolean || Output || Full access || Variable || |- | do6 || DO6 || Boolean || Output || Full access || Variable || |- | do7 || DO7 || Boolean || Output || Full access || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each I2C slave devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to the address of the transport into step 1. Tracing for the address changing is supported. :* ''addr'' — the I2C slave device's address [0...119]. :6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the DI attributes and also will take the DO and write to the chip. {| class="wikitable" <section begin=ADS111x /> | {{Anch|ADS111x|<h3>I2C: ADS101x, ADS111x ([[Special:MyLanguage/Libs/LowLevelDevices#ADS111x|ADS111x]])</h3>}} || 1.0 || GPLv2 || * || en <section end=ADS111x /> | [[User:RomanSavochenko|Roman Savochenko]] |} I2C 12/16-bit 4xA/D converter. Connect through a Serial output transport into the I2C mode. {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the I2C, Serial || String || Input || Not attribute || Constant || i2c |- | addr || Device address [0...119] || Integer || Input || Not attribute || Constant || 72 |- | range || Range, ±V || Integer numbers selection || Input || Full access || Variable || 2<br/> 0;1;2;3;4;5<br/> 6.144;4.096;2.048;1.024;0.512;0.256 |- | ai0 || AI0 || Real || Input || Read only || Variable || |- | ai1 || AI1 || Real || Input || Read only || Variable || |- | ai2 || AI2 || Real || Input || Read only || Variable || |- | ai3 || AI3 || Real || Input || Read only || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each I2C slave devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to the address of the transport into step 1. Tracing for the address changing is supported. :* ''addr'' — the I2C slave device's address [0...119]. :* ''range'' — range of voltage of the AIs. :6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the AI attributes. {| class="wikitable" <section begin=MCP4725 /> | {{Anch|MCP4725|<h3>I2C: MCP4725 ([[Special:MyLanguage/Libs/LowLevelDevices#MCP4725|MCP4725]])</h3>}} || 1.0 || GPLv2 || * || en <section end=MCP4725 /> | [[User:RomanSavochenko|Roman Savochenko]] |} I2C 12-bit D/A converter. Connect through a Serial output transport into the I2C mode. {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the I2C, Serial || String || Input || Not attribute || Constant || i2c |- | addr || Device address [0...119] || Integer || Input || Not attribute || Constant || 96 |- | vRef || Reference voltage, V || Real || Input || Not attribute || Constant || 3.2 |- | ao || AO || Real || Input || Full access || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each I2C slave devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to the address of the transport into step 1. Tracing for the address changing is supported. :* ''addr'' — the I2C slave device's address [0...119]. :* ''vRef'' — reference voltage of the AO. :6. RESULT: The logical parameter object will perform interaction and take the AO and write to the chip. {| class="wikitable" <section begin=BMP180 /> | {{Anch|BMP180|<h3>I2C: BMP180 ([[Special:MyLanguage/Libs/LowLevelDevices#BMP180|BMP180]])</h3>}} || 1.0 || GPLv2 || * || en <section end=BMP180 /> | [[User:RomanSavochenko|Roman Savochenko]] |} I2C Pressure and Temperature sensor. Connecting through a Serial output transport into the I2C mode. {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the I2C, Serial || String || Input || Not attribute || Constant || i2c |- | addr || Device address [0...119] || Integer || Input || Not attribute || Constant || 119 |- | oss || Oversampling setting (0...3) || Integer || Input || Not attribute || Constant || 0 |- | t || T, °С || Real || Input || Read only || Variable || |- | p || P, Pa || Real || Input || Read only || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each I2C slave devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to the address of the transport into step 1. Tracing for the address changing is supported. :* ''addr'' — the I2C slave device's address [0...119]. :* ''oss'' — oversampling setting of pressure measurement [0...3]. :6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the Pressure and Temperature attributes. {| class="wikitable" <section begin=BME280 /> | {{Anch|BME280|<h3>I2C: BME280 ([[Special:MyLanguage/Libs/LowLevelDevices#BME280|BME280]])</h3>}} || 1.0 || GPLv2 || * || en <section end=BME280 /> | Arcadiy Kisel, [[User:RomanSavochenko|Roman Savochenko]] |} I2C Barometric Pressure, Temperature and Humidity sensor. Connect through a Serial output transport into the I2C mode. {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the I2C, Serial || String || Input || Not attribute || Constant || i2c |- | addr || Device address [0...119] || Integer || Input || Not attribute || Constant || 118 |- | oss || Oversampling setting (0...7) || Integer || Input || Not attribute || Constant || 0 |- | t || T, °С || Real || Input || Read only || Variable || |- | p || P, Pa || Real || Input || Read only || Variable || |- | h || H, % || Real || Input || Read only || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each I2C slave devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to the address of the transport into step 1. Tracing for the address changing is supported. :* ''addr'' — the I2C slave device's address [0...119]. :* ''oss'' — oversampling setting of pressure measurement [0...7]. :6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the Pressure, Temperature and Humidity attributes. {| class="wikitable" <section begin=SHT3x /> | {{Anch|SHT3x|<h3>I2C: SHT3x ([[Special:MyLanguage/Libs/LowLevelDevices#SHT3x|SHT3x]])</h3>}} || 1.0 || GPLv2 || * || en <section end=SHT3x /> | [[User:RomanSavochenko|Roman Savochenko]] |} Digital Temperature and Humidity Sensor for the models: SHT30 {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the I2C, Serial || String || Input || Not attribute || Constant || i2c |- | addr || Device address [0...119] || Integer || Input || Not attribute || Constant || 68 |- | H || Humidity || Real || Input || Read only || Variable || |- | T || Temperature || Real || Input || Read only || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each I2C slave devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to the address of the transport into step 1. Tracing for the address changing is supported; :* ''addr'' — the I2C slave device's address [0...119]. :6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the Temperature and Humidity attributes. {| class="wikitable" <section begin=DS3231 /> | {{Anch|DS3231|<h3>I2C: DS1307,DS3231 ([[Special:MyLanguage/Libs/LowLevelDevices#DS3231|DS3231]])</h3>}} || 1.1 || GPLv2 || * || en <section end=DS3231 /> | [[User:RomanSavochenko|Roman Savochenko]] |} I2C RTC chips DS1307,DS3231 with Temperature sensor and calibration for DS3231. Connects through a Serial output transport into the I2C mode. {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the I2C, Serial || String || Input || Not attribute || Constant || i2c |- | addr || Device address [0...119] || Integer || Input || Not attribute || Constant || 119 |- | mode || Mode || Integer numbers selection || Input || Full access || Variable || 0 0;1<br/> DS3231;DS1307 |- | tm || Date and time, YYYY-MM-DDTHH:mm:SS || String || Input || Full access || Variable || |- | pSQW || Enable SQUARE-WAVE OUTPUT || Boolean || Input || Full access || Variable || |- | pSQWf<br/>(dynamically updated) || SQUARE-WAVE OUTPUT frequency || Integer || Input || Full access || Variable || |- | agOff<br/>(dynamically created for DS3231) || Aging offset, [-128...127] || Integer || Input || Full access || Variable || |- | t<br/>(dynamically created for DS3231) || T, °С || Real || Input || Read only || Variable || |- | p32k<br/>(dynamically created for DS3231) || Enable 32768Hz || Boolean || Input || Full access || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :4. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each I2C slave devices. Enable the parameter. :5. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to the address of the transport into step 1. Tracing for the address changing is supported. :* ''addr'' — the I2C slave device's address [0...119]. :6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the DateTime, Temperature and some one state attributes and also will take the DateTime, some one state attributes and write it to the chip. {| class="wikitable" <section begin=AT24CXX /> | {{Anch|AT24CXX|<h3>I2C: <nowiki>AT24C{32|64}</nowiki> ([[Special:MyLanguage/Libs/LowLevelDevices#AT24CXX|AT24CXX]])</h3>}} || 1.0 || GPLv2 || * || en <section end=AT24CXX /> | [[User:RomanSavochenko|Roman Savochenko]] |} Provides operations with EEPROM memory based on I2C chips AT24C32 (4KB) and AT24C64 (8KB). Supported random reading and writing. {{CntHdr|Output user protocol's XML request structure}} '''<{cmd} addr="{ChipAddr}" off="{MemOffset}" size="{ReadSize}" err="1:Error">{ReadWriteSeq}</{cmd}>''' :''cmd'' — command, for now there allowed: "read", "write"; :''addr'' — I2C device address [0...119]; :''off'' — memory part offset; :''size'' — read memory block size. :''ReadWriteSeq'' — Read/Write bytes sequence. :''err'' — sets to result of the request. {{CntHdr|Configuring and using}} :1. Create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]" and set its Identifier like to "i2c", one for each the I2C bus. :2. Set proper address of the [[Special:MyLanguage/Modules/Serial|Serial]] device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value. :3. Place some requesting commands directly into presented or a new internal OpenSCADA procedure like to: <syntaxhighlight lang="JavaScript" style="margin-left: 30px"> req = SYS.XMLNode("read"); req.setAttr("ProtIt","AT24CXX").setAttr("addr",87).setAttr("off",1000).setAttr("size",20).setText("My message"); req = SYS.XMLNode("write"); req.setAttr("ProtIt","AT24CXX").setAttr("addr",87).setAttr("off",1000).setText("Stored data"); </syntaxhighlight> :4. RESULT: Into ''text()'' for "read" you will get the read data if no errors occur. {| class="wikitable" <section begin=DHT /> | {{Anch|DHT|<h3>GPIO: DHT11,22 ([[Special:MyLanguage/Libs/LowLevelDevices#DHT|DHT]])</h3>}} || 1.0 || GPLv2 || * || en <section end=DHT /> | [[User:RomanSavochenko|Roman Savochenko]] |} Digital Temperature and Humidity Sensor for models: DHT11, DHT12, AM2302, AM2320, ... . The module designed for the sensors connect through GPIO, mostly it's [[Special:MyLanguage/Modules/GPIO|Raspberry PI BCM2835 GPIO]].<br/> ''Conditions:'' Exclusively realtime planing in the priority 199 (FIFO-99). {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | addr || GPIO address with functions mode(), get() and put(), mostly it's BCM2835 || String || Input || Not attribute || Constant || DAQ.GPIO.io.pi |- | pin || IO pin number of the GPIO || Integer || Input || Not attribute || Constant || 17 |- | tries || Tries [1...5] || Integer || Input || Not attribute || Constant || 2 |- | dev || Device (0-DHT11, 1-DHT22) || Integer || Input || Not attribute || Constant || 1 |- | t || T, °С || Real || Input || Read only || Variable || |- | h || H, % || Real || Input || Read only || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output controller object and a parameter into the DAQ module "BCM 2835", by default it's "pi.pi". :2. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties (FIFO-199). :3. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter]] and select the template for that, one for each sensor. Enable the parameter. :4. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''addr'' — to the address of the "BCM 2835" parameter like "DAQ.GPIO.io.pi"; tracing for the address changing is supported; :* ''pin'' — GPIO pin number where connected the data pin of the sensor; :* ''tries'' — tries of the sensor reading; :* ''dev'' — generic device specific selection. :5. RESULT: The logical parameter will perform interaction and placing of the gathered data to the Temperature and Humidity attributes. {| class="wikitable" <section begin=MAX6675 /> | {{Anch|MAX6675|<h3>GPIO: MAX6675 ([[Special:MyLanguage/Libs/LowLevelDevices#MAX6675|MAX6675]])</h3>}} || 0.1 || GPLv2 || * || en <section end=MAX6675 /> | Arcadiy Kisel |} Cold-Junction-Compensated K-Thermocouple-to-Digital Converter (0°C to +1024°C). The module designed for the sensors connect through softSPI by GPIO, mostly it's [[Special:MyLanguage/Modules/GPIO|Raspberry PI BCM2835 GPIO]].<br/> ''Conditions:'' Exclusively realtime planing in the priority 199 (FIFO-99). {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | addr || GPIO address with functions mode(), get() and put(), mostly it's BCM2835 || String || Input || Not attribute || Constant || DAQ.GPIO.io.pi |- | pin_cs || CS pin number of the GPIO || Integer || Input || Not attribute || Constant || 8 |- | pin_sclk || SCLK pin number of the GPIO || Integer || Input || Not attribute || Constant || 11 |- | pin_miso || MISO pin number of the GPIO || Integer || Input || Not attribute || Constant || 9 |- | t || T, °С || Real || Output || Read only || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output controller object and a parameter into the DAQ module "BCM 2835", by default it's "pi.pi". :2. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties (FIFO-199). :3. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter]] and select the template for that, one for each sensor. Enable the parameter. :4. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''addr'' — to the address of the "BCM 2835" parameter like "DAQ.GPIO.io.pi"; tracing for the address changing is supported; :* ''pin_cs'' — CS pin number where connected the chip selection pin of the sensor; :* ''pin_sclk'' — SCLK pin number where connected the serial clock pin of the sensor; :* ''pin_miso'' — MISO pin number where connected the master in slave out (data) pin of the sensor. :5. RESULT: The logical parameter will perform interaction and placing of the gathered data to the Temperature attributes. {| class="wikitable" <section begin=1602A /> | {{Anch|1602A|<h3>GPIO|I2C: 1602A(HD44780) ([[Special:MyLanguage/Libs/LowLevelDevices#1602A|1602A]])</h3>}} || 1.0 || GPLv2 || * || en <section end=1602A /> | [[User:RomanSavochenko|Roman Savochenko]] |} LCD Module 1602A, STN, BLUB, 16 Character x 2 Line, 5 x 8 Dots, by the direct ([[Special:MyLanguage/Modules/GPIO|Raspberry PI BCM2835 GPIO]]) or I2C (PCF8574) wiring.<br/> ''Conditions:'' Default planing policy but realtime one preferred. {{CntHdr|Template IOs}} {| class="wikitable" |- ! Identifier !! Parameter !! Type !! Mode !! Attribute !! Configuration !! Value |- | transport || Transport of the I2C, Serial (i2c) or<br/> GPIO address with function put(), mostly it's BCM2835 (DAQ.GPIO.io.pi) | String || Input || Not attribute || Constant || i2c |- | addr || I2C device address [0...119] || Integer || Input || Not attribute || Constant || 39 |- | RS || GPIO Pin: Reset || Integer || Input || Not attribute || Constant || 7 |- | E || GPIO Pin: Enable || Integer || Input || Not attribute || Constant || 8 |- | D4 || GPIO Pin: Data4 || Integer || Input || Not attribute || Constant || 25 |- | D5 || GPIO Pin: Data5 || Integer || Input || Not attribute || Constant || 24 |- | D6 || GPIO Pin: Data6 || Integer || Input || Not attribute || Constant || 23 |- | D7 || GPIO Pin: Data7 || Integer || Input || Not attribute || Constant || 18 |- | ln1 || Line 1 || String || Input || Full access || Variable || |- | ln2 || Line 2 || String || Input || Full access || Variable || |- | f_frq || Function calculate frequency (Hz) || Real || Input || Not attribute || Variable || 1000 |- | f_start || Function start flag || Boolean || Input || Not attribute || Variable || 0 |- | f_stop || Function stop flag || Boolean || Input || Not attribute || Variable || 0 |- | f_err || Function error || String || Input || Not attribute || Variable || 0 |} {{CntHdr|Configuring and using}} :1. Create an output controller and an object of parameter in DAQ module "BCM 2835", by default it's "pi.pi" or create an output transport of the type "[[Special:MyLanguage/Modules/Serial|Serial]]", set address like to "i2c", one for each the I2C bus. :2. Create and start [[Special:MyLanguage/Modules/LogicLev|a logical controller object]] or use any presented one with the needed scheduling properties. :3. Create [[Special:MyLanguage/Modules/LogicLev|a logical parameter object]] and select the template for that, one for each sensor. Enable the parameter. :4. Into the tab "Template configuration" of the logical parameter object you need to set: :* ''transport'' — to address of the "BCM 2835" parameter like to "DAQ.GPIO.io.pi" or to address of the transport into step 1; tracing for the address changing is supported; :* ''addr'' — the I2C slave device's address [0...119]; :* ''RS, E, D4, D5, D6, D7'' — numbers of the GPIO pins where connected the proper data ones of the sensor. :5. RESULT: The logical parameter object will perform interaction and setting lines' values to the display.
Navigation menu
OpenSCADA
Site
Download
Old Wiki
OpenSCADA Wiki
Home
About OpenSCADA
Functions and demands
Tasks
Using
Fund
Recent changes
Random page
Search
Tools
Special pages
Printable version
MediaWiki
Help
Personal tools
English
Log in