Re: [Tinyos-help] About Events and Commands

2006-06-29 Thread Aditya Bhave
The SendMsg.send() coomand is actually implemented in AMstandard.nc. You must be reading Chapter 4 of the tutorials. Look at the wiring of SendMsg.send. It is wired to GenericComm. This in turn is wired to AMStandard which in turn uses several low level system modules wherein the individual bits are actually transmitted
over the radio.My advice is unless you want to change the tinyOS functionality, there is no point in trying to figure out where the functionality is actually being implememnted. Having a higher level understanding of how send and receive work and how they should be used is sufficient to build applications.
There is a very very deep tree of modules in tinyos. Most of the system modules are in the tos/lib or tos/system folders. On 6/29/06, saadia khan
 [EMAIL PROTECTED] wrote:
While going through the tutorials and apps in tinyOS, i found that the events of an interface are implemented in the modules that use them and the commands are called but not implemented in those modules, 
e.g., in Surge Application, the SurgeM.nc (the module) uses Send interface and implements the event Send.sendDone() and calls the command Send.send() in the task SendData(). My question is that where is the functionality for the 
Send.send() command ?Kindly someone guide me in this case because as far as i've understood, there should be another module that gives implementation of this command but i'm not able to find it.thankyou
S Khan
___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
-- regards,Aditya Bhave
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] difference between events and async events

2006-06-29 Thread Hari Hara Sudhan
Hi Phil,

I went through your programming manual.

And in chapter4 I found this following example.

Consider a packet layer on top of a UART. When the UART receives a byte,
it signals an interrupt. In the interrupt handler, software reads the
byte out of the data register and puts it in a buffer.
When the last byte of a packet is received, the software needs to signal
packet reception.

Do u mean to say that the interrupt handler for receiving the byte
through UART is an async event, and the sync event is one which handles
the packet reception signal.

Thank you

-Original Message-
From: Philip Levis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 2:25 AM
To: [EMAIL PROTECTED]
Cc: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] difference between events and async events

On Jun 28, 2006, at 1:43 AM, Hari Hara Sudhan wrote:

 Hi every one

 I am new to tiny os and nesC.

 I want to know the diference between the following two stmts.

 Event void timer.fired() and Async void timer.fired().

 Thank you in advance.
The TinyOS programming manual goes into the difference (Chapter 4).  
You can download it from:

http://csl.stanford.edu/~pal

Phil

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Tmote-sky/telosb

2006-06-29 Thread mothanna alkubeily
hi  i want to know if the Tmote-skyand the telosb are the same.  thanks 
	
		Sneak preview the  all-new Yahoo.com. It's not radically different. Just radically better. 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] (no subject)

2006-06-29 Thread mothanna alkubeily
Spam detection software, running on the system mail.Millennium.Berkeley.EDU, 
has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Do you Yahoo!? Next-gen email? Have it all with the 
  all-new Yahoo! Mail Beta. thanks to you Chalermphol Do you Yahoo!? 
  Next-gen email? Have it all with the all-new Yahoo! Mail Beta. [...] 

Content analysis details:   (5.2 points, 5.0 required)

 pts rule name  description
 -- --
 0.5 FROM_ENDS_IN_NUMS  From: ends in numbers
 2.2 FORGED_YAHOO_RCVD  'From' yahoo.com does not match 'Received' headers
 0.0 HTML_MESSAGE   BODY: HTML included in message
 0.1 HTML_50_60 BODY: Message is 50% to 60% HTML
 0.4 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org
 0.5 DNS_FROM_RFC_WHOIS RBL: Envelope sender in whois.rfc-ignorant.org
 1.6 MISSING_SUBJECTMissing Subject: header

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor.

---BeginMessage---
thanks to you Chalermphol 
		Do you Yahoo!? Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.---End Message---
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Tmote-sky/telosb

2006-06-29 Thread Matthew J Whelan
Hi,The Tmote Sky and the Telosb motes are pretty much the same, however, there is one difference in the board layout related to the 8-pin JTAG connector. You can find more info at:http://www.moteiv.com/products/docs/an001-changes.pdfbut basically the change allows the USB connection to power expansion boards.Matt[EMAIL PROTECTED] wrote: -To: Tinyos-help@Millennium.Berkeley.EDUFrom: mothanna alkubeily [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]Date: 06/29/2006 03:02AMSubject: [Tinyos-help] Tmote-sky/telosbhi i want to know if the Tmote-skyand the telosb are the same. thanks Sneak preview the all-new Yahoo.com . It's not radically different. Just radically better. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re to Re :tmote/telosb

2006-06-29 Thread mothanna alkubeily
thank you very much Matt.  however,i can use the tmote's way of calcuing the temp.and humidity for telosb? 
	
		Sneak preview the  all-new Yahoo.com. It's not radically different. Just radically better. 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] help needed, problem with upgrading tinyos

2006-06-29 Thread Esmaeil Nadimi
Hi all
I have tried to upgrade my TinyOS environment from TinyOS 1.1.0
tinyos1.1.10Jan2005...) to CVS tinyos1.1.15DEC2005... but I have got
problems. What I have done was 
1) Upgrading cygwin and installing all the new packages 
2) Installing CVS snapshot in the rpm directory.
Now that I want to program the motes (Micaz) under directory
XSensorMTS300, I can't compile the program because the error happens as
follows:
Component voltage not found!
Expected component 'voltage', but got component 'HPLUARTOM'
I have also downloaded the file HPL0USART0M.nc and I copied in the
msp430 directory.
Could someone please say what I am doing wrong?
Any help will be appreciated.
Best
Esmaeil 

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] generate docs

2006-06-29 Thread Andres Aberasturi


Hi,

Thanks Rahul, but we do not understand it. We do not have matlab or anything 
which perhaps uses dot.exe (we suposed).


Actually, we have installed TinyOS Plugin for Eclipse. And this plugin has 
installed TinyOs 1.1.15, and it works, but when we write make micaz docs, we 
do not get the images of the documentation. In the error we read:


Upgrade to graphviz = 1.8.8 to enable clickable wiring diagrams.

So, we though we have to upgrade Graphviz in order to get these diagrams. It 
seems an error about the Graphviz version which is installed with TinyOs 
1.1.15. Then, we found Graphviz web site, but there are 2 version of 
Graphviz, one of them for Windows and the other one for Linux. We are 
working in Windows XP, but Cygwin is like Linux, is not it? So, what we have 
to install? Or is it wrong? Perhaps we are not right.


Could anybody help us?

Thanks in advance,

Andres




From: Rahul Sawant [EMAIL PROTECTED]
To: Andres Aberasturi [EMAIL PROTECTED]
CC: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] generate docs
Date: Wed, 28 Jun 2006 19:12:45 -0500

hi

i think this is because ur comp already has a file dot.exe and the version
of that is old. u can search where it is on ur comp . in my comp it was in
\Matlab7\bin\win32 folder as matlab also uses it. i guess if u rename this
file in matlab folder everthing will work fine. or i guess change the 
system

path variable from the control panel, in this make sure ur matlab path is
the last one ie it should be after this one \tinyos\ATT\Graphviz\bin;

i hope this will help you

rahul


On 6/28/06, Andres Aberasturi [EMAIL PROTECTED] wrote:



Hi all,

We have update TinyOs to TinyOS 1.1.15. It works fine but it does not
generate the images of the documentation. We get the following error:

nesc1: warning: DOC WARNING: your version of `dot' does not support
client-side
image maps.  Upgrade to graphviz = 1.8.8 to enable
clickable wiring diagrams.

So, we think we need to update graphviz, do not we? We found graphviz but
we
have some doubts about it:

What is the right graphviz version to work in TinyOS 1.1.15? We are
working
with Windows XP, do we need Windows version or Linux version (in order to
work with Cygwin)?

Thank you in advance,

Andres

_
Moda para esta temporada. Ponte al día de todas las tendencias.
http://www.msn.es/Mujer/moda/default.asp

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



_
Descubre la descarga digital con MSN Music. Más de un millón de canciones. 
http://music.msn.es/


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Adding new events

2006-06-29 Thread robycannone

Hi everyone,
I'm trying to add new events in tinydb. I have notices 
that in the file CommandMsgs.java the class EventMsg 
doesn't exist. Now, what should i do? Do I have to 
implement this class? There are also another file called 
CommandMsg.java but that reports This class is 
automatically generated by mig. What does it mean?  Do I 
have to implement CommandMsg.java?

Any advice?
Thank you.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Tmote-sky/telosb

2006-06-29 Thread Joe Polastre

Actually, there's a few other changes now that Tmote Sky has but
TelosB does not.

For example, Tmote Sky can run up to 8MHz whereas TelosB can only run
up to 4MHz.  Tmote Sky also has the option of setting the external
voltage reference for sampling, whereas TelosB does not.  Finally,
Tmote Sky is FCC certified, whereas TelosB is not.

The rule of thumb: All TelosB apps will work on Tmote Sky, but the
opposite is not necessarily true.

-Joe

On 6/29/06, Matthew J Whelan [EMAIL PROTECTED] wrote:





Hi,

The Tmote Sky and the Telosb motes are pretty much the same, however, there
is one difference in the board layout related to the 8-pin JTAG connector.
You can find more info
at:http://www.moteiv.com/products/docs/an001-changes.pdf

but basically the change allows the USB connection to power expansion
boards.

Matt

[EMAIL PROTECTED] wrote:
-

To: Tinyos-help@Millennium.Berkeley.EDU
From: mothanna alkubeily [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
Date: 06/29/2006 03:02AM
Subject: [Tinyos-help] Tmote-sky/telosb


hi
i want to know if the Tmote-sky and the  telosb are the same.
thanks



Sneak preview the all-new Yahoo.com . It's not radically different. Just
radically better.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] generate docs

2006-06-29 Thread Rahul Sawant
what i meant was there should be 2 dot.exe files on ur comp. one installed by tinyos in
\tos\ATT\Graphviz\bin folder and other some where else installed by some other software.

try searching ur comp for dot.exe to see if u indeed have 2 dot.exe files.

if u do have 2 dot.exe files
when tinyos tries to use dot.exe the system actually gives it a link to the other dot.exe which was installed by some other program this is because of the path variable in control panel. and if u change the path variable as i said in my last mail it should work.


u can also try the following

rename ur other dot.exe to say dot_old.exe for the time being. (ur other software might have problem if u r running at the same time but if it not running then no problem.)

now try to make docs in tinyos. 

if this works u know what the problem is.

now once ur done making docs rename the file back to dot.exe.(so ur other software doesnot have any problems in future.)

rahul
On 6/29/06, Andres Aberasturi [EMAIL PROTECTED] wrote:
Hi,Thanks Rahul, but we do not understand it. We do not have matlab or anythingwhich perhaps uses 
dot.exe (we suposed).Actually, we have installed TinyOS Plugin for Eclipse. And this plugin hasinstalled TinyOs 1.1.15, and it works, but when we write make micaz docs, wedo not get the images of the documentation. In the error we read:
Upgrade to graphviz = 1.8.8 to enable clickable wiring diagrams.So, we though we have to upgrade Graphviz in order to get these diagrams. Itseems an error about the Graphviz version which is installed with TinyOs
1.1.15. Then, we found Graphviz web site, but there are 2 version ofGraphviz, one of them for Windows and the other one for Linux. We areworking in Windows XP, but Cygwin is like Linux, is not it? So, what we have
to install? Or is it wrong? Perhaps we are not right.Could anybody help us?Thanks in advance,AndresFrom: Rahul Sawant 
[EMAIL PROTECTED]To: Andres Aberasturi [EMAIL PROTECTED]CC: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] generate docsDate: Wed, 28 Jun 2006 19:12:45 -0500hii think this is because ur comp already has a file dot.exe and the versionof that is old. u can search where it is on ur comp . in my comp it was in
\Matlab7\bin\win32 folder as matlab also uses it. i guess if u rename thisfile in matlab folder everthing will work fine. or i guess change thesystempath variable from the control panel, in this make sure ur matlab path is
the last one ie it should be after this one \tinyos\ATT\Graphviz\bin;i hope this will help yourahulOn 6/28/06, Andres Aberasturi 
[EMAIL PROTECTED] wrote:Hi all,We have update TinyOs to TinyOS 1.1.15. It works fine but it does notgenerate the images of the documentation. We get the following error:
nesc1: warning: DOC WARNING: your version of `dot' does not supportclient-side image maps.Upgrade to graphviz = 1.8.8 to enable clickable wiring diagrams.
So, we think we need to update graphviz, do not we? We found graphviz butwehave some doubts about it:What is the right graphviz version to work in TinyOS 
1.1.15? We areworkingwith Windows XP, do we need Windows version or Linux version (in order towork with Cygwin)?Thank you in advance,Andres
_Moda para esta temporada. Ponte al día de todas las tendencias.
http://www.msn.es/Mujer/moda/default.asp___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help_
Descubre la descarga digital con MSN Music. Más de un millón de canciones.http://music.msn.es/
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] send_lqi on Telosb/tmote

