I have a USB powered dash-cam that runs off a normal cigarette lighter for its power. I have a use for my car to run a raspberry pi and I wanted to use the pi to power this camera.
I have written some code where once I pull up to my house and the pi connects to my home network, it will run a script to backup content to a cloud storage device in the house. This allows me to not have to touch the camera, take out the SD card etc.
In theory, this would work fine. The issue I am facing is that when I plug the USB into the pi, it is allowing me to navigate the filesystem of the camera instead of just supplying power to it.
Is there a way I can tell the pi to use a specific USB port for power only and prevent the camera from thinking its plugged into a PC that wants to access its media?
I will have a need to toggle this back so that when I do connect to my home network, it connects in "file share" mode so my pi can then access the media files. For the time being though, looking for a way to specify a USB slot as power only.