1000base-t1 standard ethernet 1000base- t1 spy · pdf file1000base-t1 – standard...

24
1000Base-T1 Standard Ethernet 1000Base- T1_SPY_mini User Manual Version 0.3 October 2017 Technica Engineering GmbH Email: [email protected] Leopoldstr. 236 80807 München Web: www.technica-engineering.de

Upload: doantuyen

Post on 06-Feb-2018

250 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

1000Base-T1 – Standard Ethernet

1000Base-T1_SPY_mini

User Manual

Version 0.3 October 2017

Technica Engineering GmbH Email: [email protected] Leopoldstr. 236 80807 München Web: www.technica-engineering.de

Page 2: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

Page 2 of 24

Page 3: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

Index

1 Feature List ................................................................................................................... 4 2 Warranty and Safety Information ................................................................................... 5 3 Pinning .......................................................................................................................... 6

3.1 Power and 1000Base-T1 connector .......................................................................... 7

3.2 SubD 9 Trigger Connector ...................................................................................... 8

3.3 RJ45 Ethernet connectors ....................................................................................... 8 4 Status LEDs .................................................................................................................... 9 5 Configuration .................................................................................................................. 10 6 Use Cases ..................................................................................................................... 11

6.1 Dual Media Converter Mode .................................................................................. 11

6.2 Spy Mode Independient.......................................................................................... 12

6.3 Spy Mode 2 in 1………………………..................................................................... 13

6.4 Spy Mode Independent with Wrapper.................................................................... 14

6.5 1000Base-T1 SPY mini LUA dissector................................................................... 16

7 Trigger Functions .......................................................................................................... 22 8 Frequently Asked Questions – FAQ .............................................................................. 23

9 Contact ......................................................................................................................... 24

Page 3 of 24

Page 4: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

1 Feature List The Technica Engineering 1000Base-T1 SPY mini samples 1000Base-T1 Frames directly on the bus without influence of the original network. The data Frames are enhanced with additional information as an exact timestamp and the bus port which the data was originally sent on. All data can be recorded on a PC or datalogger for detailed offline analysis.

Timestamps are in 0.04 μs resolution and synchronous to all connected lines.

Optionally other UseCases (Frame Generator, Trigger Generator, …) can be upgraded.

Features: • 2 Ports 1000Base-T1 1000 MBit/s full duplex on a single unshielded twisted pair. • 2 Ports Gigabit Ethernet 1000 BaseTX • 6x Digital Trigger Input • 6x Digital Trigger Output • Automotive Tyco MQS Connectors for 1000Base-T1 and Power Supply • Robust steel case • DIP Switches for easy configuration • Selection of multiple UseCases:

o Two independent MediaConverters o 2x SPY for listening on a 1000Base-T1 Channel

Power requirement: 8 to 16 Volt DC (nominal 12 Volt DC) Power consumption: 4 to 7 Watt

Size: 110 x 108 x 28 mm Weight: 0,4 kg International Protection: IP 2 0

Operating Temperature: -20 to +80 °Celsius

Page 4 of 24

Page 5: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

2 Warranty and Safety Information

Before operating the device, read this manual thoroughly and retain it for your reference.

Use the device only as described in this manual. Use only in dry conditions. Do not apply power to a damaged device.

Do not open the device. Otherwise warranty will be lost.

This device is designed for engineering purpose only. Special care has to be taken for operation. Do not use this device in a series production car. As this device is likely to be used under rough conditions, warranty is limited to 1 year. Manufacturer liability for damage caused by using the device is excluded.

Page 5 of 24

Page 6: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

3 Pinning The pinning of the ECU connectors is listed on the label on top of the device

Page 6 of 24

Page 7: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

3.1 Power and 1000Base-T1 connector

Connector colour: Black

Power supply for the device is supplied by Pin 18 (12 Volt) and Pin 20 (Ground).

Warning: If you apply a voltage higher than 18 Volt, the device will be damaged!

The Tyco Electronics (TE) Micro Lock System (MQS) is used.

Page 7 of 24

Connector

Pin Function

3 1000Base-T1 Port_2, Positive

5 1000Base-T1 Port_2, Negative

9 1000Base-T1 Port_1, Positive

11 1000Base-T1 Port_1, Negative

18 VCC

20 GND

Page 8: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

3.2 SubD 9 Trigger Connector

Standard SubD 9 Pos. female connector.

This connector is used for digital input and output trigger functions.

Pin Function 1 Digital Trigger Input/Output 1 2 Digital Trigger Input/Output 2 3 Signal Ground Reference 4 Signal Ground Reference 5 Signal Ground Reference 6 Digital Trigger Input/Output 3 7 Digital Trigger Input/Output 4 8 Digital Trigger Input/Output 5 9 Digital Trigger Input/Output 6

Digital Trigger Output: Digital Trigger Output Voltage is 3.3 Volt Level with a 4.7 KOhms pull-up resistor Active Low. Drive Strength 20 mA Digital Trigger Input:

Digital Trigger Input is a Voltage 3.3 Volt Level with a 4.7 KOhm pull-up resistor Active LOW.

3.3 RJ45 Ethernet connectors

There are two RJ45 Standard Ethernet connectors on the front side for Gigabit Ethernet.

They are set to be Gigabit Ports.

Page 8 of 24

Page 9: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

4 Status LEDs

The 1000Base-T1 SPY mini has several status LEDs at the front side of the case.

Page 9 of 24

LED Position State

FPGA Up Right On

Host Low Right Blink

Link 1 Up Left On when 1000Base-T1 link is detected on Port 1 Blinking when data is transmitted

Link 2 Down Left On when 1000Base-T1 link is detected on Port 2 Blinking when data is transmitted

Centre Centre On when link-up is detected Blinking when data is transmitted

Page 10: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

5 Dip switch configurations The BRSPY mini is configured by 8 DIP Switches on the front of the device.

DIP Switch 1: ON = 1000Base-T1 Port 1 is set to Master.

OFF = 1000Base-T1 Port 1 is set to Slave.

DIP Switch 2: ON = 1000Base-T1 Port 2 is set to Master

OFF = 1000Base-T1 Port 2 is set to Slave.

DIP Switch 3 to 4: Use Case Selection. Binary Coded from 00 to 11. Please refer chapter “Use Cases” in this User manual for further information.

DIP Switch 5 to 8: Frame Generator speed, burst and packet size selection

Page 10 of 24

Page 11: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

6 Use Cases Different Use Cases can be configured with the DIP Switches 3 and 4 for the 1000Base-T1 SPY mini. After changing these switches, a hardware reset is required.

6.1 Dual Media Converter Mode

UseCase “00”: Dual Media Converter Mode

The simplest Use Case is the double Media Converter, selected by setting the DIP switches 3 and 4 to “00” (both switches down). The 1000Base-T1 SPY mini will function like completely independent Media Converters from 1000Base-T1 to Gigabit Ethernet in full-duplex mode.

The two data streams of the two Media Converters are completely independent of each other. Both data streams are full duplex and the RJ45 Ports are input/output. The PC can send data.

There are no buffers in this Use Case. The RJ45 Ports work in Gigabit Ethernet (1000 Mbit/s) Mode in this Use Case.

Page 11 of 24

Page 12: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

6.2 Spy Mode Independent UseCase “01”: Spy Mode Independient.

In this Use Case, the copied data from the two 1000Base-T1 Ports are logged independently in the in the 2 ethernets ports. The PC is not able to send data. The RJ45 Ports are output only. The communication between the two 1000Base-T1 ports is possible.

Page 12 of 24

Page 13: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

6.3 Spy Mode 2 in 1

UseCase “10”: Spy Mode 2 in 1

In this Use Case the copied data from the two 1000Base-T1 Mbit/s are logged into one 1000Mb/s stream and are sent on one Gigabit link. To do a collision resolution the packets are buffered on the 1000Base-T1 Port.

In this mode, the signals received in 1000Base-T1 Port 1 and 1000Base-T1 Port 2 are combined in one stream and sent on Ethernet Port. The PC is not able to send data. The RJ45 Ports are output only. The communication between the two 1000Base-T1 ports is possible.

This UseCase is very powerful in combination with the TimeStamp Feature (see Chapter 6.2.2.):

Page 13 of 24

Page 14: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

6.4 Spy Mode Independent with Wrapper

UseCase “11”: Spy Mode Independient with Wrapper (TimeStamp Feature)

In this case, a header is added on the Ethernet sent frame. The packet received in the 1000Base-T1 port will be logged through the corresponding Ethernet Port into an Ethernet RAW frame. The following picture shows the structure of an Ethernet 1000Base-T1 SPY mini RAW frame, in this use case:

Destination Source Ethernet Time Port Extra Length Payload CRC MAC MAC Type Stamp

(1 (1 (2 (BR (4

(6 bytes) (6 (2 bytes) (6 byte) byte) bytes) packet) bytes) bytes) bytes)

Ethernet 1000Base-

T1 mini Frame Header

Field Name No. Of Value

Bytes

Destination MAC Address 6 FF:FF:FF:FF:FF:FF

Source MAC Address 6 00:50:C2:E4:30:00

Ethernet Type 2 0x2182

Time Stamp 6 See the note below

Port 1 See the table below

Extra 1 0x00

Length 2 Length of the Ethernet Gigabit SPY mini frame

Payload X BroadR-Reach packet

CRC 4

Note: The data Frames are enhanced with additional information as an exact timestamp and the bus port the data was originally sent on. Timestamps are in 0.04 μs resolution and synchronous to all connected lines.

With this feature the user can record the exact time when the first bytes of a frame were received on a 1000Base-T1 port of the 1000Base-T1 SPY mini. It is also possible to see the complete frame including the preamble and the CRC in Wireshark. Normally this information is re-moved by your network interface

Note: The following table shows the values of Port field:

Port Value

1000Base-T1 1 0x00

1000Base-T1 2 0x01

Page 14 of 24

Page 15: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

The following image shows an example of a 1000Base-T1 payload frame encapsulated in a 1000Base-T1 RAW frame, with header:

Page 15 of 24

Page 16: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

6.5 1000Base-T1 SPY mini LUA Dissector Installation Guide In order to dissect the 1000Base-T1 SPY mini RAW Ethernet Frames, a LUA file for Wireshark is avail-able on Technica Engineering website. To install the LUA file in Wireshark, the user must follow the following steps:

1. Close Wireshark in case that the program is running on PC.

2. Download the .ZIP file that contains all the LUA files, through this website:

http://www.technica-engineering.de/wp-content/uploads/2017/01/BroadR-Reach-

SPY-Mini-Wireshark-Dissector.zip

3. Extract the downloaded ZIP file. This file should contain the following LUA file:

Gigabit_SPY_Mini_ETH_wrapper_BR.lua

4. Copy or move the LUA file in Wireshark plugins folder. The path should be:

C:\Program Files\Wireshark\plugins\(Wireshark Version Number).

Note: Wireshark Version Number depends on the Wireshark version installed on

Page 16 of 24

Page 17: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

5. In order to copy or move the LUA files to the specified Wireshark plugins folder,

Administrator rights will be needed. In that case, the following window should appear.

Press Continue to proceed with the copy.

6. Run Wireshark.

Page 17 of 24

Page 18: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

6.6 Frame Generator Mode In this case, the device works as a Frame Generator, sending Ethernet frames on GB1 with Gigabit Speed and on all 2 1000Base-T1 ports with 1000Mbit/s.

In order to select this mode, the DIP switches 3 and 4 must be ON (“11” Value). In addition, the user can select different functionalities according with the set of DIP switches 5,6,7 and 8:

• DIP Switch 5: When it is ON, it selects the Burst Mode. In this mode, the device sends 4 packets with the minimum IFG (Interframe Gap). These sequences of packets consists on a burst of mixed packets -a large frame and three small frames.

• DIP Switch 6: This switch selects the Packets Size. When it is OFF, the size of the frame will be 64 bytes, and when it is ON, the size will be 1500 bytes. The sizes don’t include the preamble and CRC.

• DIP Switches 7 and 8: This switch allows to select the Framerate:

o DIP Switch 7 OFF, DIP Switch 8 OFF (“00”): 5 MBit/s o DIP Switch 7 OFF, DIP Switch 8 ON (“01”): 50 MBit/s o DIP Switch 7 ON, DIP Switch 8 OFF (“10”): 90 MBit/s o DIP Switch 7 ON, DIP Switch 8 ON (“11”): 98 MBit/s

These rates are used in all 1000Base-T1 ports, and in GB2. In Frame Generator mode, this port will work as Fast Ethernet port, sending status frames -see section 6.3.2.

In GB1, these values are multiplied by 10.

6.7.1 Frame Format

The following image shows the Frame Format transmitted on all 1000Base-T1 ports and GB port in Frame Generator Mode.

The frame format is fixed, and the only difference between the packets is the Stream ID field. This field shows the port number where the frame is being sent, as it follows:

Page 18 of 24

Page 19: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

Stream ID Function Value

The following image shows an example with mixed frame sizes in Wireshark, in burst mode:

Page 19 of 24

Page 20: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

6.7 Status Reporter On any of the 1000Base-T1 and in GB1, the CRC and Continuous Counter fields are checked and the result is reported each second in a Status Frame. This frame is transmitted on GB2 with the following format:

In this port, the StreamID = 5, and the GB1 works as a Fast Ethernet port. The following im-age shows an example of a Status Frame in Wireshark:

The following table defines the content of the Status Frame Data. These fields are replicated two times, one per 1000Base-T1 port, giving information about the communication status in every single port.

Page 20 of 24

Page 21: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

Field

Size

Description

(bytes) SequenceCounterLocked 2 Lowest Bit shows if the Sequence Counter Checker found at least

one valid pair and then was enabled. It is disabled while errors

occur.

SequenceErrorCounter 2 Counter for detected sequence errors after checker locked. This

counter is not reset.

IgnoredFrameCounter 2 Counter for frames, that were not in the right format to be

checked.

CRC_ErrorCounter 2 Counter for CRC errors in all received frames

ReceivedFrameCounter

2

Total of all received frames including malformed frames

MeasuredFramesPerSecond 2 Received Frames per second with valid preamble.

MeasuredBitsPerSecond 2 RX_DV High Time vs. Low Time

[MBits/s]

Page 21 of 24

Page 22: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

7 Trigger Functions The Trigger Output signals detect when a frame is received in one of the 1000Base-T1 ports -when detects the Data Valid rising edge-, and when a frame is being transmitted on one of the Ethernet ports, as is shown in the following table:

Pin Function 1 1000Base-T1 Data Valid 2 1000Base-T1 Data Valid 3 Signal Ground Reference 4 Signal Ground Reference 5 Signal Ground Reference 6 GB1 Data Enable 7 GB2 Data Enable

Page 22 of 24

Page 23: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

8 Frequently Asked Questions – FAQ

Q: What is the delay time for Ethernet packets through the SPY?

A: The delay time depends on the UseCase that is set. For SPY Mode without wrapper the delay is around 12µs. For Media Converter Mode, the delay is around 2.8µs. This delay is independent of the Ethernet packet frame size.

Q: What is the delay time for Ethernet packets between two 1000Base-T1 ports?

A: For the Media Converter Mode, the delay between 1000Base-T1 ports is around 1.5µs. The delay is independent of the Ethernet packet frame size.

Q: Is AVB supported?

A: The SPY is especially built for testing AVB. For minimum delay the SPY has to be set to SPY Use Case. When using automotive AVB profile the time synchronization is not influenced by the SPY.

There is no special handling of AVB frames as this is not necessary.

Q: The 1000Base-T1 Link LED is lit but I have no valid Link. What is going wrong?

A: There is a bug in the used 1000Base-T1 PHY. When the 1000Base-T1 Plus and Minus lines are swapped, and the SPY Port is set to 1000Base-T1 Slave then the Link LED is lit, but there is no data trans-mission possible. So please connect the 1000Base-T1 lines preoperly.

Q: I am not able to see any packet in Wireshark in SPY -with or without wrapper- mode. What is going wrong?

A: Some Ethernet Adapters must have the VLAN & Packet Priority option disabled. Please,

change this configuration, going to Ethernet Adapter Properties/Advanced/Packet Priori-ty &

VLAN. If this option is enabled, just disabled. Otherwise, it should be enabled.

Page 23 of 24

Page 24: 1000Base-T1 Standard Ethernet 1000Base- T1 SPY · PDF file1000Base-T1 – Standard Ethernet 1000Base-T1_SPY_mini User Manual ... (Frame Generator, ... Copy or move the LUA file in

9 Contact

If you have any questions regarding this product, please feel free to contact us:

Technica Engineering GmbH Leopoldstr. 236 80807 München Germany

[email protected]

www.technica-engineering.de

Page 24 of 24