Hello all,
I am mouting an autonomous station for water monitoring, and I need some tips to write my program.
I want to make some records at different speeds :
- water level would be continuous, for example, every 15sec.
- turbidity & conductivity records would be run in a burst mode, for example 10 measurements with a 10sec interval, every 10 min. These sensors are power hungry so I want to switch them On/Off.
Data will be streamed through GPRS to a remote server every hour (or less depending files size)
I have wrote a program for burst sampling that is working well, with a subscan (10 samples @10s interval) inside a main scan (10 min interval). But that is not compatible with the continuous recording.
Q1/ Is it possible to make a second subscan in the mainscan, that matches to the main scan, in order to simulate a continuous recording? that suppose to choose a subscan interval as a multiple of the main scan interval, and to get te rigth number of records.
Q2/ What about making the burst sampling in a Slowsequence, while continuous recording remains in the main scan?
Otherway, I think to solution based on a main scan at a higher speed (for example 1sec). Records intervals are controlled by DataInterval function in respectives DataTables, and Burst sampling is triggered from a Iftime function. But I have some troubles with data streaming, FTPClient doesn't send all unsent data from the Burst datatable (although Numrecs&Interval are set to 0). I just receive the data from the last burst. I have not problems with the continuous records, and the data files from the TableFile function are nice. So here is my last question,
Q3/ Is it possible to send data from a datafile to the end of an other file on a remote server? (something beetween TableFile and the streaming from a Table)
Thanks a lot for your advices
Olivier
SlowSequence is the most straight forward way to handle to measurement burst.
The data streaming with appending to the same file does work in FTPClient in OS 29.
I follow your advice, and use a slowsequence with flags/triggers, burst sampling is working nice.
I have an other question, concerning the COM110A modem. I want to reduce my power consumption and by the way, to switch the modem on every hour to transmit data. I can't use the SW12, because it is already used to power a probe during the burst measurements.
Is there any programming possibility to turn the modem in a low state without connect to a network, as a "plane mode" on the cellphones? actually power consumption is around 20mA without transmitting data, but seeking for a network.
Thank you
Olivier
Hi. I've read your post and I'd like to know if you have used the FTP client instruction.
I'm wroking in a program that will streaming data via GPRS too.
Can you show me the part of your CRBasic progam that contains these instructions?
Regards