Need to do 2 separate program
First program: Need to connect to the device (serial port) and put password to connect to the device and then having only 2 feature -
(a) Download memory device and create automatically encrypted file
(b) Feature to set time
Second Program: It must have all the feature (set date time, check date time, change password, decrypt the encrypted file downloaded from the first software and erase memory even the first software need to have this feature too)
Note: Remember 2 software: one can only download (encrypted so the user cannot see data but can save file encrypted with a certain extension file) and erase and set date and time and the second soft can do everything + he can decrypt file encrypted from the first soft
Device: its a device that store all data on a eeprom
Similar software, already using
My device it connect via usb has a serial port open so then i can connect to putty soft with the right com port then adjust baud rate to 56700 and i access to a console then i press enter to be able to type the password after the password is done i have access to all feature set date time, check time, download memory, erase memory and change password.
Example: i press d and enter to download the entire memory or i press f and enter to format the entire memory...
when i use putty soft when its connected to serial port then i have access to a console and then if i press certain letter it do command