Professional Documents
Culture Documents
SF-VPC Manual
1. For the convenience of description, the following abbreviation will be used to instead of full name.
SF-VPC is made up of two devices:
Four-Channels Image Processor (Vehicle Video People Counter), called VPC for short.
Binocular StereoCamera (SF-BSC), called Camera for short.
Mark Definition
In
Out
In/out
pause
Refresh The press-button in the VPC-Client side
Warning:
Note:
3 INSTALLATION VPC.............................................................................................................................- 26 -
5 APPLICATION......................................................................................................................................- 98 -
Figure 1. One unit VPC include One Counter and Two/One StereoCamera
This passenger counter can be easily adapted to a variety of different application requirements and installation
environment.
Due to the split design and complete installation accessories, making it easy to install, maintain, and debug.
The Counter and BSC could be quickly and easily installed in the door, ceiling, bus etc.
VPC could connect two StereoCamera, support detect two doors or two channels in two-way (in and out)
people counting in simultaneously.
VPC support many VPCs collaborative work to Detect more doors or channels via Ethernet or direct connect
network cable.
VPC could detect 120cm-1020cm wide gate by StereoCamera can be arranged in a straight line.
StereoCamera gets the left and right two images of one scenarios in real time. Because the Infrared-LED inside,
VPC can work in any type of lighting environments or even full darkness.
StereoCamera should be installed perpendicular to the ground. To achieve this goal, our StereoCamera have
two fixed bracket, were able to provide bi-directional 0-60 degree and 90 degree adjustment, and each
minimum adjustment angle is 2.5 degrees. Due to the design of the adjustable stand allows StereoCameras can
be installed and fixed in position and not vertical surfaces.
The VPC judge the objects moved direction (in/out) under the Camera by detecting and analysing the height,
shape, direction of objects and record the in/out information in real time. The records can be saved in the
recordable compact storage of VPC then can be downloaded and used for report analysis.
Binuclear Stereo Vision is an important technology of machine vision. It is based on the parallax theory and
using imaging equipment from different location to obtain two images of tested object, then compute image
corresponding points between position deviation to obtain object three-dimensional geometrical information.
Combine images obtained by two eyes and observe the differences between them, we can obtain significant
feeling of depth and establish corresponding relations among the characteristics. The two images that have
differences in the distance, we call the Disparity image. Stereo Video vision has higher precision than
monocular two-dimensional video analysis.
Counter has several appearance versions from the back panel as the following. And there are two versions in
the status bar in the VPC-Client.exe. The two hardware versions are different.
Omission.
1.3.2.1 SF-BSC_V3.0
1.3.2.2 SF-BSC_V3.1
DC Female Connector: DC12V power input from the Counter DC12V power output of the DC Male connector.
1.3.3.1 SF-GGM_V1.0
According to the StereoCamera installation height, need use different lens. See this article Measurement of
the VPC installation Position
The VPC does not contain an internal power supply. It has to be provided by an external facility acc. to the
specified technical data and has to be connected to the intended interface. Please refer to the above specific
wiring different hardware versions of the label.
Adaptable 10Base-T/100Base-TX
2.5.4 RS485
2.5.5 GPI
Counter has 0/4/8 General Purpose Input(GPI) optocoupler by factory configured. Each GPI can be configured
to level input or switch input mode, the user can customize mode, please contact us.
GPI is the external signal input of the VPC. According to the VPC factory configuration, GPI could detect three
external signals as following:
Switch Signal
Voltage Level Signal
Pulse Signal (one of the Votage Level Signal)
2.5.6 GPO
Counter support 4-channel analog video input in real time. Also supports two-channel analog video input
switching, but always has 4-channels in real time.
Counter has two CVBS analog video signal output for driving 75 DC level, it can be connected directly to a TV
monitor or DVR. The CVBS connector is BNC.
VideoOut1: The "4" BNC in AIR OUTLET A, the quad CVBS analog video output in real time.
VideoOut2: The "3" BNC in AIR OUTLET A, as with real-time display of the OSD quad CVBS analog video output.
Optional.
It supports full-speed (12Mbps) and low speed (1.5 Mbps) USB transfer
In line with USB1.1 specification.
2.5.10 IR-LED
Different version of the StereoCamera has different amounts and light intensity infrared lights. There are
interior lighting in the bus in the evening. Generally, the factory configure infrared LED should satisfy light and
make image clear. For more light, please contact us.
2.5.11 Records
Camera lens size and installation height can directly affects the VPC counting accuracy, user need to measure
before ordering. Please refer to the following table.
The Camera NO. column, "#" is anyone of English letters a-z, a-z; "* means Arabic numerals.
There are maybe two suitable lens in same height, please contact us to choose the best.
StereoCamera offers two mounting brackets (as explained in the following brackets), asking the user to select
proper bracket according to the actual situation,
Under normal circumstances, the "L" type bracket for vehicle, lifting bracket for fixed places.
1. L Bracket
There are 44 holes on "L" bracket and the holes make it easy to adjust angle of the StereoCamera lens surface
and ground. L has respectively left and right rotation adjustment feature, adjustable angle to 0 60 degrees
and 90 degrees, the minimum spacing of 2.5 degrees.
2. Lifting Bracket
VPC offer lifting bracket (as below), which can fix any standard Camera bracket. It can adjust angel, to make it
perpendicular to the ground as possible.
In order to monitor in real time the boarding and exiting of passengers, VPC can connect with other devices on
the vehicle through the RS485/232 interface and transmit data real time. For example on embedded DVR or
GPS/GPRS, VPC by GPRS/3G upload passenger real-time data to the background, make it easier to see.
VPC integrates with isolated digital I/O interfaces can get signals about the door switches status in order to
guarantee that VPC can count when the door is open. For example: VPC can stop counting when the door is
closed.
The VPC passenger detecting and statistic function sare based on Binocular Stereo Vision technical, in other
words, it measures the objects height present in the view fields by two Cameras, and tracking .It performances
robust and excellent precision against changes in the illumination.
However, highly reflective, geometric structures situate do nor near the floor, such as the metallic parts for
door operating mechanisms, which cause extreme pattern so flight and darkness when
illuminatedbystronglight(e.g.directsunlightordirectionalhalogenlighting)couldleadtoflaweddistance
measurements.
To avoid performance degradation due to the se effects, high reflective material surfaces should be avoided as
much as possible in the area within the ameras view, also lighting in the gate area should be diffused and not
spot-like. The floor reflective in dex should be kept below 0.7(e.g. white acrylic paint) and should not display
regular geometric repetitive patterns. Metallic or shiny objects (such as door handles, bars, glass or protective
glossy strips)should not cover a significant part of the visual field. If this is not avoidable, the reflectivity of
these items should be reduced by means of non-reflective materials.
One unit VPC only the Counter need input power supply of the DC24V in bus, StereoCamera is powered by
Counter (DC12V only). Counter does not necessarily need to connect the ACC signal, it may connect the ACC
level signal input to the Counter GPI, as the external signal detection, when needs the ACC signal. Choosing
getting power location is based on the customer's application, it is recommended to use the first method to
take power:
1. Get power behind the battery switch of the bus, VPC will power off after bus driver manually turn off the
whole bus power daily.
2. Get power before battery switch, VPC is power on 7*24 hours.
3. Get power from other places suited to user demand.
Ask and get help from the bus repair staff, find the voltage level signal line of the door valve (generally under
the door). Please see the Connection Door Status in this article.
If the bus door appeared in the image, then we need connect the door status signal to the Counter, excluding
the impact of closing the door on the counting accuracy.
Limit switch detect swing arm of the door valve, with the door open and closed state corresponding to
the occurrence of opened and closed.
Interior lights near the door, with the door opening and closing state and the corresponding light and off.
On the dashboard, door status lamp, with doors opening and closing state and the corresponding light
and off.
Door switch for driver is a button (press down will bounce back) or switch (press down not bounce back),
if the button is generated is a pulse signal, and if the switch, the resulting sustained an electrical or not
electrical signal.
If could not find a suitable door status signal in bus, you may install a limit switch to detect the door
status.
Observe and estimate the signal source selected at the door open, closed when the signal changes
corresponding to what may be the way: SWITCH MODE, LEVEL MODE, PULSE MODE.
1. GPRS Antenna:
2. GPS antenna:
Recommendation behind the vehicle windshield, against the sky with good visibility, ensuring at the same time
be covering three or more satellite signals.
3. Serial RS232:
2
Three-core shielded power cable, cross-sectional area of approximately 0.5 mm .
Two core shielded power cable, cross-sectional area of approximately 0.5 mm2.
5. External GPIO
Since the bus or in the building might install the Counter and Camera in two separate location, and therefore,
Counter is not equipped with all the connecting cables at the factory, or require users to produce their own
customized.
Determine the installation position of the Camera, the RIGHT LENS should be for door width center, around
the middle, and mark the installation "L" bracket screw holes before mounting holes. Right lens is away from
the light-sensitive side.
Installation height is located 230cm from the ground (the first step or the second step, using 4mm Lens). In this
position, the detection area is between 120cm-200cm from ground (if the bus is the distance from the first
step). The blind area is between 25cm-40cm from camera glass.
Camera must install vertically, perpendicular to the ground away from the axis preferably less than plus or
minus 5 degrees, the maximum should not exceed 15 degrees. The following diagram shows:
Choose the right opening tool to open hole, fix Camera according to the following installation method.
There are four screw holes in Cameras sides for using screws to fix the Camera on the ceilings, we suggest
using 4pcs M3 screws with washer. Between the "L" shaped bracket and the camera body with two M3 screws
fixed together.
Warning:
Please dont open the Camera, otherwise it would cause the two Cameras physical location
changed, once moved (destroyed) the relative relationship between the two Cameras, there will
be an inaccurate count, and users cannot repair it by themselves so you have to send it back to
factory.
There are 4 small screws on the back of Camera, using the M2.5*5 screws are equipped with lifting
attachments, using ordinary Camera bracket or self-made Suspender, fixed the lifting Camera, as in the glass
door or on the ceiling. You can use lead waterproof joint, as below:
Important Note:
Once the Video Camera installed, no longer have any movement Video Camera does not
require any additional equipment or glass shield to protect the lens and infrared light. If you
want to install external shell, such as explosion-proof housing, ensure the 400-900nm visible
light can through the shell.
Or mounted inside the dashboard, and the vehicle easy to connect a DVR or GPS device.
It is a GPI function that using GPI detecting the door status signal, the ways as following:
Recommended use high and low voltage level signal input: one door use one signal line (high/low level).
3.2.5.1.1 Explanations
Vehicle doors are generally true state detection mechanism, the signal may be sent to the vehicle CAN bus
door status signals to locate and measure their true status:
Door is opened, the line keeps has voltage (or no voltage)
Door is closed, the line keeps without voltage (or has voltage)
3.2.5.1.2 Measurements
Observation of door opening / closing, if there is a Limit Switch triggered by door valve driving arm, and then
along the limit-switch lines, try to find the output signal lines, then:
Measuring these lines whether there is voltage or not while the door open or closed.
Or using a Multimeter to measure one line with the ground line happen ON and OFF.
Or using test pencil measured these lines whether there is a pulse signal.
Find the limit switch is connected to the line where that equipment, measuring lines of this device, the red
circle in the figure below the line ahead of all the measuring probe signal line lighting or three tables, to find
such a signal line:
Because the whole bus Ground Lines are interlinked and can only take high / low that line, the ground could
not connect. As shown below:
3.2.5.2.1 Explanations
Counter access door status is a "SWITCH", the opening and closing of the door, a switch can detect the state of
occurrence of car "open" and "closed" changes, And one door corresponding to one "SWITCH", you can use
the Switch-Mode access GPI5 and GPI6.
3.2.5.2.2 Measurements
With a multimeter to measure this "switch" ohm on both sides, whether there will be "opened/ closed"
situation and, if present, indicates it is Switch Mode.
Backdoor: both ends of the " SWITCH ", and a termination of Counter GPI6, a termination Counter ground.
GPI type according to the factory configuration, determine the type GPI5 and GPI6 level mode or switch mode.
As shown below:
OR
3.2.5.3.1 Explanations
One door has two wires respectively represent opened and closed.
Figure 48. One Door Status Need Two GPI Pulse Signal
Door Opened Door Closed
This wire has one pulse level(8V) while press the This wire has one pulse level(8V) while press the
Result open-door button. close-door button.
The pulse will disappear after release the button. The pulse will disappear after release the button.
3.2.5.3.2 Measurements
Generally, the pulse signal are generated by open/close door button.
GPI2 connecting the pulse signal line of the front door close;
GPI3 connecting the pulse signal line of the back door open;
GPI4 connecting the pulse signal line of the back door close;
3.2.5.3.5 Verification
The settings are correct, press the door button a few times on the dashboard, with the VPC-Client software
refresh the image, to see whether change OSD door status, or download records, if there are some door
open or closed records, it shows connections and settings are all properly.
Important Note:
Counter has 0-4 relays GPO according to factory configuration. Each relay output has COM, NC, NO three lines
(Common; Normal Closed; Normal Opened). Principle relationship three line diagram below:
The relay can trigger a variety of circumstances, such as IN, OUT, Overload etc.
When input voltage to COM, Counter will change status after triggered or untriggered as following:
Counter has two analog CVBS video output, video output is similar to the Camera, can be connected to the
DVR video input channel, for recording.
VideoOut1: The "4" BNC of the Air Head AIR OUTLET A, the quad CVBS analog video output in real time.
VideoOut2: The "3" BNC of the Air Head AIR OUTLET A, as with real-time display of the OSD quad CVBS analog
video output.
Screen OSD Display Description
RUN: count status. Black OFF shows could not count; green ON
current can be counted. The current normal channel image,
background saving, opening the door for the state, is the state
can be counted.
VideoOut 1 :( split video output) VPC quad original video output; no OSD.
VideoOut 2: (DSP video output) VPC configurable video output; optional quad screen display with OSD
and "no" video output.
3.3 Debug
StereoCamera has Left and Right image, requirements properly connected, could not be reversed. At the same
time, the ID of the StereoCamera in VPC-Client of each channel, should be corresponding to the real
installation one.
Judgment Way 1:
1. If Cameras are installed on the top of ones head, you can let one person stand under the Camera, click
on the "Refresh All Pictures" button and ensure that the person faces to the top of the computer screen,
as shown in the following figure:
Judgment Way 2:
1. Left hand take the left side of the camera(with the IR Sensor side), and let the camera's perspective and
consistent with your eyes, as shown:
2. Using left finger cover the lens of the left side, as shown:
4. Thus, mounted on the camera, updates the corresponding parameter file(Camera ID) in the channel and
save background of the channel, and then to stand at the bottom of the camera, refresh the image and
the background can be obtained following the normal background and foreground detection Figure:
Detection figure more white part represents the higher part in the image.
Background right edge appears white block image is the image edge and texture less likely to cause
interference, generally will not affect the counting accuracy.
The settings are correct, press the door button a few times on the dashboard, with the VPC-Client software
refresh the image, to see whether change OSD door status, or download records, if there are some door
open or closed records, it shows connections and settings are all properly.
According to the transmission mode to use, see the other sections of this article.
Verify that the serial connection, see "13.6 Test serial connection" section of this article.
Users generally do not need to set the DIP switch, and only after you select whether to use GGM module
function, only need to modify the DIP switches to match Have GGM function.
Different hardware versions of the counter eight DIP switch settings have different effects;
VPC factory default Settings as switch value, General-Purpose Input state of GPI are defined as follows:
Note:
Switch position 3-6 (GPI 1- GPI 4) are all individually optically isolated.
When you forget the VPC's IP address, user name, password, and other information, cannot login and connect,
or set wrong parameters that cannot count properly, using the following way to restore hardware factory
settings.
Please using network cable to connect your computer and Counter, and run cmd program in your computer,
input ping 192.168.1.111 -t, waiting for the ping result.
In standby mode, press and hold the reset button for 3 seconds or more within 8 seconds, Counter performs a
factory reset function. The VPC's IP address recover to be : 192.168.1.111
Note: Restore software to factory settings, please refer to VPC-Client Software chapter.
If the firmware upgrade fail, phenomenon is counter can't start (if power on, the buzzer is ringing always),
need to start to counter own backup system, upgrade again, and the specific steps are as follows
1) Counter is power off, long press and hold the reset button, then power up the VPC, for 3 seconds, VPC
issue "beep-beep-beep" three short chirps, then a ringing, VPC starts to backup system;
2) The VPC's IP address recover to be : 192.168.1.111;
3) Login VPC with the client software. Click on the "Refresh All Pictures" button, screen of the Camera lens is
not displayed when the VPC is backup system, you can only read time, parameters, update the firmware.
4) Use the main system firmware to update to the VPC, until the update succeeds. After the restart VPC,
restart the client software, can successfully log in VPC's main system, indicating that the master system
has been successfully restored.
230cm
Ground
120cm
NOTE:
For further information please refer to the client software operation details.
85cm away from the eyes at the Camera perpendicular to the detection zone (not ground) area is about 120
90cm, notethat the detection area is rectangular, angle relative to the long side of the rectangle is 70 degrees,
relative to the short side of the rectangle is 55 degrees, as shown said:
One VPC connects two StereoCameras into front and back vehicle doors.
You need to use a video cable and power wires to connect correctly the cameras and Counter when you use
VPC-Client to operate the VPC. Then, you may access the VPC via correct IP address, set VPC parameters, and
let VPC working.
3. Backup System Mode: work status after Counter running backup firmware system, generally only used to
upgrade the main system.
Note:
Debug mode causes Counter run more slowly, maybe appear missing counting phenomenon
(especially fast movement of people), upon completion of settings, be sure to switch to the
default mode of operation (Shutdown the VPC-Client).
VPC default work mode, it is to point to VPC has normal start standby and dont connect with client software,
but can connect center server (software), at this time, VPC processing speed is fastest and the accuracy is
highest .There is someone that is coming or leave the detection area, VPC internal will save a number of
records, including record number, date, time, type, and direction; The records can be saved in the recordable
compact storage of VPC via FIFO storage method then can be downloaded though network (TCP/IP)USB
RS-485 interfacing.
Important Notice:
After power, VPC automatically initialize, begin to work automatically after successful start, even
if not connected to any external computer. This is very useful for the place where the computer
cannot be installed such as public transport bus board. Users can use a U disk or notebook
computer to connect the VPC after work (the bus is not driving) to download records and set the
counter. Or use homemade network devices or serial devices to get records and set VPC.
We offer a central server software (or the record collection software that user's own developed)
must have been turned on and stay connected with Counter to receive every real-time records
data from every VPC.
In this mode, the client software can connect VPC, start the real-time view video function to display real-time
image, and can draw count information people in/out on an image of channel 1/2 n in real time, easy to
observe and debug counts effect.
Important Notice:
VPC is the default mode when you start VPC normally to enter the normal counting state.
Therefore, in order to obtain accurate results of counting, VPC must be set correctly. That is, in
the each process of save background (about 10 seconds), it cannot allow any moving objects and
people in Video vision camera, that is to keep the true "background 3D image." Each time the
When the main system is damaged, maybe lost power in upgrading period, the Counter could not start and
you could not login and ping it, you need to start the backup system to upgrade the main system; Referring to
start into the backup system backup system;
In this mode, the Counter can not be counted or image detection parameters to operate, user can update their
main system firmware, get Counter date&time. Once the main system firmware update successfully in this
mode, power off again, restart Counter, you can enter the main system default mode.
Note: Counter normal standby include: Counter normal power-up (red light), access the camera left / right
image in the normal work period, has been updated camera parameters, and save background images,
detection parameters are set correctly (green 1 lit), work when someone enters or leaves the detection area,
start counting.
4.3.1 Introduction
SF-VPC-Client.exe is a green free graphical installation interface (GUI) for Windows client, support
Windows2000 /Windows XP / Windows 2003/Vista/Win7/Win8/Win10. The program will take VPC as a server
and VPC-Client as client software, the client program does not require additional software environment to
support. The program can connect a number of VPC through TCP/IP (LAN or the Internet straight line) to can
be viewed and set.
When you get a new software program, can override or upgrade installed on your computer. Detailed upgrade
steps please see related content in the VPC-Client Operation Steps.
According to the Chapter 3.2.2.1 Connection Diagram of the hardware connection requirements and
instructions, properly connected VPC with the equipment.
Take a piece of RJ-45 cables (direct connection with VPC computer using a network cable, if connected through
a switch, you can directly use the straight line), using this network cable to link your computer's network card
and VPC (LAN) port, in accordance with the following methods to change the computer's and VPCs IP address.
Important Notice:
VPC's IP network dont support routing feature for the time being, communication between one or
more VPC and your computer must only be within the same local area network, to ensure normal
communication.
1. A piece of twisted pair cable (8 core, the length can be determined according to the actual needs, within the
effective transmission distance 100m), two standard RJ45 Crystal head, a RJ45 special line pressing tools
2. Advice: Prepare a network testing tool that you can make a test on network cable you made.
PIN definition:
Produce network lines meets the requirements according circumstance, there are two circumstances as the
following:
1. VPC connect the router or network switch HUB or other network devices, making network connections
according to the below left figure.
2. VPC is connected directly to your computer, make the network connector by through line according to the
below right figure.
VPC factory default IP address: 192.168.1.111. Ensure TCP/IP protocol can be accessed; ports like TCP8000,
UDP6666, UDP5403 can work properly.
If your network has more than one VPC or VPC's default IP address conflicts with existing computers, network
equipment; your VPC address must be on a local area network (or direct-attached) change to the IP address
conflict-free, so your VPC can connect to the network
We can send the latest software to our client through email. If you do not get the software, please connect our
support department. .
When received the software, just copy it on the PC, and run it directly.
If you use 64-bit operation system, please set the VPC-Client.exe as following:
When VPC has power (DC13.5-36V), wait about 6-8 seconds, VPC goes into standby status. As soon as voltage
is above 36V, VPC resettable fuses will automatically cut off the power supply to protect.
General in bus, power is DC24V or DC12V. VPC has a wide voltage power input, combined with different power
supplies on the bus (such as car keys direct switching power supply or battery powered), you can access
individually or together. StereoCamera power supply is DC12V input, so it is best to fetch by VPC DC12V
output.
VPC Image Processor default IP address is: 192.168.1.111, belongs to 192.168.1.0/254 network segment
therefore before you change VPC processors IP address, has to setup Host PCs IP address into 192.168.1.0/24
segment then can modify the VPC Processors IP address
Note:
The IP address can be altered to meet the end users requirements; the last three fields should
be numbers ranging from 0 to 254.
8. Click on the OK button of each Dialog Box until all are closed.
9. Click Start button ,select Run enter CMD then click OK button to run it.
11. If comes out the result as above ,means network connect successful
Note:
Due to network protocol rules, before you run PING command make sure that the Host PC
If the host PC has a firewall running, the following ports must be open:
Computer directly connected the Counter, be sure the computer's network card is set to 10M half-duplex or
10M full-duplex network cable.
By double-clicking the VPC-Client.exe and click the Login button in the bellow left image, the following
graphical interface will appear as the right below picture:
Note: Once you change IP, user name, password, port; next time login, you need to verify the new IP, user
name, password and port.
The VPC will appear below chart tip if you cannot login and connect VPC successfully:
Appears two tips as above pictures, you can check the following aspects:
"Start"-"run" in the CMD command prompt, use ping counter command IP and see if I can ping Tong; ping pass,
you may use a client that does not support program "VPC-Client.exe";
"Start" - "run" in the CMD command prompt, use ping counter IP command, see whether ping can pass; If Ping
can pass, may be use the wrong version of the Client program "VPC - Client exe."
Connect the network cable is not correct (LAN using twisted pairwire, otherwise use crosswire )
There is no completely closed client in Task Manager, clear the tasks first
Counter network port is blocked, green connect light is on. Yellow data light keeps flashing, turn off the client,
unplug and re-plug the network cable, restart the counter
When you click the Login button and input the correct informationes after you have login one VPC, the
windows will appear:
Click Yes, you can login two VPC. There are two tab bar in the VPC-Client.exe as bellow:
VPC is power on and in standby state, if one of the three conditions is happen: left/right lost, not save
background, or no camera parameters file, the VPC cannot count
1. Title bar:
2. VPC Information:
1) Counter IP: The current VPC IP address.
2) Port: Show the TCP/IP connected port in computer.
3) Status: Show the TCP connected status. The green Connected is connected status, and the red
Connected is disconnected status.
4) Device Type: Show VPC22 or VPC21.
5) Working Time: The current VPC counting period of the two channels. From 00:00:00 to 23:59:59, you can
save this working time with Save Detecting Parameters in Detect Tab.
6) Channel 1 Camera ID: CH 2 Camera ID (in camera parameter and shown in IR-LED)
7) Left Ok/Left Lose : Left Camera Image Status of CH1.
8) Left Ok/Left Lose :Right Camera Image Status of CH1.
9) Channel 2 Camera ID: CH1 Camera ID (in camera parameter and shown in IR-LED)
10) Left Ok/Left Lose : Left Camera Image Status of CH2.
11) Left Ok/Left Lose : Right Camera Image Status of CH2.
12) Current CH: Choose the channel for current operating.
13) CH1/CH2 Reset Counters: Reset the counter of current channel to zero.
14) Refresh ALL Pictures: Get a camera frame to show.
Important Note
Show "left/right image is not normal" could be caused by several reasons: the camera does not
power up properly, camera video cable is poor connect, or the camera CCD is bad; the VPC image is
detected is not normal, is displayed in red font, as shown in the following figure
You cant save the background once either iamge of the two channals is abnormal; If the client show Right OK
/ Left OK, click Refresh All Pictures, if the two pictures both are black and with fuzzy shadow, as following
picture shows, please check whether the power supply is loose or lack.
Important Note
login: click on the button, there will be landing and VPC or embedded devices for the connection
login window;; Double click IP address in the tab bar of interface, that is, shut down the current
connected VPC window
4. Counter:
Note: Whatever the VPC-Client.exe is running or connected VPC, these counters will show the VPC
cumulative people number from the power or last Reset Counter or restart VPC resetting the counter.
5. Status Bar:
Counter ID: VPC ID (the last eight NO of net port MAC address)
Main Firmware: software version of the embedded products on the VPC
Hardware: Current VPC-image processor version.
Client Ver.: Current VPC-Client.exe software version.
Different VPC Version will appear different contents in the Function Tab Bar.
At any time, double-click on the client device's title bar to close the corresponding COUNTER network
connection. As shown below:
You can also directly shutdown the VPC-Client software and close all COUNTER connections.
Counter Parameter menu for Image Processor settings to achieve the best effectitive.
Under Counter client device network connection status, the client will automatically be read once per second
Counter current time, so the client interface can see the time is kept beating, when the time does not
automatically jump, may be a network disconnected or the clock chip is damaged;
1. Get Time
Press Get Time button, you will get the date and time of VPC. Format: YYYY-MM-DD HH-MM-SS.
2. Set Time
The "Counter Network Config" in "VPC parameters" allow you to change network settings for VPC. Click "Read
Network Param" button to get current information, and then modify the parameters on the basis of current
information, then click "Save Network Param" button, VPC automatically restart and new addresses take effect
after restart. Before you modify the network parameters to ensure that no conflict with existing IP addresses
on the network
Set Network Param: Save these parameters value to the VPC. Restart after change and need to use the new
parameters such as IP to land and connect.
Click this button will save currentVPC parameters including all parameters and generate one XXXXXXXX.DSP
file.( XXXXXXXX is the VPC MAC address).
This parameter file can be open using VPC-Client.exe and can import another VPC.
Save all parameters in XXXXXXXX.DSP file to current VPC. If you change the counter, you can use this
function, and you may not setting the parameters in the new VPC.
This button can put the VPC all the parameters set back to factory default value. This operation will not delete
the VPC records. Click on the "Restore Factory Setting" button, hear the sound "3 + 1 short chirp ", this process
takes about ten seconds, said factory default success. Login again need to use VPC factory default network
Settings information. Once done restore factory default operation, the following items will be returned to the
factory default, please reinstall according to situation.
When press restart counter, we will hear one beep, the software of VPC-client will disconnect and then
connect again. And all the parameter wont change, the value of IN/OUT will continue to the value of the last
time .
If you have the VPC new Main Firmware, you can use this function to update the newer firmware. It need
about 60seconds. In the updating progress, the connection will be disconnected for a while, and connected
Warnings:
In the process of update firmware, please ensure the power supply, the internet is connect, no
electromagnetic interference source near. Otherwise the update will fail or the VPC will be
damaged, and the VPC can't work normally. If the upgrade failed, VPC can't restart, please see
the file start to backup system, carries on the recovery
Update the backup system means update the backup system software. There are some products without
backup system in VPC series. Through the network to upgrade backup system firmware program, can make its
have backup system, easy to maintain in the future. Or, when we think it is necessary to issue a new backup
system software, will be released to the customers to update.
4.5.2 Server/Video
This tag is used to view\set server network parameters and view real-time video.
This is for the type VPC-GGM, which has a GPRS and GPS module inside, that can send the data to Server.
Server IP: Counter current data is sent to the computer's IP address in the local network, the Server received
all VPC records, such as SF-PC- Server.exe.
Port: central server software running on the computer where the router port mapping, the default of 6000.
Make sure there is no firewall software to disable the port number and the port number is not occupied by
other software.
Counter No.: Counter is a unique number in the LAN, the range of 1-65535. The default value is 1.
RJ45 Resend: Enable / disable LAN recording retransmission, the default value is enabled.
Run cmd, input netstat aon|Findstr6000 , if you find the 6000 port in the cmd windows, it shows the
6000 port is using now.
Real Time Video is the Left Original View of the current channel, and in the image shows tracking, counting
process of people into/out of channel.
Local IP: The computer IP address which the VPC-Client.exe in. It cannot be modified. Please run the
VPC-Client while ensuring only ONE IP address in this computer.
DrawCounInfo: Show the counting information in the real video, include object rectangular box, Line 1, Line 2,
in and out counting numbers.
Enable this function, there are some information in the Video Output2, such as object tracking line,
Counting-Line1/2, counted objects will change red tracking-line. When Video Output 2 has been choose 4 In
1, refresh All Pictures, there are some draw information in the left image, such asIn:29, Out:18 etc..
Note:
One connection can be created between one computer and one VPC.
Max Obj: The maximum pixels of every object in each frame. The default is 8000. (Need no modify)
In order to set up a more accurate pixel size of actual people and filter interferential image, the software
provides real-time display the pixel size of one persons head size (minimum target) and all profiles (maximum
target), makes it easy for users to observe and set. Note that if two people appear simultaneously, client will
only display minimum and maximum goals pixels of the first occurrence of person.
Create/Stop Socket: Create or socket connection with the VPC. After created, the button become Socket,
you can disconnect the socket connection by click or colse the VPC-Client.exe.
Video Option: Record Video frame, form 1 to 25 frame per second (FPS).
RecordVideo: Enable this selection box, you can record the video to a file.
In VPC back panel, there are two video output BNC connectors. You should configure them in VPC-Client first,
Then the Counter will restart. Default is 4 IN 1 in VideoOut 1 and None in VideoOut 2.
Video Output1:
4 In 1: Include two StereoCameras four original videos output in one four-quad (without any OSD).
None: No video output.
Video Output2:
Note:
After changing Video Output2 in the list, the VPC will automatically restart within 10 seconds.
The video output 2: there are several selections. The default is none. If we select 4 IN 1, it will restart the
VPC, and when refresh the image, we can see the image like the picture .Thus we can see the status of the
doors and whether the VPC is running.
If you select debug mode, when you connect the output to one display device, you can see the detect image,
like the picture:
4.5.3 Detect
Detection Parameters tab, all press channel 1 and 2 are provided, respectively, valid for the current channel.
Depending on the VPC models can not function display.
We can set the working time, when over the time, the VPC wont count.
Disabled: Do not enable Counter daily scheduled reboot function. Set 25 in hour blank, it means disable.
From image bottom to image top, use Line 1 and Line 1 Starting Point to judge counting.
From image top to image bottom, use Line 2 and Line 2 Starting Point to judge counting.
From left to right movement and conversely in the image is not be counted.
Changing the direction value, the three counters will be exchanged the IN and OUT numbers automatically.
Line 1 functions: It will generate a counted number when a person appear near the bottom of the image and
move to the top the image and across the Line 1.
Line 2 functions: It will generate a counted number when a person appear near the top of the image and move
to the bottom of the image and across the Line 2.
Line 1 and Line 2 ranges are 0-288 pixel. If the Line 1/2 value is set to the line near the edges of the image will
cause does not count.
You may choose the Line 1/2 position by using the mouse click the left image. Please choose the Draw button,
then click.
Line 1 Starting Point is to set a Y coordinate value is greater than Line 1 Y-coordinate value in the image. After
this point with a line parallel to the image edge is divided the image into upper and lower two rectangular
areas. Does not contain Line 1 rectangular area (the lower half of the image) is defined as Target Appear Area
of Line 1. When a person appears from the Target Appear Area of Line 1, and then across the Line 1, Counter
will produce a count.
Line 2 Starting Point is to set a Y coordinate value is less than Line 2 Y-coordinate value in the image. After this
point with a line parallel to the image edge is divided the image into upper and lower two rectangular areas.
Does not contain Line 2 rectangular area (the higher half of the image) is defined as Target Appear Area of
Line 2. When a person appears from the Target Appear Area of Line 2, and then across the Line 2, Counter will
produce a count.
Valid target: the person target block center, must appear in the Target Appear Area of Line 1, will participate
in the judgment of the counting rules.
The range of Line 1 Starting Point: 0-288; typically set Y coordinate values of Line 1 plus between 80-120. The
default value is 208.
The range of Line 2 Starting Point: 0-288; typically set Y coordinate values of Line 1 minus between 80-120.
The default value is 80.
VPC image size is 360 288, the coordinates of the image is (0,0), (360,0), (0,288), (360,288). Default value of
the detection area is full screen, ie left: 0; right: 360; on: 0; follows: 288.
The purpose is to set the does not detect the left and right area from watching the image is people get in and
get off through its center must be avoided in the does not detect area, otherwise the situation will count
missing.
The purpose is to set the does not detect the top and bottom area from watching the image is avoided the
door interference.
But, the no-detection-area could not be set too large, it will happen missing counting.
If the left margin is set to 20, the right margin is set to 340, it means that within the detection area (20,0) to
(340,288) of the rectangular area, namely blank portion in the figure below; no detection area is on both sides
of the ramp line portion, as shown below:
Min Object: The detected objects pixels. Less than the pixel will be ignored. The default value is 5000, if
missing passengers happened, you can set it 3000 or 4000.
These two value can accord to the Min Obj and the Max Obj in the Real Time Video at Server/Video
table.
According to you want ignore none counting height from the ground, you can choose the value. The default
value is 120 cm.
When enable the Engable CloseDoor Counting Rule, when people get in, when the door is closed, people
remaining anywhere in the detection area will be counted as IN. The counter will be amended accordingly.
When the door is open, every person already within the door threshold line (line 1) and the portion of
detection area facing the doors, will be counted as OUT if they leave the detection area, again, the counter will
be amended accordingly.
Door line is defined a position line under 1 meter of the door closed, it is using for avoid wrong counting by the
door movement interference. Door line is different from the detect area, it is only effective during the door
open or closed 1-3 seconds.
Door Interfere Area: The rectangle area between the door line and image edge of near the door.
Alarm Numbers:
Period after Door Opened:
Period After Nobody In Area:
Each channel (StreroCamera) have a static background image depth of its independent scene. So the need for
channel 1/2 were preserved in order for all normal channels 1/2 and accurate count.
Static background image is an image height values describe the scene no one moving object or when. It would
have been recorded in the VPC, or restart after each boot will be with real-time background updating
continuously updated and changed and saved.
Click the button to save the background image will pop up prompt window:
Choose Yes, depending on the network situation, about 10-20 seconds, VPC will sound / light tips saved
successfully.
When update or change the Camera parameter . we should save the background, or the VPC wont count.
Note:
1) One good background image: you may see the high or low objects in the scene through the grey value,
the brighter parts represent higher object, the black parts represent low object.
2) One good detect image: it should be pure darkness when there is none object or person under the
camera.
3) If one person stand under the camera, it should have many layers in the image.
Look into the Camera glass , and we can find a serial number, each Camera has the related parameter . When
press the button,and select the related parameter (-8t14), the VPC-client.exe will disconnect and reconnect .
Then login again, you will find the whether the parameter is updated.
Depending on the hardware version and the factory configuration, VPC has a 1-8 GPI.
When GPI properly connected external signal (see "2.5.5 GPI" and "3.2.5 GPI access switch gate signal" section
of this article), please use the following features need to be set.
1. Disable:
VPC will ignore the GPI signal received on the input line.
2. Test:
Allows the operator to test the four GPI input lines:
Depending on the hardware version and the factory configuration, VPC has a 0-4 GPO. The different firmware
version, the function maybe different.
When GPO properly connected external signal (see "2.5.6 GPO" and "3.2.6 GPO output" section of this article),
please use the following features need to be set.
This is for test the hardvare . If we set the GPI 1 is high voltage ,function select test, and we input the high
voltage to the GPI ,then we press the GPI 1 Test , it will turn gray.
When the function select test, press the GPO test , we can hear one beep.
When Choose this function, you can click the GPO1Test button, the right box
We can send commands through a serial port tool, the commands are in chapter4.
Send ral time: as long as the Counter generate a record, it will send by serial port.
1. Download Records:
2. Erase Records:
When we want to get records or erase all the records. We can press get the records first ,then press
download or erase. If press the erase button, the VPC-Client.exe will disconnect and then reconnect
again. VPC can save 122880 records .
There are "record number", "date", "time", "type", "Enter", "out" (longitude, latitude, speed) and other fields
in the records file.
1) Record Number: 00000 increments from without GGM module versions, each recording information
accounted for 16 bytes, can save up to 122,880 records, so the record number of up to 122 879;
With GGM module versions, each recording information accounted for 32 bytes, can save up to 61,440
record, so the record number of up to 61399;
2) Date: Emergence of this record / month / day;
Note: Only with GGM module VPC only longitude, latitude, speed.
4. Records Types
Except we offered TCP/IP network connection to control counting processor, we also offer USB Operation
Mode to control counting processor.
Use USB disk please make sure USB is FAT32 file format.
When finished select then Click and select USB Disk directory that in
your USB disk will generate VPC_SYS.BAT batch command file and XXXXXXXX.REC records file automatically.
Note:
Before you download into USB Drive ,please format the U disk into FAT32 file format.
Put USB Disk into processors USB port will trigger 3beeps represent USB Disk detected and 20 beeps means
records in download situation. In USB Disk will generate XXXXXXXX.REC file.
Transfer USB Disk record format XXXXXXXX.REC into XXXXXXXX.TXT test file , can open in
PC directly
Select Clear all record then Click Write order to U Disk ,all the records in counting processors will be
deleted. This operation will occur 3 beeps then 20beeps about 10seconds means finished operation.
You can send this XXXXXXXX.DSP file back to us and we can check the processors situation and offer further
technical support to you.
Factory will follow XXXXXXXX.DSP file to modify all the hardware parameters then send back to user and
user can use our Update .. functions to correct hardwares parameters via USB Disk.
Note:
. IVPC_PRM.TXT : Counting devices parameters
IVPC_NET.TXT : Network parameters
XXXXXXXX.CP1:must be Channel 1 Cameras parameters
XXXXXXXX.CP2:must be Channel 2 Camera parameters
Channel 1 and Channel 2 Cameras ID can not mix up,otherwise, USB disk can not recognize
5.1 GGM
Built by GGM module and server connections, deliver real-time record in the database. For more information,
see "VPC-GGM version" section of this article. Communication protocol, refer to the section "GPRS client
network communication protocol" herein.
SF-VPC-Server.exe server software is available for all firmware RJ45 network port of the server software,
regardless of whether with GGM Counter module.
SF-PC-Server software is a server program based TCP / IP protocol, each VPC counter are the client, the server
program to get real-time record of all LAN VPC produced the record written to the database . The server
software can only receive the records of VPC in the same LAN (same segment, such as 192.168.1.xxx).
SF-VPC-Server.exe server software is available for all firmware RJ45 network port of the server software,
whether with GGM module.
Client software settings, see the section of this paper, the client software "RJ45 Server Settings" section. Server
software to participate in the following documents:
5. "SF-Report Database Structure Description": for customers to develop their own statistical reporting
software.
5.5 SMS
If VPC built GGM module, it can in real time some of the overcrowding and alarm information is sent to a
designated phone number via SMS text message. Note that this approach may cause SMS charges. This feature
requires customization.
5.6 Multi-Door
In three or four or more doors of the car, you may be more than one Counter (up to eight) is connected via a
LAN together (two Counter can be directly connected to the network cable without switch), through the main
equipment GGM module, all up and down the number of recording channels of real-time counter and sent to
the server. For more information, see "multi-door version of the legend" section of this article.
5.7 Wide-Gate
At the door width exceeds 150cm scenario, multiple Cameras are lined up to detect a wider channel the flow
of people. Counter supports up to 16 stations and 32 StereoCameras. For more information, see "wide doors
Release Notes" section of this article.
The VPC back panel and front panel as the bellow after add SF-GGM module. Increase two antennas and one
LED light.
Since SF-GGM is an optional module, It connect the VPC board via a 10 Pins connector. It needs two
11mm-coppor-hole and four M4 screws to fix it on the VPC board.
Note:
If you need to adjust the 8-DIP, you need to remove the SF-GGM module first.
SF-GGM module need correctly connect own antenna before it working. The inner two antennas of the VPC
are as bellow. And the antennas out of the VPC box, you must connect right.
Installing the SIM card dont need to open the VPC housing. Just card-core side is facing down, the triangle
angle deficiency side of the SIM is inside , then install the SIM card and lock. As shown in Figure:
Figure 90. LED display the number of the people in the vehicle
Running the VPC_Client.exe software, log on correctly, you can the Device Type will appear VPC-GGM in
the Counter Info. Figure:
In Server/Video tab, Server Config is setting the network parameters of the computer receiving data from
GPRS with the fixed public IP address.
Server IP: There is a fixed IP address of a server to receive the data; all Counter records and GPS data in
this VPC will send to the server address through GPRS. And the server should be install a software to
receive these data. such as our SF-PC-Server.exe softwart.
Ports: a fixed IP address of the server's port, the number is fixed at 6000 (make sure the server's 6000
port is not occupied)
Counter No.: Counter current distribution number.
After setting, click the "Save a Server Net Param" button to save the settings
APN: Access Point Name. You can ask your local GSM SIM card supplier. (The maximum character is 64.)
APN Name: You can ask your local Mobile supplier. The maximum character is 32.
APN Pass: You can ask your local Mobile supplier. The maximum character is 32.
GPS Upload: You can choice Enable or Disable.
Note:
Only when VPC obtain the two doors are both CLOSED, the GPS data will be uploaded to SF-PC-Server.exe or
other software user developed..
1. The factory setting of GPI1 and GPI2 is Switch, means the 3rd and 4th in 8-DIP switch are ON position.
If not, please set to ON position.
2. Setting VPC-Client.exe
3. Make sure the GPI1 and GND are disconnected, and the GPI2 and GND are disconnected too.
4. The GPS data will send to SF-PC-Server.exe as you set time interval.
Function Red LED Green LED 1 Green LED 2 Green LED 3 Buzzer
Lights on 100ms
GGM Unnormal Lights On / Interval 100ms / /
Interval 5S(Can be set*)
Run the SF-PC-Server.exe in the having fix IP address server computer.(Please ensure you have installed the
database software first, you can reference our <<SF-PC-Server.exe Manual>>). When the SF-PC-Server.exe
shows the VPC information in the windows, it is show you have set correctly. Figure:
Note, when each power on, the GPS start is Cold-start, the time of searching satellite is often long, usual
need 50-60 seconds. If the GPS signal is bad, the time is longer. And, maybe some initial records when VPC
started have not the GPS data (Longitude Latitude, Speed) in it.
About how to inquiry and verify the records using database or SF-Report software of each VPC connected the
SF-PC-Server.exe, please reference our<<SF-PC-Server.exe Manual>> and <<SF_Report.exe Manual>>.
The record of VPC has 12 byes, the VPC-GGM has 32 bytes after adding 20 bytes of GPS data. The adding 20
bytes as bellow:
Latitude format: N-North Latitude, S-South Latitude.Deg Deg Minute Minute. Minute Minute Minute Minute
Minute Minute
Longitude format: E-East Longitude,W-West Longitude, Deg Deg Minute Minute. Minute Minute Minute
Minute Minute Minute
Speed
Speed(Int.) End Identifier
(Decimals)
2byte 2byte 1byte(FF)
GPS Data is Effectiveness when GPS Data Identifier is A.
Char strDouble[20]
Memset(strDouble,0,sizeof(strDouble));
sprintf(strDouble,%d.%d, Integer,Decimal);
double I = atof(strDouble);
When VPC ID is 0x0505, the current counter is Master Counter (The ID is 0) in Multi-Gate Version.
When GPRS lost or have no signal, counter and Server communicate will lose data, or the data received is not
enough. To ensure the record data hasnt been send out and the record data is not enough, add GPRS data
resend mechanism in this model.
Every record send by device received successfully by the server will resend the received record no (Such as the
device sends 100 records to the server, if server received, it will resend 100 to the device). When device
received the feedback from server, it will write 1 according to the last byte of the record no (such as 100), then
this data transfer has been finished.
After counter transfer data to Server, the counter will automatic search the record in the current flash.
Counter initiate the timer, resending mechanism every 5 minutes, researching the records in the flash. Counter
1 frame search one record, equal to one second search 20 records. Once searching the record has no feedback
it will send it out, until all the records receive the feedback from center server.
VPC received the feedback from server, when write the last byte of record, the flash fault will also lead to
record send more. This condition is less.
00 0C 02 08 xx xx 00 00 00 0x VPC-Rule no. 00
Length Command checksum Block no. CH choose Type no. ID no. MAC
Add.
Length Command checksum Block no. CH choose Type no. ID no. MAC Add
00 26 10 08 xx xx 00 00 00 0x xx 00 6 byte
Length Command checksum Block no. CH choose Type no. ID no. MAC Add Data
00 26 10 08 xx xx 00 00 00 0x xx 00 6 byte 20 byte
Data segment:
Length Command checksum Block no. CH choose Type no. ID no. MAC Data
00 37 10 00 xx xx 00 00 00 0x xx 00 6 byte 37 byte
Data segment:
Record feedback:
Length Command checksum Block no. CH choose Type no. ID no. Data
00 11 10 00 xx xx 00 00 00 0x xx 00 5 byte
2 byte 3 byte
Data segment:
Except above protocol have been changed, others like time, internet, parameter setting, refresh image and
update etc. Still the same with TCP/IP protocol before.
3According the
client no. Achieve
objective socket
4Analysis record
date and write it
to database; Statistical the
written record in
the report
Slave Counter: There are more than one slave counter in a multi-doors system. Each slave counter sends its
records in real time.
Example:
Master Counter
IP: 192.168.1.130
Slave Counters
IP: 192.168.1.131
192.168.1.132
192.168.1.133
Get Counter Status: Read the all slave counters status that have been saved in current master
counter and show in the Slave Counter List.
Get Parameters: Read current master counter multi-doors parameters.
Save Parameters: Save all inputting values to the current master counter. Saved will be effective
without restart VPC.
Example:
Slave Counter(current)
IP: 192.168.1.131
Adding master counter IP:
192.168.1.130
Get Counter Status: Read the the master counter status that you have been saved in current slave
counter and show in the Master Counter List.
Get Parameters: Read current slave counter multi-doors parameters.
Save Parameters: Save all inputting values to the current slave counter. Saved will be effective
without restart VPC.
Generated several records in each door in this multi-doors system, such as IN/OUT, open door/close door etc,
and download the master counter records. If there are each counters record, that means this multi-doors
system is correctly.
SF-VPC-WG Model
Example:
Master CounterIP:
192.168.1.147
Slave CountersIP:
192.168.1.151
192.168.1.152
192.168.1.153
In one Wide-Gate system, the maximum slave counter is 8 (means total is 9 set counters and 18 set
StereoCamera). All master counter and slave counters are in the same network segment, they can not
repeat (192.168.1.xxx).
IP: Input the IP address of the adding master counter
Ports: Input the Ports value of the adding master counter that communicate with the
slave counters. Default is 8000.
Add: Save these inputting values to the current slave counter after click the Add button.
Master Counter List: Show the added and saved ONLY master counter information,
include IP,Ports, ID, Connect Status. Only when you saved, these value will be
effective.
Delete: Choose the only one master counter(Set Blue) you want to delete in the
Master Counter List, and click the Delete button, and, ONLY when you saved, the
Delete action will effective.
Get Counter Status: Read the the master counter status that you have been saved in
current slave counter and show in the Master Counter List.
8.5 Verify
Click the Get Parameters button and watch the connection status at the Wide-Gate table in the
VPC-Client.exe.
Generated several records in each door in this wide-gate system, such as IN/OUT, open door/close door etc,
and download the master counter records. If the master counter has the all records of each Camera, that
means this wide-gate system is correctly.
1. VPC GPI 1 as a signal of the beginning of the number of the detected signal input port, when connected to a
12V GPI1 high pulse (required duration of 100 ~ 200ms,), VPC immediately begin to count the number of
regions will be 1 second after the bell, the result of detection by GPO1 or GPO2 or GPO3 mouth, the only
exclusive output can be set to a GPO changed state duration of 12V level signal (or digital signal), the time
range is 100ms-65535ms.
GPO1: 1 area
We allow users to manipulate the VPC and use the existing VPC data do further analysis.
We provide open, flexible, easy to use, extensible application programming interface for developers. Therefore,
for users who already use other monitoring systems, you can through the TCP/IP application protocols to put
the VPC passenger flow data in the original system
1) Length:
2 bytes, length for Data packet.L Such as 1027=0x0403 bytes, show in the field is 04 03.
2) Command:
3) Checksum:
Sender algorithm:
Step 2:
for(i=0;i<len;i+=2)
{
chksumtemp += ((unsigned short)buf[i]<<8) | buf[i+1];
}
Step 3:
checksum = (unsigned short)(1+(~ chksumtemp));
Padding packet:buf[4] =(unsigned char) (checksum>>8);
buf[5] =(unsigned char)checksum;
Receiver algorithm:
chksumtemp =0
for(i=0;i<len;i+=2)
{
chksumtemp += ((unsigned short)buf[i]<<8) | buf[i+1];
}
if(0 == chksumtemp)
{
Checksum OK!
}
else
{
Checksum FAIL!
}
4) Block No.:
Review block # of TFTP. If data packet more length than ethernet MTU
5) Channel No.:
7) Data:
PC send command:
PC send command:
PC send command:
PC send command:
That in the packaging segment, you must put all the space to be 0, because it involves string manipulation, so
the name and password valid only 19 bytes, the last one must be 0; IP is the same, with string representation
"192.168.1.111" 13 bytes, followed by 3 bytes are all 0;
PORT: High byte first, low byte in the post, such as 8000, said: 1F 40
PC send command:
PC send command:
VPC->PC :ACK:
PC send command:
PC send command:
Type-year-month-day-hour-min-sec.-In-Out
Record Date&Time:
5 Bytes, year and month use 1 byte, year use high 4 bits, month use low 4 bits.
Year: 0x0~0xF,Half byte, 16 hex means year 2008~ year 2024, 0x0 means year 2008, 0x1 means year 2009,
Total 16years
Month: 0x01~0x0C, Half byte, 16 hex means 1~12month
Day: 0x01~0x1F, 16 hex means 1~31day
Hour: 0x00~0x17, 16 hex means 0~23 hour
Minute: 0x00~0x3B, 16 hex means 0~59 minute
Second: 0x00~0x3B, 16 hex means 0~59 second
Example:
200801011212120001100022 means:
2008-01-0112:12:12 , the 11th incoming person and the 22th outgoing person
IN counter = 0xCCBBAA
PC send command:
PC send command:
Valid GPI1 GPI2 GPI3 GPI4 GPO1 High level GPO2 High level
Flag function function function function time(reserve) time(reserve)
type type type type
8bit 1 byte 1 byte 1 byte 1 byte 2 bytes 2 bytes
Valid Flag:
Example: Only setup GPI3, the Valid Flag will be 0000 0100 , 0x04;
Setup GPI2 and GPI3 together, the Valid Flag will be 0000 0110, 0x06;
=0 =1 =2 =3 =4
N/A Test Empty counter Open/Close door Start/Stop to count
When GPI is set to test station, this order can test IO work or not.
PC Send:
ServerVPC
VPC Server
Server VPC
Record data
Record:
Register:
There are two tables in Server to store the registration info from Client, registration info table and ID
distribution table.
fo
In
nt
ie
Cl
database
Length Cmd Checksum Block No Channel Client Type ID NO MAC Record data
00 26 10 08 xx xx 00 00 00 0x 05 00 6 byte 20 byte
Record data
Length Cmd Checksum BlockNo Channel Client type ID No MAC Device number Record data GPS data
Record data:
GPS data:
Record data
Device No Record No
2byte 3byte
//-------------------------------------------------
//GPS
unsigned short nW1;
unsigned long intnW2;
unsigned short nJ1;
unsigned long int nJ2;
unsigned short nS1;
unsigned short nS2;
int nRecordPos = 13;
memcpy(&nW1,&pDataBuffer[nRecordPos+16],2);
memcpy(&nW2,&pDataBuffer[nRecordPos+18],sizeof(int));
memcpy(&nJ1,&pDataBuffer[nRecordPos+23],2);
memcpy(&nJ2,&pDataBuffer[nRecordPos+25],sizeof(int));
memcpy(&nS1,&pDataBuffer[nRecordPos+30],2);
memcpy(&nS2,&pDataBuffer[nRecordPos+32],2);
About other software or other equipment (such as GPS equipment) that you develop based on VPC serial ports,
we provide a debug program (SF_PC_RS232_GUI. Exe), and provide the source code to facilitate your
secondary development and debugging
Note:
In VPC-GGM, because the two serial ports to connect the GGM module, so, the only RS232 TX
Can send the real time records and Baud rate is only 115200bps. The RS232 and RS485 could not
receive commands any more.
NOTE: There are two ports with different function on VPC, they are configured as RS232 and RS485.
1. VPC 232 port can receive and send and support all the commands list in the below table.
2. VPC485 port can receive and send, but the operation of receive and send cannot at the same time,
support all the commands list in the below table.
13.3 Configuration
1. You need set up the following parameters in IO/Record of VPC-Client.exe of the two serial ports:
Baud rate: 19200bps
Start bit: 1Bit
Data Length: 8Bit
Stop bit: 1Bit
No parity bit
2. RS232/485 communication diagram:
Device Address:
Master Send:
Master Send:
Master Send:
VPC output result: 93 09 31 25 27 26 0b 04 17 02 0c 03(When send out time is different, the output result will
be different too.)
Commands Specifications: Synchronize the master device date and timeto the VPC.
Master Send:
Week:1~7,1-Monday,7-Sunday.
Commands Specifications: Reset the the two channels counter of the VPC.
Master Send:
Commands Specifications: Get the read total record number of the VPC.
Master Send:
Master Send:
VPC Send:
Header Data Length Addr Command Current Record Number Record Data Checksum
0x93 0x11 0x31 0x30 3 Bytes 16 Bytes CRC
Record Data:
1. Record
0 --- system reset or hardware boot 10 ---channel 2 uncovered type:
1 --- in by channel 1 11--- channel 1 open
2 --- out by channel 1 12--- channel 1 closed
3 --- clear 13--- channel 2 open
4 --- delete 14--- channel 2 closed
5 --- in by channel 2 15--- start to record
6 --- out by channel 2 16--- stop recording
7 --- channel 1 covered 17--- Video input anomalies
8 --- channel
Xiamen 1 uncovered
Sunford Industry&Trade Co., Ltd. 153at/ this
20 --- Total in and out 157 time
(UP1*256*256) +(UP2256)+UP3
(DW1256256)+(DW2256)+DW3
11. Resending Flag: 0mean this record has not be sent successfully. 1 mean this record has be sent
successfully.
Master Send:
VPC Send:
Master Send:
Commands Specifications: VPC send each real time record to a master device.
VPC Send:
1) No multi-door version:
A= Video input position(0x00=channel 1 left, 0x01=channel 1 right, 0x02=channel 2left, 0x03=channel 2 right)
Commands Specifications: By sending this command, reading the current counter value of in and out people in
channel 1 and channel 2.
Master send:
The people in and out of each channel shows by a hexadecimal number which is 2 byte. Max means decimal
system 65535;
If clear, repower or power off the counter value will start from 0, if not the counter value will accumulate.
Master send:
Master send:
Commands Specifications: Read the current version of VPC software\hardware by sending this command.
Master send:
VPC Return: