[Tinyos-help] Difference between ActiveMessageC and Ieee154MessageC

2010-07-14 Thread Hari Hara Sudhan R
Hi All,

I'm trying to use IPBaseStation code available in apps/IPBaseStation

I find that RadioSend of IPBaseStation  is wired to Ieee154MessageC.

Why ActiveMessageC is not used here?

What is the difference between ActiveMessageC  and Ieee154MessageC.

Thanks and Regards,
Hari Hara Sudhan R
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] able to get the first packet but not the rest..........

2006-10-02 Thread Hari Hara Sudhan








I
believe that the problem is with your TOS message Buffer.

 

Try
this the code which resides in MOTE1 will be having this event

 

event
TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m) 

{

}

 

This
event returns a TOS_MsgPtr which is used to receive the next message.

 

event
TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m) 

{

 return m;

}

 

If
you are not returning the TOS_MSgPtr you may receive the first message, but you
will not receive any further messages

 

Hope
this helps

 

Regards,

R.Hari
Hara Sudhan

 

 

Date:
Sun,
 1 Oct 2006 17:32:32
+0530

From:
"primalfear 69"
<[EMAIL PROTECTED]>

Subject:
[Tinyos-help] able to get the first packet but not
the

  rest..

To:
tinyos-help 

Message-ID:

  <[EMAIL PROTECTED]>

Content-Type:
text/plain; charset="iso-8859-1"

 

hello
everyone,

 

   again in
need of u guys help:)

i
am using tinyos 1.1.0 mica2 under windows. i use MIB510 programmer.

 

my
program does the following...

MOTE1
gets data from uart and transmits it to the MOTE 2
via radio. mote2

receives
the data via radio and does some changes and then sends back to the

MOTE1
via radio

 

i
am able to send many a packet of data from* mote1*... but only

able to
get the first packet and not able to get 
the rest from *MOTE2*

 

 //

i
am using two motes one (*MOTE1*) is used to get data (a fixed number of

data..as
of now its 10) from uart and the other one
*(MOTE2)*is

programmed
with genericbase. although
there is a slight change in

genericbase
code

(instead of sending to the uart
(when the mote is receiving data from the

radio) i am again sending the data to the radio. problem is

here.)

//

 

Regards

primalfear






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

[Tinyos-help] Help regarding the CC1000RadioM module

2006-09-18 Thread Hari Hara Sudhan








Hello Everyone,

 

I went through the cc1000RadioM module.

 

In that module I could find statements like

 

call SpiByteFifo.enableIntr();




call SpiByteFifo.disableIntr();

 

Why are these interrupts disabled? In what situations we
have to disable the interrupts?

 

Please help me regarding this

 

Hari Hara Sudhan.R






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

[Tinyos-help] RE: Tinyos-help Digest, Vol 41, Issue 74

2006-09-18 Thread Hari Hara Sudhan
Hello every one,

I want to do Byte level radio transmission and reception.

My receiver application receives some junk data and I could not check
whether my transmitter is sending the data correctly.

Please help me if any one has done this before.

Hari Hara Sudhan

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


[Tinyos-help] Help regarding the Transmission of data

2006-09-15 Thread Hari Hara Sudhan








Hello every one,

 

Im doing a project in which the sensor mote is connected to
a RS232 device.

 

Sensor is having these properties.

 

Baud rate-1200 bps

Stop bit-1

Parity-none

Flow control-none

 

I have initialized the Mote UART by

 

  async
command result_t UART.init()
{

 

    \\ set baud rate to
1200

    outp(767>>8, UBRR0H);

    outp(767&0xff,
UBRR0L);    

 

    \\ set double mode

    outp((1<    

 

  

   \\
 set  7 data bits and 1 stop bit

    outp(((1
<< UCSZ1) | (0 << UCSZ0)) , UCSR0C);   

    outp(((1
<< RXCIE) | (1 << TXCIE) | (1 << RXEN) | (1 << TXEN))
,UCSR0B);

    

    return SUCCESS;

  }

 

Now I have got the data from the RS232 device and broad cast
it to all other motes.

 

The base mote which is connected to the system gets the data
from the TOS Message and prints it on the terminal

 

Unfortunately, I couldn’t get all the data some data
is missing.

 

Is this because there is some mismatch in baud rate.

 

Please help me regarding this

 

Hari Hara Sudhan

 

    

 

 

 

 






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

[Tinyos-help] Swapping TOS message buffer Problem

2006-09-06 Thread Hari Hara Sudhan








Hi every one,

 

I have a problem with swapping tos
message buffer

 

I have to develop an application which has to receive a TOS
Message through air and then Broad cast the message.

 

The code is

   

   TOS_MsgPtr msg_buff;

 

    event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m)

    {

    TOS_MsgPtr tmp=msg_buff;

       

    msg_buff=m;

    

    call Leds.greenToggle();

    

    post SendData();

    

    return tmp;    

    }

 

Basically im performing the buffer swap operation. But the
problem is I can receive only the first Message.

 

I think there is some problem with the buffer swap. Can any
one please help me regarding this.

 

Thanking you in advance

 

R.Hari Hara Sudhan

 






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

[Tinyos-help] "PROGRAMMER NOT RESPONDING" ERROR

2006-07-19 Thread Hari Hara Sudhan








Hi every one,

    I’m using MOTE WORKS 2.0.

  
 iam using MIB510 Programming board and mica2 motes.

   
i have set the baud
rate to be 57600 

when I try to upload the code into mote flash memory, I get
an error “PROGRAMMER NOT RESPONDING”.

when I tried with different mica2 motes, I get the error “DEVICE
NOT RESPONDING”.

 

Please help me get out of this problem

 

Thank you in advance.

 

Hari Hara Sudhan.

 

 

 






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

[Tinyos-help] query regarding attruse interface

2006-07-04 Thread Hari Hara Sudhan








Hi every one,

 

What is the equivalent of attruse interface available in
tiny os 2.x?

 

Thank you in advance

 

Hari hara sudhan

 






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


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

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

I went through your programming manual.

And in chapter4 I found this following example.

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

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

Thank you

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

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

> Hi every one
>
> I am new to tiny os and nesC.
>
> I want to know the diference between the following two stmts.
>
> Event void timer.fired() and Async void timer.fired().
>
> Thank you in advance.
The TinyOS programming manual goes into the difference (Chapter 4).  
You can download it from:

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

Phil

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


[Tinyos-help] difference between events and async events

2006-06-28 Thread Hari Hara Sudhan








Hi every one

I am new to tiny os and nesC.

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

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

Thank you in advance.

 

 

 






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