Hi @JJJW
Welcome to the HP Forums!
Thank you for posting your query in this forum, it's a great place to find answers.
I reviewed your post and I understand that the printer is not maintaining the wireless connection with the router.
Don’t worry, we will work together to resolve this issue and It’s a pleasure to assist you in this regard.
Awesome job on diagnosing the issue correctly and performing smart troubleshooting before posting your question on HP forums. Kudos to you on that score.
Follow the steps in the below article and check if it helps.
http://hp.care/2pMaqJz
Let me know how it goes and you have a great day!
Take care.
Cheers!
The_Fossette
I am an HP Employee