2006-06-29 Thread song guo
Hi Phil,I got the same problem as Ben Kelley, I tried the command:java net.tinyos.script.VMBufferReader -comm [EMAIL PROTECTED]:teloshowever, it still did not work:Received UART message containing type NONE, ignoring.
Received UART message containing type NONE, ignoring.could you please give me some hint?Thank you very much!Best,Song Guo
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] MicaZ and TelosB communicating

2006-06-29 Thread Joseph Lutz

I am wanting to use a telosB mote as a base station to listen to a
MicaZ mote. What would need to be changed so this is possible.
It seems that the packet headers for the MicaZ and the Telos Motes are
different.
What I believe is that one of the headers is in the form in the
file:tos/platform/micaz/AM.h
The other header is in the form of:tos/type/AM.h
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] how to store the VM program on tmote sky

2006-06-29 Thread song guo
Hi all,Currently I am dealing with tmote sky programing using mate' VM. One big problem I got is that, when I moved the mote down from the usb port of my computer, the programs all disapear. Another thing is that with mica2dot, if you program one mote, the mote will automatically broadcast the program to its neighbors, for tmote sky, it seems not the case.
Could any one give me some hint?Thank you !Song Guo
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Fwd: [Tinyos-help] Problem to run SerialForwarder on telos

2006-06-29 Thread Ming
Hi allI am try to run the SerialForwarder for telos byjava net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:telosHowever the follow error is displayed.Listening to serial@/dev/ttyUSB0:telosb
Platform telosListening for client connections on port 9001serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException: Invalid port. Known serial ports:- /dev/ttyS0- /dev/ttyS1)

Anyone have any idea on that? Thank you.CMing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Mate and send_lqi on Telosb/tmote

2006-06-29 Thread Philip Levis

On Jun 28, 2006, at 3:51 PM, Ben Kelley wrote:


Hi,
I'm going through the tutorial on Mate and having some issues with  
send_lqi
(or maybe not) on T-Sky/telosb. If I am reading the documentation  
right,
send_lqi acts as a drop-in for send, and thus the packets forwarded  
via
send_lqi would be output at the root node as the data.  I have run  
the mica
pc sim, and see the traffic just fine using TOSSIM and the  
VMBufferReader.

Now I just get

Received UART message containing type NONE, ignoring.
Received UART message containing type NONE, ignoring.
Received UART message containing type NONE, ignoring.

Anytime a message comes over the UART.  I have gotten directly  
connected

nodes to send other UART data and have it recognized.

22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16  
38 0A F2

1B F2 1B F3 1B F2 1B F3 1B F3 1B F4 1B F3 1B F3 1B F2 1B
22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16  
38 0A F1

1B F3 1B F3 1B F3 1B F2 1B F2 1B F2 1B F3 1B F2 1B F2 1B
22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16  
38 0A F3

1B F3 1B F2 1B F3 1B F4 1B F4 1B F4 1B F4 1B F4 1B F4 1B
22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16  
38 0A F5

1B F4 1B F4 1B F4 1B F4 1B F4 1B F5 1B F5 1B F4 1B F6 1B
22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16  
38 0A F5

1B F5 1B F5 1B F6 1B F6 1B F6 1B F6 1B F6 1B F7 1B F7 1B
22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 55 00 00 00 01 16  
38 0A F6

1B F7 1B F7 1B F7 1B F7 1B F7 1B F7 1B F8 1B F7 1B

Is a sample from the data via net.tinyos.tools.Listen

It's configured at 57600 for the data rate.

Also, when I am compiling BombillaTelosB, I see a cannot find  
MateBufferMsg

AM type in the log.


Because it's using multihop routing, it will me AM_MATEROUTEMSG  
(0x1b): you can see it above in the log, after the address. The  
packet format is:


802.15.4 header
Multihop Header

I think the problem is that tos/lib/MultihopLQI changed the packet  
format, and I didn't update Mate' to consider this fact. E.g., if you  
look at


tos/lib/MultihopLQI/Multihop.h

and

tos/lib/VM/types/mhop.h

