Re: [Tinyos-help] Tymo and TOSSIM not compiling

2008-07-16 Thread Anthony Smee

Cleaning out the tree and re-running CVS allowed me to compile the code.

Thank you.

Anthony

Microsoft is solely responsible for any e-tags and links that they 
put on the bottom of my emails. These are placed on my emails without my 
consent 
and against my will. I have neither agreed to them nor endorse them. I am sorry 
you are forced to receive them. If you do not like them, please send a 
complaint 
to Microsoft.


 Date: Mon, 14 Jul 2008 13:08:23 +0200
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [Tinyos-help] Tymo and TOSSIM not compiling
 CC: tinyos-help@millennium.berkeley.edu
 
 On Sun, Jul 13, 2008 at 1:21 PM, Anthony Smee [EMAIL PROTECTED] wrote:
 
  Hi Romain
 
  Sorry for my delayed response, I did copy tymo into my previous tree yes, 
  but have since located the files and removed them. Is there something else 
  I should have done?
 
  Thanks
 
  Anthony
 
 Some interface changes occured in TinyOS between your previous tree
 and the current one. So you can use Tymo only with the current tree,
 as it uses the new interfaces.
 
 Regards,
 Romain

_
Play and win great prizes with Live Search and Kung Fu Panda
http://clk.atdmt.com/UKM/go/101719966/direct/01/___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] nesc syntax hilighting for // in kwrite

2008-07-16 Thread Harshavardhan Chenji
Good news David, here's the working syntax file.


Please send me a beer if you find this useful :).

On Tue, May 6, 2008 at 6:11 AM, David [EMAIL PROTECTED] wrote:

 Hi list.

 I've got nesc syntax hilighting working in kwrite by copying
 /usr/share/ncc/editor-modes/kde/nesc.xml to
 ~/.kde/share/apps/katepart/syntax/

 This works great.

 But it looks like nesc.xml isn't setup to recognise comments starting
 with //. Comments in the /* */ style work fine however.

 nesc.xml was installed on my Debian Sid workstation by the 'nesc'
 ubuntu package, version 1.2.8a-2 (I followed the instructions on this
 page to install it: http://www.5secondfuse.com/tinyos/install.html).

 It looks like '//' is meant to work, because the XML file has this
 section at the end:

  general
comments
  comment name=singleLine start=// /
  comment name=multiLine start=/* end=*/ /
/comments
keywords casesensitive=1 /
  /general

 But if I remove that section, the /* */ comments still work. It looks
 like there is some comment-recognition logic earlier for /* */
 comments, but none for //

 I had a quick look at the cpp.xml file for comparison, but it's too
 complicated for me to understand how I would add // support to
 nesc.xml.

 Any suggestions?

 David.
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

?xml version=1.0 encoding=UTF-8?
!DOCTYPE language SYSTEM language.dtd
language name=nesC version=1.00 kateversion=2.1 section=Sources extensions=*.nc mimetype=text/x-ncsrc priority=5
  highlighting
list name=keywords
  item break /item
  item case /item
  item continue /item
  item default /item
  item do /item
  item else /item
  item enum /item
  item extern /item
  item for /item
  item goto /item
  item if /item
  item inline /item
  item return /item
  item sizeof /item
  item struct /item
  item switch /item
  item typedef /item
  item union /item
  item while /item  item interface /item
  item module /item
  item configuration /item
  item implementation /item
  item components /item
  item as /item
  item uses /item
  item provides /item
  item includes /item
  item command /item
  item event /item
  item async /item
  item task /item
  item norace /item
  item default /item
  item __attribute__ /item
  item atomic /item
  item call /item
  item signal /item
  item post /item
  
/list
list name=types
  item auto /item
  item char /item
  item const /item
  item double /item
  item float /item
  item int /item
  item long /item
  item register /item
  item restrict /item
  item short /item
  item signed /item
  item static /item
  item unsigned /item
  item void /item
  item volatile /item
  item _Imaginary /item
  item _Complex /item
  item _Bool /item
  item bool /item
  item uint8_t /item
  item uint16_t /item
  item uint32_t /item
  item uint64_t /item
  item result_t /item
  item SUCCESS /item
  item FAIL /item
  item TRUE /item
  item FALSE /item
  item TOSH_INTERRUPT /item
  item TOSH_SIGNAL /item
  item TOS_MsgPtr /item
  item TOS_Msg /item
/list
list name=attention
  item FIXME /item
  item TODO /item
  item ### /item
/list
contexts
  context attribute=Normal Text lineEndContext=#stay name=Normal
keyword attribute=Keyword context=#stay String=keywords/
keyword attribute=Data Type context=#stay String=types/
DetectChar attribute=Symbol context=#stay char={ beginRegion=Brace1 /
DetectChar attribute=Symbol context=#stay char=} endRegion=Brace1 /
Float attribute=Float context=#stay
  AnyChar String=fF attribute=Float context=#stay/
/Float
HlCOct attribute=Octal context=#stay/
HlCHex attribute=Hex context=#stay/
Int attribute=Decimal context=#stay 
  StringDetect attribute=Decimal context=#stay String=ULL insensitive=TRUE/
  StringDetect attribute=Decimal context=#stay String=LUL insensitive=TRUE/
  StringDetect attribute=Decimal context=#stay String=LLU insensitive=TRUE/
  StringDetect attribute=Decimal context=#stay String=UL insensitive=TRUE/
  StringDetect attribute=Decimal context=#stay String=LU insensitive=TRUE/
  StringDetect attribute=Decimal context=#stay String=LL insensitive=TRUE/
  StringDetect attribute=Decimal context=#stay String=U insensitive=TRUE/
  StringDetect attribute=Decimal context=#stay String=L insensitive=TRUE/
/Int
HlCChar attribute=Char context=#stay/
DetectChar attribute=String context=String char=quot;/
	Detect2Chars attribute=Comment 

Re: [Tinyos-help] nesc syntax hilighting for // in kwrite

2008-07-16 Thread David
Thanks, this works!

I don't know how to send you a bear, so I hope you like this instead:

http://icanhascheezburger.com/tag/beer/

David.

PS: Please also forward the updated nesc.xml file to the nesc Ubuntu
package maintainer so it goes in the next release :-)

