background image

Test an RS485 connection and use the RS485_GUI 

PCN-1001 User manual 

 

96 

PCN-1001_UserMan_En_4.0 

 

int 

main (int argc, char *argv[]) 

 

char buf[MAX_PACKET_LEN]; 

 

char data[6] = {0x73, 0x6c, 0x65, 0x64, 0x00, 0x64}; 

 

unsigned char src = 0x01; 

 

unsigned char dest = 0x02; 

 

char tpn = 0x01; 

 

char pn = 0x01; 

 

short datalen = 6; 

 

 

short crc; 

 

int index = 0; 

 

int data_start; 

 

 

buf[index++] = 0xFF; 

//Preamble 

 

buf[index++] = 0xFF; 

//Preamble 

 

buf[index++] = 0xFF; 

//Preamble 

 

buf[index++] = 0xFF; 

//Preamble 

 

buf[index++] = 0xFF; 

//Preamble 

 

 

buf[index++] = 0x01; 

//SOH 

 

data_start = index; 

 

 

buf[index++] = src; 

//source address 

 

buf[index++] = dest; 

//destination address 

 

buf[index++] = tpn; 

//Total Packet Number 

 

buf[index++] = pn; 

//Number of this packet 

 

buf[index++] = datalen & 0x00FF;    //Data Length LSB 

 

buf[index++] = datalen >> 8;             //Data Length MSB 

 

 

if(data) memcpy(&buf[index],data,datalen); //Data copied in buf 

 

 

index += datalen; 

 

CalcCrc16Block(&buf[data_start],6+datalen,&crc); 

 

 

buf[index++] = crc & 0x00FF;        //CRC LSB 

 

buf[index++] = crc >> 8;                //CRC MSB 

 

buf[index++] = 0xFF;                     //Postamble 

 

 

return 0; 

 

 

 

Summary of Contents for PCN-1001

Page 1: ...PCN 1001 Passenger People Counter USER MANUAL Rev 4 0 23 December 2011 PCN 1001_UserMan_En_4 0...

Page 2: ...col table on pag76 April 2008 2 5 Relevant changes applied to pages 15 36 40 46 to 48 53 to 55 August 2008 2 6 Manual layout update Installing Updating the software paragraph updated WinClient screens...

Page 3: ...and definitions used within this Manual 12 The Mode of the register 12 Hexadecimal numbering 12 Control Unit Host PC 12 PCN 1001 Device Counter Master Slave 12 PART 1 INTRODUCTION 13 Contents of the...

Page 4: ...lient to network PCN 1001 Host PC 40 Step 4 1 Set the main parameters in the Controls tab 41 1 Set the Date and Time settings 41 2 Set the Distance Configuration 41 3 Set the Light intensity 41 4 Set...

Page 5: ...lopment purposes 80 Example of RS485 network 81 Configure the RS485 port of the PCN 1001 82 Start the RS485_GUI Configure the RS485 port of the Host PC 83 Recipient and Polling panels 84 System Info p...

Page 6: ...01 104 CBL 1001 02 cable kit 105 7030000331L Cable for Multiple Connection 105 Example of direct connection using the CBL 1001 02 106 Rear interfaces 107 Power Supply Specifications 108 Mechanical Ch...

Page 7: ...of the information contained herein Eurotech reserves the right to revise this document or to make changes to its content at any time without any obligation to notify any person of such revisions or...

Page 8: ...devices DANGER Before applying power to the system thoroughly review all installation operation and safety instructions Failure to install the system power supply correctly or to follow all operating...

Page 9: ...tech engineer If the device does not function correctly and you are unable to find a solution feel free to contact the Eurotech Technical Support Team If the equipment does not work properly especiall...

Page 10: ...evice including all of its components subassemblies and materials that are an integral part of the product you should consider the WEEE directive The use of the following symbol attached to the equipm...

Page 11: ...ver for full contact details Transportation When transporting any module or system for any reason it should be packed using anti static material and placed in a sturdy box with enough packing material...

Page 12: ...O Read only register W Meaning of the register when written R Meaning of the register when read Hexadecimal numbering Hexadecimal numbers are indicated like this 0x01 Control Unit Host PC The terms Co...

Page 13: ...Part 1 Introduction PCN 1001 User manual 13 PCN 1001_UserMan_En_4 0 PART 1 INTRODUCTION...

Page 14: ...This page has been intentionally left blank...

Page 15: ...nt the Extender PCN 1001 Passenger Counter PCN 1001 Extender with screws and washers 2 DTK 1001 00 This is the PCN 1001 development kit and contains 1x PCN 1001 00 as described above 1x CD ROM with so...

Page 16: ...re images of the area below the device Detection area the built in high luminosity infrared LED emitters allow for reliable operations in any type of lighting condition The PCN 1001 analyses any objec...

Page 17: ...the PCN 1001 can be mounted in a variety of locations even on non horizontal surfaces Many PCN 1001 systems can be installed in a vehicle working stand alone or networked together with a vehicle serv...

Page 18: ...ics If it is necessary to have extended access to the Mini USB connector take appropriate precautions to stop any particulates from entering LED indicator assignment LED COLOUR MEANING LED STATUS Gree...

Page 19: ...connector P N Lumberg 032212 PIN SIGNAL DIRECTION PIN SIGNAL DIRECTION A Power supply IN A Power supply To the secondary PCN 1001 Wide gate OUT B Power supply IN B Power supply To the secondary PCN 10...

Page 20: ...ght 515 grams PCN 1001 FRAME Height 100 mm Width 230 mm Thickness 3 mm REQUIRED CUT OUT DIMENSIONS Height 82 0 mm Width 208 5 mm Depth 41 5 to 70 0 mm depending on optical panel angle WARNING PROVIDE...

Page 21: ...Part 2 PCN 1001 installation procedure PCN 1001 User manual 21 PCN 1001_UserMan_En_4 0 PART 2 PCN 1001 INSTALLATION PROCEDURE...

Page 22: ...This page has been intentionally left blank...

Page 23: ...y that you can place the PCN 1001 in the middle of the gate if you are using the Wide gate configuration the group of PCN 1001 devices has to be placed in the middle of the gate refer also to Number o...

Page 24: ...ew The viewing angle relative to the long side of the front panel is about 70 degrees The viewing angle relative to the short side is about 55 degrees The field of view can be seen as a pyramid with a...

Page 25: ...vertical axis The distance between the upper base of the Detection area and the front panel of the PCN 1001 can be software adjusted in two software selectable ranges o 25 30 cm o 31 40 cm See also T...

Page 26: ...l and lateral views of the installation When installing the PCN 1001 make sure that all the people crossing the gate are also crossing the Detection area If the detection area is shifted to the right...

Page 27: ...tion A maximum of 6 PCN 1001 devices can be connected together in wide gate configuration Please contact Eurotech if you need more than this quantity Example To monitor gates up to 120 cm wide you wil...

Page 28: ...t be aligned with respect to the gate A B The Counter must be placed in the middle of the gate Procedure Make sure M1 of the counter receives the power supply and the communication interfaces for exam...

Page 29: ...of the Master receives the power supply and the communication interfaces Power MUST be available on pins L M of the M1 Connector of the Master as this supplies power to the Slave 2 Make sure M2 of th...

Page 30: ...wer and the communication interfaces to M1 of the 1 ST Slave 3 Make sure M2 of the 1 ST Slave gives only the communications interfaces to M1 of the 2 ND Slave It is necessary to give a separate power...

Page 31: ...devices in Wide gate configuration all managed by the same Control Unit for example the Host PC The Control Unit sees each Wide gate configuration as a single entity Entity 1 Entity 2 Entity N While...

Page 32: ...This page has been intentionally left blank...

Page 33: ...exagonal 2 5 mm 7 64 key driver remove the lateral locking screws and washers at each end A 2 Connect all the interfaces and prepare the power connections to M1 1 Prepare a cable to supply all the int...

Page 34: ...ed location 2 Secure the front panel by reinserting and tightening the two locking screws and washers at each end A IMPORTANT NOTE Once the PCN 1001 is installed the angle of the front panel cannot be...

Page 35: ...n material and any applicable regulation Use anti vandalism screws to increase security WARNING When mounting the PCN 1001 ensure sufficient anchorage in order to firmly fix it to the ceiling This wil...

Page 36: ...to connect the Mini USB port of the PCN 1001 to the USB port of the Host PC You can also use the Male Mini USB B to Male USB Type A cable contained in the CBL 1001 00 Cable Kit 5 Once the USB connect...

Page 37: ...n in the example above we have named the connection PCN 1001 for clarity 3 The Status dialog box will appear 4 Click on the Properties button 5 A Properties dialog box similar to the one on the right...

Page 38: ...ialog Box until all are closed NOTE By default the IP address of the PCN 1001 is 10 100 10 100 The Host PC network IP address can be altered to meet the end users requirements the first field must be...

Page 39: ...N 1001_UserMan_En_4 0 Step 3 5 Configure the Host PC firewall WARNING If the host PC has a firewall running the following ports MUST be open If not even if the PCN 1001 is properly connected no image...

Page 40: ...tect it In this way the PCN 1001 and the Host PC will form a network Follow these steps to detect the PCN 1001 NOTE If the Host PC network has been setup correctly when you open the WinClient you will...

Page 41: ...where the user periodically downloads data via the USB using the Save Records feature 2 Set the Distance Configuration Allows you to set the distance between the PCN 1001 and the upper border of the D...

Page 42: ...on enters the detection area crosses the door threshold and then exits from the detection area on the opposite side By default the threshold is placed at row 60 the image height is 120 rows The positi...

Page 43: ...uch as possible No spot lighting e g solar reflections or strong lighting should be present in the detection area during background acquisition Highly reflective geometric structures situated on or ne...

Page 44: ...the disparity map and a median filter will be applied for reducing noise 3 Press the button 4 Ensure the doors of the gate are open 5 Check that the PCN 1001 is correctly set up This means that in win...

Page 45: ...Disparity map As objects become closer to the cameras they will appear lighter in colour To verify the tracking process 1 Select Tracking in the drop down list 2 Click the button 3 Check if the images...

Page 46: ...Door threshold Outside Inside In 1 Out 0 In 1 Out 1 Normal view Disparity map Counters In 0 Out 0 In 0 Out 0 In 1 Out 0 Remember During the tracking process the two counters are incremented only if a...

Page 47: ...n the counting process is enabled when the door is open every person already within the door threshold line and the portion of detection area facing the door will be counted as OUT if they leave the d...

Page 48: ...This page has been intentionally left blank...

Page 49: ...Part 3 The PCN 1001 software PCN 1001 User manual 49 PCN 1001_UserMan_En_4 0 PART 3 THE PCN 1001 SOFTWARE...

Page 50: ...This page has been intentionally left blank...

Page 51: ...M The pcn 1001 demo win32 pcn 1001 demo win32 is a package supported by Windows XP Vista and 7 that when run on the Host PC installs both the WinClient and the RS485_GUI programs The WinClient WinClie...

Page 52: ...specific folder i e name it Eurotech PCN 1001 Install Update WinClient and RS485_GUI on the PCN 1001 WARNING Installing uninstalling or updating the WinClient on the Host PC will also cause the automa...

Page 53: ...r the first time you will obtain the following messages UPDATE If the WinClient and RS485_GUI are already installed on the Host PC you will obtain the following messages that allow you to modify repai...

Page 54: ...ned on and connected to the Host PC via USB Refer to Install a PCN 1001 33 and Step 3 Configure the network between PCN 1001 and Host PC on page 36 for further information 2 Start WinClient 3 Select t...

Page 55: ...5 PCN 1001_UserMan_En_4 0 5 A dialog box will appear Open the folder with the latest Imgserver file Select the Imgserver file Click Open 6 The Imgserver will be updated on the PCN 1001 When done the f...

Page 56: ...er to the PCN 1001 turn it on Allow sufficient time for the system to start A message like the following will appear when the PCN 1001 has successfully rebooted and reconnected 11 Restart the WinClien...

Page 57: ...you will obtain the WinClient graphical interface 1 2 Window displaying the left and right images acquired from the individual cameras 3 Window displaying the tracking process and the disparity map 4...

Page 58: ...tion ODC Window 3 will display the disparity map and a median filter will be applied for reducing noise Tracking This is the only modality that activates the counting Window 3 will display the dispari...

Page 59: ...ear 4 Select the proper file name i e Config1 and click Open NOTE The Scene Background must be retaken for each new PCN 1001 even if the background is theoretically the same The status bar When the PC...

Page 60: ...ired images are transmitted to the Host PC for visualization Depending on the Host PCs characteristics and the USB connection the FPS rate may differ The value displayed in the bottom left corner of t...

Page 61: ...layed correctly enter the Regional Options within the Windows Control panel and set the time separator to And the date separator to after doing so reconnect to the PCN 1001 and verify that the time an...

Page 62: ...ntering only or the exiting only of passengers this option allows the explicit declaration of the kind of door This declaration does not disable the income counting in a door declared as one way out b...

Page 63: ...e flash memory of PCN 1001 Depending on the Optocoupled I O functions selected see the Optocoupled I O functions panel paragraph on page 67 the information written to the log file will be different Th...

Page 64: ...08 000002 000000 Count 26 09 2011 08 59 00 000002 000001 Count 26 09 2011 08 59 10 000002 000002 Stop 26 09 2011 08 59 20 000002 000002 Boot 26 09 2011 09 10 00 000002 000002 In this example At 08 51...

Page 65: ...kground has to be taken with doors open especially if the doors would block the PCN 1001s field of view as frequently occurs within buses or trains Lighting of the detection area should be diffused as...

Page 66: ...k or dark grey scaled until the process has completed If not restart from step 5 7 Wait for the progress bar to complete When completed the Scene background Saved dialog box is displayed The PCN 1001...

Page 67: ...ls Reset counters Sets the incoming and outgoing counters to zero when a rising edge is detected In the Wide Gate configuration only the GPI2 can be set as reset It has to be set connecting the first...

Page 68: ...sent to the appropriate output the second will be queued for 2 x GPOOT milliseconds In the Wide Gate configuration the GPO1 used will be the one of the first PCN 1001 The GPO2 will be the one of the l...

Page 69: ...he Optocoupled I O functions panel paragraph on page 67 and to the Note How the threshold works when using digital inputs on page 47 The Output Block The figure below shows the electrical schematics o...

Page 70: ...bove the threshold Figure 6 Electrical schematics of the input differential optocoupled block Recommended input operating conditions PARAMETERS SYMBOL VALUE UNIT Minimum Threshold Voltage VTHR MIN 2 4...

Page 71: ...01 Click Connect c Select the Controls Tab Click Restore Factory Settings d Click Yes when the Warning message will appear If you do not perform a restore before configuring the Wide gate mode you may...

Page 72: ...s Tab h Click Scene Background i Click OK when a confirmation message will appear j Select the Connection Tab and click Disconnect 6 Cycle the power on all the PCN 1001 devices 7 Wait for the PCN 1001...

Page 73: ...at are very reflective or with spot lighting RANGES End X pixel 0 to 70 Start X pixel 159 to 91 Start Y pixel 0 to119 End Y pixel 119 to 0 Up Line pixel 0 to 59 Down Line pixel 119 to 60 Example The p...

Page 74: ...0 The picture below shows how the no tracking zones will affect the cameras field of view and the Detection area A person crossing the Detection area in a non masked zone will be counted A person cros...

Page 75: ...s flagged tracking will only work when people passing under the Counter are moving in one direction Tracking will not work when people are moving in two directions at the same time PCN 1001 System dia...

Page 76: ...detection sensitivity Note It is suggested that this feature is kept as enabled The colour of the grey circle will change in the following way The circle should appear green when somebody is crossing...

Page 77: ...door is opening there would be a discrete number of false negatives This will happen because the count is disabled during the background acquisition The value of the Time bkg parameter indicates how...

Page 78: ...1001_UserMan_En_4 0 The Advanced 2 2 tab Stairs Upgrade panel Flag the Stairs Upgrade Enable feature if stairs are present inside the detection area This will improve the accuracy of counting Note It...

Page 79: ...tem begins communications by sending a message to the slave devices The slave devices the PCN 1001 devices analyse the message execute a command if required and transmit the answer to the master The R...

Page 80: ...e with the USB port of the Host PC The 703704001SL Adapter also integrates one termination resistors 120 Ohm and two fail safe resistors 560 Ohm Refer to CBL 1001 00 cable kit on page 100 before attem...

Page 81: ...same values for Baud Rate Data Bits Parity and Stop Bits but different ID number starting form 2 The Host PC starts the communication and includes the address of the target PCN 1001 within the SNP Sm...

Page 82: ...ure the RS485 ports of the PCN 1001 Select the I O Settings tab and refer to the RS485 Setup panel as shown below Insert there the parameters of the PCN 1001 serial port and then click Set to save the...

Page 83: ...test all the commands available to the RS485 port Before starting communications it is important to verify that the RS485 port configuration is correct These values are shown in the status bar of the...

Page 84: ...be displayed Timeout expired In this case you must verify the settings and try again For each command that has been sent to a PCN 1001 the RS485_GUI waits for an answer Three kinds of answer are avai...

Page 85: ...oing counters Get Date Time Resets the Date and the Time Enable Diagnostic Control Enables the Diagnostic Control Disable Diagnostic Control Disables the Diagnostic Control Get Diagnostic status Retur...

Page 86: ...ful transmission by sending again the lost packets If more than 10 consecutive packets are lost the application will stop the file transfer and an error message will be displayed in the log view Optoc...

Page 87: ...rection StartCharacter 1 SOH 0x01 Source 1 Address of sender Destination 1 Address of recipient TotalPacketNumber 1 Total number of packets PacketNumber 1 Number of this packet First packet has number...

Page 88: ...TotalPacketNumber 0 PacketNumber 0 DataLength 0 Scenarios The following charts are intended to give an idea of how the sequences are sent received by the master and slave devices Short Message to Sla...

Page 89: ...e Node 0x02 is sending a message to Node 0x01 this is package 1 of 1 and is 2 characters long The following message would be a Broadcast message 0xFF 1 1 1 2 This is indicated by the 0xFF which means...

Page 90: ...x01 Destination 0x02 TotalPacketNumber 0x01 PacketNumber 0x01 DataLength 0x06 0x00 Data Command sled 0x73 s 0x6C l 0x65I 0x64 d String terminator 0x00 Argument value 100 0x64 CRC16 CRC value 27888 0x1...

Page 91: ...Returns the PCN 1001 diagnostic status reset Resets the Incoming and Outgoing counters sdatetime Sets Date and Time information sled Sets the LED intensity sys_version Reads the version number of PCN...

Page 92: ...Parameters Parameters Description Returns Two unsigned values 4 bytes long 1st is incoming counter value 2nd is outgoing counter value gdatetime Command gdatetime Command Description Gets date and tim...

Page 93: ...nds This value must be a multiple of 4 and included in the range between a 8 and 1020 Returns pcn1001_status Command pcn1001_status Command Description Returns the PCN 1001 diagnostic status Parameter...

Page 94: ...0 255 0 Off 255 Maximum intensity Returns sys_version Command sys_version Command Description Returns the PCN 1001 operating system version Parameters Parameters Description Returns String containing...

Page 95: ...33093 33103 330 33115 350 340 33105 33139 374 380 33145 360 33133 33127 354 33059 294 300 33065 312 33085 33079 306 272 33045 33055 282 33035 270 260 33025 33539 774 780 33545 792 33565 33559 786 816...

Page 96: ...f index 0xFF Preamble buf index 0xFF Preamble buf index 0xFF Preamble buf index 0xFF Preamble buf index 0x01 SOH data_start index buf index src source address buf index dest destination address buf in...

Page 97: ...APPENDIX PCN 1001 User manual 97 PCN 1001_UserMan_En_4 0 APPENDIX...

Page 98: ...This page has been intentionally left blank...

Page 99: ...to M1 and M2 Use the two M3 x 6 hexagonal head screws and the two split washers provided to fix it to the PCN 1001 A hexagonal 2 mm 3 32 key driver is required This is the procedure for mounting the...