The structures are different. If you change tos/lib/VM/types/mhop.h  
to be the kind of wasteful


typedef struct MultihopMsg {
  uint16_t sourceaddr;
  uint16_t originaddr;
  int16_t seqno;
  int16_t originseqno;
  uint16_t hopcount;
  uint8_t data[(TOSH_DATA_LENGTH - 10)];
} TOS_MHopMsg;

(wasteful in that it has 16-bit sequence numbers and hopcounts) does  
it work?


Phil


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] Problem to run SerialForwarder on telos

2006-06-29 Thread Ben Kelley








What kind of Java Comm are you running?
IBM, Sun, RXTX, TOSComm?



If its the IBM version, you can
uncomment a line in the javax.comm.properties file and change to serial. But
if memory serves me, that output is from the Java version.



I know I did something to get it working;
if its the sun one, let me know and Ill try to dig it up.















From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ming
Sent: Thursday, June 29, 2006
12:05
To:
tinyos-help@Millennium.Berkeley.EDU
Subject: Fwd: [Tinyos-help]
Problem to run SerialForwarder on telos







Hi all

I am try to run the SerialForwarder for telos by
java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:telos
However the follow error is displayed.

Listening to
serial@/dev/ttyUSB0:telosb 
Platform telos
Listening for client connections on port 9001
serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException: Invalid port.
Known serial ports:
- /dev/ttyS0
- /dev/ttyS1
)

Anyone have any idea on that? Thank you.

CMing










___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Associate with Tmote

2006-06-29 Thread Arun Venkateshwaran
Hi,I am trying to associate another device with tmote for an application?Is it possible to do it?If so, How can I do it? Thanks in advance.Regards,Arun
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] Mate and send_lqi on Telosb/tmote

2006-06-29 Thread Ben Kelley


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tinyos-help-
 [EMAIL PROTECTED] On Behalf Of Philip Levis
 Sent: Thursday, June 29, 2006 12:05
 To: [EMAIL PROTECTED]
 Cc: tinyos-help@Millennium.Berkeley.EDU
 Subject: Re: [Tinyos-help] Mate and send_lqi on Telosb/tmote
 
 On Jun 28, 2006, at 3:51 PM, Ben Kelley wrote:
 
  Hi,
  I'm going through the tutorial on Mate and having some issues with
  send_lqi
  (or maybe not) on T-Sky/telosb. If I am reading the documentation
  right,
  send_lqi acts as a drop-in for send, and thus the packets forwarded
  via
  send_lqi would be output at the root node as the data.  I have run
  the mica
  pc sim, and see the traffic just fine using TOSSIM and the
  VMBufferReader.
  Now I just get
 
  Received UART message containing type NONE, ignoring.
  Received UART message containing type NONE, ignoring.
  Received UART message containing type NONE, ignoring.
 
  Anytime a message comes over the UART.  I have gotten directly
  connected
  nodes to send other UART data and have it recognized.
 
  22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16
  38 0A F2
  1B F2 1B F3 1B F2 1B F3 1B F3 1B F4 1B F3 1B F3 1B F2 1B
  22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16
  38 0A F1
  1B F3 1B F3 1B F3 1B F2 1B F2 1B F2 1B F3 1B F2 1B F2 1B
  22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16
  38 0A F3
  1B F3 1B F2 1B F3 1B F4 1B F4 1B F4 1B F4 1B F4 1B F4 1B
  22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16
  38 0A F5
  1B F4 1B F4 1B F4 1B F4 1B F4 1B F5 1B F5 1B F4 1B F6 1B
  22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 54 00 00 00 01 16
  38 0A F5
  1B F5 1B F5 1B F6 1B F6 1B F6 1B F6 1B F6 1B F7 1B F7 1B
  22 00 00 00 00 00 7E 00 1B 7D 00 00 00 00 00 00 55 00 00 00 01 16
  38 0A F6
  1B F7 1B F7 1B F7 1B F7 1B F7 1B F7 1B F8 1B F7 1B
 
  Is a sample from the data via net.tinyos.tools.Listen
 
  It's configured at 57600 for the data rate.
 
  Also, when I am compiling BombillaTelosB, I see a cannot find
  MateBufferMsg
  AM type in the log.
 
 Because it's using multihop routing, it will me AM_MATEROUTEMSG
 (0x1b): you can see it above in the log, after the address. The
 packet format is:
 
 802.15.4 header
 Multihop Header
 
 I think the problem is that tos/lib/MultihopLQI changed the packet
 format, and I didn't update Mate' to consider this fact. E.g., if you
 look at
 
 tos/lib/MultihopLQI/Multihop.h
 
 and
 
 tos/lib/VM/types/mhop.h
 
 The structures are different. If you change tos/lib/VM/types/mhop.h
 to be the kind of wasteful
 
 typedef struct MultihopMsg {
uint16_t sourceaddr;
uint16_t originaddr;
int16_t seqno;
int16_t originseqno;
uint16_t hopcount;
uint8_t data[(TOSH_DATA_LENGTH - 10)];
 } TOS_MHopMsg;
 
 (wasteful in that it has 16-bit sequence numbers and hopcounts) does
 it work?
 
 Phil
 
 


Thanks for the quick response Phil.  I had several errors (and still do.)

It may be that I don't completely understand all of this yet, so I tried
several things.  First, I just commented out the contents of mhop.h

/*typedef struct MateRouteMsg {
  uint16_t sourceaddr;
  uint16_t originaddr;
  int16_t seqno;
  uint8_t hopcount;
  uint8_t data[]; 
} __attribute__ ((packed)) MateRouteMsg;*/
And pasted in the above for what you sent me
The second time, I just added the MultiHopMsg to the mhop.h file, and it
seemed to compile.  Now I get 
Received UART message containing type UNKNOWN, ignoring.
Received UART message containing type NONE, ignoring.
Received UART message containing type UNKNOWN, ignoring.
Received UART message containing type NONE, ignoring.
Received UART message containing type UNKNOWN, ignoring.
Received UART message containing type NONE, ignoring.
Received UART message containing type UNKNOWN, ignoring.
Received UART message containing type NONE, ignoring.
Received UART message containing type UNKNOWN, ignoring.
Received UART message containing type NONE, ignoring.
Received UART message containing type UNKNOWN, ignoring.

I also tried editing the RouteMsg struct to add the originseqno, but that
just resulted in Received UART Message containing type UNKOWN, ignoring.
as well.  

If I redefine the MultiHopMsg to be the MateRouteMsg, I can make the logger
report that 

receive error for vm_specific.MateMultiHopMsg (AM type 27): invalid length
message received (too short)

This is what I'm getting over the raw wire with MHMsg replacing MRMsg.

7e 42 22 00 00 00 00 00 7d 5e 00 1b 7d 5d 00 00 00 00 00 00 03 00 00 00 01
16 38 0a 44 1b 45 1b 46 1b 46 1b 47 1b 47 1b 47 1b 48 1b 48 1b 47 1b 19 a7 
7e 
7e 42 22 01 08 2d ff ff 7d 5e 00 1b 7d 5d 00 00 06 00 0b 00 0b 00 01 00 01
16 38 0a ab 1a ac 1a ad 1a ad 1a ad 1a ae 1a ae 1a ad 1a ae 1a ae 1a 4c a5 
7e 
7e 42 22 00 00 00 00 00 7d 5e 00 1b 7d 5d 00 00 00 00 00 00 03 00 00 00 01
16 38 0a 45 1b 46 1b 46 1b 47 1b 47 1b 47 1b 47 1b 47 1b 48 1b 49 1b b5 0f 
7e 
7e 42 22 01 08 34 ff ff 7d 5e 00 1b 7d 5d 00 00 06 00 

RE: [Tinyos-help] Mate and send_lqi on Telosb/tmote

2006-06-29 Thread Philip Levis
On Thu, 2006-06-29 at 11:29, Ben Kelley wrote:
 MateRoute to the MultiHop
 format?
 
 I can't help but wonder if this also has something to do with the
 AM_BUFFERMSG that my makefile keeps trying to mig.

It doesn't have much to do with AM_BUFFERMSG. This is just how the Mate'
build system gets mig to generate a Java class for the actual buffer
data structure.

It has to do with the packet format. The mig-generated packet formats
are not the same as those the node is using. What you need to do is get
them to agree. My intention was to get you to correct the MateRoute to
match the MultiHop format. 

You want to put this in mhop.h:

typedef struct MateRouteMsg {
  uint16_t sourceaddr;
  uint16_t originaddr;
  int16_t seqno;
  int16_t originseqno;
  uint16_t hopcount;
  uint8_t data[(TOSH_DATA_LENGTH - 10)];
} MateRouteMsg;

You then need to go into your VM app directory and

make clean

To remove all of the generated packet files. Then do the standard make,
make install.

Here are the basic issues you might run into and their causes:

type UNKNOWN, type NONE: the packet format TinyOS is generating and the
packet format the Java side is expecting do not agree. The Java side is
looking for a type field in the buffer, and because the formats do not
agree, it is looking in the wrong place, seeing a different byte, and
then complaining it is not valid.

too short: The packet formats do not agree. TinyOS is sending a shorter
packet than what the Java side expects. This happens if the Java side
has been compiled to think that the header is larger than the one TinyOS
expects.

Apologies that I can't look into the code right now: trying to get the
2.0 beta2 release out.

Phil

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Can I detect sound levels with a Mica2 mote?

2006-06-29 Thread Mark Bramwell
I would like to perform a query that gives me the nodeID and the relative 
sound level of a room.  Nothing fancy or high calibration is required, just 
some returned value that is low if it is quiet in the room, higher if 
someone is talking nearby.


I see that there is a noise attribute but it always returns zero. I even 
placed the mote on top of a loud radio speaker with  no change in the 
returned values (always zero).


Perhaps I have compiled something incorrectly?  I originally installed TOS 
1.1.11 and updated to 1.1.15-Dec2005cvs-1 Everything appears to compile ok 
and I am able to query light and the voltage ok (which I assume means the 
motes work with the MPR400CB sensorboard - with onboard mic).


Some simple questions:

1. Can I query the sound level of a room?
2. Is the noise attribute the correct one to use?
3. Do I need to activate a compiler option to make it work (I noted the raw 
mic functions in the attributes file)?


Thanks for any info you can provide.  If this is a FAQ, I could not find 
it...  feel free to point me to the appropriate documentation.



MARK BRAMWELL
Senior Systems Analyst - Richard Ivey School of Business
Phone: (519) 661-3714  -  Fax: (519) 661-3485





___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] timing accelerator usage?

2006-06-29 Thread Michael Siegel
Hello,

I've been attempting to implement an RF-based TDOA localization
algorithm on Mica1 Motes. (Yeah, I know it's a long shot, given that the
hardware timing resolution supposedly can't be better than 1/4
microsecond, but I guess there's hope in being able to achieve finer
resolution by averaging over many readings.)  I've been having a hard
time figuring out how to obtain consistent arrival time readings (which
can be local to each individual mote).  I've read about there being a
timing accelerator on board that timestamps the sending or receiving of
radio packets and makes this information available to applications.  If
this is the case, does anyone know how I could poll the accelerator in
my application code for the timestamps?

Thanks,
Michael Siegel
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Tmote-sky/telosb

2006-06-29 Thread Joe Polastre

Nope, only the motes available after the FCC certification (the ones
with the shield on top)

-Joe

