The invention discloses a JTAG (
Joint Test Action Group)
authentication method and device based on a vehicle-mounted
Ethernet chip, and a storage medium. The JTAG
authentication method comprises the following steps: S1, configuring a
chip id, an authkey0, an authkey1 and an authkey2 for each
Ethernet chip; s2, according to a JTAG interface access request, the input
password1 and the input
password2 are compared with expected results calculated by a
hardware algorithm respectively, so that whether the enabling of a JTAG access module is started or not is determined; if any secret key is not successfully verified, the access permission is not opened, retry waiting is carried out, and if the number of times of retry waiting reaches the upper limit, the hardware logic stops the
authentication process, and the access channel is closed. According to the scheme, different user names and passwords can be provided for chip products of the same batch for access, the user names and the passwords must appear in pairs, otherwise, authentication is not passed, the number of access times is limited, and once the number of input mismatching times of the user names and the passwords reaches the upper limit, the authentication module immediately stops authentication and locks permission access of the JTAG, so that the authentication efficiency is improved. And the safety of the vehicle-mounted
Ethernet chip is improved.