Re: [Tinyos-help] protocl LEACH

2009-02-26 Thread Amina Diarbakirli
sorry I have take a mistake this is the URL about the implemtation of LEACH
http://research.cs.ncl.ac.uk/astra/Dissertation.pdf
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Problems compiling the tutorial app Printf

2009-02-26 Thread Ivan-Vanja Kablar
Hi,

when I compile the Printf application for the micaz platform everything works 
fine.

When I try the same for the Intelmote2 platform i get the following error 
message:

r...@his-desktop:/opt/tinyos-2.x/apps/tutorials/Printf# make intelmote2
mkdir -p build/intelmote2
xscale-elf-gcc -c  /opt/tinyos-2.x/tos/platforms/intelmote2/toscrt0.s 
/opt/tinyos-2.x/tos/chips/pxa27x/pxa27x_util.s -o build/intelmote2/asms.o 
compiling TestPrintfAppC to a intelmote2 binary
ncc -o build/intelmote2/main.exe -Os -Wall -Wshadow -Wnesc-all 
-target=intelmote2 -fnesc-cfile=build/intelmote2/app.c -board= 
-DDEFINED_TOS_AM_GROUP=0x22 -I/opt/tinyos-2.x/tos/lib/printf 
-DIDENT_APPNAME=\"TestPrintfAppC\" -DIDENT_USERNAME=\"root\" 
-DIDENT_HOSTNAME=\"his-desktop\" -DIDENT_USERHASH=0x97100612L 
-DIDENT_TIMESTAMP=0x49a6ad08L -DIDENT_UIDHASH=0x3f8f7e18L -DPXA27X_13M 
-T/opt/tinyos-2.x/tos/platforms/intelmote2/tos.x   TestPrintfAppC.nc -lm  
build/intelmote2/asms.o 
In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:56,
 from /opt/tinyos-2.x/tos/lib/printf/MainC.nc:51,
 from TestPrintfAppC.nc:41:
