quercus SmartLoop TS Owner's manual

Software version 1.5.x
Firmware version 1.5.x
www.quercus.biz
www.quercus-technologies.com
www.quercus.com.br
Quercus Technologies
PROGRAMMING MANUAL
PROGRAMMING MANUAL

QuercusVL Programming Manual (v 1.5.0)
March 2014
© 2014 Quercus Technologies. All rights reserve .
This manual, including the information of the system described within the manual, is provided under a license and can
be solely use for the purposes escribe in the license. The contents of this manual are provi e for information
purposes only an can be mo ifie with no prior warning. The manual can not be fully or partially repro uce , place
in a istribution system or release to thir parties without the express permission of Quercus Technologies.
Quercus Technologies

Index
1. Intro uction..................................................................................14
2. Basic Programming........................................................................16
2.1. C++......................................................................................16
2.1.1. Memory management.........................................................18
2.1.2. Buil of executable.............................................................19
2.2. C...........................................................................................20
2.2.1. Memory management.........................................................22
2.2.2. Buil of executable.............................................................23
2.3. Other examples.......................................................................23
3. Reference Class.............................................................................24
3.1. Compatibility between QuercusVL® pro ucts...............................24
3.2. Hierarchy................................................................................26
3.3. Classes...................................................................................27
3.4. System Class .........................................................................27
3.4.1. Properties.........................................................................27
3.4.2. Metho s...........................................................................28
3.4.3. Events..............................................................................29
3.5. Units Class..............................................................................30
3.5.1. Properties.........................................................................30
3.6. Unit Class...............................................................................31
3.6.1. Properties.........................................................................31
3.6.2. Metho s...........................................................................34
3.7. UnitStatus Class.....................................................................38
3.7.1. Properties.........................................................................38
3.8. VersionInformation Class..........................................................39
3.8.1. Properties.........................................................................39
3.9. Detectors Class.......................................................................40
3.9.1. Properties.........................................................................40
3.10. Detector Class.......................................................................40
Quercus Technologies

3.10.1. Properties.......................................................................41
3.10.2. Metho s..........................................................................43
3.11. PresenceDetector Class...........................................................44
3.12. QueueDetector Class..............................................................44
3.13. Spee Detector Class...............................................................45
3.13.1. Properties.......................................................................45
3.14. Re LightDetector Class...........................................................46
3.14.1. Properties.......................................................................46
3.15. Class Stoppe CarDetector.......................................................48
3.15.1. Properties.......................................................................49
3.16. TrafficLights Class..................................................................50
3.16.1. Properties.......................................................................50
3.17. TrafficLight Class....................................................................51
3.17.1. Properties.......................................................................51
3.17.2. Metho s..........................................................................52
3.18. HistoricInci ences Class..........................................................53
3.18.1. Properties.......................................................................53
3.18.2. Metho s..........................................................................53
3.19. HistoricSummaries Class.........................................................55
3.19.1. Properties.......................................................................55
3.19.2. Metho s..........................................................................55
3.20. RealTimeInformation Class......................................................57
3.20.1. Properties.......................................................................57
3.20.2. Metho s..........................................................................59
3.21. Regions Class........................................................................59
3.21.1. Properties.......................................................................60
3.22. Region Class..........................................................................60
3.22.1. Properties.......................................................................60
3.22.2. Metho s..........................................................................62
3.23. Lights Class...........................................................................62
3.23.1. Properties.......................................................................62
3.24. Light Class............................................................................63
Quercus Technologies

