Re: [Tinyos-help] RSSI strength

2006-06-06 Thread Rajat Bansal


okay i got it..i think tossim seems to be the problem. I also read it 
somewhr that there is some problem with printing the strength value on pc.


Thanks,

Rajat

On Tue, 6 Jun 2006, Sankar Gorthi wrote:


and oh - tinyos-1.1.0

Sankar.


On Tue, 06 Jun 2006 00:20:08 -0500, Sankar Gorthi [EMAIL PROTECTED] 
wrote:



well,

this is my (a colleague's) code:

Receive.receive(TOS_MsgPtr m)
IntMsg *message=(IntMsg*)buffer.data;
message-val=m-strength;


doesn't look too different.

although our experiments were done on the actual motes and we broadcast the 
value in a message packet as you can see.


Sankar.

On Tue, 06 Jun 2006 00:11:29 -0500, Rajat Bansal [EMAIL PROTECTED] 
wrote:



dear sanskar,

1) which version of tinyos did u use?

2) i am attaching my code for recieved packet.

event TOS_MsgPtr ReceiveIntMsg.receive(TOS_MsgPtr m) {

  TOS_MsgPtr ret = m;
  IntMsgnew*message = (IntMsgnew *)m-data;
atomic{receivednode=message-src;}
  //  call ADC.getData();
  //  call ADCBattery.getData();
updateNeighbors(message-src,message-val,message-seqNo);
  dbg(DBG_USR1,strength %d,m-strength); -- this is how i am trying 
to access...

 //  printNeighbors();
 call Leds.redToggle();
 ret = m;

this is a simple code i have written for recieved packet..i dont know wat 
seems to be the problem. can u make out some mistake?


-rajat


On Mon, 5 Jun 2006, Sankar Gorthi wrote:


i was able to get it. what seems to be the problem?

all i did was access the message-strength value.

Sankar.

On Mon, 05 Jun 2006 23:33:52 -0500, Rajat Bansal [EMAIL PROTECTED] 
wrote:


 I am trying to print RSSI strength in the recieved broadcast packet. 
First i was trying to access in tinyos-1.0 but i came to know that it is 
not possible in this version. I upload my tinyos to 1.15 but i am 
getting the value as zero only. Has ne one else came thru similar 
problem?

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


















--
*
*  Physics is like sex: sure, it may give some practical results, but  *
*   that's not why we do it.		- Richard Feynman.  * 
*  			*

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


Re: [Tinyos-help] Re: question on simple_transmit from Rfm_model.c

2006-06-06 Thread Liu Haibin
But according to tossim document, the simple radio model places all nodes in a single cell and every bit transmitted is received without error. So it should not have any hidden station problem.The thing is every time node is transmitting 0s, it is considered not transmitting. That's the part that I don't understand. I'm afraid that it has nothing to do with hidden station problem.
Regards,HaibinOn 6/5/06, Aditya Bhave [EMAIL PROTECTED] wrote:

Any wireless xommunication has two problems associated with it
1. HIdden Station problem
2. Exposed Station problem.
You may want to google these terms to see what they mean. Essentially it means that it is not always possible to detect whether a channel is really idle or not. Thats why CSMA (used by tinyos)will not always work correctly. Newer versions of tinyos implemet the B-MAC and S-MAC protocol which supposedly solves these problems. If youre using older versionsof tinyos ( 
2.0), you will have to figure out how to tackle these problems on your own at the application level. In my project, i used redundancy i.e every packet was sent 3 times at 500 ms intervals with the hope that at least one of these packet reaches the destination correctly. It worked for me.

regards,
Aditya Bhave







From:Liu Haibin 
[EMAIL PROTECTED]To:tinyos-help@Millennium.Berkeley.EDUSubject:
[Tinyos-help] Re: question on simple_transmit from Rfm_model.cDate:Mon, 5 Jun 2006 18:04:10 +0800

For example, let's say we have 2 motes. Mote 0 is transmitting 0s all the time, so transmitting[5] = 0, radio_active[0] = 0, and radio_active[1] = 0.
While mote 0 is transmitting 0s, the TOSH_rfm_rx_bit() in TOS_SIGNAL_HANDLER(SIG_OUTPUT_COMPARE2B, ()) of mote 1 is called. And because radio_active[1] == 0, TOSH_rfm_rx_bit() returns 0. After 12 bits, it signal
ChannelMon.idleDetect() to show the channel is free. But actually mote 0 is using the channel and transmitting 0s.Why is it so? Any help is appreciated.
Regards,Haibin
On 6/2/06, Liu Haibin 
[EMAIL PROTECTED] wrote:


Hi,I have a question about the following code from Rfm_model.c. The parameter bit can be 1 or 0. When simple_trasmit is transmitting bit 1, transmitting[modeID] is set to 1, meaning it's transmitting. However, when simple_transmit is transmitting bit 0, transmitting[modeID] is set to 0, meaning it's not transmitting (actually it's transmitting bit 0). Why is it so? I must have the concept wrong. Could any help me on this? 
void simple_transmit(int moteID, char bit) { int i;  transmitting[moteID] = bit; for (i = 0; i  tos_state.num_nodes; i++) {
 radio_active[i] += bit; }}Regards,


Haibin






___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] scripting in TOSSIM

2006-06-06 Thread Dasarath Weeratunge
I read on http://www.cs.berkeley.edu/~pal/research/tossim.html
that there is an on going effort to incorporate scripting into TOSSIM. Where can
I find more information about this work?

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


[Tinyos-help] is this resources good for practical understanding of TOS

2006-06-06 Thread Sola Famoriyo
Thanks for the response , please can anyone advice if theproducts on the website http://www.smileymicros.com/ isequally good for the practical understanding of TOS. I would like to have a practical feel of the functionalities of TOS and need a constant practise all comments are welcome...  [EMAIL PROTECTED] wrote:  Send Tinyos-help mailing list submissions totinyos-help@Millennium.Berkeley.EDUTo subscribe or unsubscribe via the World Wide Web, visithttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-helpor, 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 specificthan "Re: Contents of Tinyos-help digest..."Today's Topics:1. RSSI strength (Rajat Bansal)2. Re: Re: Packet format from PC to base mote through UART(Sankar Gorthi)3. Re: RSSI strength (Sankar Gorthi)4. Re: Need help for VM (Philip Levis)5. Re: RSSI strength (Michael Schippling)6. Re: RSSI strength (Rajat Bansal)7. Re: RSSI strength (Sankar Gorthi)8. Re: RSSI strength (Sankar Gorthi)--Message: 1Date: Tue, 6 Jun 2006 10:03:52 +0530 (IST)From: Rajat Bansal <[EMAIL PROTECTED]>Subject: [Tinyos-help] RSSI strengthTo: tinyos-help@Millennium.Berkeley.EDUMessage-ID: <[EMAIL PROTECTED]>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowedI am
 trying to print RSSI strength in the recieved broadcast packet. First i was trying to access in tinyos-1.0 but i came to know that it is not possible in this version. I upload my tinyos to 1.15 but i am getting the value as zero only. Has ne one else came thru similar problem?-rajat--Message: 2Date: Mon, 05 Jun 2006 23:39:28 -0500From: "Sankar Gorthi" <[EMAIL PROTECTED]>Subject: Re: [Tinyos-help] Re: Packet format from PC to base motethrough UARTTo: "Lei Tang" <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>Cc: tinyos-help@millennium.berkeley.eduMessage-ID: <[EMAIL PROTECTED]>Content-Type: text/plain; format=flowed; delsp=yes;charset=iso-8859-15of course, i'm assuming you're using a windows based PC and are using a generic serial port access software (MATLAB, java etc.) to write to the serial
 port.Sankar.On Mon, 05 Jun 2006 23:35:30 -0500, Sankar Gorthi <[EMAIL PROTECTED]>wrote: Lei, you're actually right. You need to write to the 7E address. Try sending this message: 7E42 7D5E  7D5D 05AA 0744 0811 3840 7E Sankar. On Mon, 05 Jun 2006 23:23:41 -0500, Lei Tang <[EMAIL PROTECTED]>wrote: Hi, Julia Thanks for your reply. I was using a general serial-port application to send data to the mote, because I want to have my own application to control motes. My steps: Firstly, I created a data file with TOS_Msg type; then the application  read it and sent data to the base mote through serial port; I programmed the  base mote with TOSBase, and tried to check
 received data in event UARTReveive.receive. Yes, you are right; the length should be 6. But I'm not sure if the  address should be 0x007e, since I'm trying to send data FROM PC TO MOTE through UART. Anyway, even when I changed the two fields, Msg-data is still not correct. I read SimpleCmdM.nc, which is used when injecting packets (Lesson 7 in Tinyos tutorial). It seems that the received data is also TOS_Msg type (see task void cmdInterpret). I'm really confused. Thanks a lot. Best, Lei On 6/5/06, [EMAIL PROTECTED]  [EMAIL PROTECTED] wrote: Hi Lei, Are u trying to send the packet to Micaz using serial Forwarder and Broadcast Inject. If
 not, What format are u using to send it??? Note: 10 represents the data length right?? so I think it should be 6  and not 10. Also, since you are sending the packet to the UART so the destination address should be the UART address. My best regards, Julia ---   Hi, all   I am trying to send a packet from a PC to a micaZ mote through serial  cable.  The packet looks like:   7e 42 ff ff 0 81 10 f f f f f f a1 21 7e  header data crc   (I put two random bytes in the crc field, but I think
 that's not a  big  problem since it doesn't filt out CRC-error packet.)   At the mote, I read the received data in event TOS_MsgPrt  UARTReveive.receive(TOS_MsgPrt Msg) {}. The header is correct, but  Msg-data[0] is always the last CRC byte, here 0x21, and I didn't see the  data section (0xf) in Msg.   Did I make a right packet? How could I send data to base mote  throught  UART  correctly?   Thanks!   Best,  Lei Tang-- No opera plot can be sensible, for people do not sing when they are feeling sensible. - W. H.
 Auden--Message: 3Date: Mon, 05 Jun 2006 23:45:40 -0500From: "Sankar Gorthi" <[EMAIL PROTECTED]>Subject: Re: [Tinyos-help] RSSI strengthTo: "Rajat Bansal" <[EMAIL PROTECTED]>,tinyos-help@millennium.berkeley.eduMessage-ID: <[EMAIL PROTECTED]>Content-Type: text/plain; format=flowed; 

[Tinyos-help] MTS420 drivers problem with tinydb

2006-06-06 Thread Abhishek
Hi ,Is there any guy out there who is successful in getting the results from this experimental setup:MTS420 sensor with MPR400 (mica2 mote).   The mote is programmed with /opt/tinyos-1.x/apps/TinyDBApp.On thePC side , we are viewing the results in TinyDB GUI using the following command java net.tinyos.tinydb.TinyDBMainWhen wefire the query fornodeid , it is showing correct values.  But, when wefire the query for viewing pressure, humidity etc ,what we see is NULL values in the TinyDB GUI, and in fact ,epoch values are coming with some gap , like 10, 27, 40, 57 .and so on.  After this , we made the following changes:  In makefile , we change the sensorboards value to micawb
 instead of micasb.In AttrPressure.nc,AttrPressureM.nc AttrHumidity.nc and AttrHumidityM.nc , we changed the #defines to include InterSemaPressure and SensirionHumidity components in the TinyDB Thanks for reading the mail.Please provide any type of help regarding the issue.Abhishek.!  
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] TinyOs Help - TOSSIM