In component `PrintfP':
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:170: syntax error before `if'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:172: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:172: conflicting types for `sendNext'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:132: previous declaration of 
`sendNext'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:172: warning: data definition has no 
type or storage class
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:174: syntax error before `atomic'
In file included from TestPrintfAppC.nc:41:
In component `TestPrintfC':
TestPrintfC.nc: In function `Boot.booted':
TestPrintfC.nc:50: implicit declaration of function `printf'
make: *** [exe0] Error 1
r...@his-desktop:/opt/tinyos-2.x/apps/tutorials/Printf# dir
build  Makefile  TestPrintfAppC.nc  TestPrintfC.nc
r...@his-desktop:/opt/tinyos-2.x/apps/tutorials/Printf# 


Has anyone an answer?

Ivan-Vanja
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] mica2dot

2009-02-26 Thread SEKAR . R
hi...Do anybody know how to get the mica2dot motes and mib510 board in 
chennai,india.?If u know please send me the place where it is available in 
chennai...
thanks




  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Read flash memory

2009-02-26 Thread Javier Almansa Sobrino
On Wed, 25 Feb 2009 14:27:00 -0500
Parkurm  wrote:

> I also had the question. "Deluge" will help, If you're using telosb or micaz
> (in TinyOS2). In TinyOS1 Deluge can be used in more types of motes.If your
> mote don't satisfy the condition, then probably you'll have to write code on
> your own, to send data through serial or something to you PC.
> 
> Are there're any better solutions? Like command-line tools that read the
> data directly?

Read flash memory in tinyos application is easy.

Include the following head in your source:

#include 

then you need to store the data in flash, for example:

unsigned char fsmCode[] PROGMEM = {
31,   0,   6, 107,   2,   6, 116,   3,
 6, 195,   1,  27,  10,   6, 131,   4,
 6, 164,  10,   1,  19, 113,  24,   0,
16,  20, 130,   2,  18,   3
}

this stores an array of data into flash. PROGMEM is an avr-libc macro
that defines the use of flash space (defined in avr/pgmspace.h)

and for read data:

uint8_t var = pgm_read_byte(&fsmData[offset]);

that stores fsm[offset] into var

any doubt?

you can read avr-libc documentation at
http://www.gnu.org/savannah-checkouts/non-gnu/avr-libc/

There's a lot of libraries we can use in tinyos with atmel based motes
(like mica2, mica2dot, iris, etc)

cheers

-- 
Nunca confies en un S.O. del que no tienes código fuente ;-)


Javier Almansa Sobrino.
Ingeniero Técnico en Informática de Sistemas.

FSF #7032 Member (www.fsf.com)

Grupo de Investigación ARCo.
Escuela Superior de Informática. Ciudad Real
Tel: (+34)926 29 53 00 Ext: 3705


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


Re: [Tinyos-help] mica2dot

2009-02-26 Thread Giri Baleri
Hi,

 

MICA2DOT is obsolete and no longer available. All Crossbow wireless
products can be purchased through your local distributor in India below.

 

Intrinsic Solutions 

Naveen Chandra

# 2145, 17th Main, 2nd Cross HAL 2nd Stage 
Indiranagar Bangalore 560 008 
Phone: +91-80-41151400 
email: nav...@intrinsic.in 
web: www.intrinsic.in 


Regards,

Giri Baleri

Crossbow Technology, Inc

 



From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of SEKAR
. R
Sent: Thursday, February 26, 2009 8:09 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] mica2dot

 

hi...Do anybody know how to get the mica2dot motes and mib510 board in
chennai,india.?If u know please send me the place where it is available
in chennai...
thanks







Add more friends to your messenger and enjoy! Invite them now.
 

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

[Tinyos-help] cc2420 strange behaviour

2009-02-26 Thread Javier Almansa Sobrino
Hi. I'm working on a proyect with iris motes, tinyOS 2.1 and Debian

I wrote some communication libraries to performing communications among
all my motes. This library manages an application level head that holds
some control information and a data payload.

I correct the code so the max length of the packets send by my
application are 115 Bytes (plus 12 Bytes of cc2420_header_t, located
in /opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h) by recommendation of a
discussion in
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-April/016195.html

All works fine, but I have noticed a strange behaviour:

I have 2 motes, mote A, that receives a radio package, toggle a led (in
the Receive.receive() event), then process this package, gets util
information from it and forward it to the serial port, and mote B, that
when turned on, waits for a second, sends a package to A, and stops
until reset (it's only for test ;-))

the behaviour is this: when I turn on A, and before, turn on B, B sends
a package that A receives, toggle its led, and forwards to serial port.
That's Ok, no problem. Then I reset B (power off and few seconds later
power ON, or even keep away bateries for a few seconds).
When I turn on B again, it sends a package, but in this case, A don't
receive anything (A Leds, that is toggled at the beginning of
Receive.receive() don't toggle or blink, nothing). If I reset again B,
the behaviour is the same: B sends the message but A doesn't receive it.
At this point, if I reset A and later B, A receive the first
package only, but not the second and over.

Later I change B program, this time to send two identical packages,
with random separation. If I Reset A and later B, A receives the two
messages that B sends but when I restart B again, A only receives the
second message, not the first. If I write a third program to send
continuosly messages over the radio (with a timer.startperiodic(500),
for example), If I reboot A, all packages are received from a restarted
mote, but any time I turn on a new mote that sends messages to A, it
doesn't receive the first message of all motes, only the rest (without
problems)

anybody know why this behaviour?

Thanks in advance
-- 
Nunca confies en un S.O. del que no tienes código fuente ;-)


Javier Almansa Sobrino.
Ingeniero Técnico en Informática de Sistemas.

FSF #7032 Member (www.fsf.com)

Grupo de Investigación ARCo.
Escuela Superior de Informática. Ciudad Real
Tel: (+34)926 29 53 00 Ext: 3705


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


[Tinyos-help] Problem with gathering data at base

2009-02-26 Thread Mohammad S. Hashemian
Hi all,

I have a program that senses some data and sends them to a base station. I
installed the base station program on a mote which is attached to the MIB510
and via that is connected to a computer. But I don't know how can I see the
data that my base station receives.

I tried MoteView and XSniffer softwares but non of them showed me the
received data (while I tried to write my program based on XMesh samples). By
the way, I use Micaz.

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

Re: [Tinyos-help] Problem with gathering data at base

2009-02-26 Thread Mohammad S. Hashemian
Thanks Peter,
I'm sure that I receive data, coz related LED blinks and also I receive sent
ACK in source node.

Actually I used XMTS310 source code in XMesh sample application of Crossbow
and changed it in order to sense my desired data and send them back to the
server. I deleted some parts of code like these lines:

command result_t PowerMgrEnable();
command result_t PowerMgrDisable();
  command void health_packet(bool enable, uint16_t intv);
  command HealthMsg* HealthMsgGet();

now I installed the application in one mote and the original XMTS310
application in another mote. The MoteView can receive data from the original
one, but not from mine!! Do you have any idea that what can be the problem?

I'm also somehow in rush to finishing this program and I haven't enough time
to write a new application from scratch to listen to data from base, so I
have to use MoteView or other softwares like XSniffer!

Thank you very much

2009/2/26 Peter Jun 

> first try >> java net.tinyos.tools.Listen
> If you are not getting anything that means you are not receiving anything.
>
> On Thu, Feb 26, 2009 at 1:20 PM, Mohammad S. Hashemian
>  wrote:
> > Hi all,
> >
> > I have a program that senses some data and sends them to a base station.
> I
> > installed the base station program on a mote which is attached to the
> MIB510
> > and via that is connected to a computer. But I don't know how can I see
> the
> > data that my base station receives.
> >
> > I tried MoteView and XSniffer softwares but non of them showed me the
> > received data (while I tried to write my program based on XMesh samples).
> By
> > the way, I use Micaz.
> >
> > thanks
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
>
> --
> Jung Hyun JUN
>
> Ph.D Student
> University of Cincinnati
> ECECS Dept
> CDMC Lab, PO Box 210030
> Cincinnati, OH 45221-0030
>



-- 
Mohammad S. Hashemian
Research Scholar/DISCUS Lab
Department of Computer Science
254.2 Thorvaldson Building
University of Saskatchewan
(306)966-1947
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Disable Back off on Tmote

2009-02-26 Thread Xiaodong Wang
Hi all,

I am trying to disable the mac back off, both the initial and congestion
backoff, on the Tmote Sky platform. I am using the Boomerang version of the
tinyos now.

I checked the archive and know some guys talked about this before. But it is
not clear enough. Could anyone help me with this? Thank you very much

Best Regards,

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

[Tinyos-help] Problem about time.getHigh32()

2009-02-26 Thread Chenda Liao
Hello,guys. I have a problem to use time interface of SimpleTimeM.
I tried to get the system time and I find the interface 'time' can do this
job.

This is the interface:
interface Time {
  /**
   * get current time. Return it in tos_time_t structure
   **/
  async command tos_time_t get();
  /** get the high 32 bits of current time */
  async command uint32_t getHigh32();
  /** get the lower 32 bits of current time */
  async command uint32_t getLow32();
  /** get clock phase offset since last clock tick
* in unit of micro-seconds.
   **/
  async command uint16_t getUs();
}

So, in my function, I write:

atomic pack->xData.datap1.time_high=call Time.getHigh32();
atomic pack->xData.datap1.time_low=call Time.getLow32();

However, I always get 0. I tried to find the problem.
First, I write:
atomic pack->xData.datap1.time_high=;
And then I made sure that above part is right.
So the problem should be in 'call Time.getHigh32()'.

So how can I fix this problem. Why I always get the 0 of the system time?
Thanks guys




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

[Tinyos-help] strange problem on compilation

2009-02-26 Thread BAI LI
Hi All,

I just designed a small test for my project to collect the data.

In the .h file, i have a struct like this

typedef nx_struct HashMsg {
  nx_uint16_t nodeid;
  nx_uint8_t flag;
  nx_uint64_t payload_hash;
  nx_uint64_t payload_M;
  nx_uint64_t payload_R;
  nx_uint16_t payload_ID;
} HashMsg;

typedef struct Context
{
 uint64_t hash;
 uint64_t M;
 uint64_t R;
 uint16_t ID;
} Context;



in the test file I disigned the send and receive function.

Context a;

event void Timer0.fired() {
//uint64_t hash;

 uint64_t cmd=0x;
 uint64_t S=0x;




 if(TOS_NODE_ID==0x0001){
   //call Squash.resetSquash(&squash);
   call Squash.setSquash(cmd,S);
 if (!busy) {
  HashMsg* hmpkt =
 (HashMsg*)(call Packet.getPayload(&pkt, sizeof(HashMsg)));
  if (hmpkt == NULL) {
 return;
  }
  hmpkt->nodeid = TOS_NODE_ID;
   hmpkt->flag = 1;
  hmpkt->payload_hash = 0x;
   hmpkt->payload_M = 0x;// M
hmpkt->payload_R = 0x;// R
   hmpkt->payload_ID = 0x;
  if (call AMSend.send(destinationMote,
  &pkt, sizeof(HashMsg)) == SUCCESS) {
  call Leds.led0On();
busy = TRUE;
  }
}


 event message_t* Receive.receive(message_t* msg, void* payload, uint8_t
len){
 if (len == sizeof(HashMsg)) {
  HashMsg* hmpkt = (HashMsg*)payload;
   if(hmpkt->flag==1){
  a.hash=hmpkt->payload_hash;

   }
 }
return msg;
  }

I can't compile it. the error is as follows: it said sth wrong with my
receive.receive event.

$ make telosb
mkdir -p build/telosb
compiling BlinkToRadioAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -Wall -Wshadow
-Wnesc-all -
target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x2
2 -I/opt/tinyos-2.x/tos/lib/printf -DIDENT_APPNAME=\"BlinkToRadioApp\"
-DIDENT_U
SERNAME=\"EIT\" -DIDENT_HOSTNAME=\"wsn\" -DIDENT_USERHASH=0xa200ffadL
-DIDENT_TI
MESTAMP=0x49a725ccL -DIDENT_UIDHASH=0x26925cc5L  BlinkToRadioAppC.nc -lm
/opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** L
OW POWER COMMUNICATIONS DISABLED ***"
/opt/tinyos-2.x/tos/chips/msp430/usart/HplMsp430UsartInterrupts.nc: In
function
`BlinkToRadioC$Receive$receive':
/opt/tinyos-2.x/tos/chips/msp430/usart/HplMsp430UsartInterrupts.nc:49:
internal
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html > for
instructions.
make: *** [exe0] Error 1

==

I know it is sth wrong with the struct. If I don't assign the received
message to the struct member as follows. It can be compiled. I am just
wonderig why it could have this kind of problem?

event message_t* Receive.receive(message_t* msg, void* payload, uint8_t
len){
uint64_t hash;//changed

 if (len == sizeof(HashMsg)) {
  HashMsg* hmpkt = (HashMsg*)payload;
   if(hmpkt->flag==1){
  hash=hmpkt->payload_hash;   //changed

  //a.hash=hmpkt->payload_hash;// original

   }

 }
return msg;
  }

==

Anyone can tell me what is the problem? 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] Custom Mote

2009-02-26 Thread Varun Jain
Hi Anthony,

 

You would want to start with "Creating a new platform directory" and
define your platform like other platforms which you can see in
/tos/platforms/ You should also go through the following link.

 

http://docs.tinyos.net/index.php/Platform_Creation_and_Testing

 

 

Next thing you should do is go through each of the tutorial defined
here: http://docs.tinyos.net/index.php/TinyOS_Tutorials  . Once you get
most of them working (more important ones are Radio communication,
serial communication, sensor readings) then you should be ready to build
your application(s).

 

 

 

Cheers,

 

Varun Jain

 

From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of
Anthony L
Sent: Thursday, 26 February 2009 5:49 PM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Custom Mote

 

Dear all,

I am new to TinyOS and OS for embeded systems in general.  I have
currently been asked to undertake a project to port TinyOS to a custom
sensor modual which is using the TI MSP430 series microprocessor.
Looking through the tutorials, I see that compilation for applications
is done for specific motes.

Could anyone give me advice as to where to start with this project?

Thanks
Anthony



See all the ways you can stay connected to friends and family
 

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

Re: [Tinyos-help] Custom Mote

2009-02-26 Thread Eric Decker
you should start by reading the Porting to New Platforms document in the
tutorials or in the TEPs
take a look at docs.tinyos.net.

What you want to create is a new platform.

Try:

Platform tutorial 

and

TEP 131: Creating a new
platform

eric

On Wed, Feb 25, 2009 at 11:48 PM, Anthony L wrote:

>  Dear all,
>
> I am new to TinyOS and OS for embeded systems in general.  I have currently
> been asked to undertake a project to port TinyOS to a custom sensor modual
> which is using the TI MSP430 series microprocessor.
> Looking through the tutorials, I see that compilation for applications is
> done for specific motes.
>
> Could anyone give me advice as to where to start with this project?
>
> Thanks
> Anthony
> --
> See all the ways you can stay connected to friends and 
> family
>
> ___
> 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

Re: [Tinyos-help] Batter Monitor