3.24.1. Properties.......................................................................63
3.24.2. Metho s..........................................................................63
3.25. Inci ence Class......................................................................64
3.25.1. Properties.......................................................................64
3.25.2. Metho s..........................................................................67
3.26. Images Class.........................................................................67
3.26.1. Properties.......................................................................68
3.27. Image Class..........................................................................68
3.27.1. Properties.......................................................................68
3.27.2. Metho s..........................................................................69
3.28. Vi eo Class ..........................................................................69
3.28.1. Properties.......................................................................69
3.28.2. Metho s..........................................................................71
3.29. Summary Class......................................................................72
3.29.1. Properties.......................................................................72
3.29.2. Metho s..........................................................................77
3.30. Spee sDistribution Class.........................................................77
3.30.1. Properties.......................................................................77
3.31. LengthsDistribution Class........................................................78
3.31.1. Properties.......................................................................78
3.32. OccupationsDistribution Class..................................................79
3.32.1. Properties.......................................................................79
3.33. Spee sUpperLimit Class..........................................................79
3.33.1. Properties.......................................................................79
3.34. LengthsUpperLimit Class.........................................................80
3.34.1. Properties.......................................................................80
3.35. OccupationsUpperLimit Class...................................................81
3.35.1. Properties.......................................................................81
3.36. Timestamp Class....................................................................81
3.36.1. Properties.......................................................................81
3.37. Notification Class...................................................................82
3.37.1. Properties.......................................................................82
Quercus Technologies

3.38. Configuration Class................................................................82
3.38.1. Metho s..........................................................................83
3.39. ConfigurationDetector Class.....................................................94
3.39.1. Properties.......................................................................94
3.39.2. Metho s..........................................................................98
3.40. ConfigurationPresenceDetector Class .......................................98
3.41. ConfigurationQueueDetector class............................................99
3.42. ConfigurationSpee Detector class.............................................99
3.42.1. Properties.......................................................................99
3.43. ConfigurationRe LightDetector class.......................................100
3.43.1. Properties.....................................................................100
3.44. ConfigurationStoppe CarDetector Class...................................105
3.44.1. Properties.....................................................................105
3.45. ConfigurationOutputActuator class..........................................108
3.45.1. Properties.....................................................................108
3.45.2. Metho s .......................................................................110
3.46. ConfigurationOutputActuatorCon itions class............................110
3.46.1. Metho s........................................................................110
3.47. ConfigurationOutputActuatorCon ition class.............................112
3.47.1. Properties.....................................................................112
3.47.2. Metho s .......................................................................113
3.48. ConfigurationTrafficLight class................................................114
3.48.1. Properties.....................................................................114
3.48.2. Metho s........................................................................115
3.49. ConfigurationLights Class.......................................................116
3.49.1. Metho s........................................................................116
3.50. ConfigurationLight class........................................................117
3.50.1. Properties.....................................................................117
3.50.2. Metho s.......................................................................119
3.51. SystemInformation class ......................................................119
3.51.1. Properties.....................................................................119
3.51.2. Metho s........................................................................120
Quercus Technologies

3.52. SettingsEntry class...............................................................121
3.52.1. Properties.....................................................................121
3.52.2. Metho s........................................................................122
3.53. VLDetectorType Type............................................................122
3.54. VLNotificationCo e Type........................................................122
3.55. VLInci enceType Type...........................................................123
3.56. VLLightType Type.................................................................123
3.57. VLFiel Type Type.................................................................123
3.58. VLOperatorType Type...........................................................123
3.59. VLTimestampObject Type......................................................124
3.60. VLLogSystem Type...............................................................124
3.61. VLConfigurationActionType Type.............................................124
3.62. VLCon itionOperatorType Type...............................................125
4. Communications protocol..............................................................126
4.1. Message format.....................................................................127
4.2. Message version....................................................................128
4.3. Compatibility between QuercusVL® pro ucts.............................130
4.4. Initial concepts .....................................................................132
4.4.1. Units..............................................................................132
4.4.2. Booleans.........................................................................132
4.4.3. Coor inates.....................................................................132
4.5. Common structures................................................................132
4.5.1. Timestamp......................................................................132
4.5.2. Region............................................................................133
4.5.3. DetectorHea er...............................................................133
4.5.4. Spee Detector.................................................................134
4.5.5. QueueDetector................................................................135
4.5.6. PresenceDetector.............................................................135
4.5.7. Light..............................................................................135
4.5.8. TrafficLight......................................................................136
4.5.9. Re LightDetector.............................................................136
4.5.10. Stoppe CarDetector........................................................138
Quercus Technologies

