Epd-Frame

These scenarios check the basic EPD Frame functions operate correctly.

Test EPD Frame ETH-ROUTER-GPS Source

Description

Test for EPD Frame service with ETH-ROUTER-GPS format as SOURCE. This scenario checks that the EPD Frame service can be configured to send GPS data and system status via UDP multicast frames periodically. The test validates GPS fields in the 128-byte frame: - Latitude/Longitude (degrees and decimal minutes) - Speed and Heading - Number of satellites and signal quality - HDOP and VDOP values - GPS status word

Scenario

Step 1: Set the following configuration in DUT0 :

set controllers gps gps0
set interfaces ethernet eth2 address 10.0.0.1/24
set protocols static route 224.0.0.0/4 interface eth2
set service gps gps0 log-level emerg
set service gps gps0 source gps0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT0 :

set controllers gps gps0
set interfaces ethernet eth2 address 10.0.0.1/24
set protocols static route 224.0.0.0/4 interface eth2
set service epd-frame log-level debug
set service epd-frame type source eth-router-gps address 239.33.0.80
set service epd-frame type source eth-router-gps gps gps0
set service epd-frame type source eth-router-gps period 512
set service epd-frame type source eth-router-gps port 2127
set service gps gps0 log-level emerg
set service gps gps0 source gps0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Starting packet capture on port 2127

Note

Stopping packet capture

Note

Parsing EPD Frame from pcap file

Note

Validating TIMESTAMP fields

Note

Validating POSITION fields

Note

Validating MOVEMENT fields

Note

Validating SIGNAL QUALITY fields

Note

Validating SYSTEM fields


Test EPD Frame ETH-ROUTER-GPS Cellular Status

Description

Test for EPD Frame service cellular module status. This scenario checks that the EPD Frame service reports cellular module status information correctly via UDP multicast frames. The test validates cellular fields in the 128-byte frame: - STS status word (16 bits) - RSSI signal strength for each module - Provider names for connected modules

Scenario

Step 1: Set the following configuration in DUT0 :

set controllers gps gps0
set interfaces ethernet eth2 address 10.0.0.1/24
set protocols static route 224.0.0.0/4 interface eth2
set service gps gps0 log-level emerg
set service gps gps0 source gps0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT0 :

set controllers gps gps0
set interfaces ethernet eth2 address 10.0.0.1/24
set protocols static route 224.0.0.0/4 interface eth2
set service epd-frame log-level debug
set service epd-frame type source eth-router-gps address 239.33.0.80
set service epd-frame type source eth-router-gps gps gps0
set service epd-frame type source eth-router-gps period 512
set service epd-frame type source eth-router-gps port 2127
set service gps gps0 log-level emerg
set service gps gps0 source gps0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Starting packet capture on port 2127

Note

Stopping packet capture

Note

Parsing EPD Frame cellular data from pcap file

Note

Validating STS field

Note

Validating Module 0 fields

Note

Validating Module 1 fields

Note

Validating Module 2 fields

Note

Validating Module 3 fields

Note

Applying cellular configuration

Step 3: Set the following configuration in DUT0 :

set cellular profile CELPROFILE apn movistar.es
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX180t5qn1jGVKDrWY1FGjgewTQflwr1il5s=
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE
set controllers gps gps0
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set interfaces ethernet eth2 address 10.0.0.1/24
set protocols static route 224.0.0.0/4 interface eth2
set service epd-frame log-level debug
set service epd-frame type source eth-router-gps address 239.33.0.80
set service epd-frame type source eth-router-gps gps gps0
set service epd-frame type source eth-router-gps period 512
set service epd-frame type source eth-router-gps port 2127
set service gps gps0 log-level emerg
set service gps gps0 source gps0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 37.13.147.205
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 37.13.147.206
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Note

Starting second packet capture on port 2127

Note

Stopping second packet capture

Note

Parsing EPD Frame cellular data from second pcap file

Note

Validating STS field after cellular config

Note

Validating Module 1 fields after cellular config

Step 5: Set the following configuration in DUT0 :

set controllers gps gps0
set interfaces ethernet eth2 address 10.0.0.1/24
set protocols static route 224.0.0.0/4 interface eth2
set service epd-frame log-level debug
set service epd-frame type source eth-router-gps address 239.33.0.80
set service epd-frame type source eth-router-gps gps gps0
set service epd-frame type source eth-router-gps period 512
set service epd-frame type source eth-router-gps port 2127
set service gps gps0 log-level emerg
set service gps gps0 source gps0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Starting third packet capture on port 2127

Note

Stopping third packet capture

Note

Parsing EPD Frame cellular data from third pcap file

Note

Validating STS field after deleting cellular config

Note

Validating Module 0 fields after deleting cellular config


Test EPD Frame ETH-ROUTER-STS2-M Source

Description

Test for EPD Frame service with ETH-ROUTER-STS2-M format as SOURCE. This scenario checks that the EPD Frame service can be configured to send STS2-M data via UDP multicast frames periodically. The test validates the Config_ID field in the 128-byte frame. Additionally, it tests operational commands to write custom fields (antivalent, unsigned, bitset) at specific byte offsets in the EPD frame and validates that these values are correctly transmitted.

Scenario

Note

Applying STS2-M configuration

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth2 address 10.0.0.1/24
set protocols static route 224.0.0.0/4 interface eth2
set service epd-frame log-level debug
set service epd-frame type source eth-router-sts2-m address 239.33.0.82
set service epd-frame type source eth-router-sts2-m config-id 5
set service epd-frame type source eth-router-sts2-m period 3000
set service epd-frame type source eth-router-sts2-m port 2129
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Starting packet capture on port 2129

Note

Stopping packet capture

Note

Parsing EPD Frame STS2 from pcap file

Note

Validating Conf_ID field

Note

Testing operational commands to write fields

Step 2: Run the command service epd-frame write eth-router-sts2-m add antivalent 2 40 10 on DUT0 and expect the following output:

Show output
OK

Step 3: Run the command service epd-frame write eth-router-sts2-m add unsigned 16 48 15 on DUT0 and expect the following output:

Show output
OK

Step 4: Run the command service epd-frame write eth-router-sts2-m add bitset 8 1016 10001000 on DUT0 and expect the following output:

Show output
OK

Note

Starting second packet capture on port 2129

Note

Stopping second packet capture

Note

Parsing and validating antivalent field (offset=40, type=ANTIVALENT2, value=10)

Note

Parsing and validating unsigned field (offset=48, type=UNSIGNED, value=15)

Note

Parsing and validating bitset field (offset=1016, type=BITS, value=10001000)