On 6/29/06, Matthew J Whelan [EMAIL PROTECTED] wrote:


Joe,

Is there a newer version of Tmote Sky (I know there was a small change
with the FCC certification where the SMA connection has a cover now)?  I ask
this because on the schematic that I have from the ones that I bought a year
ago, there is no access to the external voltage reference for the ADC and I
don't see how I could get to it with any of the expansion pins.  If so, can
all Tmote Sky motes run at 8MHz as well?

Thanks,
Matt
[EMAIL PROTECTED] wrote: -

To: Matthew J Whelan [EMAIL PROTECTED]
From: Joe Polastre [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
Date: 06/29/2006 11:01AM
cc: mothanna alkubeily [EMAIL PROTECTED],
Tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Tmote-sky/telosb


Actually, there's a few other changes now that Tmote Sky has but
TelosB does not.

For example, Tmote Sky can run up to 8MHz whereas TelosB can only run
up to 4MHz.  Tmote Sky also has the option of setting the external
voltage reference for sampling, whereas TelosB does not.  Finally,
Tmote Sky is FCC certified, whereas TelosB is not.

The rule of thumb: All TelosB apps will work on Tmote Sky, but the
opposite is not necessarily true.

-Joe

On 6/29/06, Matthew J Whelan [EMAIL PROTECTED] wrote:




 Hi,

 The Tmote Sky and the Telosb motes are pretty much the same, however,
there
 is one difference in the board layout related to the 8-pin JTAG connector.
 You can find more info
 at:http://www.moteiv.com/products/docs/an001-changes.pdf

 but basically the change allows the USB connection to power expansion
 boards.

 Matt

 [EMAIL PROTECTED] wrote:
 -

 To: Tinyos-help@Millennium.Berkeley.EDU
 From: mothanna alkubeily [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 Date: 06/29/2006 03:02AM
 Subject: [Tinyos-help] Tmote-sky/telosb


 hi
 i want to know if the Tmote-sky and the  telosb are the same.
 thanks


 
 Sneak preview the all-new Yahoo.com . It's not radically different. Just
 radically better.
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help






___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] the range of the mica2 temperature readings

2006-06-29 Thread Xing Jin
Hi everyone,   Wouldsomeone tell me the range of the mica2 thermistor readings?Or the ceilus temperature reading range (format like :0~30C)?Thanks a lot.   Xing Jin 
		Yahoo! Music Unlimited - Access over 1 million songs.
Try it free. ___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Problem to run SerialForwarder on telos

2006-06-29 Thread Justin Dugger

This is a one of those fantastic features of using Java for hardware
access. Java has no idea what ports qualify as serial ports, and
rather than let you specify at the command line a particular file, it
will error out if it doesn't match it's own list of such things.

If you're using sun's java, what you need to modify is the
javax.comm.properties file.  This is in javadir/jre/lib/ext/  .
You'll notice at the end it looks exactly like the error you're
getting.  Just add /dev/ttyUSB0 to the list, assuming there is such a
device. It won't hurt to add ttyUSB1 etc as well, in case you wind up
having more than one plugged in at a time.

Justin Dugger

On 6/29/06, Ming [EMAIL PROTECTED] wrote:


Hi all

I am try to run the SerialForwarder for telos by
java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:telos
However the follow error is displayed.
Listening to serial@/dev/ttyUSB0:telosb
Platform telos
Listening for client connections on port 9001
serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException: Invalid
port. Known serial ports:
- /dev/ttyS0
- /dev/ttyS1
)

 Anyone have any idea on that? Thank you.

CMing

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] Problem to run SerialForwarder on telos

2006-06-29 Thread Ben Kelley
Just as an aside to this; I did this and it worked (for the java comm)but
then all of a sudden the driver crashed on the third or fourth access of the
port.  TOSComm seems to work fairly well if you can get it installed.  

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tinyos-help-
 [EMAIL PROTECTED] On Behalf Of Justin Dugger
 Sent: Thursday, June 29, 2006 16:31
 To: Ming
 Cc: tinyos-help@Millennium.Berkeley.EDU
 Subject: Re: [Tinyos-help] Problem to run SerialForwarder on telos
 
 This is a one of those fantastic features of using Java for hardware
 access. Java has no idea what ports qualify as serial ports, and
 rather than let you specify at the command line a particular file, it
 will error out if it doesn't match it's own list of such things.
 
 If you're using sun's java, what you need to modify is the
 javax.comm.properties file.  This is in javadir/jre/lib/ext/  .
 You'll notice at the end it looks exactly like the error you're
 getting.  Just add /dev/ttyUSB0 to the list, assuming there is such a
 device. It won't hurt to add ttyUSB1 etc as well, in case you wind up
 having more than one plugged in at a time.
 
 Justin Dugger
 
 On 6/29/06, Ming [EMAIL PROTECTED] wrote:
 
  Hi all
 
  I am try to run the SerialForwarder for telos by
  java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:telos
  However the follow error is displayed.
  Listening to serial@/dev/ttyUSB0:telosb
  Platform telos
  Listening for client connections on port 9001
  serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException:
 Invalid
  port. Known serial ports:
  - /dev/ttyS0
  - /dev/ttyS1
  )
 
   Anyone have any idea on that? Thank you.
 
  CMing
 
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-
 help
 
 
 
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Problem to run SerialForwarder on telos

2006-06-29 Thread Justin Dugger

I haven't noticed this, however I have noticed that you might want to
configure udev to bind motes to a particular device node.  Otherwise
you get races like which mote gets which device node when plugging in
a micaz base station and a telosb. I haven't figured out yet how to
get the MIB520 assigned to specific nodes, given that it somehow
presents two devices over a single A-A wire. I figure leaving such
unholy constructions alone is wise.

Justin Dugger