4.5.11. Vi eoInformation............................................................138
4.5.12. OutputActuatorCon ition.................................................139
4.5.13. OutputActuator..............................................................139
4.6. Event messages.....................................................................140
4.6.1. InputChange ..................................................................140
4.6.2. Notification......................................................................140
4.6.3. SummaryInformation........................................................141
4.6.4. Inci enceInformation........................................................142
4.6.5. RealTimeInformation........................................................144
4.7. Query messages ...................................................................144
4.7.1. VersionQuery...................................................................144
4.7.2. RealTimeQuery................................................................145
4.7.3. StatusQuery....................................................................146
4.7.4. IOQuery.........................................................................147
4.7.5. ImageQuery....................................................................147
4.7.6. SnapshotQuery................................................................148
4.7.7. UnitTasksQuery...............................................................150
4.7.8. DetectorTasksQuery.........................................................151
4.7.9. DetectorsCountQuery........................................................151
4.7.10. DetectorInformationQuery...............................................152
4.7.11. TrafficLightsCountQuery..................................................154
4.7.12. TrafficLightInformationQuery............................................154
4.7.13. SetUnitTasksQuery.........................................................155
4.7.14. SetDetectorTasksQuery...................................................156
4.7.15. OutputQuery..................................................................156
4.7.16. RebootQuery.................................................................157
4.7.17. Vi eoQuery...................................................................157
4.8. Confirmation messages...........................................................158
4.8.1. ACK...............................................................................158
4.8.2. NAK...............................................................................158
4.9. Configuration messages..........................................................160
4.9.1. Ping...............................................................................161
Quercus Technologies

4.9.2. Login..............................................................................161
4.9.3. Logout............................................................................162
4.9.4. Passwor Change..............................................................162
4.9.5. SyncTime........................................................................163
4.9.6. SetTime..........................................................................163
4.9.7. Up ateFirmware...............................................................164
4.9.8. RestoreFirmware..............................................................164
4.9.9. FormatRWPartition...........................................................165
4.9.10. ExportLog.....................................................................165
4.9.11. SystemInfo....................................................................166
4.9.12. ExportStatus..................................................................167
4.9.13. ImportConfiguration.......................................................167
4.9.14. ExportConfiguration........................................................168
4.9.15. ApplyChanges................................................................168
4.9.16. Discar Changes.............................................................169
4.9.17. Restart.........................................................................169
4.9.18. GetEntriesCount.............................................................170
4.9.19. GetEntry.......................................................................171
4.9.20. SetEntry.......................................................................171
4.9.21. RestoreEntry..................................................................172
4.9.22. GetDetectorsCount.........................................................172
4.9.23. RemoveDetector............................................................173
4.9.24. GetDetector...................................................................174
4.9.25. SetPresenceDetector.......................................................175
4.9.26. SetQueueDetector..........................................................176
4.9.27. SetRe LightDetector.......................................................177
4.9.28. SetSpee Detector..........................................................178
4.9.29. SetStoppe CarDetector...................................................178
4.9.30. GetTrafficLightsCount......................................................179
4.9.31. RemoveTrafficLight.........................................................180
4.9.32. GetTrafficLight...............................................................180
4.9.33. SetTrafficLight...............................................................181
Quercus Technologies

