I have this A118 dashcam, which I want integrate with a Pi.
I wish to record onto it mounted SD card when driving, and once home within WiFi range, to download the files on the SD card through the Pi to my home network.
This camera, when connected to a 5 V source on my vehicle's cigarette lighter, the camera begins recording right away.
When I connect it to my computer, it prompts (on the dashcam screen) whether to operate in "Mass Storage" or "PC Camera" mode.
This video shows how a problem of a different camera was fixed by insulating the TX and RX terminals from the connection.
How does the camera (or a regular USB device, like a phone too) know whether it is connected to a simple power source or to a computer?
Also, how could I then use this fact to control the dashcam, so when out of my Wifi range, it records as it would when just power is supplied, and when in Wifi range to revert to "Mass Storage" so the Pi can access the video files and transfer them.
I guess relays would work, but their large size does not make it practical. Would optocouplers be a better alternative, or are there other suggestions I may look into?