Eurotech PCN-1001 Owner's manual

Type
Owner's manual

Eurotech PCN-1001 is an innovative people counter that utilizes advanced infrared technology to accurately count individuals passing through doorways or narrow passages. Its compact size and simple installation make it ideal for various applications, including retail stores, offices, and public venues. With the ability to distinguish between people entering and exiting, the PCN-1001 provides valuable data for occupancy monitoring, traffic analysis, and marketing strategies.

Eurotech PCN-1001 is an innovative people counter that utilizes advanced infrared technology to accurately count individuals passing through doorways or narrow passages. Its compact size and simple installation make it ideal for various applications, including retail stores, offices, and public venues. With the ability to distinguish between people entering and exiting, the PCN-1001 provides valuable data for occupancy monitoring, traffic analysis, and marketing strategies.

DynaPCN 10
-01-00
RS
-485 Passenger & People Counter
RS-485 COMMUNICATION PROTOCOL
Rev
1-3 – 5 May 2021DYPCN-10-01-00_RS485ComProt_EN_1-3 – ENGLISH
© 2021 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
1-3
Updated command list 5 May 2021
DynaPCN 10-01-00 RS-485 Communication Protocol Rev. 1-3 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-01-00 RS-485 Communication Protocol Rev. 1-3 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-01-00.
The communication is based on a Serial Network Protocol (SNP).
This protocol uses the routines SNP_Recv() and SNP_Send() to send and receive the messages via
a serial port.
To properly build a packet, SNP_Send() uses BuildSNPCommand().
If no serials are available, you can install the RS-485 emulator via USB.
For more information refer to the document: DynaPCN 10-01-00 User Manual.
In the next chapter, each command is represented as follows:
Command Command name
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
(This page has been intentionally left blank)
DynaPCN 10-01-00 RS-485 Communication Protocol Rev. 1-3 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
Diagnostic status :
If 0x00 : disabled
If 0x01 : enabled
Returns String containing the command name. A byte “0x00” is included as terminator.
2.2 enable_pc
Command enable_pc
Command Description Enables or disables people counting
Parameters Unsigned char (1 byte).
Parameters Description
If 0x00: Disables people counting
If 0x01 : Enables people counting
Returns
String containing the command name. A byte “0x00” is included as terminator.
2.3 fw_version
Command fw_version
Command Description Gets the installed FPGA firmware version
Parameters
Parameters Description
Returns
String containing:
The command name. A byte “0x00” is included as terminator
The actual FPGA firmware version number (e.g:“3.0”)”. A byte “0x00” is included as
terminator.
2.4 gcounters
Command gcounters
Command Description Returns the current counter values (In & Out)
Parameters
Parameters Description
Returns
String containing:
The command name. A byte “0x00” is included as terminator
Two variables unsigned long (4 bytes long):
o The first number is the value of the In counter
o The second number is the value of the Out counter.
A byte “0x00” is included as terminator.
Commands list DynaPCN 10-01-00 RS-485 Communication Protocol Rev. 1-3
8
/ 16
2.5 gdatetime
Command gdatetime
Command Description Gets date and time in the PCN system
Parameters
Parameters Description
Returns
String containing:
The command name. A byte “0x00” is included as terminator
Current DynaPCN 10-01-00 date and time, separate d by a space. A byte “0x00” is
included as terminator.
2.6 gdoorstatus
Command gdoorstatus
Command Description Gets the door status
Parameters
Parameters Description
Returns
String containing:
The command name. A byte “0x00” is included as terminator
An unsigned char (1 byte)
o If 0x01 : The door is open
o If 0x00 : The door is closed
A byte “0x00” is included as terminator.
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 String containing the command name. A byte “0x00” is included as terminator.
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-01-00 RS-485 Communication Protocol Rev. 1-3 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 String containing the command name. A byte “0x00” is included as terminator.
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 command name. A byte “0x00” is included as terminator
Kernel version (example: “2.1”). A byte “0x00” is included as terminator.
Commands list DynaPCN 10-01-00 RS-485 Communication Protocol Rev. 1-3
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
String containing:
The command name. A byte “0x00” is included as terminator
An unsigned char (1 byte). The byte indicates the status of the system: see Table 3
. A
byte “0x00” is included as terminator.
Table 3. Error Codes and their meaning
Error code
Meaning
0
No issues
1
One or both video sensors partially occluded
2
One video sensor completely occluded
3
Both video sensors completely occluded
4
Right video sensor obscured
8
Left sensor obscured
12
Both video sensors obscured
16
High lighting difference between right and left video sensors
20, 24, 28
High lighting difference between right and left video sensors, and both video sensors occluded
The difference between occlusion and obscuring is the following:
Occlusion: condition in which an object placed near one or both video sensors partially or completely covers them.
This condition may occur in the typical case where a video sensor is covered by a hand, an opaque adhesive, or a
chewing gum. If this condition persists for a sufficiently long time, it is necessary to verify that there are no objects
placed on the video sensors that prevent them from functioning properly
Obscuring: abnormal low light condition. If this condition persists for a sufficiently long time, it means that the PCN is
working in an environment too dark for its configuration. It is necessary to check the intensity of the infrared LEDs and
consider whether to increase it.
DynaPCN 10-01-00 RS-485 Communication Protocol Rev. 1-3 Commands list
11 /
16
2.11 reset
Command reset
Command Description Resets the IN and OUT counters
Parameters
Parameters Description
Returns String containing the command name. A byte “0x00” is included as terminator.
2.12 restore
Command restore
Command Description Restores the system factory settings
Parameters
Parameters Description
Returns String containing the command name. A byte “0x00” is included as terminator.
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
Example: 21 May 2014 at 15:39 = “052115392014”
Returns String containing the command name. A byte “0x00” is included as terminator.
2.14 sled
Command sled
Command Description Sets the light intensity of LEDs
Parameters Unsigned char (1 byte)
Parameters Description
Values from 0 (0x00) to 255 (0xFF):
When 0x00 : OFF
When 0xFF : Maximum intensity
Returns String containing the command name. A byte “0x00” is included as terminator.
Commands list DynaPCN 10-01-00 RS-485 Communication Protocol Rev. 1-3
12
/ 16
2.15 sys_version
Command sys_version
Command Description Returns the Operating System version of the DynaPCN 10-01-00
Parameters
Parameters Description
Returns
String containing:
The command name. A byte “0x00” is included as terminator
The version of the Operating System installed (example: “1.6”). A byte “0x00” is
included as terminator.
2.16 testin0
Command testin0
Command Description Gets the logic level of the input
Parameters
Parameters Description
Returns
String containing:
The command name. A byte “0x00” is included as terminator
An unsigned char (1 byte)
o If 0x01 : Logic level high
o If 0x00 : Logic level low
A byte “0x00” is included as terminator.
2.17 testin1
Command testin1
Command Description Gets the logic level of the input
Parameters
Parameters Description
Returns
String containing:
The command name. A byte “0x00” is included as terminator
An unsigned char (1 byte)
o If 0x01 : Logic level high
o If 0x00 : Logic level low
A byte “0x00” is included as terminator.
2.18 version
Command version
Command Description Gets the installed imgserver version
Parameters
Parameters Description
Returns
String containing:
The command name. A byte “0x00” is included as terminator
The version of Imgserver installed (example: “2.3.11.”8). A byte “0x00” is included as
terminator.
DynaPCN 10-01-00 RS-485 Communication Protocol Rev. 1-3 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-01-00 RS-485 Communication Protocol Rev. 1-3 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 an innovative people counter that utilizes advanced infrared technology to accurately count individuals passing through doorways or narrow passages. Its compact size and simple installation make it ideal for various applications, including retail stores, offices, and public venues. With the ability to distinguish between people entering and exiting, the PCN-1001 provides valuable data for occupancy monitoring, traffic analysis, and marketing strategies.

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

Finding information in a document is now easier with AI