2009-02-26 Thread Mohamed H. Seddik
Hi All
 
How can turn off all the peripherals  ( MCU , Radio,sensor etc ) in the mote. 
or make put them in a low power mode.
 
and if I put the MCU in sleep power mode. how can it wakes by itself


 

Thanks  
 
Mohamed

--- On Thu, 2/26/09, Razvan Musaloiu-E.  wrote:

From: Razvan Musaloiu-E. 
Subject: Re: [Tinyos-help] Batter Monitor
To: "Mohamed H. Seddik" 
Cc: tinyos-help@millennium.berkeley.edu
Date: Thursday, February 26, 2009, 3:30 AM

Hi!

On Wed, 25 Feb 2009, Mohamed H. Seddik wrote:

> 
> Hi all
> 
> I need your help urgently, is it poosible to sense or monitor the battery
voltage level by tinyos if yes how, if not can we develope something do this in
tinyos ???

VoltageC (tos/platforms/*/VoltageC.nc) is the component that usually implements
the battery voltage. For MicaZ and Telos the DemoSensorC is wired to VoltageC so
all the demo apps from the Oscilloscope family are actually reporting the
battery voltage. :-)

--
Razvan ME



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

Re: [Tinyos-help] Batter Monitor

2009-02-26 Thread Ittipong Khemapech
Hi,

I think you should search the mail archives and have a look at LPL (Low
Power Listening).

Ittipong

2009/2/27 Mohamed H. Seddik 

> Hi All
>
> How can turn off all the 
> *peripherals*
> ( MCU , Radio,sensor etc ) in the mote. or make put them in a low power
> mode.
>
> and if I put the MCU in sleep power mode. how can it wakes by itself
>
>
>
>  Thanks
>
> Mohamed
>
>
> --- On *Thu, 2/26/09, Razvan Musaloiu-E. * wrote:
>
> From: Razvan Musaloiu-E. 
> Subject: Re: [Tinyos-help] Batter Monitor
> To: "Mohamed H. Seddik" 
> Cc: tinyos-help@millennium.berkeley.edu
> Date: Thursday, February 26, 2009, 3:30 AM
>
> Hi!
>
> On Wed, 25 Feb 2009, Mohamed H. Seddik wrote:
>
> >
> > Hi all
> >
> > I need your help urgently, is it poosible to sense or monitor the battery
> voltage level by tinyos if yes how, if not can we develope something do this 
> in
> tinyos ???
>
> VoltageC (tos/platforms/*/VoltageC.nc) is the component that usually 
> implements
> the battery voltage. For MicaZ and Telos the DemoSensorC is wired to VoltageC 
> so
> all the demo apps from the Oscilloscope family are actually reporting the
> battery voltage. :-)
>
> --
> Razvan ME
>
>
>
> ___
> 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] Battery Monitor

2009-02-26 Thread Mohamed H. Seddik
Low Power Listening is just for Radio

I want to know how to put the whole mote in one of its power modes
idle , power down or power save.

I need my mote to send a message when some event happens and then go for one of 
these modes.
 
but i need to know too in these mode can I still receive messages ???
 

please your help is highly appreciated
 
Thanks 

 
Mohamed

--- On Fri, 2/27/09, Ittipong Khemapech  wrote:

From: Ittipong Khemapech 
Subject: Re: [Tinyos-help] Batter Monitor
To: mhse...@yahoo.com
Cc: tinyos-help@millennium.berkeley.edu
Date: Friday, February 27, 2009, 2:56 AM


Hi,

I think you should search the mail archives and have a look at LPL (Low Power 
Listening).

Ittipong


2009/2/27 Mohamed H. Seddik 






Hi All
 
How can turn off all the peripherals  ( MCU , Radio,sensor etc ) in the mote. 
or make put them in a low power mode.
 
and if I put the MCU in sleep power mode. how can it wakes by itself


 

Thanks  
 
Mohamed

--- On Thu, 2/26/09, Razvan Musaloiu-E.  wrote:

From: Razvan Musaloiu-E. 
Subject: Re: [Tinyos-help] Batter Monitor
To: "Mohamed H. Seddik" 
Cc: tinyos-help@millennium.berkeley.edu
Date: Thursday, February 26, 2009, 3:30 AM


Hi!

