OpenSCADAWiki: Home Page En/Doc/BCM2835 ...

Home | Index | Changes | Comments | Users | Registration | Login  Password:  
 
This is an old revision of HomePageEn/Doc/BCM2835 from 2016-12-11 11:42:57..

The module <BCM2835> of subsystem "Data Acquisition"

Module: BCM2835
Name: BCM 2835
Type: DAQ
Source: daq_Comedi.so
Version: 1.0.0
Author: Roman Savochenko
Description: ISA, PCI, PCMCIA, USB DAQ boards collection by Comedi (http://www.comedi.org).
License: GPL

Contents


Forming

Introduction

The module provides OpenSCADA system with the support data sources of realtime, which based on Raspberry PI board's General Purpose Input/Output (GPIO) grounded on BCM2835 chip. The BCM2835 GPIO of Raspberry Pi counts 32 pins in maximum some from its can also performs alternative functions like: I2C, UART, SPIO and etc. For access to the GPIO in general functions there is used a library libBCM2835.


The module tested on boards Raspberry Pi 2, 3 model B, for this details you can see to the page and the task.

1. Controller object

GPIO into OpenSCADA configured with new controller object creation (Fig.1), the container parameters' objects — a single parameter of the board's GPIO.


Configuration tab of the controller object. (83 Kb)
Fig.1. Configuration tab of the controller object.

From this tab you can set:


It should be noted that the acquisition data is mainly done in synchronous mode, but for some modules of analog inputs (AI-ADC) that would be optimal asynchronous mode, due to the length of time for value setting after switching a multiplexor channel. For board Advantech PCL-813B the time is 5ms.

2. The controller's parameter object

The parameter object is a direct representative-reflection for DAQ-board, which contained attributes set with types and it quantity depending from specific board. Parameter's object configuration tab is shown in Figure 2.


Parameter's object configuration tab. (80 Kb)
Fig.2. Parameter's object configuration tab — DAQ board.

With the parameter's object configuration tab you can set:


Tab "Attributes" for board ACL-8113 is shown in Figure 3. For some types of data can be accessed "Configuration" tab. For example, this tab (Fig.4) for boards with analog inputs has the values set timeout and ranges selection for each channel.


Tab "Attributes" of the parameter object. (115 Kb)
Fig.3. Tab "Attributes" of parameter object of board ACL-8113.

Tab "Configuration" of the parameter object. (156 Kb)
Fig.4. Tab "Configuration" of parameter object of board ACL-8113.

3. Notes

To build and work of the module only needs library comedilib which is present in most distributions repositories. However, the drivers modules need build separately, and its archive you can download here: http://comedi.org/download.html.


The module work is tested on the following boards:

Links

Referring pages: HomePageEn/Doc
HomePageEn/Using/APIFunctionLibs/LibUserPrtDevs
HomePageEn/Using/PLC
HomePageEn/Using/PLC/firmwareARM
Works/Tests/JavaLike


 
There are no files on this page.[Display files/form]
There is no comment on this page. [Display comments/form]