Temperature measurement is mainly applied to the electric and industrial automation fields, which provides accurate and stable temperature measurement for the mid-to-high end manufacturers (e.g., intelligent robot) to realize the process control, automatic detection, and status monitoring of electromechanical devices. You can set the industry thermometry in normal mode to measure the global temperature during the industrial production. When the measured temperature does not meet the configured temperature threshold, the alarm will be triggered and uploaded to monitoring center if configured. And then, you can receive the alarm.
Make sure you have called NET_DVR_Init to initialize the development environment.
Make sure you have called NET_DVR_Login_V40 to log in to the device.
Figure 1 Programming Flow of
Configuring Temperature Measurement Alarm in Normal ModeThe thermal capability (XML_ThermalCap) is returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_ABILITY.
The functional mutex capability (XML_Cap_ThermIntell) is returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_ABILITY.
The functional mutex parameters (NET_DVR_THERMINTELL_PARAM) are returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_CONFIG.
The capability of temperature measurement mode configuration (XML_Cap_ThermometryMode) is returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_ABILITY.
The temperature measurement mode (NET_DVR_THERMOMETRY_MODE) are returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_CONFIG.
The basic temperature measurement capability (XML_Cap_ThermometryBasicParam) is returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_ABILITY.
The basic temperature measurement parameters (NET_DVR_THERMOMETRY_BASICPARAM) are returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_CONFIG.
The arming schedule configuration capability (XML_Schedule) is returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_ABILITY.
The arming schedule parameters (NET_DVR_EVENT_SCHEDULE) are returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_CONFIG.
The linkage action configuration capability (XML_EventTriggersCap) is returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_ABILITY.
The linkage action parameters (NET_DVR_EVENT_TRIGGER) are returned by the output parameter lpOutBuffer in the structure of NET_DVR_STD_CONFIG.
To receive the alarm in platform or system, the linkage action must be set to "center" (upload to alarm center).
The command lCommand to receive related temperature measurement alarm should be set to COMM_THERMOMETRY_ALARM (command No.: 0x5212) or COMM_THERMOMETRY_DIFF_ALARM (command No.: 0x5211) in the APIs of NET_DVR_SetDVRMessageCallBack_V50 and NET_DVR_StartListen_V30. For alarm details, refer to the structure NET_DVR_THERMOMETRY_ALARM or NET_DVR_THERMOMETRY_DIFF_ALARM.
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resources.