On Wed, 25 Feb 2009, Mohamed H. Seddik wrote:

> 
> Hi all
> 
> I need your help urgently, is it poosible to sense or monitor the battery
voltage level by tinyos if yes how, if not can we develope something do this in
tinyos ???

VoltageC (tos/platforms/*/VoltageC.nc) is the component that usually implements
the battery voltage. For MicaZ and Telos the DemoSensorC is wired to VoltageC so
all the demo apps from the Oscilloscope family are actually reporting the
battery voltage. :-)

--
Razvan ME


___
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] modifying software acknowledgements in CC2420ReceiveP Tiny OS-2.x

2009-02-26 Thread Avinash Sridharan
I wanted to change software acknowledgement code in CC2420ReceiveP.nc
. Current the way software acknowledgments work is that CC2420ReceiveP
reads the SACK header (I think 7 bytes) and using the destination
address field generates a software ACK command to the CC2420 chip.
Since by this time the packet is already in the CC2420 buffer the
radio goes ahead and generates an ACK to the sender. CC2420ReceiveP
meanwhile continues to read the remainder of the packet.

I wanted to change above behavior of the software acknowledgement
code. I wanted to send a software ACK after the whole packet is read
in. The way I achieved this, is that disabled the  S_RX_FCF state and
made in the  S_RX_LENGTH state made the code read rxFrameLength bytes
worth of data from CC2420 and made it jump to S_RX_PAYLOAD state. In
this state once the buffer has cleared the fcf check I added the SACK
code as follows:

---
 if ( type == IEEE154_TYPE_DATA ) {
if(call CC2420Config.isAutoAckEnabled() && !call
CC2420Config.isHwAutoAckDefault()) {
if  header->fcf >> IEEE154_FCF_ACK_REQ ) &
0x01) == 1)
&& (header->dest == call
CC2420Config.getShortAddr()
   )
&& ((( header->fcf >>
IEEE154_FCF_FRAME_TYPE ) & 7) == IEEE154_TYPE_DATA)) {
// CSn flippage cuts off our FIFO;
SACK and begin reading again
//call CSN.set();
call CSN.clr();
call SACK.strobe();
call CSN.set();
call CSN.clr();
call CSN.set();
}



--

After making the above changes the code does work but there is a
serious degradation in throughput. On logging the output I started
seeing periodically the retransmission count on some packets was as
high as 40-128 retransmission, which is way to high. With the original
code with the same topology I did not see a retransmission count
higher than 3 to 4 retransmissions.

My conclusion was either my above modifications were incorrect, or
there is a mismatch between the ACK_WAIT_DELAY parameter in CC2420.h
and my current modifications. Earlier the ACK_WAIT_DELAY in CC2420.h
was set to 256 jiffies, since now I am reading the entire packet (~ 40
bytes) I changed this value to 1024 jiffies. With 256 jiffies as well
as 1024 jiffies the retransmission count with the modified code was
still pretty high.

I therefore was looking for some suggestions to understand the mistake
I am making.

Thanks and regards,
Avinash





-- 
Phd Dept. of Electrical Engineering
University of Southern California
http://www-scf.usc.edu/~asridhar
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Custom Mote

2009-02-26 Thread Varun Jain
Hi Anthony,

When you reply, "CC" to the list as well so that if someone else is
searching for the same question they can get an answer straight away
from the archives.


Cheers,

Varun Jain

-Original Message-
From: blueshockzero [mailto:blueshockz...@hotmail.com] 
Sent: Friday, 27 February 2009 12:24 PM
To: Varun Jain
Subject: RE: [Tinyos-help] Custom Mote

Thank you for your help. I now have a place to start.

cheers
Anthony

-Original Message-
From: Varun Jain 
Sent: 2/27/2009 12:32:27 AM
To: Anthony L 
Cc: tinyos-help@millennium.berkeley.edu

Subject: RE: [Tinyos-help] Custom Mote


Hi Anthony,

 

You would want to start with "Creating a new platform directory" and
define your platform like other platforms which you can see in
/tos/platforms/ You should also go through the following link.

 

http://docs.tinyos.net/index.php/Platform_Creation_and_Testing

 

 

Next thing you should do is go through each of the tutorial defined
here: http://docs.tinyos.net/index.php/TinyOS_Tutorials  . Once you get
most of them working (more important ones are Radio communication,
serial communication, sensor readings) then you should be ready to build
your application(s).

 

 

 

Cheers,

 

Varun Jain

 

From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of
Anthony L
Sent: Thursday, 26 February 2009 5:49 PM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Custom Mote

 

Dear all,

I am new to TinyOS and OS for embeded systems in general.  I have
currently been asked to undertake a project to port TinyOS to a custom
sensor modual which is using the TI MSP430 series microprocessor.
Looking through the tutorials, I see that compilation for applications
is done for specific motes.

Could anyone give me advice as to where to start with this project?

Thanks
Anthony



See all the ways you can stay connected to friends and family
 


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


[Tinyos-help] sudo apt-get install tinyos ERROR

2009-02-26 Thread Varun Jain
Hi,

 

I have been working on Cygwin for some time and I have got all the
things working in that environment with T-2.0.2 . But now, I intend to
start working on "BLIP" , thus I have installed a VMware WorkStation and
installed latest Debian on it as I understand that we cannot add tap/tun
interface in cygwin. I was trying to install "Tinyos" on Debian-4 (the
latest release 5) and I am facing some errors.

 

I did the first two steps defined in
http://docs.tinyos.net/index.php/Installing_TinyOS_2.1#Two-step_install_
on_your_host_OS_with_Debian_packages i.e adding the following line in
sources.list

 

deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hardy main
 
then...
 
sudo apt-get update
 
 
These two things worked fine but when I do "sudo apt-get install tinyos"
I get the following errors:
 
TinyOS:/home/varun# sudo apt-get install tinyos
Reading package lists... Done
Building dependency tree... Done
Package tinyos is a virtual package provided by:
  tinyos-2.1.0 2.1.0-20080807
  tinyos-2.0.2 2.0.2-20080807
You should explicitly select one to install.
E: Package tinyos has no installation candidate
 
 
Then I selected t-2.1.0 and it still gave the error:
 
TinyOS:/home/varun# sudo apt-get install tinyos-2.1.0
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
 
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
  tinyos-2.1.0: Depends: tinyos-required but it is not going to be
installed
E: Broken packages
 
 
 

Can someone suggest what could be the problem??

 

 

Cheers,

 

Varun Jain

 

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

[Tinyos-help] need your help

2009-02-26 Thread Mohamed H. Seddik





 






Low Power Listening is just for Radio

I want to know how to put the whole mote in one of its power modes
idle , power down or power save.

I need my mote to send a message when some event happens and then go for one of 
these modes.
 
but i need to know too in these mode can I still receive messages ???
 

please your help is highly appreciated
 
Thanks 

 
Mohamed

--- On Fri, 2/27/09, Ittipong Khemapech  wrote:

From: Ittipong Khemapech 
Subject: Re: [Tinyos-help] Batter Monitor
To: mhse...@yahoo.com
Cc: tinyos-help@millennium.berkeley.edu
Date: Friday, February 27, 2009, 2:56 AM


Hi,

I think you should search the mail archives and have a look at LPL (Low Power 
Listening).

Ittipong


2009/2/27 Mohamed H. Seddik 






Hi All
 
How can turn off all the peripherals  ( MCU , Radio,sensor etc ) in the mote. 
or make put them in a low power mode.
 
and if I put the MCU in sleep power mode. how can it wakes by itself


 

Thanks  
 
Mohamed

--- On Thu, 2/26/09, Razvan Musaloiu-E.  wrote:

From: Razvan Musaloiu-E. 
Subject: Re: [Tinyos-help] Batter Monitor
To: "Mohamed H. Seddik" 
Cc: tinyos-help@millennium.berkeley.edu
Date: Thursday, February 26, 2009, 3:30 AM 


Hi!

On Wed, 25 Feb 2009, Mohamed H. Seddik wrote:

> 
> Hi all
> 
> I need your help urgently, is it poosible to sense or monitor the battery
voltage level by tinyos if yes how, if not can we develope something do this in
tinyos ???

VoltageC (tos/platforms/*/VoltageC.nc) is the component that usually implements
the battery voltage. For MicaZ and Telos the DemoSensorC is wired to VoltageC so
all the demo apps from the Oscilloscope family are actually reporting the
battery voltage. :-)

