File synchronization (appointed by the cluster number) by Bluetooth and Dropbox
Posted: February 27th, 2020, 7:51 pm
Dear Gentlemen !!!
I'm working on a statistical data collection system with CSPRO. The system consists of household and individual data collection applications and a menu (IntMenu) for interviewers, a household assignment application used by the Supervisor with its menu (SupMenu). I use Dropbox for synchronization of supervisor with the server and Bluetooth between the supervisor and interviewers.
My concerns are as follows:
1) The names of the assignment files consist of the letter "S" followed by the cluster number concerned. I want that, when transferring the supervisor to an interviewer, when the interviewer seizes "0001" as a cluster number in its menu (IntMenu) before starting the recovery program of the assignment file by Bluetooth, the system recovers the file "S0001" (".dat" in extension) according to a specified path. I wrote a program that seems to be just but it does not work, the program sends an error message: the file "work / S0001.dat" is not found (for example), although the file is indeed in the indicated file.
2) Same problem to send from Supervisor device the file using the number of the cluster as the name of the file to send to the server.
3) When I sync data on Dropbox data, the data file does not stay in the desired folder. The program does not take into account the path indicated for the server.
4)
My last concern: once assignments received by an interviewer, the next step is to start the collection. The assignment file would be external file to the PFF program, when the interviewer works in the cluster 1, the external file assignment would be "S0001.Dat". So my problem is how to proceed for this file to be changed whenever the cluster entered in the interviewer menu is changed. For example, if the interviewer enters the cluster number box in the menu, "0002", the external assignment file that was "S0001.DAT" is changed in "S0002.DAT".
I'm working on a statistical data collection system with CSPRO. The system consists of household and individual data collection applications and a menu (IntMenu) for interviewers, a household assignment application used by the Supervisor with its menu (SupMenu). I use Dropbox for synchronization of supervisor with the server and Bluetooth between the supervisor and interviewers.
My concerns are as follows:
1) The names of the assignment files consist of the letter "S" followed by the cluster number concerned. I want that, when transferring the supervisor to an interviewer, when the interviewer seizes "0001" as a cluster number in its menu (IntMenu) before starting the recovery program of the assignment file by Bluetooth, the system recovers the file "S0001" (".dat" in extension) according to a specified path. I wrote a program that seems to be just but it does not work, the program sends an error message: the file "work / S0001.dat" is not found (for example), although the file is indeed in the indicated file.
2) Same problem to send from Supervisor device the file using the number of the cluster as the name of the file to send to the server.
3) When I sync data on Dropbox data, the data file does not stay in the desired folder. The program does not take into account the path indicated for the server.
4)
My last concern: once assignments received by an interviewer, the next step is to start the collection. The assignment file would be external file to the PFF program, when the interviewer works in the cluster 1, the external file assignment would be "S0001.Dat". So my problem is how to proceed for this file to be changed whenever the cluster entered in the interviewer menu is changed. For example, if the interviewer enters the cluster number box in the menu, "0002", the external assignment file that was "S0001.DAT" is changed in "S0002.DAT".