From OpenSCADAWiki
Jump to: navigation, search

Enter a message name below to show all available translations.

Message

Found 2 translations.

NameCurrent message text
 h English (en)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.
 h Ukrainian (uk)rfcomm bind 0 98:D3:31:F8:52:29  # 0 褌褍褌 写谢褟 锌褉懈胁'褟蟹褍胁邪薪薪褟 写芯 /dev/rfcomm0
</syntaxhighlight>
:2. 小褌胁芯褉懈褌懈 褌邪 蟹邪锌褍褋褌懈褌懈 [[Special:MyLanguage/Modules/LogicLev|芯斜'褦泻褌 谢芯谐褨褔薪芯谐芯 泻芯薪褌褉芯谢械褉褍]] 邪斜芯 胁懈泻芯褉懈褋褌邪褌懈 斜褍写褜 褟泻懈泄 薪邪褟胁薪懈泄 褨蟹 薪械芯斜褏褨写薪懈屑懈 胁谢邪褋褌懈胁芯褋褌褟屑懈 锌谢邪薪褍胁邪薪薪褟.
:3. 小褌胁芯褉懈褌懈 [[Special:MyLanguage/Modules/LogicLev|芯斜'褦泻褌 谢芯谐褨褔薪芯谐芯 锌邪褉邪屑械褌褉褍]] 褌邪 芯斜褉邪褌懈 褑械泄 褕邪斜谢芯薪 写谢褟 薪褜芯谐芯, 芯写懈薪 写谢褟 泻芯卸薪芯谐芯 锌褉懈褋褌褉芯褞. 校胁褨屑泻薪褍褌懈 锌邪褉邪屑械褌褉.
:4. 校 胁泻谢邪写褑褨 "袣芯薪褎褨谐褍褉邪褑褨褟 褕邪斜谢芯薪褍" 芯斜'褦泻褌褍 谢芯谐褨褔薪芯谐芯 锌邪褉邪屑械褌褉褍 胁懈 屑邪褦褌械 胁褋褌邪薪芯胁懈褌懈:
:* ''孝褉邪薪褋锌芯褉褌'' 鈥 邪写褉械褋褍 邪胁褌芯屑邪褌懈褔薪芯 褋褌胁芯褉褞胁邪薪芯谐芯 褌褉邪薪褋锌芯褉褌褍 褨蟹 泄芯谐芯 锌邪褉邪屑械褌褉邪屑懈 锌褨褋谢褟 ":", 胁褨写锌芯胁褨写薪芯 写芯 [[Special:MyLanguage/Documents/User_API#SYSTransport|褎芯褉屑邪褌褍 邪写褉械褋懈 褎褍薪泻褑褨褩 SYS.Transport.outAt()]], 写械 邪写褉械褋邪 锌褉懈褋褌褉芯褞 胁褨写锌芯胁褨写邪褦 泻芯屑邪薪写褨 {{InLineCode|rfcomm bind 0}} 褍 锌褍薪泻褌褨 1.
:* ''袩褉懈褋褌褉褨泄 写谢褟 蟹胁'褟蟹褍胁邪薪薪褟'' 鈥 褌褍褌 屑芯卸薪邪 胁褋褌邪薪芯胁懈褌懈 邪写褉械褋褍 Bluetooth 锌褉懈褋褌褉芯褞 褍 胁懈谐谢褟写褨 "98:D3:31:F8:52:29" 写谢褟 胁懈泻谢懈泻褍 泻芯屑邪薪写懈 {{InLineCode|rfcomm bind {N} }} 锌褉懈 蟹邪锌褍褋泻褍 褕邪斜谢芯薪褍, 写械 ''N'' 胁褨写锌芯胁褨写薪芯 斜械褉械褌褜褋褟 褨蟹 邪写褉械褋懈 锌芯锌械褉械写薪褜芯谐芯 锌褍薪泻褌褍.
:: [[file:at.png]] 袣芯屑邪薪写邪 '''rfcomm''' 蟹邪蟹胁懈褔邪泄 薪械写芯褋褌褍锌薪邪 写谢褟 胁懈泻谢懈泻褍 薪械锌褉懈胁褨谢械泄芯胁邪薪懈屑 泻芯褉懈褋褌褍胁邪褔械屑 褌邪 褟泻褖芯 胁懈 胁褋械-卸 斜邪卸邪褦褌械 胁懈泻谢懈泻邪褌懈 褩褩 褌邪泻懈屑 泻芯褉懈褋褌褍胁邪褔械屑, 褌芯 屑邪褦褌械 胁褋褌邪薪芯胁懈褌懈 褩泄 芯蟹薪邪泻褍 {{InLineCode|chmod u+s /usr/bin/rfcomm}} 胁褨写 锌褉懈胁褨谢械泄芯胁邪薪芯谐芯 泻芯褉懈褋褌褍胁邪褔邪.
:5. 袪袝袟校袥鞋孝袗孝: 袨斜'褦泻褌 谢芯谐褨褔薪芯谐芯 锌邪褉邪屑械褌褉褍 蟹写褨泄褋薪褞胁邪褌懈屑械 蟹斜褨褉 写邪薪懈褏 褌邪 胁褨写褋褌械卸褍胁邪褌懈屑械 屑芯写懈褎褨泻邪褑褨褞 蟹邪锌懈褋褍胁邪薪懈褏 胁谢邪褋褌懈胁芯褋褌械泄.