On Wed, Jul 16, 2008 at 9:55 AM, Harshavardhan Chenji
[EMAIL PROTECTED] wrote:
 Good news David, here's the working syntax file.


 Please send me a beer if you find this useful :).

 On Tue, May 6, 2008 at 6:11 AM, David [EMAIL PROTECTED] wrote:

 Hi list.

 I've got nesc syntax hilighting working in kwrite by copying
 /usr/share/ncc/editor-modes/kde/nesc.xml to
 ~/.kde/share/apps/katepart/syntax/

 This works great.

 But it looks like nesc.xml isn't setup to recognise comments starting
 with //. Comments in the /* */ style work fine however.

 nesc.xml was installed on my Debian Sid workstation by the 'nesc'
 ubuntu package, version 1.2.8a-2 (I followed the instructions on this
 page to install it: http://www.5secondfuse.com/tinyos/install.html).

 It looks like '//' is meant to work, because the XML file has this
 section at the end:

  general
comments
  comment name=singleLine start=// /
  comment name=multiLine start=/* end=*/ /
/comments
keywords casesensitive=1 /
  /general

 But if I remove that section, the /* */ comments still work. It looks
 like there is some comment-recognition logic earlier for /* */
 comments, but none for //

 I had a quick look at the cpp.xml file for comparison, but it's too
 complicated for me to understand how I would add // support to
 nesc.xml.

 Any suggestions?

 David.
 ___
 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] FileSource for MoteIF.py

2008-07-16 Thread Markus Becker
Hello,

I am using the python MoteIF to connect to serial forwarder and everything 
works fine. Additionally I am saving the output from sflisten into a file.

In order to be able to replay the content from the file, I have created a 
FileSource for MoteIF, which reads the packets from the file line by line.

If this is of interest to someone in the TinyOS community, I could provide 
the code.

BR,
Markus


| Dipl.-Ing. Markus Becker
| Communication Networks
| Mobile Research Center
| TZI - Center for Computing Technologies
| University Bremen
| Germany

| web: http://www.comnets.uni-bremen.de/~mab/
| mailto: [EMAIL PROTECTED]
| telephone: +49 421 218 2287
| building: NW1 room: N2260

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] [EMAIL PROTECTED]

2008-07-16 Thread xuanwang150
Dear sir or madam,
  Thanks you very much for your valuable guidelines for solution of 
previous problem. I have reinstalled the components. Then in 
‘tools/java’ I typed 'make'. Now when I run ‘toscheck’, in $ cd 
/opt/tinyos-1.x/tools/scripts, I am getting following warning.

-- WARNING: CLASSPATH may not include '.' (that is,  the symbol for 
the current working directory). Please add '.' to your CLASSPATH or you 
may experience configuration problems.

This warning is while checking classpath as follow:
Classpath:
.\
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\cup.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\Jama-1.0.1.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\javax.servlet.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\jazz.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\jdom.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\JLex.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\junit.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\oalnf.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\org.mortbay.jetty.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pgjdbc2.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\plot.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pxgraphapplet.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xercesImpl.jar
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xmlParserAPIs.jar

-- WARNING: CLASSPATH may not include '.' (that is,  the symbol for 
the current working directory). Please add '.' to your CLASSPATH or you 
may experience configuration problems.

Please guide me how to remove this problem.

Thanking in anticipation.

 
   yours
  Xuanwang Liu
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How to know usage of memory and external flash while running application

2008-07-16 Thread weiping SONG
Dear all,

I want to run an application on special nodes to know their usage of 
memory and external flash. I know we can get these from make command, 
but I want to collect by application for realtime.

Could someone help me?

Regards,

Weiping Song
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] [EMAIL PROTECTED]

2008-07-16 Thread Ittipong Khemapech
As the warnings say. You should add . at the end of your CLASSPATH setting.

Ittipong

2008/7/16 xuanwang150 [EMAIL PROTECTED]:

 Dear sir or madam,
   Thanks you very much for your valuable guidelines for solution of
 previous problem. I have reinstalled the components. Then in
 'tools/java' I typed 'make'. Now when I run 'toscheck', in $ cd
 /opt/tinyos-1.x/tools/scripts, I am getting following warning.

 -- WARNING: CLASSPATH may not include '.' (that is,  the symbol for
 the current working directory). Please add '.' to your CLASSPATH or you
 may experience configuration problems.

 This warning is while checking classpath as follow:
 Classpath:
 .\
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\cup.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\Jama-1.0.1.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\javax.servlet.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\jazz.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\jdom.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\JLex.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\junit.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\oalnf.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\org.mortbay.jetty.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pgjdbc2.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\plot.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pxgraphapplet.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xercesImpl.jar
 C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xmlParserAPIs.jar

 -- WARNING: CLASSPATH may not include '.' (that is,  the symbol for
 the current working directory). Please add '.' to your CLASSPATH or you
 may experience configuration problems.

 Please guide me how to remove this problem.

 Thanking in anticipation.

yours
   Xuanwang Liu



 --
 22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多http://popme.163.com/link/004584_0708_6957.html
 ___
 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] DAC in TinyOS-2.x

2008-07-16 Thread Jose Araujo
Dear All,

 

I wanted to know if someone has developed already the driver for using the
DAC in the TinyOS 2.x version. I wanted to do the same as with the 1.x
version. This is for tmote sky use. Suggestions on how to develop are
welcome.

 

Thanks a lot,

 

José

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] routing protocol in iris mote

2008-07-16 Thread sanatan mohanty
HELLO all,
could anyone has developed clustering routing protocol
like LEACH,HEED,APTEEN for sensor network either using tinyos for iris motes
or tossim simulator?if yes,please send any attachment or links for the same.

best regards,
sanatan
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Discovering Neighbors

2008-07-16 Thread Nahr ...
Hi all.

I remarked in CTP protocol that a node discovers its neighbors from received
messages.
But there is a case in which my neighbor could see me so I can receive his
messages but him not so he can't receive msg from me
consequently, why should I put him in my neighbor table?


Nahr Elk
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Discovering Neighbors

