To better utilize hydrogen energy from fuel cell electric vehicles (FCEVs), an investigation is conducted into how a proton exchange membrane fuel cell (PEMFC) hybrid vehicle's 100-km hydrogen consumption rate is affected by a dynamic programming-based energy management method. The Dueling Deep Q-Network (Dueling DQN) algorithm's energy management approach is proposed. The DQN algorithm is optimized to increase the method's stability and quicken its pace of convergence. The simulation results show that the fuel economy of DQN and Dueling DQN algorithm are 94.28 % and 95.7 % respectively, both of which are improved, while the Dueling DQN algorithm converges at 480 steps higher than the DQN algorithm converges at 800 steps, and the algorithm comparison verifies the two algorithms' The validity of both algorithms was verified by algorithm comparison. In China Truck Driving Conditions (CHTC-LT), the hardware-in-the-loop simulation of CAN communication protocol using NI-PXI hardware-in-the-loop test system achieves the target vehicle speed following and verifies the real-time performance of the strategy.