Page 100: ...onfigurations CBL 1001 00 cable kit The CBL 1001 00 Cable Kit allows you to quickly power supply and interface the PCN 1001 to the external world The cable kit has the following components 1x 70300003...

Page 101: ...supply Black J Cn4 2 RS485_1 Brown K 1 RS485_1 White Brown H 5 RS485_1 GND Green C Cn5 1 Digital IN1 Orange F 2 Digital OUT 1 Blue D 3 Digital IN1 White Orange G 4 Digital OUT 1 GND White Green E 5 Di...

Page 102: ...Type A Cn1 Connector Pinout PIN SIGNAL 1 Data 2 Data 5 Ground NOTE The 703704001SL Adapter includes the 120 Ohm termination resistors and the 560 Ohm fail safe resistors NOTE Install the CDM 2 06 00...

Page 103: ...r Frontal view Connector Details NAME USE TYPE Cn1 To M1 of 2nd PCN 1001 12 Pin Female Circular Connector Lumberg part number 032212 Cn2 To M2 of 1st PCN 1001 12 Pin Male Circular Connector Lumberg pa...

Page 104: ...CBL 1001 01 120 cm Width 180 cm Single gate 25 cm from the sensors 125 cm from the sensors Detection area 2nd PCN 1001 1st PCN 1001 Primary connector Secondary connector Direct connection Vehicle data...

Page 105: ...hereafter The kit has the following components 1x 7030000331L Cable for Multiple Connection 7030000331L Cable for Multiple Connection Cable length Data cable grey 80 cm 10 Power cable black 40 cm 10 C...

Page 106: ...GND H RS485_1 GND H RS485_2 GND J RS485_1 J RS485_2 K RS485_1 K RS485_2 A Power supply 1 VIN Red B Power supply 2 VIN Black L Power supply 1 VIN Red M Power supply 2 VIN Black Example of direct connec...

Page 107: ...pply IN B Power supply IN C Digital IN 1 IN D Digital IN 1 IN E Digital OUT 1 V OUT F Digital OUT 1 OUT G Digital OUT 1 GND OUT H RS485_1 GND IN OUT J RS485_1 IN OUT K RS485_1 IN OUT L Power supply Fo...

Page 108: ...15 grams PCN 1001 FRAME Height 100 mm Width 230 mm Thickness 3 mm REQUIRED CUT OUT DIMENSIONS Height 82 0 mm Width 208 5 mm Depth 41 5 to 70 0 mm with optical panel at 45 Dimensions are in millimetres...

Page 109: ...otocol IP 10 100 10 100 if for any reason it is necessary to log on the Operating System Example ssh root 10 100 10 100 These are the default passwords LOGIN PASSWORD root root ftpuser ftpuser Passwor...

Page 110: ...This page has been intentionally left blank...

Page 111: ...Highly reflective structures and any high reflective surface situated on or near the floor should be avoided as much as possible in the detection area Reduce the reflection by means of non reflective...

Page 112: ...isable delay The digital inputs should disable the PCN 1001 after the door is closed completely The Use Move detection grey circle appears green even if nobody is crossing the detection area Reacquire...

Page 113: ...t 20 V m 80 MHz 1 GHz 1 KHz 80 AM Source impedance 150 Performance criteria A Radio frequency susceptibility test with pulse modulation ENV50204 On the enclosure port 10 V m 900 MHz 5 MHz 1 89 GHz 10...

Page 114: ...This page has been intentionally left blank...

Page 115: ...u can print this page in A4 format e g on card or plasticard without any scaling and use it as a cut out template Before using this page verify that the dimensions in the printed sheet correspond to t...

Page 116: ...This page has been intentionally left blank...

Page 117: ...Notes PCN 1001 User manual 117 PCN 1001_UserMan_En_4 0 Notes...

Page 118: ...m Web www eurotech inc com PARVUS Tel 1 800 483 3152 Fax 1 801 483 1523 E mail sales parvus com E mail tsupport parvus com Web www parvus com ASIA JAPAN ADVANET Tel 81 86 245 2861 Fax 81 86 245 2860 E...

Reviews: