Is there a way to keep device from sleeping?

I have this device https://www.amazon.com/gp/product/B076MSLFC9/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

Which I keep connected to a raspberry pi so I can interact with it via the python client. I can’t seem to keep the serial connection working. I tried router mode but that didn’t work. I also tried is_always_powered = true.

TIA

not all devices are affected by is_always_powered enabled
try to enable WiFi and interact via TCPInterface(“your IP”) or --host your_IP on the CLI