![Eurotech PCN-1001 User Manual Download Page 89](http://html1.mh-extra.com/html/eurotech/pcn-1001/pcn-1001_user-manual_2440322089.webp)
Test
an RS485 connection and use the RS485_GUI
PCN-1001 User manual
89
Broadcast Message
Each message between Master and Slave is made in the following format:
Source
Destination
TotalPacketNumber
PacketNumber
DataLength
Source:
Address of the device transmitting the message
Destination:
Address of the target device
TotalPacketNumber: Quantity of Packets to be sent
PacketNumber:
The number of the current packet being sent
DataLength:
Length of the data in this Packet [0x01 to 0xFE or MAX]
Therefore, as we can see from the examples on the previous pages, a message may take this form:
[0x01, 0x02, 3, 2, MAX]
In this case Node “0x01” is sending a message to Node “0x02”; this is package 2 of 3, and is MAX (255)
characters long. Whereas:
[0x02, 0x01, 1, 1, 2]
would be 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 all Slave devices will act upon the message, however, no reply will be
sent by any of the Slave devices.
The DATA field
All the messages exchanged between the Master and the Slave units have to be encapsulated in the SNP
transmission.
The command to send is contained in the Data field of the SNP protocol.
All the commands are formed by: the Command string, the String terminator, and some values (Value 1, Value 2,
…). Each value can be a number (1, 2 or 4 bytes long ) or a string.
The Data field maximum length is contained in the MAX_DATA_LENGTH
The Data field is formed by:
NAME
LENGTH (BYTES)
CONTENTS
Command string
0-256 bytes
Command
String terminator
1
0
Value 1
1,2,4
First parameter
Value 2
1,2,4
Second parameter
….
1,2,4
….
Send Message
Part 3
[‘S’, ‘J’, 3, 3, x]
Received by all
Systems
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 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 22: ...This page has been intentionally left blank...
Page 32: ...This page has been intentionally left blank...
Page 48: ...This page has been intentionally left blank...
Page 50: ...This page has been intentionally left blank...
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 110: ...This page has been intentionally left blank...
Page 114: ...This page has been intentionally left blank...
Page 116: ...This page has been intentionally left blank...
Page 117: ...Notes PCN 1001 User manual 117 PCN 1001_UserMan_En_4 0 Notes...