2006-06-06 Thread mike healy
Hi Marcus,

This question seems to come up fairly often so I'll take a stab at giving an answer.

I see from the attached files that you're running TOSSIM under Windows. This is the problem. 
My understanding is that if you are running TOSSIM under Windows TinyViz will not work (at
least not for the more recent versions of TinyOS anyway). This is because the
newer versions of TinyOS (from October 2005) use POSIX threads when
running in Windows. TinyViz is a Java application and Java uses Windows
native threads. The result of this is that TinyViz is unable to load
the TinyOS shared objects into the running TinyViz interface which is
why you can see the motes in TinyViz but not get them to run.


If you run TOSSIM in Linux TinyViz should work (at
least all of the versions in the last year or so worked for me anyway).

Mike


Note: I could be completely wrong about this so if
anybody knows better please correct me. I'm basing this on information
from the Viptos website: http://ptolemy.eecs.berkeley.edu/viptos/
Quote:

Note:
As of 10/05, Windows users will not be able to run TinyOS models inside
Ptolemy. The reason is that reloading the TinyOS shared objects
into the running Ptolemy interface fails because the TinyOS shared
objects use pthreads and under Windows, Java is using Windows native
threads. 




On 6/5/06, Marcus Phillips [EMAIL PROTECTED]
 wrote:
Hello everyone, 

For some reason we can't get TOSSIM run properly the once we load
tinyviz the motes are present however they are not doing anything,
there seems to be no communication or anything. Is there
something wrong with the TestTinyViz App?


attached is some of the outputs that we recieve.

___Tinyos-help mailing listTinyos-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] scripting in TOSSIM

2006-06-06 Thread Vinayak Naik
http://www.tinyos.net/tinyos-1.x/doc/tython/manual.html- VinayakOn 6/6/06, Dasarath Weeratunge
 [EMAIL PROTECTED] wrote:I read on 
http://www.cs.berkeley.edu/~pal/research/tossim.htmlthat there is an on going effort to incorporate scripting into TOSSIM. Where canI find more information about this work?
thanks,--dasarath___Tinyos-help mailing listTinyos-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] Re: MTS420 drivers problem with tinydb

2006-06-06 Thread Samuel Madden

Abishek --

To the best of my knowledge, the MTS420 has never worked with the  
mica2's and TinyDB.  The behavior you see (large gaps between epochs,  
lots of readings with NULLs) is consistent with TinyDB timing out on  
calls to getAttr which never return a value.


-Sam


On Jun 6, 2006, at 5:35 AM, Abhishek wrote:


Hi ,

Is there any guy out there who is successful in getting the results  
from this experimental setup:


MTS420 sensor with MPR400 (mica2 mote).
The mote is programmed with /opt/tinyos-1.x/apps/TinyDBApp .

On the PC side , we are viewing the results in TinyDB GUI  using  
the following command


java net.tinyos.tinydb.TinyDBMain

When we fire the query for nodeid , it is showing correct values.
But, when we fire the query for viewing pressure, humidity etc ,  
what we see is NULL values in the TinyDB GUI, and in fact , epoch  
values are coming with some gap , like 10, 27, 40, 57 .and so on.



After this , we made the following changes:
In makefile , we change the sensorboards value to micawb instead of  
micasb.


In AttrPressure.nc,AttrPressureM.nc AttrHumidity.nc and  
AttrHumidityM.nc , we changed  the #defines to include  
InterSemaPressure and SensirionHumidity components in the TinyDB




Thanks for reading the mail.

Please provide any type of help regarding the issue.

Abhishek.!


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  
Great rates starting at 1¢/min.



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


[Tinyos-help] time

2006-06-06 Thread Munaretto, Daniel
How can i consider these time in seconds or milliseconds? i ran a TOSSIM 
simulation and i found these times of booting:

SIM: Time for mote 1 initialized to 2477084.

SIM: Time for mote 2 initialized to 2200990.

 

It's quite urgent, if anyone knows..

Thanks

Daniele


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


[Tinyos-help] Tiny DB Help

2006-06-06 Thread prajakta choudhari

Recently we r trying to run tinydb with mts 420 sensors , we  are
getting null values for pressure,humidity..
We traced the code and found the Pressure.getData() function neither
returns fail nor signals dataReady event.

Can anyone put sum light on this issue.


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


[Tinyos-help] Help: lossy.nss, option -r=lossy

2006-06-06 Thread Munaretto, Daniel
When i start my simulation, with command ./buld/pc/main.exe -b=1 -t=10 -r=lossy 
3  sim.txt
 
it's showed:
..
Initializing lossy model from lossy.nss
0: cannot open lossy.nss - assuming single radio cell
..
 
 
What should i do to use this file for the -r=lossy option?
 
Please, if anyone could help me!
cheers
Daniele
 
 

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


Re: [Tinyos-help] RSSI strength

2006-06-06 Thread Philip Levis

On Jun 5, 2006, at 11:57 PM, Sankar Gorthi wrote:


well,

makes sense doesn't it? how can you simulate the strength of the  
recieved signal? i'd imagine it's fairly random.


although, i wouldn't stake anything on it. maybe someone else has a  
better idea.


You can simulate the strength of a received signal, but TOSSIM in 1.x  
doesn't do so. Rather than consider things like signal strength or  
SNR, it just considers a bit error rate. TOSSIM in 2.0 uses signal  
strengths, with error rates derived from some nice empirical data  
from Bhaskar at USC.


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


Re: [Tinyos-help] scripting in TOSSIM

2006-06-06 Thread Philip Levis

On Jun 6, 2006, at 3:32 AM, Vinayak Naik wrote:


http://www.tinyos.net/tinyos-1.x/doc/tython/manual.html



TOSSIM in 2.0 takes a more extreme position, where the simulator  
itself is a Python object (removing the Tython/TinyViz overhead of IPC):


http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/ 
html/tutorial/lesson-t.html?revision=1.1.2.7pathrev=tinyos-2_0_devel- 
BRANCH


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


Re: [Tinyos-help] is this resources good for practical understanding of TOS

2006-06-06 Thread Michael Schippling

Never saw it before, but looks interesting.

However TOS was designed to be used with the mica Motes
and has been extended to some other products, like Tmote.
Start with the search page I just sent you. Also look at:
http://www.xbow.com/Products/productsdetails.aspx?sid=3

For learning TOS itself, see the doc/tutorial stuff and
all the demos in the app tree.

Also, please try not to include the entire help digest every
time you send a message...it just clogs up the works.
MS

Sola Famoriyo wrote:
Thanks for the response , please can anyone advice if the products on 
the website http://www.smileymicros.com/  is equally good for the 
practical understanding of TOS. I would like to have a practical feel of 
the functionalities of TOS and need a constant practise  all 
comments are welcome...