On 6/29/06, Ben Kelley [EMAIL PROTECTED] wrote:

Just as an aside to this; I did this and it worked (for the java comm)but
then all of a sudden the driver crashed on the third or fourth access of the
port.  TOSComm seems to work fairly well if you can get it installed.


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] error installing postgresql

2006-06-29 Thread Rohan Mudholkar
Hi everyone,

here's the error which i am getting while installing
postgresql:-


The Cacls command can be run only on disk drives that
use the NTFS
file system.The Cacls command can be run only on disk
drives that use
the NTFS file system.The Cacls command can be run only
on disk drives
that use the NTFS file system.The Cacls command can be
run only on
disk drives that use the NTFS file system.


regards,
Rohan


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Problem to run SerialForwarder on telos

2006-06-29 Thread Philip Levis


On Jun 29, 2006, at 2:47 PM, Ben Kelley wrote:

Just as an aside to this; I did this and it worked (for the java  
comm)but
then all of a sudden the driver crashed on the third or fourth  
access of the

port.  TOSComm seems to work fairly well if you can get it installed.


Yeah, all of these nightmares are what motivated Cory to write the  
TinyOS serial package.


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] #ifdef support in nesc.

2006-06-29 Thread Tehn Yit Chin

Hi,

Does anyone know if #ifdef is supported in nesc?

I was experimenting with SurgeM.nc in apps/surge, and the following bit 
of code is not compiling for me.


  event result_t Timer.fired() {
dbg(DBG_USR1, SurgeM: Timer fired\n);
timer_ticks++;
if (timer_ticks % TIMER_GETADC_COUNT == 0) {
  call ADC.getData();
}

// If we're the focused node, chirp
if (focused  timer_ticks % TIMER_CHIRP_COUNT == 0) {
#ifdef CHIRP_ENABLE
  call Sounder.start();
#endif /* CHIRP_ENABLE*/
}
// If we're the focused node, chirp
if (focused  timer_ticks % TIMER_CHIRP_COUNT == 1) {
#ifdef CHIRP_ENABLE
  call Sounder.stop();
#endif /* CHIRP_ENABLE*/
}

The results are

$ make mica2
compiling Surge to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 
-I%T/lib/Route -I%T/lib/Queue -I%T/lib/Broadcast -Wall -Wshadow -DDEF_TO
S_AM_GROUP=0x7d -Wnesc-all -finline-limit=10 
-fnesc-cfile=build/mica2/app.c  Surge.nc -lm

SurgeM.nc: In function `Timer.fired':
SurgeM.nc:163: Sounder.start not connected
SurgeM.nc:169: Sounder.stop not connected
SurgeM.nc: In function `Bcast.receive':
SurgeM.nc:248: Sounder.init not connected
SurgeM.nc:265: Sounder.stop not connected
make: *** [build/mica2/main.exe] Error 1

I also has the following the module definition as well.

#ifdef CHIRP_ENABLE
interface StdControl as Sounder;
#endif /* CHIRP_ENABLE */

I am using nesc 1.1. Any pointer is appreciated.

--
Tehn Yit Chin
Embedded System Engineer, Grey Innovation Pty. Ltd.


--
Tehn Yit Chin
Embedded System Engineer, Grey Innovation Pty. Ltd.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Loading programs onto Mica2: Prelim question

2006-06-29 Thread Arijit Ghosh
Hello,

I am loading some of the test apps onto a Mica2 mote
using the MIB510 board. The Blink and the
CntToLedsAndRfm(only the blinking of the LEDs) apps
work fine. However I am having the following problems:

1) The MicaHWVerify would not load and uisp just
hangs. I tried both the contrib/xbow/apps and the
original apps.

2) The RfmToLeds compiles and gets loaded. But when
made to work in conjunction with another mote that has
CntToLedsAndRfm, it does nothing. The LED still keeps
on blinking on the mote that has the latter installed.
 

Any help will be much appreciated.

Thanks in advance.

Do the best you can, with what you have, where you are. -- Roosevelt

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Loading programs onto Mica2: Prelim question

2006-06-29 Thread Tehn Yit Chin

 2) The RfmToLeds compiles and gets loaded. But when
 made to work in conjunction with another mote that has
 CntToLedsAndRfm, it does nothing. The LED still keeps
 on blinking on the mote that has the latter installed.

Hi,

I just completed this tutorial yesterday.

Check that the group ID are the same for the two motes. The individual 
ID shouldn't matter as CntToLedsAndRfm is broadcasting the packets to 
all receivers.


cheers,
--
Tehn Yit Chin
Embedded System Engineer, Grey Innovation Pty. Ltd.


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] #ifdef support in nesc.

2006-06-29 Thread Tehn Yit Chin


Philip Levis wrote:

On Jun 29, 2006, at 5:33 PM, Tehn Yit Chin wrote:


Hi,

Does anyone know if #ifdef is supported in nesc?



The full C preprocessor is supported. Your bug is that you are not  
wiring the Sounder. You need to include it in the configuration.




In Surge.nc, I was wiring Sounder as

implementation {
  components Main, SurgeM, TimerC, LedsC, NoLeds, Photo as Sensor, 
RandomLFSR,
GenericCommPromiscuous as Comm, Bcast, MultiHopRouter as multihopM, 
QueuedSend;


#ifdef CHIRP_ENABLE
  Components Sounder;
#endif /* CHIRP_ENABLE */


}

Is this valid? Must all components be specify in one statement?

thanks,
tyc
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Problem to run SerialForwarder on telos

2006-06-29 Thread Ming
I am using the SUN's JAVACOMM and I have installed the TOSCOMM before. Should I un-install the TOSCOMM first? And how to do that?CMing
On 6/29/06, Philip Levis
 [EMAIL PROTECTED] wrote:
On Jun 29, 2006, at 2:47 PM, Ben Kelley wrote:
 Just as an aside to this; I did this and it worked (for the java comm)but then all of a sudden the driver crashed on the third or fourth access of the port.TOSComm seems to work fairly well if you can get it installed.
Yeah, all of these nightmares are what motivated Cory to write theTinyOS serial package.Phil


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] msp430 hardware multiplier

2006-06-29 Thread An Liu

Hi,

 Is it possible to use msp430 hardware multiplier with -mdisable-hwmul? 
When I set -minline-hwmul, I always get segmentation fault. Can anyone 
share some experience?


An Liu
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] serial port communication problem

2006-06-29 Thread zhiqiang zhang
hi,everyone:


 Recently ,i found a strange problem.

 I wrote a java file to print all the port on the command line. The source code i attached below:

import java.util.*;import java.io.*;import javax.comm.*;
public class listenraw {public static void main(String argv[]) {new listenraw();}
public listenraw() {CommPortIdentifier portId;
Enumeration ports = CommPortIdentifier.getPortIdentifiers();
if (ports == null) {System.out.println(No comm ports found!);return;}
// print out all portsSystem.out.println(printing all ports...);while (ports.hasMoreElements()) {System.out.println( + ((CommPortIdentifier) 
ports.nextElement()).getName());
}}}
The result was :printing all ports... It meant 
ports.hasMoreElements() return false.
But from the device manager i found there are COM1 and COM2 occurred.
Can anyone tell me how can i solve the problem.

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Loading programs onto Mica2: Prelim question

2006-06-29 Thread Tehn Yit Chin

Arijit Ghosh wrote:

I did set the same group id for both. I used the
MakeXbowlocal file.

Did yours work straight out of the box? Can you please
send me your makelocal/makexbowlocal file?
 


Mine work straight out of the box. All I added was to create a Makelocal 
which I placed into tinyos-1.x/tools/make.


My Makelocal is

# Makelocal File

DEFAULT_LOCAL_GROUP = 0x33

PFLAGS += -DCC1K_DEF_FREQ=CC1K_915_998_xxMHZ

I did not use MakeXbowlocal at all. I also used the apps in 
tiny-1.x/apps instead of in contrib/xbow/apps.


BTW, please reply to the list so that someone else will also benefit 
from our discussions...


Cheers,
tyc
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] msp430

2006-06-29 Thread Anuja Juvekar
HI ,

I'm fairly new to motes, tinyOSand nesC. I wanted to know if I can use the InternalVoltageC available in msp430 platform on to a mica2 mote.? I have tried but it gives me a lot of errors. Is it that I have to use the VoltageC provided in tos/system and not the msp430 one..?

Please get back to me.

Regards
AJ
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] why both AMPacket and Packet interfaces are used in tinyos-2.x/apps/tutorials/BlinkToRadio/BlinkToRadioC.nc

2006-06-29 Thread Liu Haibin
Hi,The following is tinyos-2.x/apps/tutorials/BlinkToRadio/BlinkToRadioC.nc from tinyos-2_0_devel-BRANCH. I found that it declares to use both AMPacket and Packet interfaces and actually it uses only Packet in the implementation. So is AMPacket redundant there?
Regards,Haibin// $Id: BlinkToRadioC.nc,v 1.1.2.2 2006/02/09 17:17:48 idgay Exp $/** Copyright (c) 2000-2006 The Regents of the University of California. 
* All rights reserved.** Permission to use, copy, modify, and distribute this software and its* documentation for any purpose, without fee, and without written agreement is* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.* * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.* * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS* ON AN AS IS BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.**//*** Implementation of the BlinkToRadio application. A counter is* incremented and a radio message is sent whenever a timer fires.
* Whenever a radio message is received, the three least significant* bits of the counter in the message payload are displayed on the* LEDs. Program two motes with this application. As long as they* are both within range of each other, the LEDs on both will keep
* changing. If the LEDs on one (or both) of the nodes stops changing* and hold steady, then that node is no longer receiving any messages* from the other node.** @author Prabal Dutta* @date Feb 1, 2006
*/#include Timer.h#include BlinkToRadio.hmodule BlinkToRadioC { uses interface Boot; uses interface Leds; uses interface TimerTMilli as Timer0; uses interface Packet;
 uses interface AMPacket; uses interface AMSend; uses interface Receive; uses interface SplitControl as AMControl;}implementation { uint16_t counter; message_t pkt; bool busy = FALSE;
 void setLeds(uint16_t val) { if (val  0x01) call Leds.led0On(); else  call Leds.led0Off(); if (val  0x02) call Leds.led1On(); else call Leds.led1Off
(); if (val  0x04) call Leds.led2On(); else call Leds.led2Off(); } event void Boot.booted() { call AMControl.start(); } event void AMControl.startDone
(error_t err) { if (err == SUCCESS) { call Timer0.startPeriodic(TIMER_PERIOD_MILLI); } else { call AMControl.start(); } } event void AMControl.stopDone(error_t err) {
 } event void Timer0.fired() { counter++; if (!busy) { BlinkToRadioMsg* btrpkt =  (BlinkToRadioMsg*)(call Packet.getPayload(pkt, NULL)); btrpkt-nodeid = TOS_NODE_ID;
 btrpkt-counter = counter; if (call AMSend.send(AM_BROADCAST_ADDR,  pkt, sizeof(BlinkToRadioMsg)) == SUCCESS) { busy = TRUE; } } } event void 
AMSend.sendDone(message_t* msg, error_t err) { if (pkt == msg) { busy = FALSE; } } event message_t* Receive.receive(message_t* msg, void* payload, uint8_t len){ if (len == sizeof(BlinkToRadioMsg)) {
 BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)payload; setLeds(btrpkt-counter); } return msg; }}
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help