--
Razvan ME


___
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] HPLPowerManagement

2009-02-26 Thread Mohamed H. Seddik
I can not find HPLPowerManagement component nor PowerManagement interface in 
tinyos 2
please your help 



 
 
Mohamed

--- On Thu, 2/26/09, Michael Schippling  wrote:

From: Michael Schippling 
Subject: Re: [Tinyos-help] Batter Monitor
To: mhse...@yahoo.com
Cc: tinyos-help@millennium.berkeley.edu
Date: Thursday, February 26, 2009, 4:10 AM

Look at the Voltage components in the various platform directories
MS

Mohamed H. Seddik wrote:
> Hi all
>  I need your help urgently, is it poosible to sense or monitor the battery
voltage level by tinyos if yes how, if not can we develope something do this in
tinyos ???
>  Mohamed
> 
> 
> 
> 
> 
> ___
> 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] How to do one-hop time synchronization ?

2009-02-26 Thread lei lu
Hi All,

I'd like to do system time synchronization between transmitter and receiver.
Does anyone know how to do that?
Or is there any documents guiding me how to do that?

Thanks in advance.

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

Re: [Tinyos-help] How to do one-hop time synchronization ?

2009-02-26 Thread Allan McInnes
You might start by looking at the Flooding Time Synchronization  
Protocol (FTSP). You can find info on it at 
http://docs.tinyos.net/index.php/FTSP