4.9.34. GetLanguage....................................................................182
4.9.35. SetLanguage.................................................................183
4.9.36. GetOutputActuatorsCount................................................183
4.9.37. RemoveOutputActuator...................................................184
4.9.38. GetOutputActuator.........................................................184
4.9.39. SetOutputActuator..........................................................185
5. Communications protocol (ol versions)..........................................187
5.1. Common structures................................................................187
5.1.1. OutputActuator................................................................187
5.1.2. DetectorHea er...............................................................187
5.1.3. Spee Detector.................................................................188
5.1.4. QueueDetector................................................................189
5.1.5. PresenceDetector.............................................................189
5.1.6. TrafficLight......................................................................190
5.1.7. Re LightDetector.............................................................190
5.1.8. Stoppe CarDetector.........................................................192
5.2. Event messages.....................................................................193
5.2.1. Inci enceInformation........................................................193
5.3. Query messages....................................................................193
5.3.1. SnapshotQuery................................................................193
5.3.2. DetectorInformationQuery.................................................194
5.3.3. TrafficLightInformationQuery.............................................194
5.4. Configuration messages..........................................................195
5.4.1. SystemInfo.....................................................................195
5.4.2. GetDetector....................................................................195
5.4.3. SetPresenceDetector........................................................195
5.4.4. SetQueueDetector............................................................196
5.4.5. SetRe LightDetector.........................................................196
5.4.6. SetSpee Detector............................................................196
5.4.7. SetStoppe CarDetector.....................................................196
5.4.8. GetTrafficLight.................................................................196
5.4.9. SetTrafficLight.................................................................197
Quercus Technologies

6. Simulator SmartLoop® TS (TSSimu)...............................................198
6.1. Configuration.........................................................................198
6.1.1. General configuration file..................................................198
6.1.2. Detectors configuration file................................................199
6.1.2.1. Globals section...............................................................................199
6.1.2.2. DetectorX section............................................................................199
6.2. Simulation configuration.........................................................200
6.2.1.1. Instructions....................................................................................202
6.2.1.2. Example........................................................................................202
6.3. Simulator..............................................................................202
6.3.1. Graphical interface...........................................................204
7. Bir Watch® RL Simulator (RLSimu)................................................205
7.1. Configuration.........................................................................205
7.1.1. General configuration file..................................................205
7.1.2. Detectors configuration file................................................206
7.1.2.1. Globals section...............................................................................206
7.1.2.2. DetectorX section............................................................................207
7.1.2.3. TrafficLight_X section......................................................................208
7.1.2.4. LightX_Y section.............................................................................208
7.2. Simulation configuration.........................................................208
7.2.1. Vehicle movement event...................................................210
7.2.1.1. Instruction structure.......................................................................210
7.2.1.2. Example........................................................................................211
7.2.2. Digital input event............................................................211
7.2.2.1. Instruction structure.......................................................................211
7.2.2.2. Example........................................................................................212
7.2.3. Traffic light event.............................................................212
7.2.3.1. Instruction structure.......................................................................212
7.2.3.2. Example........................................................................................212
7.3. Simulator..............................................................................213
7.3.1. Graphical interface...........................................................213
7.4. Simulation example................................................................214
8. A itional functions......................................................................216
8.1. Information at FTP.................................................................216
Quercus Technologies

8.1.1. XML files.........................................................................216
8.1.1.1. Presence summary..........................................................................216
8.1.1.2. Queue summary.............................................................................217
8.1.1.3. Spee summary.............................................................................219
8.1.1.4. Re light inci ence..........................................................................221
8.1.1.5. Stoppe car inci ence.....................................................................223
8.1.2. JPEG file.........................................................................226
8.1.3. AVI file...........................................................................226
8.2. Protocol encryption.................................................................226
8.2.1. Encryption format............................................................227
8.2.2. SFTP server.....................................................................228
9. Annex F: Support.........................................................................229
Quercus Technologies

QuercusVL Programming Manual
This manual referes to the QuercusVL family products, which SmartLoop and
BirdWatch belong to. Although they have different functionalities, booth of them are
based on virtual loop technology. As a result, they use the same protocol of
communications, library and software tools.
Quercus Technologies 13

