From OpenSCADAWiki
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 a logical controller object or use any presented one with the needed scheduling properties.
- 3. Create 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 the function SYS.Transport.outAt() address format, where the device address corresponds to the command 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 rfcomm bind {N} command when starting the template, where N is respectively taken from the address of the previous item.
- 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 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.