The invention discloses a code lock and a lock system fault automatic diagnosis method and system. The method comprises steps of designating ATMC working as a start end, conducting ATMC fault detection to a code lock according to a preset diagnosis order, calling an ATMVH diagnosis process in a remote way to achieve and display a diagnosis result, designating the ATMVH as a start end, and conducting fault detection to the code lock and a lock system according to the preset diagnosis order, calling an ATMC diagnosis process in a remote way to achieve and display a diagnosis result. Through a combination between an ATMC diagnosis way and the ATMVH diagnosis way, automatic diagnosis can be conducted to code lock and lock system faults, so problems can be conveniently and quickly checked and error processing efficiency can be improved.