Skip to content

Native EX-SensorCAM Command List

Commands are used through the Command Station input to configure the sensorCAM settings and create virtual sensors.

Conventions used on this page

, space Equivalent parameter separators. CS must use space character
%%         Represents a Sensor's bank/sensor two digit identifier (digits 0-7 only)
ro xx    Represent the row and column position of sensor (range 1-236 & 1-316 only)
#           Represents a single decimal digit (0-9)
$           Represents a single alpha-numeric character (A-Z or 0-9 as relevant to command)
[ ]        Indicates enclosed parameter is optional. Do NOT type brackets into commands
< >        Encloses native CS command and MUST be typed to define CS command

Native cam USB & CS cmd formats

Native CAM
example
DCC-EX CS
Serial Cmd.
      Command Description
n/a <N> Show Current CAM selection and others available
lists assigned base vpins
n/a <NQ> Query state of all Sensors
Tabulation of all CAM sensor tripped states
a%%[,ro,xx]
a12,32,43
<Na %%
[ ro xx]>
enAble Sensor and refresh reference
Sensor responsive. [new coordinates: ro,xx]
b#[,$]
b1
<Nb #> Bank occupancy status bytes of 8 sensors
gives a bank "value" [set Brightness ScaleFactor $]
c$$$$ n/a ov2640 re-Calibration and re-reference
Refer to manual before use! (deprecate)
d%%[,#]
d12,5
n/a Difference Score for Sensor [# repeats]
scores for colour, brightness & sum
e
e
<Ne> EPROM write sensorCAM configuration
Save parameters for next Reset
f%%
f12
<Nf %%> Frame S%% pixel array. Full 16x3 bytes (HEX)
4x4(RGB) pixels current & reference frames
g
g
<Ng> Global ov2640 Status to CAM monitor
Lists 14 parameter settings
h$[,#]
h7,1
<Nh %%>
<Nh $[ #]>
Help (debug) set maxSensors(>9) (h lists options)
h7,# pauses(w) scroll on bank # trips
i%%[,$$]
i12,02
<Ni %% [$$]> Info on Sensor state & configuration
[add a "twin" sensor (S$$) to S%%]
j$,#
jB2
<Nj $ #> adJust ov2640 global parameters & lists 'g' state
Set a single parameter($) for ov2640. j lists options
k%%,ro,xx
k12,130,205
n/a locate a basic sensor at row ro, column xx
Defines sensor at ro,xx DOES NOT enable or reference
l%%
l12
<Nl %%> (Lima) Latch sensor on (i.e. occupied = 1)
Sensor disabled, & set 1 until a%%, r%% or o%%
m$[,%%]
m2,30
<Nm $ [%%]> Min2trip frames setting $(1-4) [MaxSensor setting]
Sets min/max. m0,%% leaves min2trip unchanged
n$[,%%]
n0,10
<Nn $ [%%]> Number for bank trip nLED indicator [set minSensor]
Sets LED to indicates when bank $ sensor is tripped
o%%
o12
<No %%> (Oscar) turn sensor Off (un-occupied = 0)
Sensor disabled, & set 0 until a%%, r%% or l%%
p#
p2
<Np #> Position table for a bank of sensors (row,col)
List for enAbled sensors of bank #. Also p%%
q#
q2
<Nq #> Query enAbled state of sensors in bank
State of 8 sensors (1/0). Use q9 for ALL banks
r%%
r12
<Nr %%> Refresh reference image for sensor S%%
enAble S%% & capture new ref image.  r00 for ALL
s%%
s12
<Ns %%> Scan image to locate new S%% position (superseded)
Scan for brightest spot (LED) & define sensor there.
t##[,%%]
t42,12
<Nt ## [%%]> Theshold value (32-98) [pvtThreshold for S%%]
Sets global threshold. [t0,%% delete pvtThreshold]
t##
t20
<Nt ##> Tabulate ## (2-30 only) rows of scroll data
t1 toggles scroll on/off & t99 lists pvtThresholds
t1,%%
t1,12
<Nt 1 %%> Trash pvtThresholds for S%% bank
Clears 8 pvtThresholds.   t1,99 clears ALL pvtT.
u%%
u12
<Nu %%> Un-define Sensor S%% (EPROM unchanged)
Resets sensor coordinates to 0,0
v[#]
v1
<Nv[ #]> Version [or Video webCAM mode SSID #]
EX-SensorCAM version info [v# starts SSID # webCAM]
w
w
<Nw> Wait for command.   (see 't1' for alternative action)
suspends image capture & scrolling. Waits for 'Enter'
x y z n/a Reserved commands for image transfer management
Sends image data to USB port for Processing4 (X Y Z)
n/a <N[M #00]> Show Current CAM selection and others available
[ # optional switching current cam to CAM # (1-4)]
n/a <NC ###> CAM selection Switches to CAM number #(1-4)
or vpin ### (vpin >99)
F <NF> Forces immediate CAM reset
Reset EX-SensorCAM mode, exit webCAM/WiFi mode
R n/a Reset EX-SensorCAM   (<NR> equates to <Nr 00>)
Reset into EX-SensorCAM mode, exit any WiFi mode
& n/a Print statistics since last '&' cmd.
Histogram of trips + potential trips of 1-3 frames
+#,$
+2,3
n/a Add offset of # pixels in $ direction to ALL Sensors
moves by # pixels in $(0-7) direction specified (N-NW)
\%%,#,$
\30,2,3
n/a linear sensor bank conversion starting at S%%
use r,x step size of #,$(0-31) Slope "down-right"
/%%,#,$
/30,2,3
n/a linear sensor bank conversion starting at S%%
use r,x step size of #,$(0-31) Slope "down-left"
@##
@73
n/a change scroll trip symbol - refer to manual
EXISensorCAMIversionIinfoIIvIIstartsISSIDIIIwebCAMIII

NOTE: The SensorCAM USB input will also accept most CS formatted commands.