Datasheet

SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
1206
For 1588 version 1 messages, sync and delay request frames are indicated by the GMAC if the frame type field
indicates TCP/IP, UDP protocol is indicated, the destination IP address is 224.0.1.129/130/131 or 132, the
destination UDP port is 319 and the control field is correct.
The control field is 0x00 for sync frames and 0x01 for delay request frames.
For 1588 version 2 messages, the type of frame is determined by looking at the message type field in the first byte
of the PTP frame. Whether a frame is version 1 or version 2 can be determined by looking at the version PTP field
in the second byte of both version 1 and version 2 PTP frames.
In version 2 messages sync frames have a message type value of 0x0, delay_req have 0x1, Pdelay_Req have 0x2
and Pdelay_Resp have 0x3.
UDP (Octet 23) 11
IP stuff (Octets 24–29)
IP DA (Octets 30–32) E00001
IP DA (Octet 33) 81 or 82 or 83 or 84
source IP port (Octets 34–35)
dest IP port (Octets 36–37) 013F
other stuff (Octets 38–42)
version PTP (Octet 43) 01
other stuff (Octets 44–73)
control (Octet 74) 01
other stuff (Octets 75–168)
Table 43-7. Example of Sync Frame in 1588 Version 2 (UDP/IPv4) Format
Frame Segment Value
Preamble/SFD 55555555555555D5
DA (Octets 0–5)
SA (Octets 6–11)
Type (Octets 12–13) 0800
IP stuff (Octets 14–22)
UDP (Octet 23) 11
IP stuff (Octets 24–29)
IP DA (Octets 30–33) E0000181
source IP port (Octets 34–35)
dest IP port (Octets 36–37) 013F
other stuff (Octets 38–41)
message type (Octet 42) 00
version PTP (Octet 43) 02
Table 43-6. Example of Delay Request Frame in 1588 Version 1 Format (Continued)
Frame Segment Value