In this paper, we propose an energy harvesting quality-of-service (EII-QoS) routing protocol based on a deep Q-learning design in Internet-of-Things-enabled cognitive radio mobile ad hoc networks (IoT-CMANETs), where mobile nodes harvest energy from a multiple antennas power beacon for their routing and data transmission processes. A deep Q-iearning network (DQN) is proposed to establish a QoS route, which avoids the affected region of a primary user. In the forwarding route request (RREQ) process, relying on the designed DQN, the proposed EII-QoS routing protocol unicasts a RREQ packet to the neighbor associated with a minimum Q'-value satisfying energy, queue size of each node, the number of hops, and cognitive radio constraints. The Q'-value of each link is obtained by optimizing joint residual energy and speed of all nodes belonging to this link. Simulation mulls show that the proposed EII-QoS routing protocol outperforms the state-of-the-art routing protocols in terms of control overhead, packet delivery ratio, routing delay, and energy consumption, arising as an effective protocol in IoT-CMANETs.