Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Commands used to collect all data


mustikawiguna Jan 5, 2010 02:08 AM

Dear friends,

I am new to data logger and little bit confuse on how to get started.

Currently we have CR10X, CR1000 and CR510 and some wavecom modem. Our project is to get / collect all data from data
logger and send it via email using Wavecom modem periodically.
Wavecom modem is directly connected with the data logger.

The data that we want is the same as the data output from loggerNet 3.4.1. :
"111,2009,290,10,.161,91.8,20.83,.735,21.11,96,.025,945,0,20.86,11.63"
"111,2009,290,20,.722,120.6,20.1,1.47,21.01,95.6,.019,945,0,20.75,11.63"
"111,2009,290,30,.871,136.7,23.43,2.156,20.79,95.2,.024,945,0,20.67,11.63"
...

The question are, how could I get/ collect the data (output)from data logger?
What commands are needed to collect all data?

Any help will be appreciated, thanks in advance.

Regards
I Ketut Mustika Wiguna

* Last updated by: mustikawiguna on 1/4/2010 @ 7:08 PM *


xstratamrm Jan 5, 2010 04:33 AM

hey gday
bit new to this myself.

how are you getting the data you posted in your forum post?

It looks very similar to the data i get from my data loggers with loggernet4. Using the "schedule" tab of the Setup Screen utility (from Main on the toolbar) when a data logger is selected. That stores the data on a nominated computer, being appended to a set file name. Because the file name is fixed and the data appended you could use any automated mail tool and create a cron job on a unix box or a scheduled task on a windows pc to send the file at a set time daily or schedule it in with your download schedule.

cheers
bruce


wpns Jan 5, 2010 04:09 PM

What do you currently have connected at the remote site? I doubt you can send an Email without a computer there, but you can have the datalogger call in, or have your computer harvest the data by calling the modem on a regular basis.

As Bruce asked, how are you currently getting your data?

The documentation for talking to the datalogger has the details for retrieving current data and Final Storage Area (logged) data, so you could write some code to talk directly to the logger. However, PC208W (for instance) can do it for you automatically, so you may not need to roll your own.

I've got some Perl code for talking to a CR10X with an NL100(?) Ethernet interface, which does about half of what you seem to be asking, but it doesn't retrieve FSA data...


aps Jan 5, 2010 04:18 PM

For the CR1000 you can send data via email, if the Wavecom is setup for a GPRS connection. You use a combination of tablefile to build a file to send and emailsend (examples are given in the CRBasic help system).

For the other loggers you would have to write an application to run within the Wavecom modem, running a GPRS connection and using their own internal stack. This is not something we support and would require a lot of work to get going.

An easier option is to get your PC to collect the data and then post it off as emails from the PC, using the task manager within Loggernet and a third party command line email program. The latest version of Loggernet (Version 4) does include an option to ftp files to other places after the data is collected.


mustikawiguna Jan 7, 2010 04:09 AM

Guys, Thanks for your response.

@xstratamrm:
I got this data using loggerNet 3.4.1 connected directly to PC and without any sensor connected to it.
Actually, my client provide the data logger (and loggerNet also)for us, these data loggers have been used before, so, maybe because of that, these data loggers have some data stored in it.

@wpns:
I don't know exactly what sensors connected to data loggers on the remote site, my client just asked me to collect all data from data logger and send it as an email attachment, I hope this isn't a problem,since I just want to access all stored data from data logger.
Unfortunately, it's not possible to use PC with data logger on the remote site, the only solution is to use Wavecom modem.

@aps:
I have some experience on Wavecom, so it won't be a problem on the Wavecom side :). so, write an application to wavecom modem would be my choice then.

So, my questions:
How to make data logger to send its stored data to CS/IO in a periodic interval? program it?
Or what command needed to send to data logger (from wavecom modem) so that the data logger will send its data over CS I/O?

TIA,
I Ketut Mustika Wiguna

* Last updated by: mustikawiguna on 1/6/2010 @ 9:10 PM *


aps Jan 8, 2010 09:29 PM

In the program include an instruction P96 after the output instructions. The second parameter should be 4x or 5x depending on the format you want and the baud rate (x controls this). See the manual for further details.

The logger will output the data to the serial port when data is stored to final store - providing you are not communicating with it at the same time.


mustikawiguna Jan 11, 2010 08:11 AM

Thank you for your response, I will try to program the data logger now.

Log in or register to post/reply in the forum.