Figure 14. Qbv test setup
Basic gates close
echo “t0 00000000b 20000” > qbv0.txt
#Explain:
# 'NUMBER' : t0
# 'GATE_VLAUE' : 00000000b
# 'TIME_LONG' : 20000 ns
cp libtsn.so /lib
./tsntool
tsntool> verbose
tsntool> qbvset --device eth5 --entryfile ./qbv0.txt
#send one broadcast frame to eth4 from TestCenter.
ethtool -S eth5
#Should not get any frame from eth5 on TestCenter.
echo “t0 11111111b 20000” > qbv0.txt
tsntool> qbvset --device eth5 --entryfile ./qbv0.txt
#send one broadcast frame to eth4 on TestCenter.
ethtool -S eth5
#Should get one frame from eth5 on TestCenter.
Basetime test
#Get current second time:
devmem 0x1fc0900c4
tsntool> qbvset --device eth5 --entryfile ./qbv0.txt --basetime 0x205100000000
# ’basetime’ : (current_secooffset)<<32 + current_nsecond_time
#send one broadcast frame to eth4 on TestCenter.
#Frame could not pass eth5 until time offset.
Gate time limitation
echo “t0 00000000b 20000” > qbv0.txt
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
119
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......