Fault diagnosis in Industrial Internet of Things and Cyber-Physical Systems is essential, especially for the rapidly developing 5G and coming 6G technology. Hardware working status is the basis for fault diagnosis. However, in actual engineering, accurately locating faults is not easy for hardware engineers. In this paper, a prototype based on FPGA is developed to connect with the target field device in data acquisition. This prototype aims to extract the underlying data information in a real-time and unattended manner like the mimicry of natural immunity. The preliminary experiment results from the prototype can be used to guide practice through providing real-time data support for hardware troubleshooting and spontaneous and intelligent analysis.