Send Tinyos-help mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinyos-help digest..."
Today's Topics:
1. Re: ADC switch channel (Jan Hauer)
2. Radio interfering with ADC (Ian Welch)
3. raw PCM player (antonio gonga)
4. Re: queries (Sarfraz Nawaz)
5. Re: queries (Philip Levis)
6. still having problem with TinyDB GUI and Micaz sensors
(Maciej Piasecki)
7. want to use multiple timer modules........... how....:)
(primalfear 69)
8. comm-string without cygwin (Maciej Piasecki)
----------------------------------------------------------------------
Message: 1
Date: Wed, 11 Oct 2006 20:50:26 +0200
From: "Jan Hauer" <[EMAIL PROTECTED]>
Subject: Re: [Tinyos-help] ADC switch channel
To: "R. Steve McKown" <[EMAIL PROTECTED]>
Cc: Gurkan Cepni <[EMAIL PROTECTED]>, lamiaimeil
<[EMAIL PROTECTED]>, [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 10/11/06, R. Steve McKown <[EMAIL PROTECTED]> wrote:
Hi Jan,
(and those looking for multi-channel ADC)
On Wednesday 11 October 2006 07:14 am, Jan Hauer wrote:
what you want to do is possible with the msp430 ADC12, but it has not
been implemented, neither in TinyOS 1.x nor 2.x.
I've been meaning to clean up a modification of the msp430 adc12
peripheral I
put together to support sequence of channels and repeating sequence of
channels, as covered in the msp430 family user guide. The code is
compatible
with tinyos-2.x CVS devel branch from 2006-09-26 but doesn't implement the
newer FastClient interface.
This code works well but is lightly used. It's being used to sample a
3-axis
accelerometer at 30kSa/sec (10kSa/sec * 3 channels) as well as
low-frequency
sampling of a group of ADC inputs using 'standard' ADC interfaces (Read,
ReadNow, ReadStream).
The code changes the adc12 interface (Msp430Adc12.nc) and the
configuration
structure (msp430adc12_channel_config_t). The former change is mostly
hidden
by updated adc client components; the latter change requires user code to
update its component(s) containing configuration structure(s).
I've included some Makefile snippets to show how to use this code without
altering your /opt/tinyos-2.x tree, and some code snippets to show how it
works.
I've been meaning to open a dialog with you about how I could contribute
to
enhancing the standard peripheral code. I would appreciate your thoughts.
For those looking for multi-sequence conversions, this code should be
workable
for you in the mean time. Please note this code is not likely to be plug
and
play for you, so I'd avoid it unless you are ready to dig in and tweak it
to
fit your version of TinyOS. It shouldn't be too difficult.
All the best
Steve
I updated the msp430 ADC12 TinyOS 2.x code last Monday to include DMA
support and also did a couple of other changes (new HAL interface,
renaming, optimization...), so the code might not be compatible with
HEAD. TEP 101 is still not finalized, but I don't expect any major
changes to come. Since people seem interested in multi-channel
sampling, I'm going to check something in (hopefully) in the next few
days (for 2.x).
I have only glanced over your code, but my plan was to add a separate
interface Msp430Adc12MultipleChannel instead of extending the main
interface (this is the reason why the current interface is called
Msp430Adc12SingleChannel). I'm not sure about the union approach
(passing a pointer to a pointer is a litte contrary to traditional
TinyOS design patterns :)), but maybe I can integrate some of your
code in the new version - I have to check and will talk to you
(offline).
Jan
------------------------------
Message: 2
Date: Wed, 11 Oct 2006 15:45:04 -0600
From: "Ian Welch" <[EMAIL PROTECTED]>
Subject: [Tinyos-help] Radio interfering with ADC
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
I would like to be able to sample the ADC while at the same time using the
Radio. I know the Radio samples the ADC to determine if the channel is
clear. How can I set up my program so the that Radio ADC samples will not
interfere with my Samples?
Can I somehow determine which channel the sample came from since the Radio
has it's own ADC channel and RSSI sample will always be present on the same
channel?
Thanks,
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061011/cee58b48/attachment-0001.htm
------------------------------
Message: 3
Date: Wed, 11 Oct 2006 22:49:46 +0000
From: "antonio gonga" <[EMAIL PROTECTED]>
Subject: [Tinyos-help] raw PCM player
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1; format=flowed
hello,
does anyone have a program that's able to play a raw PCM samples?
I need this program because I'm reading audio from microphone and I need to
play it.
please feel free to answer back me
regards
antonio gonga
------------------------------
Message: 4
Date: Thu, 12 Oct 2006 12:31:48 +1000
From: "Sarfraz Nawaz" <[EMAIL PROTECTED]>
Subject: Re: [Tinyos-help] queries
To: "Torsha Banerjee" <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
The actual mote hardware has no support for multiply and divide. However,
there is a native math library (on my installation the header file is
/usr/avr/include/math.h) that comes with the tinyos AVR tooclchain. It
provides some math support in the form of floating point multiply, divide,
power, log etc. Tinyos-1.1.15 by default links against this library (-lm
flag).
On Tossim I believe your code is linked with the libc math library. So to
answer your question, yes it is possible to simulate a network in Tossim in
which sensors are perfroming multiplications etc.
On 10/12/06, Torsha Banerjee <[EMAIL PROTECTED]> wrote:
Hi all,
I am a PhD student and trying to write a program in NesC which
involves mathematical operations like matrix multiplications. this will
be for a matrix of size maximum 5 by 5. Will this be possible in NeSC
or to be more precise in TOSSIM to simulate a network of 5-6 sensors
where each sensor will perform this mathematical operation?
Please let me some links or tutorials for learning more about how to
program in NESC and TOSSIM.
Thanks
+----------------------------------------------------------------------+
| Torsha Banerjee |
| Ph.D Student Email:[EMAIL PROTECTED] |
| University of Cincinnati Lab Phone: (513) 556-3437 |
| CDMC Laboratory |
| ECECS Dept, PO Box 210030 |
| Cincinnati, OH 45221-0030 |
+----------------------------------------------------------------------+
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061012/e643920f/attachment-0001.html
------------------------------
Message: 5
Date: Wed, 11 Oct 2006 23:20:56 -0700
From: Philip Levis <[EMAIL PROTECTED]>
Subject: Re: [Tinyos-help] queries
To: Sarfraz Nawaz <[EMAIL PROTECTED]>
Cc: Torsha Banerjee <[EMAIL PROTECTED]>,
[email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Oct 11, 2006, at 7:31 PM, Sarfraz Nawaz wrote:
The actual mote hardware has no support for multiply and divide.
However, there is a native math library (on my installation the
header file is /usr/avr/include/math.h) that comes with the tinyos
AVR tooclchain. It provides some math support in the form of
floating point multiply, divide, power, log etc. Tinyos-1.1.15 by
default links against this library (-lm flag).
On Tossim I believe your code is linked with the libc math library.
So to answer your question, yes it is possible to simulate a
network in Tossim in which sensors are perfroming multiplications etc.
This is all correct.
An observation from some recent optimizations of some parts of
TinyOS. It might be nice an elegant to use modulo (%), but if all
you're trying to test for is the edge case (e.g., wraparound in a
circular array), then an explicit test is much more efficient. On the
Telos platforms, a % is approximately 220 cycles.
Phil
------------------------------
Message: 6
Date: Thu, 12 Oct 2006 11:39:07 +0200
From: Maciej Piasecki <[EMAIL PROTECTED]>
Subject: [Tinyos-help] still having problem with TinyDB GUI and Micaz
sensors
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
hi everyone,
I am still having problem with TinyDB GUI (also DemoAPP).
I think that my Micaz motes receive query properly (they blink exactly
the same time as EPOCH DURATION in query), they response to "SOUNDER ON"
and "RESET MOTES", but no data appears in the query window, so I assume
that TINYDB GUI has some problems with messages MicaZ is sending to it.
Please help me if you can, it is very urgent
Thank you
Maciej Piasecki
------------------------------
Message: 7
Date: Thu, 12 Oct 2006 15:14:01 +0530
From: "primalfear 69" <[EMAIL PROTECTED]>
Subject: [Tinyos-help] want to use multiple timer modules...........
how....:)
To: tinyos-help <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
hello everybody..........
my application requires two seperate timer modules to be used.
the basic idea is only one should be alive at a given time interval.......
and corresponding event has to be performed.
how can i do that in nesC....... as of now its all
Timer.start and Timer.stop............... can anyone gimme more about that
Regards
Primalfear
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061012/e3f49dc9/attachment.htm
------------------------------
Message: 8
Date: Thu, 12 Oct 2006 13:37:56 +0200
From: Maciej Piasecki <[EMAIL PROTECTED]>
Subject: [Tinyos-help] comm-string without cygwin
To: tinyos-help <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
hello,
if i am building my own application and I want to run it from NetBeans
instead of Cygwin, how should I configure comm-string to work properly??
thx
Maciej Piasecki
------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
End of Tinyos-help Digest, Vol 42, Issue 36
*******************************************