Allan


On 27/02/2009, at 4:40 PM, lei lu wrote:

> Hi All,
>
> I'd like to do system time synchronization between transmitter and  
> receiver. Does anyone know how to do that?
> Or is there any documents guiding me how to do that?
>
> Thanks in advance.
>
> Lei
>
> ___
> 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] need your help

2009-02-26 Thread Urs Hunkeler
Hi Mohamed,

I suggest you read the tutorials, e.g. this one:
http://docs.tinyos.net/index.php/Writing_Low-Power_Applications

The processor is automatically put into low-power mode when no task is 
scheduled to execute. Some of the sensors are inactive when not actively 
used, others you have to manually turn off (they provide in this case 
the SplitControl or a similar interface).

Cheers,
Urs

Mohamed H. Seddik wrote:
> Low Power Listening is just for Radio
> 
> I want to know how to put the whole mote in one of its power modes
> idle , power down or power save.
> 
> I need my mote to send a message when some event happens and then go for one 
> of these modes.
>  
> but i need to know too in these mode can I still receive messages ???
>  
> 
> please your help is highly appreciated
>  
> Thanks 
> 
>  
> Mohamed
> 
> --- On Fri, 2/27/09, Ittipong Khemapech  wrote:
> 
> From: Ittipong Khemapech 
> Subject: Re: [Tinyos-help] Batter Monitor
> To: mhse...@yahoo.com
> Cc: tinyos-help@millennium.berkeley.edu
> Date: Friday, February 27, 2009, 2:56 AM
> 
> 
> Hi,
> 
> I think you should search the mail archives and have a look at LPL (Low Power 
> Listening).
> 
> Ittipong
> 
> 
> 2009/2/27 Mohamed H. Seddik 
> 
> 
> 
> 
> 
> 
> Hi All
>  
> How can turn off all the peripherals  ( MCU , Radio,sensor etc ) in the mote. 
> or make put them in a low power mode.
>  
> and if I put the MCU in sleep power mode. how can it wakes by itself
> 
> 
>  
> 
> Thanks  
>  
> Mohamed
> 
> --- On Thu, 2/26/09, Razvan Musaloiu-E.  wrote:
> 
> From: Razvan Musaloiu-E. 
> Subject: Re: [Tinyos-help] Batter Monitor
> To: "Mohamed H. Seddik" 
> Cc: tinyos-help@millennium.berkeley.edu
> Date: Thursday, February 26, 2009, 3:30 AM 
> 
> 
> Hi!
> 
> On Wed, 25 Feb 2009, Mohamed H. Seddik wrote:
> 
>> Hi all
>>
>> I need your help urgently, is it poosible to sense or monitor the battery
> voltage level by tinyos if yes how, if not can we develope something do this 
> in
> tinyos ???
> 
> VoltageC (tos/platforms/*/VoltageC.nc) is the component that usually 
> implements
> the battery voltage. For MicaZ and Telos the DemoSensorC is wired to VoltageC 
> so
> all the demo apps from the Oscilloscope family are actually reporting the
> battery voltage. :-)
> 
> --
> Razvan ME
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help