QuercusVL Programming Manual
1. Introduction
QuercusVL® units communicates with the client application using the protocol escribe in the
4. Communications protocol chapter. The protocol is embe e in C an C++ libraries which
are compatible with Microsoft Win ows an GNU/Linux.
The a vantages an isa vantages of each integration metho are escribe next:
●Class library in C++: Dynamically linke library for Win ows an GNU/Linux that
provi es an object oriente vision of the system. The source co e of a proxy in a fully
portable C++ language is provi e with the ynamically linke library, which can be
use with any C++ compiling program, the library manages the simultaneous an
transparent communications with various lanes. It implements a high level interface
which facilitates the programming tasks in C++. Available for Win ows or GNU/Linux
systems.
●Function library in C: Dynamically linke library for Win ows an GNU/Linux that
provi es an object oriente vision to functions of the system. As in the case of the C++
library, the source co e of a proxy in a fully portable C language is provi e with the
library, which can be use with any C compiling program. It also manages the
simultaneous an transparent communications with various lanes. Allows programming
with C while keeping the high level vision provi e by the C++ library. It can be use
with both C an C++ languages. Available for Win ows or GNU/Linux systems.
●Through UDP protocol of QuercusVL®: the efinitions of the protocol use for the
communication activities are provi e in a hea er file (VL.h) inclu ing examples of use,
programme in ANSI C. In a ition, the basic routines for UDP communications are also
provi e in files UDPTools.c an UDPTools.h. With the mentione files, any client
application that interacts with QuercusVL® can be programme from any evice with
network transmission capabilities.
Quercus Technologies 14

QuercusVL Programming Manual
The relationship between the ifferent layers can be seen in the following iagram (where it is
assume that the client application is programme in C++).
As the figure shows, the two high level programming metho s (C/C++) are merely successive
layers aroun a ynamically linke library, which inclu es all the functionalities of the system.
We must take into account that even though there are ifferent layers in the system, they o
not a any noticeable overhea to the system's operation (even in machines with a low
performance). So programming on top of the C or C++ libraries is equally efficient.
Quercus Technologies 15
Client computer
Client application
Proxy C++
Proxy C
QuercusLV ®
nit
DP Protocol
QuercusVL ®
nit
Dinamic-Link
Library