*/[EMAIL PROTECTED]/* wrote:

Send Tinyos-help mailing list submissions to
tinyos-help@Millennium.Berkeley.EDU

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. RSSI strength (Rajat Bansal)
2. Re: Re: Packet format from PC to base mote through UART
(Sankar Gorthi)
3. Re: RSSI strength (Sankar Gorthi)
4. Re: Need help for VM (Philip Levis)
5. Re: RSSI strength (Michael Schippling)
6. Re: RSSI strength (Rajat Bansal)
7. Re: RSSI strength (Sankar Gorthi)
8. Re: RSSI strength (Sankar Gorthi)


--

Message: 1
Date: Tue, 6 Jun 2006 10:03:52 +0530 (IST)
From: Rajat Bansal
Subject: [Tinyos-help] RSSI strength
To: tinyos-help@Millennium.Berkeley.EDU
Message-ID:
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed


I am trying to print RSSI strength in the recieved broadcast packet.
First
i was trying to access in tinyos-1.0 but i came to know that it is not
possible in this version. I upload my tinyos to 1.15 but i am
getting the
value as zero only. Has ne one else came thru similar problem?

-rajat



--

Message: 2
Date: Mon, 05 Jun 2006 23:39:28 -0500
From: Sankar Gorthi
Subject: Re: [Tinyos-help] Re: Packet format from PC to base mote
through UART
To: Lei Tang , [EMAIL PROTECTED]

Cc: tinyos-help@millennium.berkeley.edu
Message-ID:
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15

of course, i'm assuming you're using a windows based PC and are using a
generic serial port access software (MATLAB, java etc.) to write to the
serial port.

Sankar.

On Mon, 05 Jun 2006 23:35:30 -0500, Sankar Gorthi
wrote:

  Lei,
 
  you're actually right.
 
  You need to write to the 7E address.
 
  Try sending this message:
 
  7E42 7D5E  7D5D 05AA 0744 0811 3840 7E
 
  Sankar.
 
 
 
  On Mon, 05 Jun 2006 23:23:41 -0500, Lei Tang wrote:
 
  Hi, Julia
 
  Thanks for your reply.
 
  I was using a general serial-port application to send data to
the mote,
  because I want to have my own application to control motes.
 
  My steps:
  Firstly, I created a data file with TOS_Msg type; then the
application
  read
  it and sent data to the base mote through serial port; I
programmed the
  base
  mote with TOSBase, and tried to check received data in event
  UARTReveive.receive.
 
  Yes, you are right; the length should be 6. But I'm not sure if the
  address
  should be 0x007e, since I'm trying to send data FROM PC TO MOTE
through
  UART. Anyway, even when I changed the two fields, Msg-data is
still not
  correct.
 
  I read SimpleCmdM.nc, which is used when injecting packets
(Lesson 7 in
  Tinyos tutorial). It seems that the received data is also
TOS_Msg type
  (see task
  void cmdInterpret). I'm really confused.
 
  Thanks a lot.
 
  Best,
  Lei
 
  On 6/5/06, [EMAIL PROTECTED]  [EMAIL PROTECTED] wrote:
 
 
  Hi Lei,
 
  Are u trying to send the packet to Micaz using serial Forwarder and
  Broadcast Inject. If not, What format are u using to send it???
  Note: 10 represents the data length right?? so I think it
should be 6
  and
  not 10. Also, since you are sending the packet to the UART so the
  destination address should be the UART address.
 
 
  My best regards,
 
  Julia
 
 
 
 
---
  

[Tinyos-help] need help for serial-to-usb converter for mib510

2006-06-06 Thread Zhengsu Gao
Hi, all: I am using mib510 board and a serial-to-usb converter. Now I can programing mica2 with mib510. but I cannot receive the raw data from uart (I am using xlisten). I found some doc said "Some USB to DB9 serial port adapters cannot run at 115 kbaud". But I checked the driver, it seems this converter can support this speed? Can anyone help me out? ThanksBestZhengsu___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Application loses packets when using Low Power Listening on TOSSIM

2006-06-06 Thread Vinai Sundaram

Hi ,

I notice that when I put the CC1000Radio (in tos/platform/pc ) in low 
power listening(LPL) mode, the application loses packets although lossy 
radio model is not used. The event sendDone gets called on the sender 
side but the receiver does not receive the packet. When I put debug 
statements to observe radio operations, I found that receiver mote does 
not get a chance to run until the sendDone is called on the sender mote. 
I set both the listening mode and transmit mode to the same value as 
explained in the CC1000Radio Manual ( 
http://www.tinyos.net/tinyos-1.x/doc/mica2radio/CC1000.html ).  The same 
behavior happens irrespective of the mode except always on mode. When 
I use the radio on always on mode, no packets are lost and everything 
works fine. Why does LPL makes packets to be lost?  Also, how to enable 
ack on CC1000Radio ( tos/platform/pc )?  Any pointers are appreciated.


Thanks,
Vinai.









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


Re: [Tinyos-help] need help for serial-to-usb converter for mib510

2006-06-06 Thread Michael Schippling


If you can program the mica2 but not receive data you probably have the
silly little switch on the mib510 board in the wrong position. The
a slide switch on the opposite edge from the serial connector, next to
the reset push button, should be in the OFF position. Please don't ask
me what the switch is for, other than to create this problem...

MS

Zhengsu Gao wrote:

Hi, all:

 I am using mib510 board and a serial-to-usb converter. Now I 
can programing mica2 with mib510. but I cannot receive the raw data from 
uart (I am using xlisten). I found some doc said Some USB to DB9 serial 
port adapters cannot run at 115 kbaud. But I checked the driver, it 
seems this converter can support this speed? Can anyone help me out? Thanks


 


Best

Zhengsu




___
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] Application loses packets when using Low Power Listening on TOSSIM

2006-06-06 Thread Michael Schippling

can't help with the main LPL question, but search back on the
list for a few weeks for ACK. I periodically send out advice
on that...
MS


Vinai Sundaram wrote:

Hi ,

I notice that when I put the CC1000Radio (in tos/platform/pc ) in low 
power listening(LPL) mode, the application loses packets although lossy 
radio model is not used. The event sendDone gets called on the sender 
side but the receiver does not receive the packet. When I put debug 
statements to observe radio operations, I found that receiver mote does 
not get a chance to run until the sendDone is called on the sender mote. 
I set both the listening mode and transmit mode to the same value as 
explained in the CC1000Radio Manual ( 
http://www.tinyos.net/tinyos-1.x/doc/mica2radio/CC1000.html ).  The same 
behavior happens irrespective of the mode except always on mode. When 
I use the radio on always on mode, no packets are lost and everything 
works fine. Why does LPL makes packets to be lost?  Also, how to enable 
ack on CC1000Radio ( tos/platform/pc )?  Any pointers are appreciated.


Thanks,
Vinai.









___
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] Re: Packet format from PC to base mote through UART

2006-06-06 Thread Lei Tang
Thanks. But it doesn't work. If I send 7E 42 7D 5E 00 00
81 05 AA 07 44 08 11 38 40 7E, Msg-data is 40 00 00 00 00 at the
base mote. And I found that Msg-data[0] is always the last CRC
byte. Thanks anyway.Best,LeiOn 6/6/06, Sankar Gorthi 
[EMAIL PROTECTED] wrote:of course, i'm assuming you're using a windows based PC and are using a
generic serial port access software (MATLAB, java etc.) to write to theserial port.Sankar.On Mon, 05 Jun 2006 23:35:30 -0500, Sankar Gorthi[EMAIL PROTECTED]
 wrote: Lei, you're actually right. You need to write to the 7E address. Try sending this message: 7E42 7D5E  7D5D 05AA 0744 0811 3840 7E
 Sankar. On Mon, 05 Jun 2006 23:23:41 -0500, Lei Tang [EMAIL PROTECTED] wrote: Hi, Julia
 Thanks for your reply. I was using a general serial-port application to send data to the mote, because I want to have my own application to control motes. My steps:
 Firstly, I created a data file with TOS_Msg type; then the application read it and sent data to the base mote through serial port; I programmed the base mote with TOSBase, and tried to check received data in event
 UARTReveive.receive. Yes, you are right; the length should be 6. But I'm not sure if the address should be 0x007e, since I'm trying to send data FROM PC TO MOTE through
 UART. Anyway, even when I changed the two fields, Msg-data is still not correct. I read SimpleCmdM.nc, which is used when injecting packets (Lesson 7 in Tinyos tutorial). It seems that the received data is also TOS_Msg type
 (see task void cmdInterpret). I'm really confused. Thanks a lot. Best, Lei On 6/5/06, 
[EMAIL PROTECTED]  [EMAIL PROTECTED] wrote: Hi Lei, Are u trying to send the packet to Micaz using serial Forwarder and
 Broadcast Inject. If not, What format are u using to send it??? Note: 10 represents the data length right?? so I think it should be 6 and not 10. Also, since you are sending the packet to the UART so the
 destination address should be the UART address. My best regards, Julia ---
   Hi, all   I am trying to send a packet from a PC to a micaZ mote through serial  cable.  The packet looks like:
   7e 42 ff ff 0 81 10 f f f f f f a1 21 7e header datacrc   (I put two random bytes in the crc field, but I think that's not a
 big  problem since it doesn't filt out CRC-error packet.)   At the mote, I read the received data in event TOS_MsgPrt  UARTReveive.receive
(TOS_MsgPrt Msg) {}. The header is correct, but  Msg-data[0] is always the last CRC byte, here 0x21, and I didn't see the  data section (0xf) in Msg. 
  Did I make a right packet? How could I send data to base mote throught  UART  correctly?   Thanks! 
  Best,  Lei Tang--No opera plot can be sensible, for people do not sing when they are
feeling sensible. - W. H. Auden
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[tinyos-help]does mate support mica2doc sensor board

2006-06-06 Thread song guo
Hi,I am a new one in tinyos and try to inject the mate VM in the mica2dot.I used the bombilla-mica.vmsf, it seems that it can not support the sensor of mica2dot. I used the function light() but the return value is always 1023
can any one give me a hint?thank yousong
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Deluge

2006-06-06 Thread Adam
How to use Deluge to programe several motes together with different ID?

Thanks.

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


Re: [Tinyos-help] Deluge

2006-06-06 Thread Sankar Gorthi

First, do the format flash part (tinyos-1.x/apps/TestDeluge/FormatFlash/)

compile the code in that folder and program your motes.

next, go to the DelugeBasic folder  
(tinyos-1.x/apps/TestDeluge/DelugeBasic/) and compile your code and  
program with the id's you want to use.


Sankar.


On Tue, 06 Jun 2006 16:48:41 -0500, Adam [EMAIL PROTECTED] wrote:


How to use Deluge to programe several motes together with different ID?

Thanks.

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




--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden


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


Re: [Tinyos-help] Deluge

2006-06-06 Thread Sankar Gorthi

oops. hit send too fast there.

now, like i was saying, once you've programmed them with DelugeBasic, plug  
in one of the motes in the programmer board and then use the Deluge tools  
to write the Goldenimage into the goldenimage image :).


then follow the instructions in the manual:  
http://www.cs.berkeley.edu/~jwhui/research/deluge/deluge-manual.pdf


Sankar.


On Tue, 06 Jun 2006 16:56:44 -0500, Sankar Gorthi  
[EMAIL PROTECTED] wrote:



First, do the format flash part (tinyos-1.x/apps/TestDeluge/FormatFlash/)

compile the code in that folder and program your motes.

next, go to the DelugeBasic folder  
(tinyos-1.x/apps/TestDeluge/DelugeBasic/) and compile your code and  
program with the id's you want to use.


Sankar.


On Tue, 06 Jun 2006 16:48:41 -0500, Adam [EMAIL PROTECTED] wrote:


How to use Deluge to programe several motes together with different ID?

Thanks.

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








--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden


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


[Tinyos-help] Unknown target during make platform

2006-06-06 Thread bhushan bhatt
Hi all, I am trying to implement SMAC and got the code from the site. When i give the command make tmote it says " Unknown targetKnown targets for TinyOS directory /opt/moteiv/tinyos-1.x/tosand the specified include directories are: tmote atmega8 mica mica128 mica2 mica2dot micaz msp430 pc rene2 telos telosbmake: *** [exe0] Error 2 "Any feedback on how i can get rid of this problem is appreciated.Thanks,Bhushan
		Do you Yahoo!? Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Unknown target during make platform

2006-06-06 Thread Sankar Gorthi
check your tinyos-1.x/apps/ folder to see if the Makerules file lists all  
the platforms you have to use. If not, the file should be available on the  
Tinyos.net website - http://www.tinyos.net/tinyos-1.x/apps/Makefile


I couldn't find the tmote Make-rules in there though. Someone else might  
have a better idea.


-shrug-

Sankar.

On Tue, 06 Jun 2006 21:57:50 -0500, bhushan bhatt  
[EMAIL PROTECTED] wrote:



Hi all,

   I am trying to implement SMAC and got the code from the site. When i  
give the command make tmote it says  Unknown target

Known targets for TinyOS directory /opt/moteiv/tinyos-1.x/tos
and the specified include directories are:
  tmote atmega8 mica mica128 mica2 mica2dot micaz msp430 pc rene2 telos  
telosb

make: *** [exe0] Error 2 

Any feedback on how i can get rid of this problem is appreciated.

Thanks,
Bhushan


-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.




--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden


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


Fwd: Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-06 Thread Sankar Gorthi

Yes.

Although, I've programmed them with group ID 7D (default). This shouldn't
matter as TOSBase simply reads the packet sent over the UART and
substitutes the current group ID when transmitting.

Quick doubt - are you framing a message AROUND this packet?

I mean are you sending the packet 7E ... 7E directly to the serial port?
And if you're using MATLAB, could you use the fwrite() function rather
than the fprintf()?

How about writing a short bit of code to write stuff out to the UART of
the mote.

Tell you what - attaching the code: MessageSender, save the attachments in
a folder in tinyos-1.x/apps/(folder name)/
and program one mote with it,

program another with TOSBase and check what the output on the serial port
of TOSBase is.

This should give you an idea about correct CRC packets etc, and maybe you
can find the correct package format to send.

Sankar.

On Tue, 06 Jun 2006 21:26:22 -0500, Lei Tang [EMAIL PROTECTED] wrote:

I am not sure if i was using UARTNoCRCPacket. Is it a component? But, I  
do
not think it's because the CRC check. At least  Msg-length, type, addr  
are

correct.

I tried the packet you sent me, but i failed again. Msg-data = 25 00 00  
00

00.

Did you program the base mote with TOSBase?

Thank you.
Best,
Lei

On 6/6/06, Sankar Gorthi [EMAIL PROTECTED] wrote:


well, that will obviously not work.

the last two bytes in the packet i sent you were the CRC bytes (38 40) -
they were specific to the message that was formed with group id 7D and
message address FF FF.

however, you mentioned in a previous email that you aren't concerned  
about

the CRC packet being sent to your mote. are you using UARTNoCRCPacket or
something similar to read from/ write to the mote?

with your group ID and message, the packet would be:

7E42 7D5E  8105 AA07 4408 11B9 257E

could you try that?

I think your CRC packet isn't valid and that's why you don't recieve
anything on your mote.

Sankar.



On Tue, 06 Jun 2006 16:05:40 -0500, Lei Tang [EMAIL PROTECTED]  
wrote:


 Thanks. But it doesn't work.

 If I send 7E 42 7D 5E 00 00 81 05 AA 07 44 08 11 38 40 7E, Msg-data
is
 40 00 00 00 00 at the base mote. And I found that Msg-data[0] is
 always
 the last CRC byte.

 Thanks anyway.

 Best,
 Lei



--
No opera plot can be sensible, for people do not sing when they are
feeling sensible. - W. H. Auden





--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden

MessageSender.nc
Description: Binary data


Makefile
Description: Binary data


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


Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-06 Thread Sankar Gorthi

Yup,

The code sends out a packet every ~1.5 seconds on the radio. A TOSBase  
mote connected to a PC should be able to pick it up.


-shrug-

You're welcome and please do keep me posted. Curious to say the least.

Sankar.

On Tue, 06 Jun 2006 23:26:02 -0500, Lei Tang [EMAIL PROTECTED] wrote:

Yes, I sent the packet 7e7edirectly. I was using MATLAB and  
fwrite()

function.

Thanks for your code, although it doesn't work on my platform. I'm using
micaz. Is that just to send messages?

I will keep trying to figure it out.

Thanks again.

Lei

On 6/6/06, Sankar Gorthi [EMAIL PROTECTED] wrote:


Yes.

Although, I've programmed them with group ID 7D (default). This  
shouldn't

matter as TOSBase simply reads the packet sent over the UART and
substitutes the current group ID when transmitting.

Quick doubt - are you framing a message AROUND this packet?

I mean are you sending the packet 7E ... 7E directly to the serial port?
And if you're using MATLAB, could you use the fwrite() function rather
than the fprintf()?

How about writing a short bit of code to write stuff out to the UART of
the mote.

Tell you what - attaching the code: MessageSender, save the attachments  
in

a folder in tinyos-1.x/apps/(folder name)/
and program one mote with it,

program another with TOSBase and check what the output on the serial  
port

of TOSBase is.

This should give you an idea about correct CRC packets etc, and maybe  
you

can find the correct package format to send.

Sankar.

On Tue, 06 Jun 2006 21:26:22 -0500, Lei Tang [EMAIL PROTECTED]  
wrote:


 I am not sure if i was using UARTNoCRCPacket. Is it a component? But,  
I

 do
 not think it's because the CRC check. At least  Msg-length, type,  
addr

 are
 correct.

 I tried the packet you sent me, but i failed again. Msg-data = 25 00  
00

 00
 00.

 Did you program the base mote with TOSBase?

 Thank you.
 Best,
 Lei

 On 6/6/06, Sankar Gorthi [EMAIL PROTECTED] wrote:

 well, that will obviously not work.

 the last two bytes in the packet i sent you were the CRC bytes (38  
40)

-
 they were specific to the message that was formed with group id 7D  
and

 message address FF FF.

 however, you mentioned in a previous email that you aren't concerned
 about
 the CRC packet being sent to your mote. are you using UARTNoCRCPacket
or
 something similar to read from/ write to the mote?

 with your group ID and message, the packet would be:

 7E42 7D5E  8105 AA07 4408 11B9 257E

 could you try that?

 I think your CRC packet isn't valid and that's why you don't recieve
 anything on your mote.

 Sankar.



 On Tue, 06 Jun 2006 16:05:40 -0500, Lei Tang [EMAIL PROTECTED]
 wrote:

  Thanks. But it doesn't work.
 
  If I send 7E 42 7D 5E 00 00 81 05 AA 07 44 08 11 38 40 7E,
Msg-data
 is
  40 00 00 00 00 at the base mote. And I found that Msg-data[0] is
  always
  the last CRC byte.
 
  Thanks anyway.
 
  Best,
  Lei




--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden


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


Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-06 Thread David Gay

On 6/5/06, Lei Tang [EMAIL PROTECTED] wrote:

I was using a general serial-port application to send data to the mote,
because I want to have my own application to control motes.


A suggestion: if you want to roll your own code, start by reading
through the existing code which does what you want to do. The Java
version (well, the part that encodes a packet for transmission over a
serial port) is in
tinyos-1.x/tools/java/net/tinyos/packet/Packetizer.java. It does have
comments, and it does have a brief description of the protocol and
encoding.

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


Re: [Tinyos-help] Re: Neighbor List

2006-06-06 Thread Aditya Bhave
I am not too aware of the Neighbourhood graph. But its a relatively simple matter to code it yourself. Have each mote broadcast a Hello packet. All its neighbours will receive the packet and can record the node IDs in a link list or array. You can even simultaneously record the RSSI and come to know approximately how far each neighbour is.
On 6/7/06, Keyan Mahadevan [EMAIL PROTECTED] wrote:
Hello,
Is there any documentation on how I can use the Neighborhood graph? I basically want each node to have a list of its neighbors. 
Thanks for your help
Kn

___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


[Tinyos-help] Setting Baud Rate in B-Mac

2006-06-06 Thread venkatesh s
Hi all,

I am simulating a application where i need to find the transmission delay in TOSSIM. So I used time stamps to find the delay for a packet. The delay was varying from 20ms to 40 ms. This was due to the fact of Backoff delay. Since this is a randomly chosen delay, I made that to a constant number of 2. When i resimulated that, the delay was constant throughout the execution(10ms between a pair of node)


My question is, the transmission delay or the time to transmit is a function of BAUD RATE. As the BAUD RATE is decreased, the time to transmit should also increase. In my application, the PREAMBLE length is 28 bytes, SYNC is 2 bytes, Message size is 15 bytes inclusive of payload and header and CRC is 2 Bytes. 


If we consider 19200 kbps (38.4kbaud), then 
 
 Time to transmit = (PREAMBLE + SYNC+Message size + CRC) * 8 / 19200
 = ((28+2+15+2)*8/19200)*1024
 = 20.0533 ms
But the simulation results were showing 10 ms. When the BAUD rate was changed, i.e., to 0.6 Baud, the time to transmit must increase to 300ms. But the result remained 10ms only. 

The file that i used to set the Baud rate is cc1000const.h and cc1000controlM.nc. Any changes in the BAUD rate were not effecting the simulation results(delay). 

Is my approach for setting the Baud rate is correct??? 
Do we have anyother file to set the BAUD rate for TOSSIM??

Thanking you in advance,

--
with regards
venkatesh

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