2008-07-16 Thread Omprakash Gnawali
On Wed, Jul 16, 2008 at 5:40 AM, Nahr ... [EMAIL PROTECTED] wrote:
 Hi all.

 I remarked in CTP protocol that a node discovers its neighbors from received
 messages.
 But there is a case in which my neighbor could see me so I can receive his
 messages but him not so he can't receive msg from me
 consequently, why should I put him in my neighbor table?

This description of the scenario is unclear - your neighbor could see
you so you can receive his messages? That does not make sense. If your
neighbor could see you, that means your neighbor could receive your
message.

If you are talking about a scenario in which there is no
bi-directional link, although such links are not useful for CTP, the
only way to determine that a link is not bi-directional is by
maintaining some state about the link. So you have to insert the
neighbor into the table.

- om_p
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Problems with nx_union in TestSerial and sim-sf on T2

2008-07-16 Thread Federico Porceddu
Hi All,

On Mon, Jul 14, 2008 at 7:32 PM, Stefano Kismet Lenzi [EMAIL PROTECTED]
wrote:

 On Sat, Jul 12, 2008 at 18:36, Federico Porceddu
 [EMAIL PROTECTED] wrote:
  Hi All,
  i'm trying to use TestSerial on Tossim (compiling with make micaz sim-sf
 )
  I modified the TestSerial.h in this way:
  ...
  typedef nx_struct test_serial_msg {
nx_uint16_t counter;
nx_union {
  nx_uint8_t a;
  nx_uint32_t b;
} prova_t;
  } test_serial_msg_t;
 
  ...
 
  I've tried to send messages with the java application TestSerial.java.

 Does the original  TestSerial works on TOSSIM ?


Yes, it work. I just add the nx_union. I did not modified TOSH_DATA_LENGTH
because it is just 6 bytes
and the payload size in serial message is 12 bytes (right?)
But i made another test. I don't know where is the proble,
but in the original TestSerial.h

typedef nx_struct test_serial_msg {
  nx_uint16_t counter;
} test_serial_msg_t;

i modify just nx_uint16_t counter; to *nx_uint32_t* counter (so 4 bytes);

typedef nx_struct test_serial_msg {
  *nx_uint32_t *counter;
} test_serial_msg_t;

i make another time mig files for python and java, recompile java, run
application
and there is the same problem!!
is there a problem with serial messages on TOSSIM and  *nx_uint32_t* ??

 
  In this case:
  DEBUG (0): Received serial message (0x191ea23c) of type 137 and length 6
 @
  0:0:4.367578128 //dbg from SerialActiveMessageC.nc
  receive:00 00 00 00 00 06 00 89 00 00 00 00 00 00
  DEBUG (0): Messaggio Ricevuto : 0:0:4.367578128 //dbg from TestSerialC.nc
 
  In other case:
  DEBUG (0): Received serial message (0x191ea23c) of type 97 and length 157
 @
  0:0:5.390625000
  9d 14 61 dc 9d 14 61 00 02 00 00 00 00 d9 00 18 00 00 00 5a 01 00 00  00
 00
  00 00 e8 a4 f2 7f fe ff ff ff 00 00 00 00 90 bd b8 6c 03 00 00 00 74 a5
 d9
  00 b0 90 f3 7f 24 38 f6 7f 5c 83 f2 7f 00 00 00 00 78 22 ee 00 00 00 00
 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 0b d9 00 0c 00 00 00
  c6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 
  and it doesn't signal the Receive. Receive. (so message is not received
 from
  my TestSerialC.nc).

 Does it mean that TOSSIM receive the message that you sent with the
 TestSerail JAVA program, but the data received on the simulated node
 on TOSSIM doesn't seem correct and it is discarded beacuse the packet
 type is not the one expected by the node?


Yes, randomly  Packet Type and Lenght are not right, so they are discarded.



 I think that the problem may rely on either:
  - The implementation of the communication channel between TOSSIM e Java
  - The implementation of the serialization of Packet used for Python
 and Java message

  Randomly sometimes works like in the first case, sometimes like the
 second
  case.
  is there a problem with nx_union..? or in the Tossim?
  Can i use nx_union in the message definition like i do?

 I hope that some TOSSIM and MIG expert may better clarify your doubts


