Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (28 sloc) 942 Bytes
# SPDX-License-Identifier: GPL-2.0
#
# Description:
# starts a can demo
#
# For this demo the fipad board in the denx lab is used.
# To test the CAN bus we have in the DENX lab installed a PC, called
# CANPC to which a PEAK CAN adapter is attached, which then is connected
# to the CAN bus the fipad board is also connected.
#
# We use tc_workfd_can.py for testing
#
# We open a new connection to the LabPC, called canm and then we ssh
# to the CANPC, from where we then start candump, while on the console
# connection a cansend was started. So we can read from the canm
# connection, the bytes we send with cansend on the console connection.
#
# If we got the same bytes as we send -> TC True
# else the TC returns False
#
# Only one cansend call is tested ... room for more.
# End:
from tbotlib import tbot
# set board into state linux
tb.set_board_state("linux")
# start the can test
tb.eof_call_tc("tc_workfd_can.py")
tb.end_tc(True)