QuercusVL Programming Manual
2. Basic Programming
The following pages escribes the require steps to evelop a minimum program capable of
receiving the information generate in a unit.
Basic programming knowle ge is assume to tackle this chapter (C an C++). If you usually
work with some of these technologies, you will have no problem following the examples.
The source code of the examples is found in <installation folder>/Samples.
2.1. C++
The metho use by the C++ library to generate events, so that the client application is in
charge of the implementation, is forcing the client application to implement a class accor ing
to a specific interface. When an event occurs in a etector (for instance, generation of a real
time event), the library will call the correspon ing metho (OnRealTimeInformation in this
case). Take into account that these metho s will be calle from execution threa s which are
ifferent from the main one, so co e that is not safe about threa s or unable to be execute
out of the main threa , cannot not be use for the implementation.
A short C++ program is shown next, which is capable of capturing events. It correspon s to
the basic C++ sample locate at Samples fol er in the installation irectory.
/*------------------------------------------,
| Copyright (C) 2011 Quercus Technologies |
| All rights reserved |
`------------------------------------------*/
#include <stdio h>
#include "VLWrapperCpp"
using namespace VL;
class CEventHandler: public ISystemEH
{
public:
virtual void OnRealTimeInformation(RealTimeInformation info)
{
printf("OnRealTimeInformation (%d,%d)",
info get_Unit() get_Id(),info get_DetectorId());
switch(info get_DetectorType())
{
case DT_SPEED: printf("DT_SPEED\n"); break;
case DT_QUEUE: printf("DT_QUEUE\n"); break;
case DT_PRESENCE: printf("DT_PRESENCE\n"); break;
default:break;
}
}
Quercus Technologies 16

QuercusVL Programming Manual
virtual void OnIncidence(Incidence inc)
{
printf("OnIncidence (%d,%d), %d,"
,inc get_Unit() get_Id(),inc get_DetectorId(),inc get_Id());
switch(inc get_Type())
{
case IT_RED_LIGHT_VIOLATION: printf("IT_RED_LIGHT_VIOLATION\n");
break;
case IT_STOPPED_CAR_VIOLATION:printf("IT_STOPPED_CAR_VIOLATION\n");
break;
}
if(inc get_Images() Count()>0) printf("Image 0 secs:%d\n",
inc get_Images() Item(0) get_Timestamp() get_Seconds());
else printf("Image NOT FOUND\n");
if(inc get_Video() IsValid()) printf("Video %dx%d duration:%d frameRate:
%d\n",inc get_Video() get_Width(),inc get_Video() get_Height(),
inc get_Video() get_Duration(),inc get_Video() get_Framerate());
else printf("Video NOT FOUND\n");
}
virtual void OnSummary(Summary sum)
{
printf("OnSummary (%d ,%d) ",sum get_Unit() get_Id(),sum get_DetectorId());
switch(sum get_DetectorType())
{
case DT_SPEED: printf("DT_SPEED\n"); break;
case DT_QUEUE: printf("DT_QUEUE\n"); break;
case DT_PRESENCE: printf("DT_PRESENCE\n"); break;
default:break;
}
}
};
CEventHandler EventHandler;
int main(int argc, char *argv[])
{
if(VLLoad()==-1) return -1;
if(!System::Initialize("Central ini","Central log",&EventHandler))
{
printf("Can't initialize system \n");
return -1;
}
printf("Press [RETURN] to exit\n");
getchar();
System::Terminate();
VLUnload();
return 0;
}
Parts of the sample co e:
#include “VLWrapperCpp”
The only hea er file require to interact with QuercusVL® from C++.
using namespace VL;
Quercus Technologies 17

QuercusVL Programming Manual
Use VL namespace. All classes are efine insi e “VL” namespace to avoi collisions with other
class names.
class CEventHandler: public ISystemEH
Class that will implement the client co e to execute with the events. As it is erive from
IsystemEH we force it to implement its abstract metho s (“On...”). If you are not intereste in
any of the events just leave metho implementation empty.
CEventHandler EventHandler;
Object that will catch events.
i (VLLoad()==-1) return -1;
Loa of VL library.
i (!System::Initialize("Central.ini","Central.log",&EventHandler)) return -1;
Initialization of VL class library. This must be the first metho to be calle .
It is responsible to initialize the system, events, an set up networking with units configure at
initialization file “Central.ini”. The file “Central.log” stores system logs. As you can see, the
previously create object CEventHan ler, is passe to the library as a parameter so that the
library can call its metho s when necessary.
From now on, if you start the simulators “TSSimu” or “RLSimu” or the system has been
configure to communicate with real units, the events generate will be receive .
System::Terminate();
En of VL library execution.
VLUnload();
Unloa of VL library.
2.1.1. Memory management
It must be mentione that C++ memory management is hi en (using “intelligent” pointers),
in a way that the eveloper oesn't have to worry about objects creation an removal.
All objects that make up the library can be create on the stack, passe as function
parameters by value, returns, etc. without loosing memory or performance. For example the
following construction is perfectly vali :
Quercus Technologies 18