Yes, I hope that someone can help me :)
Thanks in advance.
~~~
Federico Porceddu
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] AbsoluteTimer and TimeSet.set() with TinyOs 2.x

2008-07-16 Thread Federico Porceddu
Hi all,
I have two questions:
1) in TinyOs 1.x there is AbsoluteTimer interface. Is there an interface
like that in TinyOs 2.x ?

2) In TinyOs 1.x if i need to set the logical time to a specified value, i
can use TimeSet.set(value)  where value is a tos_time_t.
Can i set logical time in TinyOs 2.x too? If it is possible, how i can do
it?

Thanks in advance
Bye
-- 
~
Federico Porceddu
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] info regarding iris mote

2008-07-16 Thread Giri Baleri
No, IRIS doesn't have enough memory/CPU resources to support .NET micro
framework. The only product that we offer with .NET framework is Imote2
(IPR2410) below. 
http://www.xbow.com/Products/productdetails.aspx?sid=276
 
Giri



From: sanatan mohanty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2008 5:40 AM
To: Giri Baleri
Subject: Re: [Tinyos-help] info regarding iris mote


does IRIS Mote support .NET framework?do u have any  latest mote that
supports .NET(VC#) Framework?

regards,
sanatan


On Tue, Jul 15, 2008 at 10:12 PM, Giri Baleri [EMAIL PROTECTED] wrote:


Hello Naveen,
 
Most of the IRIS specs can be found in the MPR-MIB manual below.

http://www.xbow.com/Support/Support_pdf_files/MPR-MIB_Series_Users_Manua
l.pdf
 
Detailed radio specs are available in the RF230 datasheet from
Atmel.
http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf
 
The IRIS puts out +3dB RF output and has -101dB receive
sensitivity, both of which translate to 3x radio range when compared to
MICAz or TelosB Motes. Additionally, IRIS consumes less current for the
same radio range.
 
I hope that helps,
Giri Baleri
Crossbow Technology, Inc



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of naveen
reddy
Sent: Tuesday, July 15, 2008 4:54 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] info regarding iris mote


hi..I have a query regarding iris motes...need to know their
performance..is it same as they mentioned in data sheet(distance and
power consumption)...we are planning to buy themplease give u r
feedback...thanks in advance

regards,
naveen


___
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] adding some info to the acknowledgement

2008-07-16 Thread Maria Luisa Ruiz de Arbulo

Hi everybody,

I'm programming a radio CC2420 using TinyOs1.x. I'm working with 
automatic acknowledgement, so i don't have to care about this for 
every transmission/reception of packets. Is it possible, in this 
mode, to access the acknowledgment packet and write some bits info in?
If not, how should i do it?

Thanks in advance

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Discovering Neighbors

2008-07-16 Thread Nahr ...
Hi,
I mean that I am in his Tx range but him not (in mine).
Although, your answer is convenient.
Thanks a lot

Nahr Elk

2008/7/16 Omprakash Gnawali [EMAIL PROTECTED]:

 On Wed, Jul 16, 2008 at 5:40 AM, Nahr ... [EMAIL PROTECTED] wrote:
  Hi all.
 
  I remarked in CTP protocol that a node discovers its neighbors from
 received
  messages.
  But there is a case in which my neighbor could see me so I can receive
 his
  messages but him not so he can't receive msg from me
  consequently, why should I put him in my neighbor table?

 This description of the scenario is unclear - your neighbor could see
 you so you can receive his messages? That does not make sense. If your
 neighbor could see you, that means your neighbor could receive your
 message.

 If you are talking about a scenario in which there is no
 bi-directional link, although such links are not useful for CTP, the
 only way to determine that a link is not bi-directional is by
 maintaining some state about the link. So you have to insert the
 neighbor into the table.

 - om_p

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] adding some info to the acknowledgement

2008-07-16 Thread David Moss
You can't modify the acknowledgment frame generated by hardware.  It is
possible to create your own acknowledgment in software, but that will take
quite a bit of work.

-David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maria
Luisa Ruiz de Arbulo
Sent: Wednesday, July 16, 2008 8:53 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] adding some info to the acknowledgement


Hi everybody,

I'm programming a radio CC2420 using TinyOs1.x. I'm working with 
automatic acknowledgement, so i don't have to care about this for 
every transmission/reception of packets. Is it possible, in this 
mode, to access the acknowledgment packet and write some bits info in?
If not, how should i do it?

Thanks in advance

___
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] Possible bug in msp430 usart

2008-07-16 Thread Dimas Abreu Dutra
Hello all,

I've been having some trouble using the msp430 usart module, on the i2c
mode. I made a simple program to communicate with the tmote invent's digital
potentiometer, an analog devices' AD5242, but it is influenced by other
components that uses the USART. For example, depending on the moment I start
the radio, I can't send packages on the i2c bus. I get success on all
command calls and events, but the packet isn't transmitted. I even checked
the pin on the oscilloscope and nothing is sent. My test application is
attached.

When compiling, I got the following warnings about non-atomic access to
varibles on the msp430 usart module:

/opt/msp430/msp430/include/msp430/usart.h:85: warning: non-atomic accesses
to shared variable `U0CTL':
/home/d1ma5/tinyos-2.x-cvs/tos/chips/msp430/usart/HplMsp430Usart0P.nc:153:
warning:   non-atomic write
/home/d1ma5/tinyos-2.x-cvs/tos/chips/msp430/usart/HplMsp430Usart0P.nc:156:
warning:   non-atomic r/w

since the U0CTL register was not marked as MSP430REG_NORACE, this could mean
that a race condition can be happening. As stated in the file
msp430hardware.h, ..., CPU registers access must be treated seriously and
carefully. I also get weird results when I use the invent's i2c based leds,
depending on the delay I put in a timer the expected result does not occur.

On my program, if I uncomment the 2nd line of the Boot.booted event, the
expected result does not happen.

Thanks for the attention,
~Dimas~


 I2CTestC.nc =
/**
 * Test app to help discover the root of the mysterious bug of the AD5241
logic
 * pins.
 * @author Dimas Abreu Dutra
 */
#include Msp430Adc12.h
#include I2C.h

module I2CTestC {
  uses interface Boot;
  uses interface SplitControl as RadioControl;
  uses interface TimerTMilli;

  uses interface I2CPacketTI2CBasicAddr;
  uses interface Resource; //I2C bus resource

  uses interface Leds; //For debug, not needed in normal operation
  //uses interface EasyDebug;//Radio-based debugging

  uses interface Readuint16_t as AccelXRead;

  provides {
interface AdcConfigureconst msp430adc12_channel_config_t* as
AccelXConfig;
interface AdcConfigureconst msp430adc12_channel_config_t* as
AccelYConfig;
  }
} implementation {

  uint8_t i2c_data[2];

  enum{
TIMER_PERIOD_MS = 500,
MAX7315_ADDR = 0x20,
U92_ADDR = 0x2F,
  };

  typedef enum{
STATE_CONFIG_PORTS,
STATE_SET_LEDS,
STATE_TURN_ACCEL_ON,
STATE_TURN_ACCEL_OFF,
  } module_state_t;

  module_state_t module_state = STATE_CONFIG_PORTS;

  task void nextState();
  task void configMax7315Ports();
  task void setLeds();
  task void turnOnAccel();
  task void turnOffAccel();
  task void i2cWriteDone();

  event void Boot.booted(){
//IF I UNCOMMENT THE LINE BELLOW, THE EXPECTED RESULT DOES NOT OCCUR!!!
//call RadioControl.start();
call Timer.startPeriodic(TIMER_PERIOD_MS);
  }

  event void RadioControl.startDone(error_t result){
//call Timer.startPeriodic(TIMER_PERIOD_MS);
  }

  event void RadioControl.stopDone(error_t result){}

  event void Timer.fired(){
call Leds.led0Toggle();
//call EasyDebug.debug(0x01, 0);
call Resource.request();
  }

  event void Resource.granted(){
//call EasyDebug.debug(0x02, 0);

post nextState();
  }

  task void nextState(){
switch(module_state){
case STATE_CONFIG_PORTS:
  post configMax7315Ports();
  module_state = STATE_SET_LEDS;
  break;
case STATE_SET_LEDS:
  post setLeds();
  module_state = STATE_TURN_ACCEL_ON;
  break;
case STATE_TURN_ACCEL_ON:
  post turnOnAccel();
  module_state = STATE_TURN_ACCEL_OFF;
  break;
case STATE_TURN_ACCEL_OFF:
  post turnOffAccel();
  module_state = STATE_CONFIG_PORTS;
  break;
}
  }

  error_t i2c_write_result;
  async event void I2CPacket.writeDone(error_t error, uint16_t addr,
   uint8_t length, uint8_t *data) {
atomic i2c_write_result = error;
post i2cWriteDone();
call Resource.release();
  }

  task void i2cWriteDone(){
error_t _i2c_write_result;
atomic _i2c_write_result = i2c_write_result;
call AccelXRead.read();
//call EasyDebug.debug(0x03, _i2c_write_result);
  }

  async event void I2CPacket.readDone(error_t error, uint16_t addr,
  uint8_t length, uint8_t *data) {}

  uint8_t led_val = 0xFA;
  task void setLeds(){
error_t result;
i2c_data[0] = 0x01;
i2c_data[1] = led_val;

led_val ^= 0x07;

result  = call I2CPacket.write(I2C_START|I2C_STOP, MAX7315_ADDR,
   2, i2c_data);
//call EasyDebug.debug(0x05, result);
  }

  task void configMax7315Ports(){
error_t result;
i2c_data[0] = 0x03;
i2c_data[1] = 0xF8;
result  = call I2CPacket.write(I2C_START|I2C_STOP, MAX7315_ADDR,
   2, i2c_data);
//call EasyDebug.debug(0x06, result);
  }

  task void turnOnAccel(){
error_t result;
i2c_data[0] = 0x18;//0b00011000 in hex
result  = call 

Re: [Tinyos-help] Discovering Neighbors

2008-07-16 Thread Varun Jain
Hi Nahr,

When your neighbor can see you, that means you can also see it, isn't
it?? Secondly, if you are in the transmitting range of your neighbor
then isn't your NEIGHBOR definitely in you range??

 

Cheers,

 

Varun Jain

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nahr
...
Sent: Thursday, July 17, 2008 2:04 AM
To: tinyos-help
Subject: Re: [Tinyos-help] Discovering Neighbors

 

Hi,
I mean that I am in his Tx range but him not (in mine). 
Although, your answer is convenient.
Thanks a lot

Nahr Elk

2008/7/16 Omprakash Gnawali [EMAIL PROTECTED]:

On Wed, Jul 16, 2008 at 5:40 AM, Nahr ... [EMAIL PROTECTED] wrote:
 Hi all.

 I remarked in CTP protocol that a node discovers its neighbors from
received
 messages.
 But there is a case in which my neighbor could see me so I can receive
his
 messages but him not so he can't receive msg from me
 consequently, why should I put him in my neighbor table?

This description of the scenario is unclear - your neighbor could see
you so you can receive his messages? That does not make sense. If your
neighbor could see you, that means your neighbor could receive your
message.

If you are talking about a scenario in which there is no
bi-directional link, although such links are not useful for CTP, the
only way to determine that a link is not bi-directional is by
maintaining some state about the link. So you have to insert the
neighbor into the table.

- om_p

 

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Basics of tinyos, USB Xbuntu

2008-07-16 Thread Varun Jain
I don't have an MIB programmer but I read a few days back that try
changing 520 to 510 when you give the command on the command line.

I am afraid that I cant help much in this,, you will need to search the
archives for this, I am pretty sure lot of people got this kind of
error.

Cheers,

Varun Jain
RD Embedded Design Engineer
Spiderbox Pty. Ltd.


-Original Message-
From: Nilesh S. Barange [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2008 12:19 AM
To: Varun Jain
Subject: RE: [Tinyos-help] Basics of tinyos, USB Xbuntu

Thank you for your help.

Now Blink program is running.

But there is one error fro downloading program in MIB510.
It is showing programmer not supporting.

I tried on MIB520 USB programmer also, but there is also error like
flash
error at address 0x8a9: file=0x95, mem=0x00

So Do you have any solution?



Thanks  Regards
Nilesh

 Hi,
 Its best to start with the tutorials you can find them here:
 http://docs.tinyos.net/index.php/TinyOS_Tutorials

 I would recommend that you do each and every tutorial given in this
list
 as it would give you complete idea of TinyOS. Once you are done with
each
 and every tutorial thoroughly without any errors, you can easily start
 building your applications.

 Cheers,
 Varun Jain

 

 From: [EMAIL PROTECTED] on behalf of Nilesh
S.
 Barange
 Sent: Tue 7/15/2008 8:32 PM
 To: tinyos-help@millennium.berkeley.edu
 Subject: [Tinyos-help] Basics of tinyos, USB Xbuntu




  Hello all

  I am using Xbuntu.
  I am new user.
  Where I can get getting started with or some basics.
  How to use tinyos?
  How to install using USB?

 Thanks  Regards
 Nilesh

 ___
 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


Re: [Tinyos-help] Discovering Neighbors

2008-07-16 Thread Eric Decker
Its radio and it is possible that a transmission may be one way.  Not the
typical case but Idon't think you want to be assuming that transmission one
way implies both ways.

eric


On Wed, Jul 16, 2008 at 5:04 PM, Varun Jain [EMAIL PROTECTED] wrote:

  Hi Nahr,

 When your neighbor can see you, that means you can also see it, isn't it??
 Secondly, if you are in the transmitting range of your neighbor then isn't
 your NEIGHBOR definitely in you range??



 Cheers,



 Varun Jain





 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Nahr ...
 *Sent:* Thursday, July 17, 2008 2:04 AM
 *To:* tinyos-help
 *Subject:* Re: [Tinyos-help] Discovering Neighbors



 Hi,
 I mean that I am in his Tx range but him not (in mine).
 Although, your answer is convenient.
 Thanks a lot

 Nahr Elk

 2008/7/16 Omprakash Gnawali [EMAIL PROTECTED]:

 On Wed, Jul 16, 2008 at 5:40 AM, Nahr ... [EMAIL PROTECTED] wrote:
  Hi all.
 
  I remarked in CTP protocol that a node discovers its neighbors from
 received
  messages.
  But there is a case in which my neighbor could see me so I can receive
 his
  messages but him not so he can't receive msg from me
  consequently, why should I put him in my neighbor table?

 This description of the scenario is unclear - your neighbor could see
 you so you can receive his messages? That does not make sense. If your
 neighbor could see you, that means your neighbor could receive your
 message.

 If you are talking about a scenario in which there is no
 bi-directional link, although such links are not useful for CTP, the
 only way to determine that a link is not bi-directional is by
 maintaining some state about the link. So you have to insert the
 neighbor into the table.

 - om_p



 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Radio range

2008-07-16 Thread Ed Todd
From an earlier message:

 When your neighbor can see you, that means you can also see it, isn't
 it?? Secondly, if you are in the transmitting range of your neighbor
 then isn't your NEIGHBOR definitely in you range??

This is a dangerous assumption and is completely invalid in any radio work.  TX 
power, battery level, local noise and many more variables can 'destroy' this 
assumption.

Ed Todd___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TelosB/MicaZ and soil moisture measurement

2008-07-16 Thread Gary Lee
 Hi,

I am wondering anyone has experience using TelosB or MicaZ to measure soil
moisture?

If so, what sensor do you use?

any information is highly appreciated.

Gary
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] SurgeTelos

2008-07-16 Thread ranal fernando
Dear all,
 
I have a problem with SurgeTelos.
I created the TOS image  injected it to several telosb motes having 1, 2, and 
3 as the addresses. I created a TOSBase (with the address 0)  gave the 
following command.
 
Java net.tinyos.tools.Listen 
But it is only getting the data from the mote within its range. It is not 
showing any data from other motes. Apparently multihop function is not working.
 
Can somebody help me in this? I’m really in need of help.
 
 
Thanks in advance.
 
Ranal
_
Time for vacation? WIN what you need- enter now!
http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help