Please send messages to the help list not just me,
as I am usually wrong or misunderstand the question...
In this case, probably both.
I don't know what ECG is (maybe Electro Cardio Gram?).
The whole idea in the TOSworld is that there are re-Mote
sensors that send messages containing sampled data to a
base-station Mote which passes them to a host-PC via a
serial or USB port. So your system sounds like it should
be fairly easy to make out of the existing demos.
For your two problems:
1) getting your sensor card interfaced to the tmote;
It sounds like you need an ADC interface to your sensor,
so you should be able to do a sample loop like the various
demo programs, Oscilloscope, Sense, etc. For a start I
would try to get the O'scope demo connected to the right
ADC channel by changing the "wiring" to use your channel
instead of whatever the "DemoSensor" is connected to.
2) doing something with the data when you get it on the PC;
Again you should be able to use the Java Oscilloscope demo
"out of the box" to see your data. I think the tmote version
does multiple channels, so you may have to ignore some of
them to start with. Then it's a matter of glue and GUI
programming just like any other application.
In general you should work through the doc/tutorial exercises
to get an idea of how TOS is supposed to work, and find the
areas of the demos that need to be changed. On the PC one reads
the messages from the port -- parsing the message format
-- and displays or stores the data. Aside from the actual port
reading, writing apps on the PC side is pretty much what most
programmers are sometimes capable of. If you don't know Java,
look at the sun.java tutorials. If you'd rather use another
language you'll have to work out how to get the messages from
the I/O port, but that is reasonably straightforward.
If you have specific questions, post code snippets to help.
Or you can hire me to do it all for you...
heh
MS
fengnaixing wrote:
hi , I want to know how to rewrite JAVA code in moteiv files to
match tmote sky connected to ECG module. for example Oscilloscope and
TOSBase , it can use a JAVA tool : motecom=ser...@com3:tmote
<mailto:motecom=ser...@com3:tmote> java
com.moteiv.oscope.oscilloscope. now i hope you learn and have a great
command of JAVA used in TinyOS-1.x. i have some problems to ask for
your helps. one : my lab needs two tmote sky used WSN for wireless
communication, one mote is used as base station which connect
to the PC , another is used as a sample ADC mote by using ECG module
connected to tmote sky's External expansion. two: how to rewrite the
original JAVA codes to match existing ECG module. here are original
JAVA codes about Oscilloscope and previous oscilloscope and TOSBase
nesC code??now i also send ECG sample code to you , hoping the
problems to be solved by you. i do not know what the relation between
JAVA code and nesC code is? everything is to included in moteiv file
such as oscilloscope , TOSBase, ECGsense in apps. Thanks in advance.
Eric.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help