Skip to main content

Line Crossing & Tripwire Configuration

Application Guide

For a complete walkthrough with code examples, see the Perimeter Security & Line Crossing application guide.

GetSmartTripwireConfig

Retrieves line crossing/tripwire detection configuration. Returns the tripwire lines, crossing direction, object filters, and alarm settings.

FieldValue
Endpoint/GetSmartTripwireConfig[/channelId]
MethodPOST or GET
ProductsIPC
Channel IDOptional (default 1)

Response Example

<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.ipc.com/ver10" version="2.0.0">
<types>
<tripwireDirection>
<enum>none</enum>
<enum>rightortop</enum>
<enum>leftorbotton</enum>
</tripwireDirection>
</types>
<tripwire>
<switch type="boolean">false</switch>
<alarmHoldTime type="uint32">20</alarmHoldTime>
<objectFilter>
<car>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">50</sensitivity>
</car>
<person>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">50</sensitivity>
</person>
</objectFilter>
<lineInfo type="list" maxCount="4" count="1">
<item>
<direction type="tripwireDirection">rightortop</direction>
<startPoint>
<X type="uint32">10</X>
<Y type="uint32">10</Y>
</startPoint>
<endPoint>
<X type="uint32">1000</X>
<Y type="uint32">1000</Y>
</endPoint>
</item>
</lineInfo>
</tripwire>
</config>

Parameters

ParameterTypeRangeDescription
switchbooleantrue / falseEnable or disable tripwire detection
alarmHoldTimeuint32Duration (seconds) to hold the alarm state after detection
objectFilter.car.switchbooleantrue / falseEnable car/vehicle detection
objectFilter.car.sensitivityuint321–100 (default 50)Car detection sensitivity
objectFilter.person.switchbooleantrue / falseEnable person detection
objectFilter.person.sensitivityuint321–100 (default 50)Person detection sensitivity
lineInfolistmaxCount: 4Tripwire lines (up to 4 lines)
lineInfo.item.directiontripwireDirectionnone, rightortop, leftorbottonCrossing direction that triggers the alarm
lineInfo.item.startPoint.Xuint32X coordinate of the tripwire start point
lineInfo.item.startPoint.Yuint32Y coordinate of the tripwire start point
lineInfo.item.endPoint.Xuint32X coordinate of the tripwire end point
lineInfo.item.endPoint.Yuint32Y coordinate of the tripwire end point

Direction Values

ValueDescription
noneTrigger on crossing in either direction
rightortopTrigger only when crossing from left-to-right or bottom-to-top
leftorbottonTrigger only when crossing from right-to-left or top-to-bottom

Notes

  • Up to 4 independent tripwire lines can be configured.
  • Each line is defined by a start point and end point, with a crossing direction filter.
  • The tripwireDirection enum values are defined in the <types> block of the response.
  • The spelling leftorbotton (not "bottom") matches the firmware's XML — use this exact value when setting configuration.
  • The corresponding Set command is SetSmartTripwireConfig using the same XML structure.
EndpointPurpose
GetSmartPerimeterConfigIntrusion zone detection (polygon regions)
GetSmartAoiEntryConfigRegion entry detection
SetHttpPostConfigConfigure webhook destination