DWC17 Collector
Purpose, Function & Technical Specs
Prisma Electronics SA (www.prisma.gr) Head: 87 L.Democratias Alexandroupoli 68100 GREECE, tel+302109313110, e‐mail [email protected] Factory: Industrial Zone Alexandroupoli 68100 GREECE, tel+302551080400, e‐mail [email protected] Athens Office: 126 El. Venizelou, Nea Smirni 17123 GREECE, tel+302109313110, e‐mail [email protected] Page | 1
DWC17 Collector
Contents
1. Hardware .................................................................................................................... 2
2. Software ...................................................................................................................... 3
DWC17 Collector
Purpose, Function & Technical Specs
Prisma Electronics SA (www.prisma.gr) Head: 87 L.Democratias Alexandroupoli 68100 GREECE, tel+302109313110, e‐mail [email protected] Factory: Industrial Zone Alexandroupoli 68100 GREECE, tel+302551080400, e‐mail [email protected] Athens Office: 126 El. Venizelou, Nea Smirni 17123 GREECE, tel+302109313110, e‐mail [email protected] Page | 2
1. Hardware In Figure 1, the basic hardware components of the collector are shown.
Figure 1: Hardware Components
In the following figures (Figure 2 and Figure 3), two type of the collector as shown, as well as the position of different sensor types and several components.
Figure 2: Collector type 1 with various sensors and communication components
DWC17 Collector
Purpose, Function & Technical Specs
Prisma Electronics SA (www.prisma.gr) Head: 87 L.Democratias Alexandroupoli 68100 GREECE, tel+302109313110, e‐mail [email protected] Factory: Industrial Zone Alexandroupoli 68100 GREECE, tel+302551080400, e‐mail [email protected] Athens Office: 126 El. Venizelou, Nea Smirni 17123 GREECE, tel+302109313110, e‐mail [email protected] Page | 3
Figure 3: Collector type 2 with various hardware interfaces
2. Software In order to ensure the satisfaction of the pre mentioned objectives, a real time operating
system is necessary. Although in the market are available some real time operating systems, they cannot handle sufficiently the existence of low ROM and RAM capacity, limits on power consumption and low frequency microprocessors as well as the need of a software solution fully modulated to industrial predictive maintenance. Because of that a real time operating system called ISOS (intelligent sensor operating system) was developed.
In Figure 4, the basic components of the Intelligent Sensor Operating System are shown.
Figure 4: ISOS architecture
The existence of the Procedure Scheduler ensures the proper function of the whole
system. Because of it all the processes that need to be executed are executed at the time that they have to be executed. It is implemented as a linked list as shown in Figure 5.
DWC17 Collector
Purpose, Function & Technical Specs
Prisma Electronics SA (www.prisma.gr) Head: 87 L.Democratias Alexandroupoli 68100 GREECE, tel+302109313110, e‐mail [email protected] Factory: Industrial Zone Alexandroupoli 68100 GREECE, tel+302551080400, e‐mail [email protected] Athens Office: 126 El. Venizelou, Nea Smirni 17123 GREECE, tel+302109313110, e‐mail [email protected] Page | 4
Figure 5: Implementation of the Procedure Scheduler
The nodes of this list are pointers to functions, which usually utilize the applications or execute the machine states of the applications. A pointer to function is inserted in the linked list with arguments its priority and execution time. ISOS checks the execution time through a signal (global variable) delivered by the TimerA ISR every 10 msec. Of course the function is deleted from Procedure Scheduler after completion of execution. The user (application) decides if the function will be again inserted in the list. In Figure 6 the UML diagram of the function of the Procedure Scheduler is shown.
Figure 6: Procedure Scheduler UML Diagram
In order to reduce the Ram space requirements and the processor normal time
operation, the execution of the task cannot be interrupted by another task, only by a system interrupt.
The tasks must be time shortly and if the execution of a task is time‐consuming, then this task must be fragmented in sub‐tasks.
The interrupt handler provides programmer an easy way to handle interrupt events. Like
the Procedure Scheduler, the Interrupt Handler is a linked list too. All possible interrupt identifiers for MSP430 have been created, but there are more for special conditions. All that the programmer has to do, is to write the function which reacts to the interrupt (ISR) and to insert it to the interrupt handler. The argument of insertion is the corresponding identifier. In the following figure (Figure 7), the implementation diagram of the Interrupt Handler is shown.
PrismHead: 8FactoryAthens
macrelatthe the Each
appinitiiniti
ma Electronics SA 87 L.Democratias Alexay: Industrial Zone AlexaOffice: 126 El. Venizel
Every applicchines. The ptions and tranext state anapplication dh function alIn the follow
This exampllication tempalization funalization fun
(www.prisma.grandroupoli 68100 GREEandroupoli 68100 GREElou, Nea Smirni 17123
Figure 7:
cation that is programmer ansitions betnd executiondoesn’t inserways returnswing figure (
F
e applicationperature initnction insertsnction exits, i
r) ECE, tel+30210931311ECE, tel+302551080400GREECE, tel+30210931
Implementa
written for adesigns the tween them.n time of it brt any functios a specific rFigure 8) an
Figure 8: Tem
n is constituttialization. Ins it in the tast inserts the
0, e‐mail info@prisma0, e‐mail [email protected], e‐mail rd@prism
ation Diagram
a specific coseveral state Application
by inserting non for execuesult. example for
mperature Ap
ted by three n order for thsk scheduler. second func
.gr gr ma.gr
m of the Inte
llector consies of each st executes onnext state coution, then th
r a temperat
pplication Exa
functions (tahis task to be. Before the action (which
Purpose, Fun
errupt Handle
sts of severaate machinene step at a tde in the Tashe applicatio
ure applicati
ample
asks). The fire executed, tapplication timplements
DWC17 Coction & Technica
Page
er
al state e and any time and decsk Scheduleron is complet
ion is shown
rst function ithe main temperatures the sensor
llector l Specs
e | 5
cides r. If ted.
.
s
e
PrismHead: 8FactoryAthens
powapptran
exam
sens
ma Electronics SA 87 L.Democratias Alexay: Industrial Zone AlexaOffice: 126 El. Venizel
wer up actionlication readnsitions betw Finally in themple is show
F
In the abovesor and the c
(www.prisma.grandroupoli 68100 GREEandroupoli 68100 GREElou, Nea Smirni 17123
n) in task schd measuremeween states (t
e following fwn, which is d
Figure 9: Acc
Figure 10: A
e example foconfiguration
r) ECE, tel+30210931311ECE, tel+302551080400GREECE, tel+30210931
eduler. Befoent function tasks) are ac
igures (Figurdesigned wit
celerometer A
Acceleromet
our states don of the A/D
0, e‐mail info@prisma0, e‐mail [email protected], e‐mail rd@prism
ore the seconin Task scheccomplished.
re 9 and Figuth state mac
Application E
ter Applicatio
exist. The stConverter. T
.gr gr ma.gr
nd function iseduler. This is.
ure 10) an achines.
Example usin
on Example I
tate 1 refers The State 2 r
Purpose, Fun
s terminateds the way tha
celerometer
ng State Mac
Implementat
to the initiarefers to the
DWC17 Coction & Technica
Page
d, it inserts that the
r application
chines
tion
lization of thinitialization
llector l Specs
e | 6
he
he n of
DWC17 Collector
Purpose, Function & Technical Specs
Prisma Electronics SA (www.prisma.gr) Head: 87 L.Democratias Alexandroupoli 68100 GREECE, tel+302109313110, e‐mail [email protected] Factory: Industrial Zone Alexandroupoli 68100 GREECE, tel+302551080400, e‐mail [email protected] Athens Office: 126 El. Venizelou, Nea Smirni 17123 GREECE, tel+302109313110, e‐mail [email protected] Page | 7
the timer, the DMA transfer and the start of the sampling so that the acceleration values to be obtained. The State 3 refers to the termination of the measurements taking and the State 4 refers to the transmission of the obtained measurements to the GW. The acceleration application implementation is a simple function. States are simple cases in a switch statement. Transitions between states occur with the app_accel_state values. Application function inserts itself in the Task Scheduler.