Eurotech PCN-1001 Owner's manual

Type
Owner's manual

Eurotech PCN-1001 is a bidirectional people counter that can be installed on standard motorized swing, sliding or revolving doors and provides accurate counting of people entering and leaving a building or room. It can be used in various applications such as retail stores, offices, and public buildings to collect data on footfall and customer behavior for analysis and improvement of business operations.

Eurotech PCN-1001 is a bidirectional people counter that can be installed on standard motorized swing, sliding or revolving doors and provides accurate counting of people entering and leaving a building or room. It can be used in various applications such as retail stores, offices, and public buildings to collect data on footfall and customer behavior for analysis and improvement of business operations.

DynaPCN
-10-10-01
RS
-485 Passenger & People Counter
RS-485 COMMUNICATION PROTOCOL
Rev
1-2 – 16 March 2018 DYPCN-10-01-00_RS485ComProt_EN_1-2 – ENGLISH
© 2018 Eurotech SpA - Via Fratelli Solari 3/A - 33020 AMARO (UD) - Italy
Trademarks
All trademarks, registered trademarks, logos, trade names and products names contained in this
document are the property of their respective owners
Revision history
Revision
Description
Date
1-0
First release 28 February 2014
1-1
Contents review 6 March 2018
1-2
Updated command list 16 March 2018
DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2 Contents
3 /
16
Contents
Trademarks ........................................................................................................................................................ 2
Revision history .................................................................................................................................................. 2
Contents ...................................................................................................................................................................... 3
1 Introduction ......................................................................................................................................................... 5
2 Commands list .................................................................................................................................................... 7
2.1 diagnostic_en ........................................................................................................................................... 7
2.2 enable_pc ................................................................................................................................................. 7
2.3 fw_version ................................................................................................................................................ 7
2.4 gcounters .................................................................................................................................................. 7
2.5 gdatetime .................................................................................................................................................. 8
2.6 gdoorstatus ............................................................................................................................................... 8
2.7 input0 ........................................................................................................................................................ 8
2.8 input1 ........................................................................................................................................................ 9
2.9 ker_version ............................................................................................................................................... 9
2.10 pcn1001_status ...................................................................................................................................... 10
2.11 reset........................................................................................................................................................ 11
2.12 restore .................................................................................................................................................... 11
2.13 sdatetime ................................................................................................................................................ 11
2.14 sled ......................................................................................................................................................... 11
2.15 sys_version ............................................................................................................................................ 12
2.16 testin0 ..................................................................................................................................................... 12
2.17 testin1 ..................................................................................................................................................... 12
2.18 version .................................................................................................................................................... 12
3 Application flow ................................................................................................................................................ 13
Notes .......................................................................................................................................................................... 15
(This page has been intentionally left blank)
DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2 Introduction
5 /
16
1 Introduction
This document describes the commands of the serial RS-485 communication protocol between a
user application and the DynaPCN-10-10-01.
The communication is based on a Serial Network Protocol (SNP).
If no serials are available, you can install the RS-485 emulator via USB.
This protocol allows to receive and send messages via serial port by the routines SNP_Recv() and
SNP_Send().
To properly build a packet for this protocol, SNP_Send() uses BuildSNPCommand().
For more information refer to the document: DynaPCN-10-10-01 User Manual.
Each command is represented d in the following way:
Command
Name of command
Command Description
Brief description of command purpose
Parameters
Format and type of possible parameter(s)
Parameters Description
Description of parameter(s) : permitted value, default ..
Returns
Format, type and meaning of possible returned parameter(s)
(This page has been intentionally left blank)
DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2 Commands list
7 /
16
2 Commands list
2.1 diagnostic_en
Command
diagnostic_en
Command Description
Enables or disables the diagnostic
Parameters
Unsigned char ( 1 byte)
Parameters Description
If 0 : disabled
Returns
2.2 enable_pc
Command
enable_pc
Command Description
Enables or disables people counting
Parameters
Unsigned char (1 byte).
Parameters Description
If 0: Disables people counting
If 1 : Enables people counting
Returns
2.3 fw_version
Command fw_version
Command Description
Gets the installed FPGA firmware version
Parameters
Parameters Description
Returns
String containing the actual FPGA firmware version number (e.g:“3.0”)
2.4 gcounters
Command
gcounters
Command Description
Returns the current counter values (In & Out)
Parameters
Parameters Description
Returns
Two unsigned long values (4 bytes long).
The first is the incoming counter value.
The second is outgoing counter value.
Commands list DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2
8
/ 16
2.5 gdatetime
Command
gdatetime
Command Description
Gets date and time in the PCN system
Parameters
Parameters Description
Returns
String containing the actual DynaPCN-10-10-01 date and time.
2.6 gdoorstatus
Command
gdoorstatus
Command Description
Gets the door status
Parameters
Parameters Description
Returns
Unsigned char (1 byte).
If 1 : The door is open
If 0 : The door is close
2.7 input0
Command
input0
Command Description
Sets the associated function at to the Digital input 0
Parameters
Unsigned short (2 byte)
Parameters Description
Refer to Table 1
Returns
Table 1. Mapping Function of Digital Input0
Value
Function
Description
0
Do Nothing
The digital input signal is ignored
1
Reset Counters
When a rising edge is detected the counters are set to zero
2
Enable/Disable Person Counting
When a rising edge is detected the counting process starts.
When a falling edge is detected the counting process stops.
3
Test
Used to test the signal
4
Reset Counters Reverse
When a falling edge is detected the counters are set to zero
5
Enable/Disable Person Counting Reverse
When a falling edge is detected the counting process starts.
When a rising edge is detected the counting process stops.
DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2 Commands list
9 /
16
2.8 input1
Command
Input1
Command Description
Sets the associated function at to the Digital input 1
Parameters
Unsigned short (2 byte)
Parameters Description
Refer to Table 2
Returns
Table 2. Mapping Function of Digital Input1
Value
Function
Description
0
Do nothing
The digital input signal is ignored
1
Reset Counters
When a rising edge is detected the counters are set to zero
2
Enable/Disable person counting
When a rising edge is detected the counting process starts.
When a falling edge is detected the counting process stops.
3
Test
Used to test the signal
4
Reset Counters Reverse
When a falling edge is detected the counters are set to zero
5
Enable/Disable person counting Reverse
When a falling edge is detected the counting process starts.
When a rising edge is detected the counting process stops.
2.9 ker_version
Command
ker_version
Command Description
Gets the kernel version
Parameters
Parameters Description
Returns
String containing the actual kernel version number (e.g. “2.1”)
Commands list DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2
10
/ 16
2.10 pcn1001_status
Command
pcn1001_status
Command Description
Gets the status of the PCN and the diagnostic error code
Parameters
Parameters Description
Returns
1 unsigned char (1 byte) value.
The byte indicates the status of the system: see Table 3.
Table 3. Error Codes and their meaning
Error code
Meaning
0
No errors
1
Right sensor occluded
2
Left sensor occluded
3
Both sensors occluded
4
Right sensor obscured
8
Left sensor obscured
12
Both sensors obscured
16
High difference between right and left sensors
20,24,28
High difference between right and left sensors and both sensors obscured
The difference between occluded and obscured is the following:
Occluded: This is a condition of complete masking of one or both sensors (example: a thick label attached on the sensor,
or sensor broken).
It should be better to verify if the PCN is ok
Obscured: This is a lighter condition than the Occluded one. In this case the masking of one or both sensors is partial
and transitory. Generally this condition does not affect the counting.
DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2 Commands list
11 /
16
2.11 reset
Command
reset
Command Description
Resets the IN and OUT counters
Parameters
Parameters Description
Returns
2.12 restore
Command
restore
Command Description
Restores the system factory settings
Parameters
Parameters Description
Returns
2.13 sdatetime
Command
sdatetime
Command Description
Sets date and time in the PCN system
Parameters
Strings
Parameters Description
String containing the date and time in format MMDDhhmmYYYY
E.g.: 21 May 2014 at 15:39 = “052115392014”
Returns
2.14 sled
Command
sled
Command Description
Sets the light intensity of LEDs
Parameters
Unsigned char (1 byte)
Parameters Description
Values from 0 to 255:
When 0 : OFF
When 255 : Maximum intensity
Returns
Commands list DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2
12
/ 16
2.15 sys_version
Command
sys_version
Command Description
Returns the Operating System version of the DynaPCN-10-10-01
Parameters
Parameters Description
Returns
String containing the Operating System version number (e.g.: “1.6”)
2.16 testin0
Command
testin0
Command Description
Gets the logic level of the input
Parameters
Parameters Description
Returns
If 1 : High logic level
2.17 testin1
Command
testin1
Command Description
Gets the logic level of the input
Parameters
Parameters Description
Returns
If 1 : High logic level
2.18 version
Command
version
Command Description
Gets the installed imgserver version
Parameters
Parameters Description
Returns
String containing the actual imgserver version number (e.g. “2.3.11.8”)
DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2 Application flow
13 /
16
3 Application flow
The following flow chart describes the typical application flow.
A digital input (0/1) of the PCN is connected to a circuit which retrieves the open/close state of the
port, and enables/disables the counting accordingly to its state.
CONNECT
SDATETIME
RESET
Initialization:
1. Connect to the PCN
2. Set the current time and date
3. Enable diagnostic
4. Reset counters
GCOUNTERS
RESET
NO
NO
GDOORSTATUS
Is the door
closed?
Was the door
status open
previously?
SI
SI
Door status check and counters
retrieval:
1 Monitor the door status;
the exit criteria is a transition
of the door state from open to
close
2 Retrieve the counters
3 Reset the counters
DIAGNOSTIC_EN
(This page has been intentionally left blank)
DynaPCN-10-10-01 RS-485 Passenger & People Counter Rev. 1-2 Notes
15 /
16
Notes
EUROTECH.COM
HEADQUARTERS
Via Fratelli Solari, 3/
a
33020 Amaro (UD)
– Italy
Tel:
+39 0433.485.411
Fax
: +39 0433.485.499
E
-mail: support.it@eurotech.com
Web:
www.eurotech.com
For your Eurotech local contact refer to: eurotech.com/contacts
For the Eurotech Global Support Centre refer to:
support.eurotech.com
For the Eurotech Download Area refer to:
eurotech.com/download
All trademarks, registered trademarks, logos, trade names and products names contained in this document are the property of their respective owners.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16

Eurotech PCN-1001 Owner's manual

Type
Owner's manual

Eurotech PCN-1001 is a bidirectional people counter that can be installed on standard motorized swing, sliding or revolving doors and provides accurate counting of people entering and leaving a building or room. It can be used in various applications such as retail stores, offices, and public buildings to collect data on footfall and customer behavior for analysis and improvement of business operations.

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI