There are two devices connected to my computer via USB. One of the devices receives a series of commands and then sends data to the computer every thirty seconds.
The other device will be a SD card drive. The goal is to save the data as a file on the SD card without over-writing any previous files. How do I distinguish between the devices? What command(s) is (are) appropriate for writing to an SD card without over-writing previous data?