Hi Georgia, First of all, you should use SerialAMSender/SerialAMReceiver components for serial communication on the mote (printf converts the data to string on the mote, and you will need it as a number on the pc). Then, if you're familiar with java, check the apps/test/TestSerial application, and its java util, it has everything you need to send/receive data. There are also c/c++/python utilities for this, but I don't know how to use them. After that, you only need to save your data into a database from java, and I'm sure there are plenty of tutorials for this (I never did this myself, but seen many tutorials).
Andris On Wed, Nov 30, 2011 at 6:56 PM, Geo Gkolfin <geo198...@gmail.com> wrote: > No,my bad, I meant java.tools.printfClient. I do not know how to make the > data received by the basestation "visible" from other applications, so I > could handle them with a eg C program! > > > On Wed, Nov 30, 2011 at 7:23 PM, Michael Schippling <sc...@santafe.edu> > wrote: >> >> By printf() I guess you're using C, >> here's the first hit I got for "mysql C api": >> http://dev.mysql.com/doc/refman/5.0/en/c.html >> >> If your TOS interface is in Java, look into JDBC. >> >> MS >> >> Geo Gkolfin wrote: >>> >>> Hello! I have a telosb network that sends data periodically to a telosb >>> basestation connected with a pc (via usb). I need to store the data that the >>> basestation receives in a database. So far, I simply use printf in order to >>> see the received data. I have mysql installed, and I could create a >>> database, but I do not know how to use the data received by the basestation >>> in order to create an INSERT query that will be performed automatically. Can >>> someone explain the general idea? (I use xubuntos) >>> Thank you all in advance! >>> Georgia >>> >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Tinyos-help mailing list >>> Tinyos-help@millennium.berkeley.edu >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help