QuercusVL Programming Manual
Detector ExampleOfObjectsUse (Unit unit)
{
Detector detectorA, detectorB;
detectorA=unit get_Detectors() Item(0);
detectorB=detectorA;
return detectorB;
}
Even though the function of the example oes not contain useful co e, it shows the use ma e
of objects:
●Detector ExampleO ObjectsUse(Unit unit);
The objects can be passe as function parameters without using pointers or references,
an it oes not affect application performance.
In a classic C++ objects system, this call woul turn into a performance ecrease an a
potential source of errors, because it woul call the object's copy constructor to pass
the copy as a function parameter. When the function returns, it woul call the object's
copy estructor an this is angerous, specially if the object internally contains
pointers. In VL library, all these caveats have been solve , as the object's copy
constructor is only 4 bytes of memory, an at the estruction of the object's copy, the
real object is never estroye while there is any copy still to estroy.
●detectorA=unit.get_Detectors().Item(0);
detectorB=detectorA;
return detectorB;
All VL metho s returns objects, never pointers or references. The eveloper can freely
manipulate the object (can be uplicate , returne , etc., an it will remain vali ).
2.1.2. Build of executable
Visual Studio
●Open the workspace “Samples. sw” locate at fol er “Samples”.
●Set the active project “CppApi_Basic”.
●“Buil ” the executable.
Linux
●Open a console win ow.
●Go to fol er Samples/CppApi_Basic.
●Type “make” comman .
Quercus Technologies 19

QuercusVL Programming Manual
2.2. C
The metho use by the C library to generate events, so that the client application is in charge
of the implementation, is forcing the client application to implement a class accor ing to a
specific interface. When an event occurs in a etector (for instance, generation of a real time
event), the library will call the correspon ing metho (OnRealTimeInformation in this case).
Take into account that these metho s will be calle from execution threa s which are ifferent
from the main one, so co e that is not safe about threa s or unable to be execute out of the
main threa , cannot not be use for the implementation.
A short C program is shown next, which is capable of capturing events.
It correspon s to the basic C sample locate at Samples fol er in the installation irectory.
/*------------------------------------------,
| Copyright (C) 2011 Quercus Technologies |
| All rights reserved |
`------------------------------------------*/
#include <stdio h>
#include "VLWrapperC h"
typedef enum
{
DT_ALL=0,
DT_SPEED=1,
DT_QUEUE=2,
DT_PRESENCE=3,
DT_RED_LIGHT=4,
DT_STOPPED_CAR=5
} VLDetectorType;
void __stdcall OnRealTimeInformation(int info)
{
printf("OnRealTimeInformation (%d ,%d) ",
VL_Unit_get_Id(VL_RealTimeInformation_get_Unit(info)),
VL_RealTimeInformation_get_DetectorId(info));
switch(VL_RealTimeInformation_get_DetectorType(info))
{
case 1: printf("DT_SPEED\n"); break;
case 2: printf("DT_QUEUE\n"); break;
case 3: printf("DT_PRESENCE\n"); break;
default: break;
}
}
void __stdcall OnIncidence(int inc)
{
printf("OnIncidence (%d ,%d), %d, ",
VL_Unit_get_Id(VL_Incidence_get_Unit(inc)),
VL_Incidence_get_DetectorId(inc),VL_Incidence_get_Id(inc));
switch(VL_Incidence_get_Type(inc))
{
case 1: printf("IT_RED_LIGHT_VIOLATION\n"); break;
case 2: printf("IT_STOPPED_CAR_VIOLATION\n"); break;
default: break;
}
}
void __stdcall OnSummary(int sum)
{
printf("OnSummary (%d ,%d) ",
VL_Unit_get_Id(VL_Summary_get_Unit(sum)),VL_Summary_get_DetectorId(sum));
Quercus Technologies 20
This manual suits for next models
2
Table of contents
Popular Accessories manuals by other brands

IFM Electronic
IFM Electronic O5D10 series operating instructions

ORION TELESCOPES & BINOCULARS
ORION TELESCOPES & BINOCULARS SteadyPix 5693 instruction manual

wtw
wtw FDO 700 IQ F operating manual

Kenwood
Kenwood KAX700PL instructions

netvox
netvox R718LB user manual

VOLTCRAFT
VOLTCRAFT PB-16 operating instructions