Re: [Tinyos-help] how to display the current time in Tinyos2.x

2009-11-14 Thread Ittipong Khemapech
Hi,

TEP102 @
http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep102.htmlwould
help.

Ittipong

2009/11/14 wafa jaballah 

> Hello,
>
> I'd like to display the current time information in  TinyOS2.x.
>  I know in TinyOS1.x,such information could be given as below can do this.
>call Sender.generate(0,tos_state.tos_time/1000,&packet)
>
> But in TinyOS2.x,I don't known how to access the current time  information
> besides using t.time().
>   But I hope the current time  information could be a parameter of this
> function .Can anybody tell me how can i do this?
>
> Thanks
>
>
> --
> Wafa Ben Jaballah
>
>
> ___
> 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] Transmission power adjusting

2009-11-11 Thread Ittipong Khemapech
Have a look at the commands provided by the CC2420Packet interface. I think
you should have also measured the RSSI.

Ittipong


2009/11/11 Alfred NOBEL 

> How can I check this?
> The distance is about 2m +  obstacles.
>
>
> 2009/11/11 Ittipong Khemapech 
>
>> Did you check that the sending mote actually transmitted at TX = 3? What's
>> the distance between them?
>>
>>
>> Ittipong
>>
>>
>> 2009/11/11 Alfred NOBEL 
>>
>>> Hi,
>>>
>>> I compute the BER based on packet reception ratio between two nodes.
>>>
>>> 2009/11/11 Ittipong Khemapech 
>>>
>>> Hi,
>>>>
>>>> How did you justify the link quality? Which metrics did you used?
>>>> Topology?
>>>>
>>>> Ittipong
>>>>
>>>>
>>>> 2009/11/11 Alfred NOBEL 
>>>>
>>>>> Hi all,
>>>>> I would like to adjust the Transmission power of all sent packets. To
>>>>> do, I added this line in the makefile: CFLAGS += -DCC2420_DEF_RFPower=3 
>>>>> (low
>>>>> transmission power of CC2420 compatible platforms)
>>>>>
>>>>> However, I think that this command didn't work as expected because
>>>>> links connectivity stays excellent.
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Alfred.Nooobel
>>>>>
>>>>> ___
>>>>> Tinyos-help mailing list
>>>>> Tinyos-help@millennium.berkeley.edu
>>>>>
>>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Alfred.Nooobel
>>>
>>
>>
>
>
> --
> Best regards,
> Alfred.Nooobel
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Transmission power adjusting

2009-11-11 Thread Ittipong Khemapech
Did you check that the sending mote actually transmitted at TX = 3? What's
the distance between them?

Ittipong


2009/11/11 Alfred NOBEL 

> Hi,
>
> I compute the BER based on packet reception ratio between two nodes.
>
> 2009/11/11 Ittipong Khemapech 
>
> Hi,
>>
>> How did you justify the link quality? Which metrics did you used?
>> Topology?
>>
>> Ittipong
>>
>>
>> 2009/11/11 Alfred NOBEL 
>>
>>> Hi all,
>>> I would like to adjust the Transmission power of all sent packets. To do,
>>> I added this line in the makefile: CFLAGS += -DCC2420_DEF_RFPower=3 (low
>>> transmission power of CC2420 compatible platforms)
>>>
>>> However, I think that this command didn't work as expected because links
>>> connectivity stays excellent.
>>>
>>> --
>>> Best regards,
>>> Alfred.Nooobel
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>
>
> --
> Best regards,
> Alfred.Nooobel
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Transmission power adjusting

2009-11-11 Thread Ittipong Khemapech
Hi,

How did you justify the link quality? Which metrics did you used? Topology?

Ittipong


2009/11/11 Alfred NOBEL 

> Hi all,
> I would like to adjust the Transmission power of all sent packets. To do, I
> added this line in the makefile: CFLAGS += -DCC2420_DEF_RFPower=3 (low
> transmission power of CC2420 compatible platforms)
>
> However, I think that this command didn't work as expected because links
> connectivity stays excellent.
>
> --
> Best regards,
> Alfred.Nooobel
>
> ___
> 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] Send a packet to itself

2009-10-14 Thread Ittipong Khemapech
Are you trying to get some measurements conducted by some components such as
CC2420 _BUT_ you don't know how to get those data directly?

Ittipong

2009/10/14 Raffaele Gravina 

> I think there's no way you can send something to yourself without any
> "mirror" node (and, btw, why you should need that if you already have the
> info you would like to receive?).The CC2420 can either receive or
> transmit, but can't do both at the same time.
>
> - raffaele
>
> 2009/10/14 
>
>> Hi,
>>
>> I am using TinyOS-2.x.
>>
>> I am trying to send a packet from a node to itself.
>> I tried
>> AMSend(TOS_NODE_ID, &pkt, sizeof(PKT));
>> but the node didn't receive anything.
>>
>> I installed another mote with the same exact program, but changed sending
>> part to
>> AMSend("id of the first mote", &pkt, sizeof(PKT));
>> and confirmed that the first node is receiving the packet from the second
>> mote.
>> This means that the sending and receiving part is fine.
>>
>> So, I think the problem is that AMSend does not send a packet to the
>> sending node.
>> Is there any way to send a packet to the sending node?
>> What should the first argument of the AMSend be??
>>
>> Thank you in prior:)
>>
>>
>> Kenji
>>
>>
>> --
>> GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
>> http://pr.mail.yahoo.co.jp/gyao/
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Raffaele Gravina | Research Engineer
>
> Wireless Sensor Networks Lab Berkeley
> 2000 Hearst Ave, suite 304
> Berkeley, CA 94709
> +1 510 666 0174 ext. 101
>
> ___
> 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] (no subject)

2009-10-07 Thread Ittipong Khemapech
Hi,

Depends upon which radio you're using. Have a look at the data sheet.
Radio's buffering capacity and don't forget about the header.

Ittipong

2009/10/7 David Rodenas Herráiz 

>  Hi
>
> What it the maximum value for TOSH_DATA_LENGTH on TinyOS 2.x?
>
> Regards
>
> David
>
> --
> ¿Para qué descargarte juegos, si tienes los más divertidos online? Entra
> ya en Juegos y prepárate para muchas horas de 
> diversión
>
> ___
> 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] reg the transmission power

2009-09-30 Thread Ittipong Khemapech
Please also cc your question to the list as the others may be experiencing
the same troubles.

I've switched to TinyOS 2 for years. Just dig up the archives how to get
RSSI in TinyOS 1. The measurement is signed integer. Then take 45 out of it
to get RSSI.

Ittipong

2009/9/29 Siva Sankar Gupta 

> Hello Ittipong,
>
> One more question, I'm doing following in order to convert RSSI to dBm. I'm
> using TinyOS1.x on Windows platform with Telosb nodes.
>
> char signal_strength[100]; //variable to store the signal strength of 100
> messages from the source
>
> signal_strength = (signed char)msg->strength - 45; //where 45 is the offset
> as mentioned in the CC2420 data sheet
>
> Is this the right way to obtain the value of RSSI in dBm?
>
> Excuse me if there is anything wrong in the question....!!!!!
>
> with regards
> Siva
>
> 2009/9/29 Ittipong Khemapech 
>
> yes
>>
>> 2009/9/29 Siva Sankar Gupta 
>>
>> Hello Ittipong,
>>>
>>> You mean the battery power level has nothing to do with the tx power
>>> level... Once the power level is fixed in the code it remains same right?
>>>
>>> with regards
>>> Siva
>>>
>>> 2009/9/28 Ittipong Khemapech 
>>>
>>>> Hi,
>>>>
>>>> I don't think the CC2420 can adapt tx power itself.
>>>>
>>>> Ittipong
>>>>
>>>>
>>>> 2009/9/28 Siva Sankar Gupta 
>>>>
>>>>> Hello Everyone,
>>>>>
>>>>> I have a doubt regarding the tx power of the tmote sky nodes. If the tx
>>>>> power level is set to 31 and is it possible that if the battery power is
>>>>> less, then does the tx power remains same as 31 or will it decrease?
>>>>>
>>>>> with regards
>>>>> --
>>>>> Siva Sankar Gupta Guggilum
>>>>> Schubertstraße 19
>>>>> Klagenfurt,9020
>>>>> Austria
>>>>> Ph:- 0043 6606871071
>>>>>
>>>>> ___
>>>>> Tinyos-help mailing list
>>>>> Tinyos-help@millennium.berkeley.edu
>>>>>
>>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Siva Sankar Gupta Guggilum
>>> Schubertstraße 19
>>> Klagenfurt,9020
>>> Austria
>>> Ph:- 0043 6606871071
>>>
>>
>>
>
>
> --
> Siva Sankar Gupta Guggilum
> Schubertstraße 19
> Klagenfurt,9020
> Austria
> Ph:- 0043 6606871071
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] reg the transmission power

2009-09-29 Thread Ittipong Khemapech
yes

2009/9/29 Siva Sankar Gupta 

> Hello Ittipong,
>
> You mean the battery power level has nothing to do with the tx power
> level... Once the power level is fixed in the code it remains same right?
>
> with regards
> Siva
>
> 2009/9/28 Ittipong Khemapech 
>
>> Hi,
>>
>> I don't think the CC2420 can adapt tx power itself.
>>
>> Ittipong
>>
>>
>> 2009/9/28 Siva Sankar Gupta 
>>
>>> Hello Everyone,
>>>
>>> I have a doubt regarding the tx power of the tmote sky nodes. If the tx
>>> power level is set to 31 and is it possible that if the battery power is
>>> less, then does the tx power remains same as 31 or will it decrease?
>>>
>>> with regards
>>> --
>>> Siva Sankar Gupta Guggilum
>>> Schubertstraße 19
>>> Klagenfurt,9020
>>> Austria
>>> Ph:- 0043 6606871071
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>
>
> --
> Siva Sankar Gupta Guggilum
> Schubertstraße 19
> Klagenfurt,9020
> Austria
> Ph:- 0043 6606871071
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] reg the transmission power

2009-09-28 Thread Ittipong Khemapech
Hi,

I don't think the CC2420 can adapt tx power itself.

Ittipong


2009/9/28 Siva Sankar Gupta 

> Hello Everyone,
>
> I have a doubt regarding the tx power of the tmote sky nodes. If the tx
> power level is set to 31 and is it possible that if the battery power is
> less, then does the tx power remains same as 31 or will it decrease?
>
> with regards
> --
> Siva Sankar Gupta Guggilum
> Schubertstraße 19
> Klagenfurt,9020
> Austria
> Ph:- 0043 6606871071
>
> ___
> 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] Received power in telosb nodes

2009-09-24 Thread Ittipong Khemapech
You should have a look at the data sheet. For example, CC2420, take 45 out
of the measured value to get the RSSI in dBm. Not sure how to convert to
Watts.

Ittipong

2009/9/24 Siva Sankar Gupta 

> Hello,
>
> Thanks for your reply..
> How to convert this RSSI (8-bit value) into milliWatts or Watts..Is there
> any equation to get this value?
>
> with regards
> Siva Guggilum
>
> 2009/9/23 Ittipong Khemapech 
>
>> Hi,
>>
>> Maybe RSSI (Received Signal Strength Indicator) is the answer. It can be
>> obtained by calling CC2420Packet.getRssi(msg).
>>
>> Hope this helps.
>>
>> Ittipong
>>
>>
>> 2009/9/23 Siva Sankar Gupta 
>>
>>> Hello Everyone,
>>>
>>> I have a doubt regarding the received power in telosb nodes.
>>> Is there any interface or procedure to get the value of received power in
>>> telosb nodes as we have for the transmitted power?
>>>
>>>
>>> with regards
>>> --
>>> Siva Sankar Gupta Guggilum
>>> Schubertstraße 19
>>> Klagenfurt,9020
>>> Austria
>>> Ph:- 0043 6606871071
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>
>
> --
> Siva Sankar Gupta Guggilum
> Schubertstraße 19
> Klagenfurt,9020
> Austria
> Ph:- 0043 6606871071
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Received power in telosb nodes

2009-09-23 Thread Ittipong Khemapech
Hi,

Maybe RSSI (Received Signal Strength Indicator) is the answer. It can be
obtained by calling CC2420Packet.getRssi(msg).

Hope this helps.

Ittipong


2009/9/23 Siva Sankar Gupta 

> Hello Everyone,
>
> I have a doubt regarding the received power in telosb nodes.
> Is there any interface or procedure to get the value of received power in
> telosb nodes as we have for the transmitted power?
>
>
> with regards
> --
> Siva Sankar Gupta Guggilum
> Schubertstraße 19
> Klagenfurt,9020
> Austria
> Ph:- 0043 6606871071
>
> ___
> 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] rssi value

2009-09-10 Thread Ittipong Khemapech
Please dig up the archives. There are a lot of replies regarding this issue.
Some radio such as CC1000  do not provide the LQI.

Ittipong


2009/9/10 subaashini krishnamoorthy 

>
> hi all
> can any one please tell how to get RSSI and LQI valuues of a packet in tiny
> OS 1.x?
>  Thanking u
>
>
>
>
> ___
> 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] max length of message

2009-07-23 Thread Ittipong Khemapech
It depends upon the radio model you are using. I have dug up the archives
and found a reply from Joe Palastre. The max length (radio buffering
capacity) for CC1000 is 256 bytes whilst it is equal to 128 for the CC2420.

You can also have a look at the radio chip data sheet.

Also, I think that you were talking about the "default" *not* "max" length.
You should follow Faisal's reply.

Hope this helps.
Ittipong

2009/7/23 Faisal Aslam 

> I think the maximum will be 256. It is because according to TEP 111 the
> length field is one byte long. However, in practice you might not be
> able to send packets that long because of RAM constraints.
> By default it send packet of payload length 28. You can increase it by
> setting TOSH_DATA_LENGTH at compile time.
> I suggest do not change it at runtime but only compile time.
> In your application Makefile add CFLAGS += -DTOSH_DATA_LENGTH=110 to
> increase length to 110.
>
> best regards,
> Faisal
>
> chikh omar wrote:
> > what is the maximum length of message that we can send over the radio
> > using AMsend(...)? and How to do if we which to send more than this max?
> >
> >
> > ***
> > Omar Cheikhrouhou
> > **Engineer & Researcher @SENS Lab (Software Engineering and Network
> > Security)
> > Higher Institute of Technological Studies - Address : Mahdia's road Km
> > 2.5 Sfax. BP 88 A - 3099 El Bustan Sfax Telephone : (+216)74 237425
> > Poste : 437**  **Fax: : (+216)74 431 386*
> >
> > *Ph.D @ CES Lab (Computer and Embedded System)-University of Sfax,
> > National School of Engineers BP W, Sfax, 3038, Tunisia ,
> > Fax:(+216)74665369 ** *
> >
> > *Coordinator C2i @ ISET Sfax (Certified C2i since 2008)*
> >
> >
> > 
> >
> > ___
> > 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 mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Output power (dBm) & Current Consumption (mA)

2009-06-18 Thread Ittipong Khemapech
Hi all,

I have been through the output programming in the CC2420 data sheet. What
are the relationships (if any) between output power (dBm) and current
consumption (mA)? For example, the current consumption required for the
output power of -25 and 0 dBm are 8.5 and 17.4 mA, respectively.

The -25 and 0 dBm are approximately equivalent to 3 and 1,000 micro-watts.
Do they demonstrate the power strength of the generated signal? I am
wondering why a 100% increase in current consumption (8.5 to 17.4 mA)
provides more than 300 times increase (3 to 1,000 micro-watts) in the signal
strength.

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

Re: [Tinyos-help] CC2420 turn off

2009-06-02 Thread Ittipong Khemapech
I think I get it. When do you "call RadioControl.stop()"? I am not sure if
you call it within sendDone() event. So when the radio is stopped, you start
the timer and it fires in the next 5 seconds. In the Timer.fired(), the
radio is started to send again.

Ittipong


2009/6/2 Ana de Pablo 

>
> I'm using SplitControl as RadioControl, when the applications runs, it
> starts
> the radio using "call RadioControl.start();", then it sends the packets and
> my goal is to stop the radio after sending it. I'm using a periodic timer
> of
> 5 sec, so it is suppossed to start, send the packet and then stop each 5
> seconds, but what I have is the radio on for 5 seconds and then the radio
> off for another 5 seconds, so I'm missing half of the packets.
> I hope you will understand my explanation. Thank you.
>
> --
> View this message in context:
> http://www.nabble.com/CC2420-turn-off-tp23831534p23831909.html
> Sent from the TinyOS - Help mailing list archive at Nabble.com.
>
> ___
> 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] CC2420 turn off

2009-06-02 Thread Ittipong Khemapech
Hi,

I think it's a good idea if you could tell us what you have got from using
the SplitControl (and what exactly you are expecting).

Ittipong


2009/6/2 Ana de Pablo 

>
> Hello everyone,
>
> I'm working with telosb, 6lowpan and Ubuntu. I need to turn off the radio
> to
> reduce the power consumption, but LPL doesn't work with the applications
> (UDPEcho from blip), does anyone know how could I stop the radio? I've
> trying to do it with the interface SplitControl, but it isn't working as I
> expected.
>
> Thanks in advance!
>
> Ana.
> --
> View this message in context:
> http://www.nabble.com/CC2420-turn-off-tp23831534p23831534.html
> Sent from the TinyOS - Help mailing list archive at Nabble.com.
>
> ___
> 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] How to synchronize two nodes??

2009-05-22 Thread Ittipong Khemapech
Hi,

You should google "Time Synchronisation Protocol for WSNs" There are quite a
lot of contributions out there.

Ittipong


2009/5/22 Fahad Al-Jabarti 

>  Hi all,,
> I'm working on telosb motes, the problem I'm facing is that i need to make
> motes wake up and sleep and the same time, so that
> one mote sends and the other one receives at listen times of both of
> them...
>
> I can make periodic listen and sleep for each one of them but i don't know
> how to synchronize both of them to start their periodic listen and sleep
> together at the same time.
>
>
> Any help with the interfaces that can do that 
>
>
>
> Fahad
>
> --
> check out the rest of the Windows Live™. More than mail–Windows Live™ goes
> way beyond your inbox. More than 
> messages
>
> ___
> 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] Sending data in line protocol

2009-05-20 Thread Ittipong Khemapech
Hi Ruben,

Ah, many thanks! Totally missed that. I was thinking about the routing
protocols provided in TinyOS.

Thanks again,
Ittipong


2009/5/20 Ruben Catteeuw 

>  Hi,
>
> Why not just use a moteID for every node?
> Node 1 only addresses to 2. Node 2 upon receiving from node 1 addresses to
> 3, and so on.
>
> regards
>
> Ruben
>
> --
> Date: Wed, 20 May 2009 14:35:59 +0100
> From: ik.tin...@googlemail.com
> To: tinyos-help@millennium.berkeley.edu; ik.tin...@googlemail.com
> Subject: Re: [Tinyos-help] Sending data in line protocol
>
> Ummm. May I change the subject to "Sending data in a line TOPOLOGY"
>
> Ittipong
>
>
> 2009/5/20 Ittipong Khemapech 
>
> Hi all,
>
> I have been reading the S-MAC protocol (
> http://www.isi.edu/div7/publication_files/tr-567.pdf).
>
> In the experimentation part, a line topology consisting of 11 nodes is used
> for evaluation.
>
>
> 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10
> > 11
>
>
> Node1 is source and Node11 is sink. The message is sent from the source,
> forwarded by the 9 intermediate nodes and then received by the sink.
>
> The minimum transmission power is used and the nodes are put in a 1-meter
> space.
>
> I need to repeat this experiment but I have no idea where to start. My
> question is how the message is forced to visit every node on the way to the
> sink.
>
> Hope to hear from you very soon.
>
> Thanks,
>
> Ittipong
>
>
>
> --
> Lentekriebels? Speel samen met je vrienden de spelletjes die Windows Live
> je aanbiedt! <http://www.messengerbillboard.be/nl/play>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Sending data in a line topology

2009-05-20 Thread Ittipong Khemapech
Hi all,

I have been reading the S-MAC protocol (
http://www.isi.edu/div7/publication_files/tr-567.pdf).

In the experimentation part, a line topology consisting of 11 nodes is used
for evaluation.


1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10
> 11


Node1 is source and Node11 is sink. The message is sent from the source,
forwarded by the 9 intermediate nodes and then received by the sink.

The minimum transmission power is used and the nodes are put in a 1-meter
space.

I need to repeat this experiment but I have no idea where to start. My
question is how the message is forced to visit every node on the way to the
sink.

Hope to hear from you very soon.

Thanks,

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

Re: [Tinyos-help] Sending data in line protocol

2009-05-20 Thread Ittipong Khemapech
Ummm. May I change the subject to "Sending data in a line TOPOLOGY"

Ittipong


2009/5/20 Ittipong Khemapech 

> Hi all,
>
> I have been reading the S-MAC protocol (
> http://www.isi.edu/div7/publication_files/tr-567.pdf).
>
> In the experimentation part, a line topology consisting of 11 nodes is used
> for evaluation.
>
>
> 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10
> > 11
>
>
> Node1 is source and Node11 is sink. The message is sent from the source,
> forwarded by the 9 intermediate nodes and then received by the sink.
>
> The minimum transmission power is used and the nodes are put in a 1-meter
> space.
>
> I need to repeat this experiment but I have no idea where to start. My
> question is how the message is forced to visit every node on the way to the
> sink.
>
> Hope to hear from you very soon.
>
> Thanks,
>
> Ittipong
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Sending data in line protocol

2009-05-20 Thread Ittipong Khemapech
Hi all,

I have been reading the S-MAC protocol (
http://www.isi.edu/div7/publication_files/tr-567.pdf).

In the experimentation part, a line topology consisting of 11 nodes is used
for evaluation.


1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10
> 11


Node1 is source and Node11 is sink. The message is sent from the source,
forwarded by the 9 intermediate nodes and then received by the sink.

The minimum transmission power is used and the nodes are put in a 1-meter
space.

I need to repeat this experiment but I have no idea where to start. My
question is how the message is forced to visit every node on the way to the
sink.

Hope to hear from you very soon.

Thanks,

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

Re: [Tinyos-help] Options to control TX power

2009-05-18 Thread Ittipong Khemapech
Hi,

The 31 is the maximum value accepted for transmission power setting. The 31
is equivalent to 0 dBm. You should have a look at the CC2420 datasheet.

Ittipong

2009/5/18 David Li 

> Hi,
>
> I am working on Iris mote on Ubuntu 9.10 with Tinyos 2.1. My goal is to
> measure the transmission range under different tx power levels. After
> searching the archive I concluded that I would like to use the following to
> control the tx power:
>
> CC2420.h: #define CC2420_DEF_RFPOWER 31
>
> Questions:
>
> 1. Is this the best option?
> 2. Are there any documentations that specify the numbers that I need to use
> for various power levels? What does "31" mean?
>
> Thanks.
>
>
> ___
> 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] Wake up on Radio receive

2009-05-15 Thread Ittipong Khemapech
To make the mote sleep, the radio is stopped and it can't do the
communication jobs during that time.

Ittipong


2009/5/15 Ruben Catteeuw 

>  Hello,
>
> Sleep mode and always receiving doesn't really fit together...
> Easiest way is to use LPL.
>
> regards
>
> Ruben
>
> --
> Date: Thu, 14 May 2009 20:08:08 -0500
> From: naa...@gmail.com
> To: Tinyos-help@millennium.berkeley.edu
> Subject: [Tinyos-help] Wake up on Radio receive
>
> I would like to program a mote so that its is in always a sleep mode with
> its receiver active. When receiver receives a radio message it shud send
> back a reply to base station.   Is it possible to do this?
>
>
>
> --
> Nagenieten met je vrienden over het laatste reisje of feestje? Maak een
> groepsalbum 
> aan.
>
> ___
> 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] S-MAC Protocol

2009-05-13 Thread Ittipong Khemapech
Credit to om_p:

Here is a link to S-MAC page:
http://www.isi.edu/ilense/software/smac/

Ittipong

2009/5/13 Fahad Al-Jabarti 

>
>
> --
> From: fahad_...@hotmail.com
> To: tinyos-help@millennium.berkeley.edu
> Subject:
> Date: Wed, 13 May 2009 15:45:06 +0300
>
>
> >
> > I need your help, i have a project on WSN where i install S-MAC
> > protocol on sensor nodes.
> >
> > the problem is that i couldn't find any code for any other MAC
> > protocols so that i can understand it and then apply the S-MAC, neither i 
> > found any S-MAC code !!
> >
> >
> > please if u have anything related to this topic i would appreciate it.
> >
> >
> >
> >
> > Regards
> > Fahad
>
>
> --
> Express yourself instantly with MSN Messenger! MSN 
> Messenger
> --
> check out the rest of the Windows Live™. More than mail–Windows Live™ goes
> way beyond your inbox. More than 
> messages
>
> ___
> 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] startOneShot

2009-05-05 Thread Ittipong Khemapech
Start of Frame Delimiter. It's a part of MAC header.

Correct me if I'm wrong.

Ittipong


2009/5/6 Michael Schippling 

> ummmwhat's an SFD?
> MS
>
>
> Philip Levis wrote:
>
>> If there's an SFD before the timer fires, your code will reset the timer
>> to fire. E.g., imagine your mote has an SFD interrupt every 500ms. It will
>> set the timer to fire in 1024ms, the SFD goes again, it will reset the timer
>> to fire in 1024ms, the SFD goes again...
>>
>> I don't know if that's the root of your problem, but it's definitely an
>> issue.
>>
>> Phil
>>
>> On Apr 23, 2009, at 2:42 AM, Ittipong Khemapech wrote:
>>
>>  I start the timer within the receive() event and *nothing* happens. No
>>> packet is transmitted by the source. I'm pretty sure that the radio is on at
>>> that time.
>>>
>>> I posted this problem several weeks ago and still got no reply. That's
>>> why I have to use the InitW2RTimer and it's started in the receivedSFD()
>>> event.
>>>
>>> Anybody got the same experience?
>>>
>>> Thanks,
>>> Ittipong
>>>
>>>
>>> 2009/4/21 Ittipong Khemapech 
>>> It wasn't me asking about the previous Timer questions. Many thanks for
>>> your hints. Will try and get back soon.
>>>
>>> Ittipong
>>>
>>> 2009/4/21 Michael Schippling 
>>>
>>> I guess this is what you were trying to get at in previous
>>> Timer questions, right?
>>>
>>> It looks like it should work the way you want. The only thing
>>> I can see that is questionable is the long atomic {block} for
>>> your message sending in DataSendTimer.fired(). This might
>>> block interrupts for too long.
>>>
>>> I would try to simplify the Timer scheme on it's own, flashing
>>> LEDs or something to see if it works the way you expect, and then
>>> start adding the radio message drivers back in.
>>>
>>> I think you should also be able to use the receive() method instead
>>> of starting your first timer, because it is called after the message
>>> is fully received.
>>>
>>> MS
>>>
>>> Ittipong Khemapech wrote:
>>> Hi,
>>>
>>> I have been trying to figure the problems out for days. No idea what
>>> causes it.
>>>
>>> I have a source receiving a packet from the base station. After the SFD
>>> is received, a timer is called to run to make sure that the reception is
>>> completed. The source waits for a wait_interval duration to send its data
>>> packet. So, another timer is used for timing the transmission.
>>>
>>> I am using AlarmToTimer component. The command startOneShot is called.
>>> What I expect is that the source should send *only after* it receives the
>>> packet from base station. It seems to me that the source keeps sending.
>>>
>>> Look forward to hear from you soon.
>>>
>>> Thanks,
>>> Ittipong
>>>
>>> The codes are as follows:
>>>
>>> MyDef.h
>>> ---
>>>
>>>
>>> #ifndef MYDEF_H_
>>> #define MYDEF_H_
>>>
>>> enum {
>>>  WAIT_TO_RECEIVE = 1024
>>> };
>>>
>>> #endif
>>> ==
>>>
>>> SourceAppC.nc
>>> 
>>>
>>>
>>> #include "MyDef.h"   #include "DataMsg.h"
>>> #include "ControlMsg.h"
>>>
>>> configuration SourceAppC {
>>> }
>>> implementation {
>>>  components MainC;
>>>  components ActiveMessageC;
>>>
>>>  components new AMSenderC(AM_DATAMSG) as AMSenderDataC;
>>>  components new AMReceiverC(AM_CONTROLMSG) as AMReceiverCtrlC;
>>>
>>>  components new Alarm32khz32C() as Alarm2Timer;
>>>  components new AlarmToTimerC(T32khz) as W2RTimer; components
>>> new AlarmToTimerC(T32khz) as SendTimer;
>>>
>>>  components CC2420TransmitC;
>>>  components CC2420ActiveMessageC;
>>>
>>>  components SourceC as App;
>>>
>>>  // Wiring
>>>  App.Boot -> MainC;
>>>
>>>  App.Packet -> AMSenderDataC;
>&g

Re: [Tinyos-help] startOneShot

2009-05-05 Thread Ittipong Khemapech
Many thanks for your reply. It's really the issue and good to know.

Ittipong

2009/5/5 Philip Levis 

> If there's an SFD before the timer fires, your code will reset the timer to
> fire. E.g., imagine your mote has an SFD interrupt every 500ms. It will set
> the timer to fire in 1024ms, the SFD goes again, it will reset the timer to
> fire in 1024ms, the SFD goes again...
>
> I don't know if that's the root of your problem, but it's definitely an
> issue.
>
> Phil
>
>
> On Apr 23, 2009, at 2:42 AM, Ittipong Khemapech wrote:
>
>  I start the timer within the receive() event and *nothing* happens. No
>> packet is transmitted by the source. I'm pretty sure that the radio is on at
>> that time.
>>
>> I posted this problem several weeks ago and still got no reply. That's why
>> I have to use the InitW2RTimer and it's started in the receivedSFD() event.
>>
>> Anybody got the same experience?
>>
>> Thanks,
>> Ittipong
>>
>>
>> 2009/4/21 Ittipong Khemapech 
>> It wasn't me asking about the previous Timer questions. Many thanks for
>> your hints. Will try and get back soon.
>>
>> Ittipong
>>
>> 2009/4/21 Michael Schippling 
>>
>> I guess this is what you were trying to get at in previous
>> Timer questions, right?
>>
>> It looks like it should work the way you want. The only thing
>> I can see that is questionable is the long atomic {block} for
>> your message sending in DataSendTimer.fired(). This might
>> block interrupts for too long.
>>
>> I would try to simplify the Timer scheme on it's own, flashing
>> LEDs or something to see if it works the way you expect, and then
>> start adding the radio message drivers back in.
>>
>> I think you should also be able to use the receive() method instead
>> of starting your first timer, because it is called after the message
>> is fully received.
>>
>> MS
>>
>> Ittipong Khemapech wrote:
>> Hi,
>>
>> I have been trying to figure the problems out for days. No idea what
>> causes it.
>>
>> I have a source receiving a packet from the base station. After the SFD is
>> received, a timer is called to run to make sure that the reception is
>> completed. The source waits for a wait_interval duration to send its data
>> packet. So, another timer is used for timing the transmission.
>>
>> I am using AlarmToTimer component. The command startOneShot is called.
>> What I expect is that the source should send *only after* it receives the
>> packet from base station. It seems to me that the source keeps sending.
>>
>> Look forward to hear from you soon.
>>
>> Thanks,
>> Ittipong
>>
>> The codes are as follows:
>>
>> MyDef.h
>>
>> ---
>>
>> #ifndef MYDEF_H_
>> #define MYDEF_H_
>>
>> enum {
>>  WAIT_TO_RECEIVE = 1024
>> };
>>
>> #endif
>> ==
>>
>> SourceAppC.nc
>>
>> 
>>
>> #include "MyDef.h"   #include "DataMsg.h"
>> #include "ControlMsg.h"
>>
>> configuration SourceAppC {
>> }
>> implementation {
>>  components MainC;
>>  components ActiveMessageC;
>>
>>  components new AMSenderC(AM_DATAMSG) as AMSenderDataC;
>>  components new AMReceiverC(AM_CONTROLMSG) as AMReceiverCtrlC;
>>
>>  components new Alarm32khz32C() as Alarm2Timer;
>>  components new AlarmToTimerC(T32khz) as W2RTimer; components
>> new AlarmToTimerC(T32khz) as SendTimer;
>>
>>  components CC2420TransmitC;
>>  components CC2420ActiveMessageC;
>>
>>  components SourceC as App;
>>
>>  // Wiring
>>  App.Boot -> MainC;
>>
>>  App.Packet -> AMSenderDataC;
>>  App.AMPacket -> AMSenderDataC;
>>  App.AMSend -> AMSenderDataC;
>>  App.Receive -> AMReceiverCtrlC;
>>
>>  App.AMControl -> ActiveMessageC;;
>>
>>  App.InitW2RTimer -> W2RTimer; App.DataSendTimer -> SendTimer;
>>   W2RTimer.Alarm -> Alarm2Timer;
>>  SendTimer.Alarm -> Alarm2Timer;
>>   App.CC2420Packet -> CC2420ActiveMessageC;
>>  App.RadioTimeStamping -> CC2420TransmitC;
>>  App.CC2420Transmit -> CC2420TransmitC;
>> }
>> ===

Re: [Tinyos-help] How to measure PRR?

2009-04-30 Thread Ittipong Khemapech
Hi,

Count the number of sent and received packets. PRR is the ratio between the
received and sent.

Ittipong


2009/4/30 

> I'm working with tinyOS-1.x using micaZ motes and I would like to measure
> the PRR(Packet Reception Rate). How I can get this information?
> Thanks for our help.
> Ben Cheikh Ahlam
> ___
> 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] (no subject)

2009-04-28 Thread Ittipong Khemapech
Hi,

I think it's depends upon which mote (platform) you are using. Check the
specifications. It's all there.

Ittipong


2009/4/27 Taufik,Mohamad Faiz 

>
> Hallo all,
>
> I'm quite new to TinyOS. Right now i'm doing some research for my Thesis. I
> have a couple of general question:
> 1. At what frequency does TinyOS uses? (for example MiWi: 2.4GHz,
> WirelessHart:2.4GHz, EnOcean:868MHz,315MHz)
> 2. What is the coverage? (300m? 500m?)
>
> Sorry if the question very basic, i have to say that it's very difficult to
> find info on TinyOS.
> Thanks for your help!
>
> Regards,
> Taufik
>  --
>  Taufik, Mohamad Faiz
> Hochschule Karlsruhe - Technik und Wirtschaft
> University of Applied Sciences
> Fakultät für Elektro- und Informationstechnik
> Moltkestr. 30
> 76133 Karlsruhe
> Tel. +4917660895630
>  --
>
>
>
> ___
> 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] Timestamp

2009-04-28 Thread Ittipong Khemapech
Please post to the mailing list. I'm afraid that I can't help you with this.

Thanks,
Ittipong


2009/4/28 Marc Romera 

> I have runned now and when I wrote make m2110 (I had already installed
> before) the PN2 show me the following error:
>
> #
> ide.pl Ver:$Id: ide.pl,v 1.1.2.1 2006/05/29 07:22:52 lwei Exp $
> Executing: /opt/MoteWorks/apps/timestamp/ bash -c "make m2110"
> make: *** No rule to make target `m2110'.  Stop.
>
> 2009/4/28 Ittipong Khemapech 
>
> Have you run it? If not, do not touch it and run to see the result.
>> Otherwise, post the errors and warnings to the mailing list.
>>
>> Ittipong
>>
>>
>> 2009/4/28 Marc Romera 
>>
>>> Hi
>>>
>>> I'm working on the timesync that Anton found but there are a lot of
>>> commented lines, I don't know what lines must be uncommented, does everybody
>>> know?
>>>
>>> thanks.
>>>
>>> 2009/4/24 Anton 
>>>
>>>> Hi,
>>>>
>>>> may be you should look here:
>>>>
>>>>
>>>> http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-1.x/contrib/nestfe/nesc/lib/timesync/
>>>>
>>>> but I'm not sure.
>>>>
>>>>
>>>>
>>>>
>>>> Marc Romera wrote:
>>>>
>>>>> hi,
>>>>>
>>>>> does everybody know a way to make timestamping with tinyOS 1.x?
>>>>>
>>>>> thanks!
>>>>>
>>>>
>>>>
>>>
>>> ___
>>> 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] Timestamp

2009-04-28 Thread Ittipong Khemapech
Have you run it? If not, do not touch it and run to see the result.
Otherwise, post the errors and warnings to the mailing list.

Ittipong


2009/4/28 Marc Romera 

> Hi
>
> I'm working on the timesync that Anton found but there are a lot of
> commented lines, I don't know what lines must be uncommented, does everybody
> know?
>
> thanks.
>
> 2009/4/24 Anton 
>
>> Hi,
>>
>> may be you should look here:
>>
>>
>> http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-1.x/contrib/nestfe/nesc/lib/timesync/
>>
>> but I'm not sure.
>>
>>
>>
>>
>> Marc Romera wrote:
>>
>>> hi,
>>>
>>> does everybody know a way to make timestamping with tinyOS 1.x?
>>>
>>> thanks!
>>>
>>
>>
>
> ___
> 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] startOneShot

2009-04-24 Thread Ittipong Khemapech
Umm. I can start the timer from receive() event now. I misplaced the call
statement. Stupid mistake, really!!!

Thanks,
Ittipong


2009/4/23 Ittipong Khemapech 

> I start the timer within the receive() event and *nothing* happens. No
> packet is transmitted by the source. I'm pretty sure that the radio is on at
> that time.
>
> I posted this problem several weeks ago and still got no reply. That's why
> I have to use the InitW2RTimer and it's started in the receivedSFD() event.
>
> Anybody got the same experience?
>
> Thanks,
> Ittipong
>
>
> 2009/4/21 Ittipong Khemapech 
>
> It wasn't me asking about the previous Timer questions. Many thanks for
>> your hints. Will try and get back soon.
>>
>> Ittipong
>>
>> 2009/4/21 Michael Schippling 
>>
>> I guess this is what you were trying to get at in previous
>>> Timer questions, right?
>>>
>>> It looks like it should work the way you want. The only thing
>>> I can see that is questionable is the long atomic {block} for
>>> your message sending in DataSendTimer.fired(). This might
>>> block interrupts for too long.
>>>
>>> I would try to simplify the Timer scheme on it's own, flashing
>>> LEDs or something to see if it works the way you expect, and then
>>> start adding the radio message drivers back in.
>>>
>>> I think you should also be able to use the receive() method instead
>>> of starting your first timer, because it is called after the message
>>> is fully received.
>>>
>>> MS
>>>
>>> Ittipong Khemapech wrote:
>>>
>>>> Hi,
>>>>
>>>> I have been trying to figure the problems out for days. No idea what
>>>> causes it.
>>>>
>>>> I have a source receiving a packet from the base station. After the SFD
>>>> is received, a timer is called to run to make sure that the reception is
>>>> completed. The source waits for a wait_interval duration to send its data
>>>> packet. So, another timer is used for timing the transmission.
>>>>
>>>> I am using AlarmToTimer component. The command startOneShot is called.
>>>> What I expect is that the source should send *only after* it receives the
>>>> packet from base station. It seems to me that the source keeps sending.
>>>>
>>>> Look forward to hear from you soon.
>>>>
>>>> Thanks,
>>>> Ittipong
>>>>
>>>> The codes are as follows:
>>>>
>>>> MyDef.h
>>>>
>>>> ---
>>>>
>>>> #ifndef MYDEF_H_
>>>> #define MYDEF_H_
>>>>
>>>> enum {
>>>>   WAIT_TO_RECEIVE = 1024
>>>> };
>>>>
>>>> #endif
>>>> ==
>>>>
>>>> SourceAppC.nc
>>>>
>>>> 
>>>>
>>>> #include "MyDef.h"   #include "DataMsg.h"
>>>> #include "ControlMsg.h"
>>>>
>>>> configuration SourceAppC {
>>>> }
>>>> implementation {
>>>>   components MainC;
>>>>   components ActiveMessageC;
>>>>
>>>>   components new AMSenderC(AM_DATAMSG) as AMSenderDataC;
>>>>   components new AMReceiverC(AM_CONTROLMSG) as AMReceiverCtrlC;
>>>>
>>>>   components new Alarm32khz32C() as Alarm2Timer;
>>>>   components new AlarmToTimerC(T32khz) as W2RTimer;
>>>> components new AlarmToTimerC(T32khz) as SendTimer;
>>>>
>>>>   components CC2420TransmitC;
>>>>   components CC2420ActiveMessageC;
>>>>
>>>>   components SourceC as App;
>>>>
>>>>   // Wiring
>>>>   App.Boot -> MainC;
>>>>
>>>>   App.Packet -> AMSenderDataC;
>>>>   App.AMPacket -> AMSenderDataC;
>>>>   App.AMSend -> AMSenderDataC;
>>>>   App.Receive -> AMReceiverCtrlC;
>>>>
>>>>   App.AMControl -> ActiveMessageC;;
>>>>
>>>>   App.InitW2RTimer -> W2RTimer; App.DataSendTimer -> SendTimer;
>>>> W2RTimer.Alarm -> Alarm2Timer;
>>>>   SendTimer.Alarm -> Alarm2Timer;
>>>>  

Re: [Tinyos-help] Timestamp

2009-04-23 Thread Ittipong Khemapech
Please send your post to the list and try search the archives at
http://www.tinyos.net/scoop/special/support#mailing-lists.

There are a lot of useful hints out there.

If you have got some errors about the missing interfaces, use them and don't
forget to do the wiring.

According to the code, there are some errors that I can't explain to you via
email. You should have a look at the timer. For example, what is the
precision you expect?

Ittipong

2009/4/23 sara so 

> Hi,
> Thanks for your help but I have tried to follow your small code ... it
> is always complaining about no such interface CC2420TransmitC??
>  uses interface RadioTimeStamping; also this interface is not avialable??
> This is my code in case you want to take a look?
>
> #include 
> #include "CC2420.h"
> #include "BlinkToRadio.h"
>
> module BlinkToRadioC{
>  uses interface Boot;
>  uses interface Leds;
>  uses interface Timer as Timer0;
>
>  uses interface Packet;
>  uses interface AMPacket;
>  uses interface AMSend;
>  uses interface Receive;
>  uses interface SplitControl as AMControl;
>  uses interface RadioTimeStamping;
> implementation {
>  message_t pkt;
>  bool busy = FALSE;
>   uint32_t timertime;
>   uint32_t mytimebuf;
>   uint32_t transmittime;
>  uint8_t mytime[4];
>  event void Boot.booted() {
>call AMControl.start();
>  }
>
>  event void AMControl.startDone(error_t err) {
>if (err == SUCCESS) {
>  call Timer0.startPeriodic(TIMER_PERIOD_MILLI);
>}
>else {
>  call AMControl.start();
>}
>  }
>
>  event void AMControl.stopDone(error_t err) {
>  }
>
>  event void Timer0.fired() {
>
>if (!busy) {
>  BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)(call
> Packet.getPayload(&pkt, NULL));
>
>if (call AMSend.send(2, &pkt, sizeof(BlinkToRadioMsg)) == SUCCESS) {
>busy = TRUE;
>  }
>}
>  }
>
>  event void AMSend.sendDone(message_t* msg, error_t err) {
>if (&pkt == msg) {
>  busy = FALSE;
> }
>  }
>
> async event void RadioTimeStamping.transmittedSFD(uint16_t time,
> message_t* p_msg){
>
>  //get the current time and replace the lower half-word with
> SFD-captured timer content:
>   timertime= call Timer0.getNow(); //timeget(); is that ok ?
>
> mytimebuf=(timertime&0xUL)>((uint32_t)time&0xUL))?timertime:(timertime-0x0001UL))&0xUL)|((uint32_t)time&0xUL));
>  transmittime=mytimebuf;
>//load the 32-bit timestamp to a uint8_t 4-elements' array:
>  for(v=0;v<4;v++){
>  mytime[v]=(uint8_t)((mytimebuf>>((3-v)*8))&0x00FFUL);
>  }
>    //write the timestamp to the CC2420 RAM:
>  call CC2420Transmit.modify(
> offsetof(pkt,timeStamp)+sizeof(message_header_t), mytime, 4);
>  }
>
> async event void RadioTimeStamping.receivedSFD(uint16_t time, message_t*
> p_msg){
>
> }
> }
>
>
>
> On Thu, Apr 23, 2009 at 10:47 AM, Ittipong Khemapech
>  wrote:
> > The ProtocolMsg is an example of user-defined message structure. You may
> > declare your own message structure to store information and send it over
> the
> > network.
> >
> > I think you can't access the metadata directly. Please read message_t
> TEP.
> >
> > Finally, I'm using TinyOS 2.0. I have no idea how it's different from the
> > 2.1.
> >
> > Ittipong
> >
> >
> > 2009/4/23 sara so 
> >>
> >> Hi,
> >> Thanks for your help, but what is the ProtocolMsg? I need to include
> >> the time befor the packet sent, can I just call the cc2420 metadata?
> >> does tinyos 2.1 support that?
> >> for example:
> >>  event message_t* Receive.receive( ){
> >>getting the payload and then read and attche the time in the packet
> >> filed
> >>mypkt->timeNow= ((cc2420_metadata_t*)msg->metadata)->time;
> >> Thank you
> >> On Wed, Apr 22, 2009 at 7:48 AM, Ittipong Khemapech
> >>  wrote:
> >> >
> >> >
> >> > -- Forwarded message --
> >> > From: Ittipong Khemapech 
> >> > Date: 2009/2/24
> >> > Subject: Re: [Tinyos-help] Timestamp
> >> > To: Anton 
> >> > Cc: tinyos-help 
> >> >
> >> >
> >> > Hi,
> >> >
> >> > It works now. Many thanks :-)
> >> >
> >> > Ittipong
> >> >
> >> > 2009/2/24 Anton 
> >> >>
> >> >> Hi,
> >> >>
> >&

Re: [Tinyos-help] Can't compile the apps.

2009-04-23 Thread Ittipong Khemapech
Hi,

Try this :
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-September/027806.html

Hope this helps.

Ittipong

2009/4/23 John Smith 

> I've tried that with little success.
>
> /opt/tinyos-1.x/apps/Blink$ make
> ../Makerules:26: /opt/tinyos-2.x/tos/../apps/Makerules: No such file or
> director
> y
> make: *** No rule to make target `/opt/tinyos-2.x/tos/../apps/Makerules'.
> Stop.
>
>
> On Thu, Apr 23, 2009 at 9:06 AM, Ittipong Khemapech <
> ik.tin...@googlemail.com> wrote:
>
>> Hi,
>>
>> Make sure that the compile is conducted under the .../apps/Blink.
>>
>> Ittipong
>>
>>
>> 2009/4/23 John Smith 
>>
>>> Hi everone :) .
>>>
>>> I'm new to this.
>>>
>>> Here is what happens when I compile the apps folder using cygwin.
>>>
>>> $ make
>>> Blink
>>> ../Makerules:26: /opt/tinyos-2.x/tos/../apps/Makerules: No such file or
>>> director
>>> y
>>> make[1]: *** No rule to make target
>>> `/opt/tinyos-2.x/tos/../apps/Makerules'.  St
>>> op.
>>> make: *** [all] Error 1
>>>
>>> Why is this happening?
>>>
>>> ___
>>> 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] Can't compile the apps.

2009-04-23 Thread Ittipong Khemapech
Hi,

Make sure that the compile is conducted under the .../apps/Blink.

Ittipong


2009/4/23 John Smith 

> Hi everone :) .
>
> I'm new to this.
>
> Here is what happens when I compile the apps folder using cygwin.
>
> $ make
> Blink
> ../Makerules:26: /opt/tinyos-2.x/tos/../apps/Makerules: No such file or
> director
> y
> make[1]: *** No rule to make target
> `/opt/tinyos-2.x/tos/../apps/Makerules'.  St
> op.
> make: *** [all] Error 1
>
> Why is this happening?
>
> ___
> 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] startOneShot

2009-04-23 Thread Ittipong Khemapech
I start the timer within the receive() event and *nothing* happens. No
packet is transmitted by the source. I'm pretty sure that the radio is on at
that time.

I posted this problem several weeks ago and still got no reply. That's why I
have to use the InitW2RTimer and it's started in the receivedSFD() event.

Anybody got the same experience?

Thanks,
Ittipong


2009/4/21 Ittipong Khemapech 

> It wasn't me asking about the previous Timer questions. Many thanks for
> your hints. Will try and get back soon.
>
> Ittipong
>
> 2009/4/21 Michael Schippling 
>
> I guess this is what you were trying to get at in previous
>> Timer questions, right?
>>
>> It looks like it should work the way you want. The only thing
>> I can see that is questionable is the long atomic {block} for
>> your message sending in DataSendTimer.fired(). This might
>> block interrupts for too long.
>>
>> I would try to simplify the Timer scheme on it's own, flashing
>> LEDs or something to see if it works the way you expect, and then
>> start adding the radio message drivers back in.
>>
>> I think you should also be able to use the receive() method instead
>> of starting your first timer, because it is called after the message
>> is fully received.
>>
>> MS
>>
>> Ittipong Khemapech wrote:
>>
>>> Hi,
>>>
>>> I have been trying to figure the problems out for days. No idea what
>>> causes it.
>>>
>>> I have a source receiving a packet from the base station. After the SFD
>>> is received, a timer is called to run to make sure that the reception is
>>> completed. The source waits for a wait_interval duration to send its data
>>> packet. So, another timer is used for timing the transmission.
>>>
>>> I am using AlarmToTimer component. The command startOneShot is called.
>>> What I expect is that the source should send *only after* it receives the
>>> packet from base station. It seems to me that the source keeps sending.
>>>
>>> Look forward to hear from you soon.
>>>
>>> Thanks,
>>> Ittipong
>>>
>>> The codes are as follows:
>>>
>>> MyDef.h
>>>
>>> ---
>>>
>>> #ifndef MYDEF_H_
>>> #define MYDEF_H_
>>>
>>> enum {
>>>   WAIT_TO_RECEIVE = 1024
>>> };
>>>
>>> #endif
>>> ==
>>>
>>> SourceAppC.nc
>>>
>>> 
>>>
>>> #include "MyDef.h"   #include "DataMsg.h"
>>> #include "ControlMsg.h"
>>>
>>> configuration SourceAppC {
>>> }
>>> implementation {
>>>   components MainC;
>>>   components ActiveMessageC;
>>>
>>>   components new AMSenderC(AM_DATAMSG) as AMSenderDataC;
>>>   components new AMReceiverC(AM_CONTROLMSG) as AMReceiverCtrlC;
>>>
>>>   components new Alarm32khz32C() as Alarm2Timer;
>>>   components new AlarmToTimerC(T32khz) as W2RTimer;
>>> components new AlarmToTimerC(T32khz) as SendTimer;
>>>
>>>   components CC2420TransmitC;
>>>   components CC2420ActiveMessageC;
>>>
>>>   components SourceC as App;
>>>
>>>   // Wiring
>>>   App.Boot -> MainC;
>>>
>>>   App.Packet -> AMSenderDataC;
>>>   App.AMPacket -> AMSenderDataC;
>>>   App.AMSend -> AMSenderDataC;
>>>   App.Receive -> AMReceiverCtrlC;
>>>
>>>   App.AMControl -> ActiveMessageC;;
>>>
>>>   App.InitW2RTimer -> W2RTimer; App.DataSendTimer -> SendTimer;
>>> W2RTimer.Alarm -> Alarm2Timer;
>>>   SendTimer.Alarm -> Alarm2Timer;
>>> App.CC2420Packet -> CC2420ActiveMessageC;
>>>   App.RadioTimeStamping -> CC2420TransmitC;
>>>   App.CC2420Transmit -> CC2420TransmitC;
>>>   }
>>> =
>>>
>>> SourceC.nc
>>>
>>> --
>>>
>>> #include 
>>> #include "MyDef.h"   #include "DataMsg.h"
>>> #include "ControlMsg.h"
>>>
>>> modul

Re: [Tinyos-help] Computations in nesC

2009-04-22 Thread Ittipong Khemapech
I think so. You should begin with doing simple calculation and see if you've
got the right result.

Good luck,
Ittipong


2009/4/22 Abhishek Phadnis 

> hey
>
> looking for generic calculations like mean/median averaging etc..it is
> implemented the same way as in C right??just wanted to take a look
> though..my project is data fusion on motes..
>
>
> 2009/4/22 Ittipong Khemapech 
>
> Hi,
>>
>> If you have a look at BlinkToRadio, the number of sent packet is
>> incremented at the time of when the timer is fired. You should be more
>> specific about what sort of calculations you are looking for?
>>
>> Thanks,
>> Ittipong
>>
>>
>> 2009/4/22 Abhishek Phadnis 
>>
>>>  hey all,
>>>
>>> thanks for all the help so far..
>>> just about ready to get started with the programming...could someone
>>> please put up a sample program with any sort of calculations
>>> in it? none of the pre existing ones have any...need to have a  look at
>>> some such calculation before i start off..
>>>
>>> thanks
>>>
>>> abhishek
>>>
>>>
>>>
>>> ___
>>> 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] Please help with timestamp

2009-04-22 Thread Ittipong Khemapech
Oops! I thought that I got that link from the archive. Forwarding that email
to you.

Ittipong


2009/4/22 sara so 

> Hi Ittipong,
> Sure I will do that, but what link is useful i do not find any link in
> your email.
> Kind regards
>  Sara
>
> On Wed, Apr 22, 2009 at 4:44 AM, Ittipong Khemapech
>  wrote:
> > Hi,
> >
> > Thanks for your email. I'm not sure if you've joined the TinyOS mailing
> > list. If so, please post your question to the list. The main reasons are
> > that you will get helps more quickly and the others may benefit from such
> > helps.
> >
> > This link; http://mail.google.com/mail/?shva=1#starred/11f99caf511c80f1may
> > be useful to you.
> >
> > Hope this helps,
> >
> > Ittipong
> >
> > 2009/4/22 sara so 
> >>
> >> Hi Ittipong,
> >> Could you please help me with timestamp? I need to include the
> >> transmitted time in the packet before it send it to the radio and when
> >> I received the packet I want to record the received time. Have you
> >> ever done that?
> >> I tried to use transmittedSFD event but no success!!
> >> I get you email from google and sorry if i bothered you...
> >> Thank you for any help
> >>Sara
> >
> >
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Computations in nesC

2009-04-22 Thread Ittipong Khemapech
Hi,

If you have a look at BlinkToRadio, the number of sent packet is incremented
at the time of when the timer is fired. You should be more specific about
what sort of calculations you are looking for?

Thanks,
Ittipong


2009/4/22 Abhishek Phadnis 

> hey all,
>
> thanks for all the help so far..
> just about ready to get started with the programming...could someone please
> put up a sample program with any sort of calculations
> in it? none of the pre existing ones have any...need to have a  look at
> some such calculation before i start off..
>
> thanks
>
> abhishek
>
>
>
> ___
> 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] erreur cygwin with tinyos 2.0

2009-04-21 Thread Ittipong Khemapech
I think if you could translate it to English would be great.

Ittipong

2009/4/21 chikh omar 

> how to solve this problem with cygwin under win XP
>
>
> le point d'entyrée de la procedure basename est introuvable dans la
> bibliothèque ... cygwin1.dll
>
>
>
> thanks in advance
>
> ***
> Omar Cheikhrouhou
> **Engineer & Researcher @SENS Lab (Software Engineering and Network
> Security)
> Higher Institute of Technological Studies - Address : Mahdia's road Km 2.5
> Sfax. BP 88 A - 3099 El Bustan Sfax Telephone : (+216)74 237425 Poste : 437
> **  **Fax: : (+216)74 431 386*
>
> *Ph.D @ CES Lab (Computer and Embedded System)-University of Sfax,
> National School of Engineers BP W, Sfax, 3038, Tunisia , Fax:(+216)74665369
> ** *
>
> *Coordinator C2i @ ISET Sfax (Certified C2i since 2008)*
>
>
> ___
> 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] startOneShot

2009-04-21 Thread Ittipong Khemapech
It wasn't me asking about the previous Timer questions. Many thanks for your
hints. Will try and get back soon.

Ittipong

2009/4/21 Michael Schippling 

> I guess this is what you were trying to get at in previous
> Timer questions, right?
>
> It looks like it should work the way you want. The only thing
> I can see that is questionable is the long atomic {block} for
> your message sending in DataSendTimer.fired(). This might
> block interrupts for too long.
>
> I would try to simplify the Timer scheme on it's own, flashing
> LEDs or something to see if it works the way you expect, and then
> start adding the radio message drivers back in.
>
> I think you should also be able to use the receive() method instead
> of starting your first timer, because it is called after the message
> is fully received.
>
> MS
>
> Ittipong Khemapech wrote:
>
>> Hi,
>>
>> I have been trying to figure the problems out for days. No idea what
>> causes it.
>>
>> I have a source receiving a packet from the base station. After the SFD is
>> received, a timer is called to run to make sure that the reception is
>> completed. The source waits for a wait_interval duration to send its data
>> packet. So, another timer is used for timing the transmission.
>>
>> I am using AlarmToTimer component. The command startOneShot is called.
>> What I expect is that the source should send *only after* it receives the
>> packet from base station. It seems to me that the source keeps sending.
>>
>> Look forward to hear from you soon.
>>
>> Thanks,
>> Ittipong
>>
>> The codes are as follows:
>>
>> MyDef.h
>>
>> ---
>>
>> #ifndef MYDEF_H_
>> #define MYDEF_H_
>>
>> enum {
>>   WAIT_TO_RECEIVE = 1024
>> };
>>
>> #endif
>> ==
>>
>> SourceAppC.nc
>>
>> 
>>
>> #include "MyDef.h"   #include "DataMsg.h"
>> #include "ControlMsg.h"
>>
>> configuration SourceAppC {
>> }
>> implementation {
>>   components MainC;
>>   components ActiveMessageC;
>>
>>   components new AMSenderC(AM_DATAMSG) as AMSenderDataC;
>>   components new AMReceiverC(AM_CONTROLMSG) as AMReceiverCtrlC;
>>
>>   components new Alarm32khz32C() as Alarm2Timer;
>>   components new AlarmToTimerC(T32khz) as W2RTimer; components
>> new AlarmToTimerC(T32khz) as SendTimer;
>>
>>   components CC2420TransmitC;
>>   components CC2420ActiveMessageC;
>>
>>   components SourceC as App;
>>
>>   // Wiring
>>   App.Boot -> MainC;
>>
>>   App.Packet -> AMSenderDataC;
>>   App.AMPacket -> AMSenderDataC;
>>   App.AMSend -> AMSenderDataC;
>>   App.Receive -> AMReceiverCtrlC;
>>
>>   App.AMControl -> ActiveMessageC;;
>>
>>   App.InitW2RTimer -> W2RTimer; App.DataSendTimer -> SendTimer;
>> W2RTimer.Alarm -> Alarm2Timer;
>>   SendTimer.Alarm -> Alarm2Timer;
>> App.CC2420Packet -> CC2420ActiveMessageC;
>>   App.RadioTimeStamping -> CC2420TransmitC;
>>   App.CC2420Transmit -> CC2420TransmitC;
>> }
>> =
>>
>> SourceC.nc
>>
>> --
>>
>> #include 
>> #include "MyDef.h"   #include "DataMsg.h"
>> #include "ControlMsg.h"
>>
>> module SourceC {
>>   uses {
>>   interface Boot;
>>   interface AMSend;
>>   interface Receive; interface AMPacket;
>>   interface Packet;
>>   interface Timer as InitW2RTimer;
>>   interface Timer as DataSendTimer;
>>   interface RadioTimeStamping; interface SplitControl as
>> AMControl;
>>   interface CC2420Packet; interface
>> CC2420Transmit;
>>   }
>> }
>> implementation {
>>   message_t dpkt, cpkt;
>>   bool sending = FALSE;
>>   uint16_t pktseq, sentpkts; uint8_t current_tx;
>>   uint8_t base_addr, me;
>>   uint32_t no_slot, slot_length, slot_start; uint32_t
>>

[Tinyos-help] startOneShot

2009-04-21 Thread Ittipong Khemapech
Hi,

I have been trying to figure the problems out for days. No idea what causes
it.

I have a source receiving a packet from the base station. After the SFD is
received, a timer is called to run to make sure that the reception is
completed. The source waits for a wait_interval duration to send its data
packet. So, another timer is used for timing the transmission.

I am using AlarmToTimer component. The command startOneShot is called. What
I expect is that the source should send *only after* it receives the packet
from base station. It seems to me that the source keeps sending.

Look forward to hear from you soon.

Thanks,
Ittipong

The codes are as follows:

MyDef.h
---

#ifndef MYDEF_H_
#define MYDEF_H_

enum {
   WAIT_TO_RECEIVE = 1024
};

#endif
==

SourceAppC.nc


#include "MyDef.h"
#include "DataMsg.h"
#include "ControlMsg.h"

configuration SourceAppC {
}
implementation {
   components MainC;
   components ActiveMessageC;

   components new AMSenderC(AM_DATAMSG) as AMSenderDataC;
   components new AMReceiverC(AM_CONTROLMSG) as AMReceiverCtrlC;

   components new Alarm32khz32C() as Alarm2Timer;
   components new AlarmToTimerC(T32khz) as W2RTimer;
   components new AlarmToTimerC(T32khz) as SendTimer;

   components CC2420TransmitC;
   components CC2420ActiveMessageC;

   components SourceC as App;

   // Wiring
   App.Boot -> MainC;

   App.Packet -> AMSenderDataC;
   App.AMPacket -> AMSenderDataC;
   App.AMSend -> AMSenderDataC;
   App.Receive -> AMReceiverCtrlC;

   App.AMControl -> ActiveMessageC;;

   App.InitW2RTimer -> W2RTimer;
   App.DataSendTimer -> SendTimer;

   W2RTimer.Alarm -> Alarm2Timer;
   SendTimer.Alarm -> Alarm2Timer;

   App.CC2420Packet -> CC2420ActiveMessageC;
   App.RadioTimeStamping -> CC2420TransmitC;
   App.CC2420Transmit -> CC2420TransmitC;

}
=

SourceC.nc
--

#include 
#include "MyDef.h"
#include "DataMsg.h"
#include "ControlMsg.h"

module SourceC {
   uses {
   interface Boot;
   interface AMSend;
   interface Receive;
   interface AMPacket;
   interface Packet;
   interface Timer as InitW2RTimer;
   interface Timer as DataSendTimer;
   interface RadioTimeStamping;
   interface SplitControl as AMControl;

   interface CC2420Packet;
   interface CC2420Transmit;
   }
}
implementation {
   message_t dpkt, cpkt;
   bool sending = FALSE;

   uint16_t pktseq, sentpkts;
   uint8_t current_tx;

   uint8_t base_addr, me;
   uint32_t no_slot, slot_length, slot_start;
   uint32_t wait_interval;

   uint16_t rcv_no;

   task void callInitW2RTimer() {
   call InitW2RTimer.startOneShot(WAIT_TO_RECEIVE);
   }

   task void callDataSendTimer() {
   call DataSendTimer.startOneShot(wait_interval);
   }

   event void Boot.booted() {
   call AMControl.start();
   }

   event void AMControl.startDone(error_t err) {
   if (err != SUCCESS) {
   call AMControl.start();
   }
   }

   event void AMControl.stopDone(error_t err) {
   }

   event void InitW2RTimer.fired() {
   post callDataSendTimer();
   }

   event void DataSendTimer.fired() {

   if (!sending) {
   atomic {

   DataMsg* dataMsg = (DataMsg*)(call Packet.getPayload(&dpkt,
NULL));

   sentpkts++;
   pktseq++;

   call CC2420Packet.setPower(&dpkt, MAX_TX);
   current_tx = call CC2420Packet.getPower(&dpkt);
   dataMsg->pkt_type = 1;
   dataMsg->source_id = me;
   dataMsg->rcv_no = rcv_no;

   dataMsg->tx_power = current_tx;
   dataMsg->snt_no = sentpkts;
   dataMsg->seq_no = pktseq;
   dataMsg->slot = no_slot;
   dataMsg->length = slot_length;
   dataMsg->start = slot_start;
   dataMsg->wait = wait_interval;

   if (call AMSend.send(base_addr, &dpkt, sizeof(DataMsg)) ==
SUCCESS) {
   sending = TRUE;
   }
   }
   }

   }

   event void AMSend.sendDone(message_t *msg, error_t error) {
   if (&dpkt == msg) {
   atomic {
   sending = FALSE;
   }
   }
   }

   event message_t* Receive.receive(message_t* msg, void* payload, uint8_t
len) {

   if (len == sizeof(ControlMsg)) {
   atomic {

   ControlMsg* controlMsg = (ControlMsg*) payload;

   base_addr = controlMsg->base_id;
   me = TOS_NODE_ID;

   rcv_no = controlMsg->snt_no;

   no_slot = controlMsg->no_alloc_slot;
   slot_length = controlMsg->slot_length;
   

Re: [Tinyos-help] Incorrect output (data type issue?)

2009-04-14 Thread Ittipong Khemapech
I've solved it. The useful post is
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-January/022261.html
.

Ittipong

2009/4/14 Ittipong Khemapech 

> Hi,
>
> I have been modifying the BaseStation application to send some values to
> the Source. Let say that val1 = 200, val2 = 1 and val3 = 2048. The result,
> output is equal to (val1 - val2) * val3. It should be 407552.
>
> However, such computation takes place at the Source and it gives me 14336.
>
> I declare output as uint32_t.
>
> Please give me some hints on what I've missed. Hope to hear from you very
> soon.
>
> Thanks,
> Ittipong
>
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Incorrect output (data type issue?)

2009-04-14 Thread Ittipong Khemapech
Hi,

I have been modifying the BaseStation application to send some values to the
Source. Let say that val1 = 200, val2 = 1 and val3 = 2048. The result,
output is equal to (val1 - val2) * val3. It should be 407552.

However, such computation takes place at the Source and it gives me 14336.

I declare output as uint32_t.

Please give me some hints on what I've missed. Hope to hear from you very
soon.

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

[Tinyos-help] Timer can't be started within receive()

2009-04-06 Thread Ittipong Khemapech
Hi,

This my be a very stupid question. I need a source to set its timing and
send the data after the control packet from base station has been received.
I start timer within Receive.receive() event but it didn't work. No data
packet has been sent back to the base station.

However, it works fine if the timer is called in
RadioTimeStamping.receivedSFD().

Please let me know what I've missed.

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

Re: [Tinyos-help] (no subject)

2009-04-04 Thread Ittipong Khemapech
Hi,

I think the tutorial is a very good place to start with. I used to feel the
same. I think you are currently at the start phase of S curve. Just follow
the examples there and try modify them. You need Lesson 4 to see the
on-screen output. It will make you feel more confident.

Ittipong

2009/4/4 George Adamides 

> Hello everybody
> I have being reading the TinyOS tutorial at www.tinyos.net and I can't
> seem to follow them. Where can I find a good documentation with easy to
> follow instructions (that work) to just understand how to program a simple
> sensor network program with NesC? This documentation seems to explain things
> to people who already know some stuff about sensors and how they work. I
> want an introductory thing.
> Thank you all
>
> --
> George Adamides
>
>
>
> ___
> 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 help to understand nesC

2009-04-04 Thread Ittipong Khemapech
Hi,

Have you tried the TinyOS Tutorial on http://www.tinyos.net? It's a very
good place to start.

Ittipong

2009/4/4 Jayesh Parab 

> Hello Everyone,
>
> I am a newbie to the world of tinyOS, and have been assigned a project to
> be done in tinyOS v1.x. I am finding it a bit difficult to understand the
> nesC syntax.
>
> Request you to please suggest me with some easy to understand and practice
> tutorials which can help me understand nesC concepts and syntax.
>
> Thanks.
>
> Best Regards,
> Jayesh
>
>
> ___
> 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] Bit-field Struct

2009-04-02 Thread Ittipong Khemapech
Hi,

I've been trying to use bit-field struct:

typedef nx_struct MyMsg {
  unsigned int type: 1;
  nx_uint8_t id;
  ...
} MyMsg;

I've got "field 'type' must be a network type" error.

Any idea how to get it right?

I'm using TinyOS 2.0.2 and cygwin.

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

Re: [Tinyos-help] Energy Detection on the channel

2009-04-01 Thread Ittipong Khemapech
Hi,

Have you gone through the codes? I think they're in tos/cc2420/lpl. You may
find a way to go.

Thanks,
Ittipong

2009/4/1 Adarsh Joshi 

> Hi Ittipong,
> Thank you so much for your time. I have gone through the B-MAC paper. As
> per my knowledge, it does the following.
>
> When a packet is scheduled to be transmitted, it checks the CCA  and
> transmits the packet only if the channel is free. Else it takes a random
> back-off and tries to send later.
>
> But I don't want to transmit/receive any packet. I just want to know
> whether the channel is empty or not.
>
> Thanks again.
>
>
> On Wed, Apr 1, 2009 at 11:59 AM, Ittipong Khemapech <
> ik.tin...@googlemail.com> wrote:
>
>> Hi,
>>
>> I have no idea about the Cc2420TKN154C.
>>
>> For the channel assessment, I think BMAC (Berkeley MAC) is capable of
>> checking if the channel is busy. The BMAC paper should be therefore useful
>> to you.
>>
>> Hope this helps.
>> Ittipong
>>
>> 2009/4/1 Adarsh Joshi 
>>
>>>  Hi,
>>>
>>> I am trying to detect the energy level on the channels. I am using the
>>> Interface EnergyDetection on the Component
>>> tos.chips.cc2420_tkn154.CC2420TKN154C. MAybe bacause its a different
>>> package, I am getting an error: cannot find `CC2420TKN154C'.
>>>
>>> Do I have to specify anywhere that I am using other package and not
>>> tos.chips.cc2420?
>>>
>>> Is there any other method to measure the noise level or energy level  of
>>> the channel? (in order to determine whether the channel is busy or not.)
>>>
>>> I just want to know whether a channel is busy or not. I don't want to
>>> transmit or receive anything.
>>>
>>> Thanks a lot for your time and help.
>>>
>>> --
>>> Adarsh Joshi
>>> Dept of Computer Science
>>> San Diego State University
>>> San Diego
>>> California - 92115
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>
>
> --
> Adarsh Joshi
> Dept of Computer Science
> San Diego State University
> San Diego
> California - 92115
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Energy Detection on the channel

2009-04-01 Thread Ittipong Khemapech
Hi,

I have no idea about the Cc2420TKN154C.

For the channel assessment, I think BMAC (Berkeley MAC) is capable of
checking if the channel is busy. The BMAC paper should be therefore useful
to you.

Hope this helps.
Ittipong

2009/4/1 Adarsh Joshi 

> Hi,
>
> I am trying to detect the energy level on the channels. I am using the
> Interface EnergyDetection on the Component
> tos.chips.cc2420_tkn154.CC2420TKN154C. MAybe bacause its a different
> package, I am getting an error: cannot find `CC2420TKN154C'.
>
> Do I have to specify anywhere that I am using other package and not
> tos.chips.cc2420?
>
> Is there any other method to measure the noise level or energy level  of
> the channel? (in order to determine whether the channel is busy or not.)
>
> I just want to know whether a channel is busy or not. I don't want to
> transmit or receive anything.
>
> Thanks a lot for your time and help.
>
> --
> Adarsh Joshi
> Dept of Computer Science
> San Diego State University
> San Diego
> California - 92115
>
> ___
> 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] Can you please help me to deal with my first programming problem

2009-03-27 Thread Ittipong Khemapech
Please have a look at TinyOS Tutorial lesson 3 and 4:

Lesson 3: http://docs.tinyos.net/index.php/Mote-mote_radio_communication
Lesson 4:
http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder

Ittipong

2009/3/28 An Feng 

> Hello All,
>
> Is there any one fluent with TINYOS programming that can help me with my
> first TINYOS program:
>
> 1, the devices has its unique ID.
> 2, each node has its own counter.
> 3, each counter will increment by 1 for each second
> 4, every five second, each node will transmit its unique ID and its own
> counter value to the base station.
>
> Thank you for your kind help. Looking forward to your reply.
>
> Sincerely.
>
> ___
> 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] Reg. the node address

2009-03-24 Thread Ittipong Khemapech
Hi,

One possible way is to set the address of the sender (maybe during
installation) and put it into the payload (in the Timer.fired() event). The
receiver then reads such address from the payload.

Hope this helps.
Ittipong

2009/3/24 Siva Sankar Gupta 

> Hello,
>
> I mean if we receive a message over the radio can we know the source of the
> message? Is there any interface in TinyOS 1.x to know the address of  the
> node which broadcasted the message. If anyone knows the solution please do
> reply...
>
> Thankyou all
>
> with regards
> --
> Siva Sankar Gupta Guggilum
> Schubertstraße 19
> Klagenfurt,9020
> Austria
> Ph:- 0043 6606871071
>
> ___
> 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] RF output power levels

2009-03-23 Thread Ittipong Khemapech
As you are using TinyOS, I think you should rely on the number of values
accepted by the setPower() which is 32.

Ittipong

2009/3/23 hodiapa 

>
> So could anybody give a final verdict on this issue?
> How many programmable power levels are there in CC2420's in micaz?
>
>
>
>
>
>
> ___
> 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] RF output power levels

2009-03-23 Thread Ittipong Khemapech
My bad. the setPower() command provided by CC2420Packet interface accepts
*0* to 31 for tx power setting.

Ittipong

2009/3/23 Ittipong Khemapech 

> Hi,
>
> According to the CC2420 datasheet page 9, it says that programmable output
> power range is 24. "The output power is programmable in 8 steps from
> approximately -24 to 0 dBm"
>
> However, I have seen some existing works on tx adaptation or the code in
> TinyOS. The setPower() command accepts 1 to 31.
>
> Ittipong
>
> 2009/3/23 João Carlos Giacomin 
>
>>  In fact, there are 32 power levels for CC2420, since it is stated by a
>> five bit number (0 to 31).
>>
>> Number 0 states power-off.
>>
>> Number 31 states higher power (0 dBm).
>>
>> Number 27 states states -1 dBm.
>>
>> What about Number 29 ?  It states a power level between -1 and 0 dBm,
>> something near -0.5 dBm.
>>
>> The table Poonam sent refers to a list of power levels of special interest
>> (1 mW = 0 dBm, 0.5 mW = -3dBm, . . .). But you can use any number in the
>> range of 0 to 31.
>>
>> The same fact occurs in CC1000 radio of Mica2. CC1000 uses a 8 bit number
>> to state its power level, but CC1000 data sheet lists only 31 power levels.
>> You can see in CC1000 data sheet that PA_POW 0x02 corresponds to 3 power
>> levels (-6 dBm, -17 dBm, -18 dBm) for 433 MHz RF frequency.
>>
>>
>>
>> *
>>  João Giacomin
>>  Prof-DCC-UFLA
>> *
>>
>>
>> *-- Original Message ---*
>> From: Poonam Hiwal 
>> To: hodi...@yahoo.com
>> Cc: tinyos-help@millennium.berkeley.edu
>> Sent: Sat, 21 Mar 2009 10:26:01 +
>> Subject: Re: [Tinyos-help] RF output power levels
>>
>> > Hi,
>> >
>> > There are 8 discrete power levels each corresponds to RF transmit power
>> as follows:
>> > Power level   Transmitted power level
>> > 310dbm
>> > 27   -1dbm
>> > 23   -3dbm
>> > 19   -5dbm
>> > 15   -7dbm
>> > 11   -10dbm
>> > 7-15dbm
>> > 3-25dbm
>> >
>> > Thanks,
>> > Poonam
>> >
>> > On Fri, Mar 20, 2009 at 4:34 PM, hodiapa  wrote:
>> >
>>
>>>
>>> > I am confused.
>>> > Page 51 of CC2420 says it has 8 output power settings.
>>> > Some where else it was said that we can have 31 different power
>>> settings for CC2420.
>>> >
>>> > Whats the exact number of output power levels available?
>>> > I am using MICAz mote.
>>> >
>>> > ___
>>> > Tinyos-help mailing list
>>> > Tinyos-help@millennium.berkeley.edu
>>> >
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>> >
>>
>>
>> *--- End of Original Message ---*
>>
>> ___
>> 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] RF output power levels

2009-03-23 Thread Ittipong Khemapech
Hi,

According to the CC2420 datasheet page 9, it says that programmable output
power range is 24. "The output power is programmable in 8 steps from
approximately -24 to 0 dBm"

However, I have seen some existing works on tx adaptation or the code in
TinyOS. The setPower() command accepts 1 to 31.

Ittipong

2009/3/23 João Carlos Giacomin 

>  In fact, there are 32 power levels for CC2420, since it is stated by a
> five bit number (0 to 31).
>
> Number 0 states power-off.
>
> Number 31 states higher power (0 dBm).
>
> Number 27 states states -1 dBm.
>
> What about Number 29 ?  It states a power level between -1 and 0 dBm,
> something near -0.5 dBm.
>
> The table Poonam sent refers to a list of power levels of special interest
> (1 mW = 0 dBm, 0.5 mW = -3dBm, . . .). But you can use any number in the
> range of 0 to 31.
>
> The same fact occurs in CC1000 radio of Mica2. CC1000 uses a 8 bit number
> to state its power level, but CC1000 data sheet lists only 31 power levels.
> You can see in CC1000 data sheet that PA_POW 0x02 corresponds to 3 power
> levels (-6 dBm, -17 dBm, -18 dBm) for 433 MHz RF frequency.
>
>
>
> *
>  João Giacomin
>  Prof-DCC-UFLA
> *
>
>
> *-- Original Message ---*
> From: Poonam Hiwal 
> To: hodi...@yahoo.com
> Cc: tinyos-help@millennium.berkeley.edu
> Sent: Sat, 21 Mar 2009 10:26:01 +
> Subject: Re: [Tinyos-help] RF output power levels
>
> > Hi,
> >
> > There are 8 discrete power levels each corresponds to RF transmit power
> as follows:
> > Power level   Transmitted power level
> > 310dbm
> > 27   -1dbm
> > 23   -3dbm
> > 19   -5dbm
> > 15   -7dbm
> > 11   -10dbm
> > 7-15dbm
> > 3-25dbm
> >
> > Thanks,
> > Poonam
> >
> > On Fri, Mar 20, 2009 at 4:34 PM, hodiapa  wrote:
> >
>
>>
>> > I am confused.
>> > Page 51 of CC2420 says it has 8 output power settings.
>> > Some where else it was said that we can have 31 different power settings
>> for CC2420.
>> >
>> > Whats the exact number of output power levels available?
>> > I am using MICAz mote.
>> >
>> > ___
>> > Tinyos-help mailing list
>> > Tinyos-help@millennium.berkeley.edu
>> >
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> >
>
>
> *--- End of Original Message ---*
>
> ___
> 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] node timestamps

2009-03-15 Thread Ittipong Khemapech
Hi,

Please read TEP 102 at
http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep102.html
.

Ittipong

2009/3/15 Alfred NOBEL 

> Hi,
> how to get current node timestamps?
>
> --
> Best regards,
> Alfred.Nooobel
> "One day, I will get Nobel price"
>
> ___
> 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] tinyOs environment check

2009-03-09 Thread Ittipong Khemapech
Hi,

You may open cygwin and try:

export
CLASSPATH="$CLASSPATH;/cygdrive/f/cygwin/opt/tinyos-2.x/support/sdk/java/tinyos.jar;."

I'm not sure what causes the problems.

Ittipong

2009/3/9 neh 

>
> i have tried echo $CLASSPATH but it is not giving me any out put...
>
> i also changed \ to / but same warnings are there...
>
> i also changed the dir of jre...
>
> is it necessary to install graphviz?because i haven't insalled it...
>
> thanks
> --
> View this message in context:
> http://www.nabble.com/tinyOs-environment-check-tp22417782p22417782.html
> Sent from the TinyOS - Help mailing list archive at Nabble.com.
>
> ___
> 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] Change Packet Structure

2009-03-09 Thread Ittipong Khemapech
Hi,

It's message_t in TinyOS 2.x. You should see TEP111 (
http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep111.html)
for details.

The tutorial lesson 3 & 4 are also useful.

Hope this helps.

Ittipong

2009/3/9 Joe Green 

> Hi everyone,
>
> First off I was wondering what the entire default packet structure looks
> like for tinyos 2.x, I can only find the structure for 1.x. Are they the
> same?
>
> Second, I was wondering how one can change the packet format. I am trying
> to read incoming data packets, and was wondering if I could change the 7E at
> the beginning of the packet to something to mark the beginning of a packet
> (since the end is also 7E).
>
> Thanks!
> Joe
>
>
> ___
> 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] RSSI in BSN?

2009-03-09 Thread Ittipong Khemapech
Hi,

What does BSN stand for? I think it depends upon the radio chip employed by
the mote.

Ittipong

2009/3/9 David Mehrzadi 

> Hi
> Does any one know how to measure RSSI in BSN? Are there any applications
> similar to Telosb's RssiDemo for BSN?
>
> thanks
>
> ___
> 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] Fwd: Reg.the Serial Forwarder application

2009-03-04 Thread Ittipong Khemapech
I forward your reply to the list so the others can help you out.

Ittipong

-- Forwarded message --
From: Siva Sankar Gupta 
Date: 2009/3/4
Subject: Re: [Tinyos-help] Reg.the Serial Forwarder application
To: Ittipong Khemapech 


Hi,

Thanks for the reply...

yes ur right iam using it with CC2420 radio (Tmote Sky). But in my
application i'm only using 116 bytes of payload.. So the maximum packet size
is header+payload which equals 126 which is within the limits only...
I tried to run the application with less packet size, but the error still
exists.

with regards
Siva

2009/3/4 Ittipong Khemapech 

Hi,
>
> According to the error message, I think your payload is too long. I am sure
> that you are using platform with CC2420 radio (Tmote Sky). The maximum
> packet size (header + payload) is 128 bytes.
>
> If the header is 10 bytes, that will leave you 118 bytes for the payload.
>
> Hope this helps.
>
> Ittipong
>
>
> 2009/3/4 Siva Sankar Gupta 
>
>>  Hello,
>>
>> I'm trying to run a java application which sends packets read from a text
>> file to the UART with the help of Serial Forwarder.
>> The tmote sky node which receives the packets over the UART will send them
>> over the radio and the other node which receives the packets over the radio
>> will send the packets back to the UART.
>> Both the motes are connected to the same PC. But there are assigned
>> different port numbers to avoid port conflicts.
>>
>> The total size of the TOS_Msg in my nesC application is 126 bytes
>> I have the following problem.
>>
>> Packets are the received by the receiver node via the radio and i can see
>> the raw data of the packets at the COM port assigned to this receiver node.
>> But the packets are not forwarded by the Serial Forwarder..
>>
>> Serial Forwarder displays the following message with the raw data
>>
>> TOS_Msg length invalid: header length = 10, real length =126, modifying
>> msg to fit...
>>
>> I'm using TinyOS 1.x
>> platform :cygwin/WinXP
>>
>> Can any one help me in solving this problem...!
>>
>>
>> --
>> Siva Sankar Gupta Guggilum
>> Schubertstraße 19
>> Klagenfurt,9020
>> Austria
>> Ph:- 0043 6606871071
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>


-- 
Siva Sankar Gupta Guggilum
Schubertstraße 19
Klagenfurt,9020
Austria
Ph:- 0043 6606871071
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Reg.the Serial Forwarder application

2009-03-04 Thread Ittipong Khemapech
Hi,

According to the error message, I think your payload is too long. I am sure
that you are using platform with CC2420 radio (Tmote Sky). The maximum
packet size (header + payload) is 128 bytes.

If the header is 10 bytes, that will leave you 118 bytes for the payload.

Hope this helps.

Ittipong


2009/3/4 Siva Sankar Gupta 

> Hello,
>
> I'm trying to run a java application which sends packets read from a text
> file to the UART with the help of Serial Forwarder.
> The tmote sky node which receives the packets over the UART will send them
> over the radio and the other node which receives the packets over the radio
> will send the packets back to the UART.
> Both the motes are connected to the same PC. But there are assigned
> different port numbers to avoid port conflicts.
>
> The total size of the TOS_Msg in my nesC application is 126 bytes
> I have the following problem.
>
> Packets are the received by the receiver node via the radio and i can see
> the raw data of the packets at the COM port assigned to this receiver node.
> But the packets are not forwarded by the Serial Forwarder..
>
> Serial Forwarder displays the following message with the raw data
>
> TOS_Msg length invalid: header length = 10, real length =126, modifying msg
> to fit...
>
> I'm using TinyOS 1.x
> platform :cygwin/WinXP
>
> Can any one help me in solving this problem...!
>
>
> --
> Siva Sankar Gupta Guggilum
> Schubertstraße 19
> Klagenfurt,9020
> Austria
> Ph:- 0043 6606871071
>
> ___
> 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] odd problem on message_t

2009-03-03 Thread Ittipong Khemapech
Hi,

I *didn't* look at your code and I'm not sure about the #define
TOSH_DATA_LENGTH to 35 in message.h.

Try add:

CFLAGS += -DTOSH_DATA_LENGTH=35

in your Makefile.

Please let me know how it goes.

Ittipong

2009/3/4 BAI LI 

> Hi All,
>
> I am currenting doing a very simple network test. I designed the message
> structure in .h file and some sending functions in the following.
>
> typedef nx_struct HashMsg {
>   nx_uint16_t nodeid;
>   nx_uint8_t flag;
>   nx_uint32_t payload_MD1;
>   nx_uint32_t payload_MD2;
>   nx_uint64_t payload_M;
>   nx_uint64_t payload_R;
>   nx_uint16_t payload_ID;
> } HashMsg;
>
>
> Part of the sending code is as folows:
>
>
> event void Timer0.fired() {
>
>  uint16_t destinationMote=0x0002;
> if (!busy) {
>   HashMsg* hmpkt =
>  (HashMsg*)(call Packet.getPayload(&pkt, sizeof(HashMsg)));
>   if (hmpkt == NULL) {
>  return;
>   }
>   hmpkt->flag=1;
>   hmpkt->nodeid = TOS_NODE_ID;
>   hmpkt->payload_MD1 = 0x12345678;
>hmpkt->payload_MD2 = 0x90ABCDEF;// disable this line, it will work
>hmpkt->payload_M=0x;
>hmpkt->payload_R=0x;
>hmpkt->payload_ID=0x;
>   if (call AMSend.send(destinationMote,
>   &pkt, sizeof(HashMsg)) == SUCCESS) {
>   call Leds.led0On();
> busy = TRUE;
>   }
> }
>
>   }
>
> When the program loads the data to send. The program is dead with one more
> line "hmpkt->payload_MD2 = 0x90ABCDEF";. I don't know what the problem is as
> I have changed the #define TOSH_DATA_LENGTH to 35 in message.h which is
> enough to handle the data. However it didn't work still. I suspect that it
> could be message size problem. But I can't work it out. THanks.
>
> Regards,
> Bai
>
> ___
> 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] bsl sync failed

2009-03-03 Thread Ittipong Khemapech
Hi,

I think it would be good if you can tell which TinyOs release and OS you are
using.

Ittipong

2009/3/3 Xiaodong Wang 

> Hi all,
>
> When I am programming the TmoteInvent, I got the following error:
>
> Error, bsl sync failed.
>
> And the mote seems to be dead. No LED can turn on. Any idea how this
> happens?
> Thank you for reading the email.
>
> David
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Hello!

2009-03-03 Thread Ittipong Khemapech
You're welcome.

You need CC2420ActiveMessageC component and CC2420 interface for tx power
adaptation. For the wiring:

App.CC2420Packet -> CC2420ActiveMessageC;

Hope this helps.
Ittipong

2009/3/3 milos rovcanin 

> Thanks, man! You have been very halpful!!! ;)
>
> I have just one more question: I can connect CC2420PacketC to my
> configuration using only CC2420Packet and CC2420PacketBody interface, right?
> Becuse, those two interfaces are all I need!  I don't have to do anything
> else?
>
> MyApp.CC2420Packet-> CC2420PacketC;
> MyApp.CC2420PacketBody;-> CC2420PacketC; Like this?
>
>
> --
> Best regards, Milos Rovcanin
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Hello!

2009-03-03 Thread Ittipong Khemapech
Hi,

Of course. Try CC2420Packet.setPower().

Ittipong

2009/3/3 milos rovcanin 

> I must ask again: is there a way to change radio (CC2420) transmission
> power during runtime? This is very important! Please help!
>
> --
> Best regards, Milos Rovcanin
>
> ___
> 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] Source gets value from where BaseStation set

2009-03-03 Thread Ittipong Khemapech
I think I've solved it :-) Got back to basic by looking at BlinkToRadio.

Thanks,
Ittipong

2009/3/3 Ittipong Khemapech 

> Hi,
>
> Let say that I have one message structure defined as follows:
>
> typedef nx_struct MyMsg {
>   ...
>   value;
> } MyMsg;
>
> BaseStation adapts the value:
>
> myMsg->value++;
>
> and then sends.
>
> Upon the reception, the Source access the value and store in the temp
> variable:
>
> temp = myMsg->value;
>
> My problem is that 'temp' is always zero.
>
> Any helps would be appreciated.
>
> Ittipong
>
> 2009/3/2 Ittipong Khemapech 
>
> Hi all,
>>
>> I've been stuck with this problem. I have one message structure for
>> BaseStation and Source. After data reception, BaseStation set value to a
>> particular field. The Source then gets that value and uses it.
>>
>> The problem is the get value is always zero. Have I missed something or
>> are there any aspects I should keep in mind?
>>
>> I've been debugging the codes, other parts work fine.
>>
>> Thanks,
>> Ittipong
>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Source gets value from where BaseStation set

2009-03-03 Thread Ittipong Khemapech
Hi,

Let say that I have one message structure defined as follows:

typedef nx_struct MyMsg {
  ...
  value;
} MyMsg;

BaseStation adapts the value:

myMsg->value++;

and then sends.

Upon the reception, the Source access the value and store in the temp
variable:

temp = myMsg->value;

My problem is that 'temp' is always zero.

Any helps would be appreciated.

Ittipong

2009/3/2 Ittipong Khemapech 

> Hi all,
>
> I've been stuck with this problem. I have one message structure for
> BaseStation and Source. After data reception, BaseStation set value to a
> particular field. The Source then gets that value and uses it.
>
> The problem is the get value is always zero. Have I missed something or are
> there any aspects I should keep in mind?
>
> I've been debugging the codes, other parts work fine.
>
> Thanks,
> Ittipong
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Source gets value from where BaseStation set

2009-03-02 Thread Ittipong Khemapech
Hi all,

I've been stuck with this problem. I have one message structure for
BaseStation and Source. After data reception, BaseStation set value to a
particular field. The Source then gets that value and uses it.

The problem is the get value is always zero. Have I missed something or are
there any aspects I should keep in mind?

I've been debugging the codes, other parts work fine.

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

Re: [Tinyos-help] calculate PIAT

2009-03-01 Thread Ittipong Khemapech
Hi,

I think you can set it by defining when the timer periodically starts. When
the timer is fired, one packet is sent.

Applications in the apps folder do this.

Hope this helps.

Ittipong

2009/3/1 BHARATHI MANJULA K 

> hi all,
>
> plz  answer me how to find Packet Inter Arrival Time(PIAT)...
>
> i.e.,no. of  packets sent /second. Is there any variable called CBR in
> tinyos
>
> where to find exact syntax of that
>
> ___
> 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] 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] maximum packet size

2009-02-25 Thread Ittipong Khemapech
Hi,

Two following discussions may be the ones you need:

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-August/027614.html

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-April/016195.html

Ittipong


On 25/02/2009, Ruben Catteeuw  wrote:
>
> Hi,
>
> I think there must be a hardware-limit on the packet size.
>
> regards
>
> Ruben
>
> Date: Wed, 25 Feb 2009 14:25:29 +0800
> From: psund...@gmail.com
> To: tinyos-help@millennium.berkeley.edu
> Subject: [Tinyos-help] maximum packet size
>
> Hi,
> Is there any limit to the packet size inclusive of all the headers and crc?
> The CC2420 TEP, says that the max size is 128 bytes according to 802.15.4
> spec, but it also says that you can increase the size by changing the
> TOSH_DATA_LENGTH with a trade-off of potential interferences. Can I assume
> that excepting the consequences, there is no limit on the packet size?
>
> Regards,Pratibha
>
> On Wed, Feb 25, 2009 at 10:43 AM,
>  wrote:
>
> Send Tinyos-help mailing list submissions to
>
> tinyos-help@millennium.berkeley.edu
>
>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
> or, via email, send a message with subject or body 'help' to
>
> tinyos-help-requ...@millennium.berkeley.edu
>
>
>
> You can reach the person managing the list at
>
> tinyos-help-ow...@millennium.berkeley.edu
>
>
>
> When replying, please edit your Subject line so it is more specific
>
> than "Re: Contents of Tinyos-help digest..."
>
>
>
>
>
> Today's Topics:
>
>
>
>1. Re: Development Platform Question (w.david...@gmail.com)
>
>2. Re: need help with understanding Tinyos (Urs Hunkeler)
>
>3. Re: need help with understanding Tinyos (Urs Hunkeler)
>
>4. Re: Change packet rate (Poonam Hiwal)
>
>5. Re: LogWrite appendDone failure (error_t error=FAIL) (Parkurm)
>
>6. Re: 4 bit Link Estimator. (Omprakash Gnawali)
>
>
>
>
>
> --
>
>
>
> Message: 1
>
> Date: Tue, 24 Feb 2009 20:00:28 +
>
> From: w.david...@gmail.com
>
> Subject: Re: [Tinyos-help] Development Platform Question
>
> To: Janos Sallai , David Li
>
> , tinyos-help@millennium.berkeley.edu
>
>
> Message-ID: <0016364c598314bce80463af9...@google.com>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> Thank you all for the responses.
>
>
>
> It looks like going for Linux (either virtual or real) is the best option
>
> for development. Hardware doesn't matter as none of the platform provides
>
> SDR capability anyway.
>
>
>
> Another question about tools/source install for TinyOS 2.1: Is there any
>
> one stop shop that ALL necessary packages can be downloaded and installed
>
> at once? Or do I have to go through the 5 or 6 steps to do all these
>
> manually? From what I have read, the one stop option (Linux Live CD)
>
> doesn't currently work. So the next option is a two-step approach using
>
> apt-get. But the "sudo apt-get install tinyos" failed in my case because it
>
> complained about lots of missing dependencies. So my conclusion is you have
>
> to do this manually. Did I miss something?
>
>
>
> Thanks.
>
>
>
> David
>
>
>
>
>
> On Feb 24, 2009 8:30am, Janos Sallai  wrote:
>
>> > 1. Which software platform is better for development in terms of ease
>
>
>
>> > of use? I have seen Windows and Linux. For Linux is it Ubuntu or
>
>
>
>> > Fedora?
>
>
>
>> I suggest that you use a virtual machine image that runs under VMWare
>
>
>
>> Player. Then it does not matter what host operating system you use.
>
>
>
>> This is the easiest way to get started with TinyOS.
>
>
>
>
>
>
>
>> > 2. Which hardware platform is better to use, Mica based or Telos
>
>
>
>> > based? Consider the factor that I might have to customize the radio
>
>
>
>> > waveform (software defined radio), and other high level power control
>
>
>
>> > stuff in the future.
>
>
>
>> Both micaz and telos use the CC2420 802.15.4 compliant transceiver
>
>
>
>> (DSSS/O-QPSK), so you will not be able to experiment with the
>
>
>
>> waveform.
>
>
>
>
>
>
>
>> Janos
>
>
>
> -- next part --
>
> An HTML attachment was scrubbed...
>
> URL:
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090224/10eab454/attachment-0001.htm
>
>
>
>
> --
>
>
>
> Message: 2
>
> Date: Tue, 24 Feb 2009 22:06:04 +0100
>
> From: Urs Hunkeler 
>
> Subject: Re: [Tinyos-help] need help with understanding Tinyos
>
> To: mhse...@yahoo.com
>
> Cc: tinyos-help@millennium.berkeley.edu
>
> Message-ID: <49a4613c.70...@gmx.ch>
>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
>
> Hi Mohamed,
>
>
>
> TinyOS is an embedded operating system. To save memory space, the
>
> operating system is not installed as a separate software module, but
>
> rather the programs that you want to use are compiled into a single
>
> binary, which the

Re: [Tinyos-help] Timestamp

2009-02-24 Thread Ittipong Khemapech
Hi,

It works now. Many thanks :-)

Ittipong

2009/2/24 Anton 

> Hi,
>
> I do timestamps in this way:
>
>
> async event void RadioTimeStamping.transmittedSFD(uint16_t time, message_t*
> p_msg){
>
>   //get the current time and replace the lower half-word with
> SFD-captured timer content:
>   timertime=timeget();
>
>  
> mytimebuf=(timertime&0xUL)>((uint32_t)time&0xUL))?timertime:(timertime-0x0001UL))&0xUL)|((uint32_t)time&0xUL));
>   transmittime=mytimebuf;
> //load the 32-bit timestamp to a uint8_t 4-elements' array:
>   for(v=0;v<4;v++){
>   mytime[v]=(uint8_t)((mytimebuf>>((3-v)*8))&0x00FFUL);
>   }
> //write the timestamp to the CC2420 RAM:
>   call CC2420Transmit.modify(
> offsetof(ProtocolMsg,timeStamp)+sizeof(message_header_t), mytime, 4);
>  }
>
>
>
> This works. To use  "message_header_t" it is necessary to include
> "CC2420.h" in the program. "timeStamp" is a 4-byte field of my packet, which
> I put the timestamp in.
>
> Anton.
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Timestamp

2009-02-21 Thread Ittipong Khemapech
Hi,

I've some problems using RadioTimeStamping.transmittedSFD() to timestamp
when the SFD is captured.

My message structure declaration is as follows:

typedef nx_struct MyMsg {
  nx_uint8_t base_id;
  nx_uint8_t src_id;
  nx_uint16_t cycle_no;
  nx_uint32_t b_send;
  nx_uint32_t s_recv;
  nx_uint32_t s_send;
  nx_uint32_t b_recv;
  nx_uint32_t rtt;
} MyMsg;

I need the time when the source sends to be stored in b_send. As
RadioTimeStamping.transmittedSFD() gives 16-bit time, I convert the 16-bit
time to 32-bit value as provided in CC2420TransmitP.nc. The current time is
obtained by calling Alarm.getNow().

Accoring to the CC2420Transmit.nc, I need to only call
CC2420Transmit.modify() to put the time into the message.

I have:

   async event void RadioTimeStamping.transmittedSFD(uint16_t time,
message_t* p_msg) {
   atomic {
   MyMsg* myMsg = (MyMsg*)(call Packet.getPayload(&mpkt, NULL));
   if (&mpkt == p_msg) {
   snd_time_32 = time16to32(time, call DataSendAlarm.getNow());
   call CC2420Transmit.modify(sizeof(myMsg) - 12, (uint8_t*)
&snd_time_32, 4);
   }
   }
   }

I also need the s_send to be displyed on screen. The BaseStation is modified
for this.

The problem is I always get zero (0) for the s_send.

I've try adding:

myMsg->s_send = snd_time_32;

It doesn't work as the first value is always zero (0). For example:

BaseIDSourceID CycleNoBSend   SRecv   SSend   BRecv   RTT
 0   11xxx   xxx
0   xxxxxx
 0   12xxx   xxx
xxx   xxxxxx

I've been working on this for days. Please give me some hints.

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

Re: [Tinyos-help] Two applications, One message structure

2009-02-20 Thread Ittipong Khemapech
I've solved it. Forgot about UART stuffs.

Thanks,
Ittipong

2009/2/19 Ittipong Khemapech 

> Hi,
>
> I've been trying to modify the BaseStation. There is one message structure
> (TestMsg). Upon receiving and transmitting SFDs, both BaseStation and Source
> put the times in different fields (base_send, base_receive, src_send and
> src_receive).
>
> The problem is that such values set by the BaseStation are always zero (0).
> The MIG and MessageListener are used to show such information on screen.
>
> My java file is on the BaseStation side.
>
> Any hints would be much appreciated.
>
> Thanks,
> Ittipong
>
> 2009/2/18 Ittipong Khemapech 
>
> Hi,
>>
>> Could it be possible for two applications (such as Source and BaseStation)
>> to access and set the same message structure?
>>
>> For example, the Source sets source_id when sending and the BaseStation
>> sets receive_time when receiving the SFD.
>>
>> Look forward to hearing from you very soon.
>>
>> Thanks,
>> Ittipong
>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Two applications, One message structure

2009-02-19 Thread Ittipong Khemapech
Hi,

I've been trying to modify the BaseStation. There is one message structure
(TestMsg). Upon receiving and transmitting SFDs, both BaseStation and Source
put the times in different fields (base_send, base_receive, src_send and
src_receive).

The problem is that such values set by the BaseStation are always zero (0).
The MIG and MessageListener are used to show such information on screen.

My java file is on the BaseStation side.

Any hints would be much appreciated.

Thanks,
Ittipong

2009/2/18 Ittipong Khemapech 

> Hi,
>
> Could it be possible for two applications (such as Source and BaseStation)
> to access and set the same message structure?
>
> For example, the Source sets source_id when sending and the BaseStation
> sets receive_time when receiving the SFD.
>
> Look forward to hearing from you very soon.
>
> Thanks,
> Ittipong
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Two applications, One message structure

2009-02-18 Thread Ittipong Khemapech
Hi,

Could it be possible for two applications (such as Source and BaseStation)
to access and set the same message structure?

For example, the Source sets source_id when sending and the BaseStation sets
receive_time when receiving the SFD.

Look forward to hearing from you very soon.

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

[Tinyos-help] 'Times' returned by RadioTimeStamping.receivedSFD() and RadioTimeStamping.transmittedSFD()

2009-02-16 Thread Ittipong Khemapech
Hi,

I've been stuck with the 'times' returned by RadioTimeStamping.receivedSFD()
and RadioTimeStamping.transmittedSFD(). In my application, the base sends a
packet to its source. The source waits for 1 second (32,768 ticks) and then
sends a packet back to the base station.

The receivedSFD provides 'time' but the one from transmittedSFD is always 0
(zero).

I tried an Alarm to give current time that can be used by both event. It
still doesn't work.

I was wondering if anybody experienced this.

Any suggestions would be great.

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

[Tinyos-help] Exchange of 2 message structures

2009-02-12 Thread Ittipong Khemapech
Hi,

I've coding an application where base station and source exchange 2 message
structures. Firstly, the base station sends controlMsg to the source. Upon
reception, the source sends the dataMsg back.

The BaseStation has been modified to send packets. I need to know data
transmission and reception times. I'm using RadioTimeStamping interface. The
source successfully receives the controlMsg because the reception time is
got and displayed on screen (using MessageListener).

However, I copy the base station's transmission time into the dataMsg in
order to see it on screen. It's always been zero.

Could anyone give me some hints?

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

Re: [Tinyos-help] Pls Help me- sending packet to a particular mote

2009-02-11 Thread Ittipong Khemapech
Hi,

Have you gone through the tutorials? Lesson 3 and 4 will be very useful. You
can modify the BaseStation.

Ittipong

2009/2/11 Brandon Fu 

>  Hi,
>  Can anyone tell me how do i send to a particular mote and receive from a
> particular mote.?? Use AMSend and what else?
> Really appreciate whoever can provide me an answer
>
> yours sincerely,
> Brandon
>
> --
> Enrich your blog with Windows Live Writer. Windows Live 
> Writer
>
> ___
> 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] Alarm32khz32C produces some warnings

2009-02-09 Thread Ittipong Khemapech
Thank you for your help. I'm trying AlarmToTimerC and get stuck due to 'not
connected' errors. Any detailed examples around?

Ittipong

2009/2/9 Greg Hackmann 

> Ittipong Khemapech wrote:
> > *1st: called asynchronously*
> >
> > Payload.getPayload called asynchronously from DataSendAlarm.fired
> > AMSend.send called asynchronously from DataSendAlarm.fired
>
> You should read Section 4.5 of the TinyOS Programming Guide
> (http://www.tinyos.net/tinyos-2.x/doc/pdf/tinyos-programming.pdf) if it
> isn't clear why you're getting this warning.
>
> The simplest fix is to move all of your computations from
> DataSendAlarm.fired() into a task.  Then handle the
> DataSendAlarm.fired() event by posting that task.  Or, you could use
> TinyOS's built-in AlarmToTimerC component to transform the Alarm
> interface into a Timer interface.
>
> Greg Hackmann
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Alarm32khz32C produces some warnings

2009-02-09 Thread Ittipong Khemapech
Hi,

I've figured out the 2nd warning. It's because I forgot to remove the
LocalTimeMilliC and its interface LocalTime. However, the 1st
warning is still.

Thanks,
Ittipong

2009/2/8 Ittipong Khemapech 

> Hi,
>
> I have been trying to use Alarm32khz32C instead of TimerMilliC in order to
> get higher precision and uint32_t width. I've got some 2 types of warnings
> after compilation:
>
> *1st: called asynchronously*
>
> Payload.getPayload called asynchronously from DataSendAlarm.fired
> AMSend.send called asynchronously from DataSendAlarm.fired
>
> *2nd: in VirtualizeTimerC.nc*
>
> Line 66 and 101 : 'comparison is always false due to limited range of data
> type'
>
> I have no clue how to remove these warnings. Please give me some hints.
>
> Thanks,
> Ittipong
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Alarm32khz32C produces some warnings

2009-02-08 Thread Ittipong Khemapech
Hi,

I have been trying to use Alarm32khz32C instead of TimerMilliC in order to
get higher precision and uint32_t width. I've got some 2 types of warnings
after compilation:

*1st: called asynchronously*

Payload.getPayload called asynchronously from DataSendAlarm.fired
AMSend.send called asynchronously from DataSendAlarm.fired

*2nd: in VirtualizeTimerC.nc*

Line 66 and 101 : 'comparison is always false due to limited range of data
type'

I have no clue how to remove these warnings. Please give me some hints.

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

Re: [Tinyos-help] RSSI

2009-02-06 Thread Ittipong Khemapech
Hi,

Have a look at RssiDemo by Dimas; http://docs.tinyos.net/index.php/Rssi_Demo
.

Ittipong

2009/2/6 Lorena Aguirre 

> Hello,
>
> We would like to get the RSSI and we want to know if a programa exists tha
> calculate it.
> We have the old version of tinyos 1.x.
>
> Thanks,
> Lorena
>
> ___
> 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] Problem installing Tinyos with cygwin

2009-02-06 Thread Ittipong Khemapech
Hi,

I think dot (.) should be at the end of your PATH setting. For example my
CLASSPATH setting using export command is:

$ export
CLASSPATH="$CLASSPATH;/cygdrive/c/cygwin/opt/tinyos-2.x/support/sdk/java/tinyos.jar;."

You can see the dot after semicolon (;).

Ittipong

2009/2/6 Dave K 

> After I tried the tos-check-env, it gave me this warning.
>
> I don't know where this 'dot' could apply to.
>
> Please help
>
> graphviz:
>
> --> WARNING: No dot in current path.
>
> --> WARNING: tos-check-env could not find the 'dot' executable which is
> part of
> the AT&T Graphviz package. Please install version 1.1.0 of Graphviz if
> you'd lik
> e to use the nescdoc documentation generator. If Graphviz is already
> installed,
> then dot may not be in your PATH.
>
>
> tos-check-env completed with errors:
>
> --> WARNING: No dot in current path.
> --> WARNING: tos-check-env could not find the 'dot' executable which is
> part of
> the AT&T Graphviz package. Please install version 1.1.0 of Graphviz if
> you'd lik
> e to use the nescdoc documentation generator. If Graphviz is already
> installed,
> then dot may not be in your PATH.
> ___
> 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] RadioTimeStamping Interface

2009-02-05 Thread Ittipong Khemapech
Hi,

I'm studying RadioTimeStamping interface. I've found that the
CC2420Transmit.modify() can be used to put the current time when the SFD is
received or transmitted. The modify command takes 3 attributes as shown
below:

  /**
   * Modify the contents of a packet. This command can only be used
   * when an SFD capture event for the sending packet is signalled.
   *
   * @param offset in the message to start modifying.
   * @param buf to data to write
   * @param len of bytes to write
   * @return SUCCESS if the request was accepted, FAIL otherwise.
   */
  async command error_t modify( uint8_t offset, uint8_t* buf, uint8_t len );

 }

I'm wondering if I need to get the local time (by calling LocalTime.get())
and used it as the 2nd attribute.

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

Re: [Tinyos-help] Access and set individual bit in payload

2009-01-30 Thread Ittipong Khemapech
Hi Mindaugas,

Many thanks to your reply. I'll try and let you know.

Ittipong

2009/1/30 Mindaugas Jaraminas 

> Hi Ittipong
>
> Here is quick example:
>
> #include 
> #include 
> #define UINT8 unsigned char
>
> void display(UINT8 * buffer, UINT8 Length){
>UINT8 * tmp = buffer;
>UINT8 mask;
>int i, y;
>for (i = 0; i < Length; i++) {
>mask = 1;
>printf ("Printing byte 0x%02X,  bits = ", *tmp);
>for (y=0; y < 8; y++ ){
>printf ("%X,", (*tmp & mask) >> y);
>mask = mask << 1;
>}
>printf ("\n");
>tmp ++;
>}
> }
>
> int main ()
> {
>  UINT8 buff[3]= {0x01, 0xAA, 0x03,};
>  UINT8 len = sizeof(buff);
>
>  display(buff, len);
>
>  return 0;
> }
>
> The output is:
>
> Printing byte 0x01,  bits = 1,0,0,0,0,0,0,0,
> Printing byte 0xAA,  bits = 0,1,0,1,0,1,0,1,
> Printing byte 0x03,  bits = 1,1,0,0,0,0,0,0,
>
> --
> Best regards
> Mindaugas Jaraminas
>
> George Carlin  - "May the forces of evil become confused on the way to
> your house."
>
>
> 2009/1/30 Ittipong Khemapech :
> > Hi,
> >
> > Is it possible to access and set value to each individual bit of
> message_t
> > payload? I've been through the archives and found nothing. If you have
> done
> > before, please share or give me some hints.
> >
> > Many thanks in advance,
> > Ittipong
> >
> >
> > ___
> > 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] Access and set individual bit in payload

2009-01-30 Thread Ittipong Khemapech
I think I should do byte-level declaration as usual and bitwise operation in
specific byte accordingly. More ideas or hints are very welcome.

Thanks,
Ittipong

2009/1/30 Ittipong Khemapech 

> Hi Jordi,
>
> Many thanks for your reply. I'm kind of stuck at the very beginning. I'm
> wondering how to declare the message structure which its individual bit is
> accessed and set.
>
> Thanks,
> Ittipong
>
> 2009/1/30 Jordi Soucheiron 
>
> Hi,
>> Yes, it's possible. I'm sure there are a lot of ways to do that, but I
>> think the easyest way is to use masks and pointers
>> http://www.vipan.com/htdocs/bitwisehelp.html
>> I hope this helps
>>
>> 2009/1/30 Ittipong Khemapech 
>>
>>>  Hi,
>>>
>>> Is it possible to access and set value to each individual bit of
>>> message_t payload? I've been through the archives and found nothing. If you
>>> have done before, please share or give me some hints.
>>>
>>> Many thanks in advance,
>>>  Ittipong
>>>
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>> --
>> Jordi Soucheiron
>> Software Engineer
>>
>> DEXMA
>> Parc Tecnològic la Salle
>> Sant Joan de la Salle, 42
>> 08022 Barcelona
>> t/f: [+34] 93 280 19 18
>> www.dexmatech.com
>> jsouchei...@dexmatech.com
>>
>>
>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Access and set individual bit in payload

2009-01-30 Thread Ittipong Khemapech
Hi Jordi,

Many thanks for your reply. I'm kind of stuck at the very beginning. I'm
wondering how to declare the message structure which its individual bit is
accessed and set.

Thanks,
Ittipong

2009/1/30 Jordi Soucheiron 

> Hi,
> Yes, it's possible. I'm sure there are a lot of ways to do that, but I
> think the easyest way is to use masks and pointers
> http://www.vipan.com/htdocs/bitwisehelp.html
> I hope this helps
>
> 2009/1/30 Ittipong Khemapech 
>
>> Hi,
>>
>> Is it possible to access and set value to each individual bit of message_t
>> payload? I've been through the archives and found nothing. If you have done
>> before, please share or give me some hints.
>>
>> Many thanks in advance,
>>  Ittipong
>>
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Jordi Soucheiron
> Software Engineer
>
> DEXMA
> Parc Tecnològic la Salle
> Sant Joan de la Salle, 42
> 08022 Barcelona
> t/f: [+34] 93 280 19 18
> www.dexmatech.com
> jsouchei...@dexmatech.com
>
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Access and set individual bit in payload

2009-01-30 Thread Ittipong Khemapech
Hi,

Is it possible to access and set value to each individual bit of message_t
payload? I've been through the archives and found nothing. If you have done
before, please share or give me some hints.

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

[Tinyos-help] Example of CC2420Transmit.modify()

2009-01-28 Thread Ittipong Khemapech
Hi,

Are there any examples of using CC2420Transmit.modify()? I'm trying to sync
2 mote by timestamping the packet. I'm using Tmote, TinyOS 2.0 and Cygwin.

Many thanks in advance.

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

Re: [Tinyos-help] make error

2008-10-31 Thread Ittipong Khemapech
Hi,

I have forwarded your reply to the list to get much better chance to get
help.

Ittipong

2008/10/31 José Inda <[EMAIL PROTECTED]>

> Thank you two but the problem persists.
>
> I forgot to tell you this is the second time I install cygwin+TinyOS.
> My situation is similar to nisha jain, who wrote just after me, I had
> several problems when I installed TinyOS the first time and I don't
> remember how I came up with the solutions. I had many of the same
> problems this time and found the solutions again until this step.
>
> I am 'making' within the application as Ittipong Khemapech.
> When I type tos-check-env I get this error
>
> --> WARNING: The JAVA version found first by tos-check-env may not be
> version 1.
> 4 or version 1.5one of which is required by TOS. Please ensure that the
> located
> Java version is 1.4 or 1.5
> Depending on your PATH environment variable, there is often another
>  version of
> java.exe in c:\windows\system32 that is "seen" first. Check that this is
> version
>  1.4 or 1.5 or reconfigure your PATH environment variable if this is the
> case.
> --> WARNING: No dot in current path.
> --> WARNING: tos-check-env could not find the 'dot' executable which is
> part of
> the AT&T Graphviz package. Please install version 1.1.0 of Graphviz if
> you'd lik
> e to use the nescdoc documentation generator. If Graphviz is already
> installed,
> then dot may not be in your PATH.
>
> I installed java version 1.6 as said the instructions, this is what I
> get when I type java -version
>
> $ java -version
> java version "1.6.0_10"
> Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
> Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
>
> Thanks
>
> On Fri, Oct 31, 2008 at 2:25 PM, Ittipong Khemapech
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Please make sure that you 'make' within the application directory.
> >
> > Ittipong
> >
> > 2008/10/31 José Inda <[EMAIL PROTECTED]>
> >>
> >> Hi all
> >> I'm rather new on TinyOS. I've just installed Cygwin and TinyOS on a
> >> new computer, and when I try the Blink application, I get the
> >> following error:
> >>
> >> $ make telosb install
> >> make: *** No rule to make target `telosb'.  Stop.
> >>
> >> What may be the problem.
> >> Thanks
> >> Jose
> >> ___
> >> 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] make error

2008-10-31 Thread Ittipong Khemapech
Hi,

Please make sure that you 'make' within the application directory.

Ittipong

2008/10/31 José Inda <[EMAIL PROTECTED]>

> Hi all
> I'm rather new on TinyOS. I've just installed Cygwin and TinyOS on a
> new computer, and when I try the Blink application, I get the
> following error:
>
> $ make telosb install
> make: *** No rule to make target `telosb'.  Stop.
>
> What may be the problem.
> Thanks
> Jose
> ___
> 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] tos-2.0.2 help

2008-10-30 Thread Ittipong Khemapech
Hi,

Sorry, I can't understand your question. Could you please more specific or
give some examples?

I think having a look at TinyOS installation guide and tutorial would be
fine.

Ittipong

2008/10/30 zsqtc1986 <[EMAIL PROTECTED]>

>  Hello,
> thank you very much for your reply!
> I have tried  "printenv CLASSPATH"
> result is that below:
>
> /opt/tinyos-2.x/support/sdk/java/tinyos.jar;.
>
> and tinyos.jar is in the path:
>
> E:\project\cygwin\opt\tinyos-2.x\support\sdk\java
>
>
> BTW,can you tell me how to see the log of cygwin you have just run,pls?
>
> Thank you!
>
>
>
>
> 在2008-10-29,"Ittipong Khemapech" <[EMAIL PROTECTED]> 写道:
>
> Hi,
>
> Just try:
>
> printenv CLASSPATH
>
> under cygwin and tell me what you've got. Browse to see where is tinyos.jar
> is.
>
> Ittipong
>
> 2008/10/29 zsqtc1986 <[EMAIL PROTECTED]>
>
>>  Hello,sir:
>>   I have just installed TinyOS 2.0.2,and I have done some experiment.But
>> when I was doing the lesson of "RadioCountToLeds",I got some errors.
>>   I have turned to this site:
>>
>> http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg11276.html<http://www.mail-archive.com/[EMAIL
>>  PROTECTED]/msg11276.html>
>>
>>
>> I was in the situation that: there are no class files contained in the
>> sub-dirs.But there is a "makefile",a "Makefile.include",and a "tinyos.jar"
>> I acquired that I should change the cp ,but what will [path] and
>> [file.jar] be?I have no idea. I have tried to set cp as :
>> .;E:\project\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;$CLASSPATH
>>
>> but the error is still going on...
>>
>> Can you tell me what cp to choose?
>>
>> Anything you give me will be helpful!
>>
>> Thank you very much in advance!
>>
>>
>> Dylan
>> Xiamen University   China
>>
>>
>>
>>
>>
>> --
>> [广告] 特惠尝必胜客26道新品 <http://popme.163.com/link/004584_1007_8510.html>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> [广告] 金秋最关注楼盘-房不胜房 <http://popme.163.com/link/003985_1010_7027.html>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Simple question regarding transmission power

2008-10-30 Thread Ittipong Khemapech
You can state that based upon an assumption of symmetric link.

Ittipong

2008/10/30 <[EMAIL PROTECTED]>

> So I cannot assume what I had previously asked?
>
>
> Thanks,
> Fernando.
>
> > I think you should realise asymmetric link between two nodes.
> >
> > Ittipong
> >
> > 2008/10/30 <[EMAIL PROTECTED]>
> >
> >> Going strict to the point:
> >>
> >> I have two nodes, with different residual energies. This is my doubt:
> >> If node A is capable of reaching node B with a certain transmission
> >> power
> >> X, can I assume that node B will be able of reaching node A with the
> >> same
> >> transmission power X, regardless of its residual energy?
> >>
> >>
> >> Thanks,
> >> Fernando.
> >>
> >> ___
> >> 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] Simple question regarding transmission power

2008-10-30 Thread Ittipong Khemapech
I think you should realise asymmetric link between two nodes.

Ittipong

2008/10/30 <[EMAIL PROTECTED]>

> Going strict to the point:
>
> I have two nodes, with different residual energies. This is my doubt:
> If node A is capable of reaching node B with a certain transmission power
> X, can I assume that node B will be able of reaching node A with the same
> transmission power X, regardless of its residual energy?
>
>
> Thanks,
> Fernando.
>
> ___
> 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] tos-2.0.2 help

2008-10-29 Thread Ittipong Khemapech
Hi,

Just try:

printenv CLASSPATH

under cygwin and tell me what you've got. Browse to see where is tinyos.jar
is.

Ittipong

2008/10/29 zsqtc1986 <[EMAIL PROTECTED]>

>  Hello,sir:
>   I have just installed TinyOS 2.0.2,and I have done some experiment.But
> when I was doing the lesson of "RadioCountToLeds",I got some errors.
>   I have turned to this site:
>
> http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg11276.html  PROTECTED]/msg11276.html>
>
>
> I was in the situation that: there are no class files contained in the
> sub-dirs.But there is a "makefile",a "Makefile.include",and a "tinyos.jar"
> I acquired that I should change the cp ,but what will [path] and [file.jar]
> be?I have no idea. I have tried to set cp as :
> .;E:\project\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;$CLASSPATH
>
> but the error is still going on...
>
> Can you tell me what cp to choose?
>
> Anything you give me will be helpful!
>
> Thank you very much in advance!
>
>
> Dylan
> Xiamen University   China
>
>
>
>
>
> --
> [广告] 特惠尝必胜客26道新品 
> ___
> 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] Maximum packet data length

2008-10-29 Thread Ittipong Khemapech
I think the following link may be useful to you.

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-August/027614.html

Ittipong

2008/10/29 João Paulo Amaro da Costa Luz Carneiro <[EMAIL PROTECTED]>

> I believe 28 bytes is the default size (TEP111) which can be increased by
> defining DTOSH_DATA_LENGTH at compile time . What I would like to know is
> what is the maximum value you can assign to DTOSH_DATA_LENGTH.I've tested
> with 300 and send will still return with SUCCESS while 500 won't.
>
> Joao
>
>
>
> On 2008/10/29, at 11:37, Ittipong Khemapech wrote:
>
> Not sure about TinyOS 2.1. I'm using TinyOS 2.0.2 and the maximum payload
> is 29 bytes.
>
> Ittipong
>
> 2008/10/29 João Paulo Amaro da Costa Luz Carneiro <[EMAIL PROTECTED]>
>
>> Can you tell me what is the maximum value for tinyos 2.1?
>> Joao
>>
>>
>> On 2008/10/29, at 11:30, Ittipong Khemapech wrote:
>>
>> I think it's about TinyOS instead of the platform. Please correct me if I
>> misunderstand.
>>
>> Ittipong
>>
>> 2008/10/29 João Paulo Amaro da Costa Luz Carneiro <[EMAIL PROTECTED]>
>>
>>> Hi,
>>> Is there a maximum DTOSH_DATA_LENGTH value for the iris mote?
>>>
>>> Best regards,
>>>
>>> Joao
>>> ___
>>> 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] Maximum packet data length

2008-10-29 Thread Ittipong Khemapech
Not sure about TinyOS 2.1. I'm using TinyOS 2.0.2 and the maximum payload is
29 bytes.

Ittipong

2008/10/29 João Paulo Amaro da Costa Luz Carneiro <[EMAIL PROTECTED]>

> Can you tell me what is the maximum value for tinyos 2.1?
> Joao
>
>
> On 2008/10/29, at 11:30, Ittipong Khemapech wrote:
>
> I think it's about TinyOS instead of the platform. Please correct me if I
> misunderstand.
>
> Ittipong
>
> 2008/10/29 João Paulo Amaro da Costa Luz Carneiro <[EMAIL PROTECTED]>
>
>> Hi,
>> Is there a maximum DTOSH_DATA_LENGTH value for the iris mote?
>>
>> Best regards,
>>
>> Joao
>> ___
>> 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] (no subject)

2008-10-29 Thread Ittipong Khemapech
Hi,

I have forwarded your reply to the mailing list. It may help if we know your
CLASSPATH setting. I have no experience with both micaZ and xubuntos. Hope
that someone's helping you soon.

Ittipong

2008/10/29 Tomsy Paul <[EMAIL PROTECTED]>

> CLASSPATH=:/opt/tinyos-2.1.0/support/sdk/java
>
> Tomsy Paul,
> II Year M.Tech. C.I.S.,
> Dept. of C.S.,
> CUSAT.
>
>
> --
> Date: Wed, 29 Oct 2008 09:32:35 +
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [Tinyos-help] (no subject)
> CC: tinyos-help@millennium.berkeley.edu
>
>
> What is your CLASSPATH setting?
>
> Ittipong
>
> 2008/10/29 Tomsy Paul <[EMAIL PROTECTED]>
>
> Sir,
>
> when tried to compile RadioCountToLeds application with
> make micaz
> command, i got the following error
>
>
> /opt/tinyos-2.1.0/support/sdk/java/net/tinyos/message/Message.java:84:
> cannot find symbol
> symbol  : class SerialPacket
> location: class net.tinyos.message.Message
>   private SerialPacket serialPacket;
>   ^
>
> I use vmware player - xubuntos 2.1 image
>
> please help.
>
>
> Tomsy Paul,
> II Year M.Tech. C.I.S.,
> Dept. of C.S.,
> CUSAT.
>
>
> --
> MSN Technology brings you the latest on gadgets, gizmos and the new hits in
> the gaming market. Try it now! 
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
> --
> Hottest news and in-depth analysis that goes beyond the headlines. Only on
> MSN News Check it out! 
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Maximum packet data length

2008-10-29 Thread Ittipong Khemapech
I think it's about TinyOS instead of the platform. Please correct me if I
misunderstand.

Ittipong

2008/10/29 João Paulo Amaro da Costa Luz Carneiro <[EMAIL PROTECTED]>

> Hi,
> Is there a maximum DTOSH_DATA_LENGTH value for the iris mote?
>
> Best regards,
>
> Joao
> ___
> 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] (no subject)

2008-10-29 Thread Ittipong Khemapech
What is your CLASSPATH setting?

Ittipong

2008/10/29 Tomsy Paul <[EMAIL PROTECTED]>

> Sir,
>
> when tried to compile RadioCountToLeds application with
> make micaz
> command, i got the following error
>
>
> /opt/tinyos-2.1.0/support/sdk/java/net/tinyos/message/Message.java:84:
> cannot find symbol
> symbol  : class SerialPacket
> location: class net.tinyos.message.Message
>   private SerialPacket serialPacket;
>   ^
>
> I use vmware player - xubuntos 2.1 image
>
> please help.
>
>
> Tomsy Paul,
> II Year M.Tech. C.I.S.,
> Dept. of C.S.,
> CUSAT.
>
>
> --
> MSN Technology brings you the latest on gadgets, gizmos and the new hits in
> the gaming market. Try it now! 
>
> ___
> 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

  1   2   3   >