[Tinyos-help] current MAC protocol in TinyOS

2007-12-19 Thread Tie Luo
Dear All, Is the current MAC protocol in TinyOS B-MAC or X-MAC? I searched on tinyos.net and it seems to be B-MAC. I just want to confirm. Thanks. -- Regards, Tie ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.b

Re: [Tinyos-help] current MAC protocol in TinyOS

2007-12-27 Thread Tie Luo
Hi, I was asking about TelosB with TinyOS 2.0. Thanks. On Dec 20, 2007 12:30 AM, Avinash Sridharan <[EMAIL PROTECTED]> wrote: > Could be you be more specific about the platform and the version of TinyOS > you are using ? > > -Avinash > > On Dec 18, 2007 8:23 PM, T

[Tinyos-help] compile error - no combine function specified for the return type

2006-10-11 Thread Tie Luo
$ make micaznesc1: warning: calls to Receive.payloadLength in TestC fan out, but there is no combine function specified for the return typenesc1: warning: calls to Receive.getPayload in TestC fan out, but there is no combine function specified for the return type where Receive is an interface wired

[Tinyos-help] TimerMilliC exists but TimerMicroC does not

2006-10-13 Thread Tie Luo
Hi,   Timer is provided by TimerMilliC.nc.  However, I want to use Timer but there is no component providing such interface, what can I do? I am using TinyOS 2.0 over micaz platform. Thanks.-- Tie ___ Tinyos-help mailing list Tinyos-help@Millennium.Berke

[Tinyos-help] Payload length: 28 or 29?

2006-10-14 Thread Tie Luo
It can be found in TinyOS source code that TOSH_DATA_LENGTH is defined to be 28, but I found in this mail archive people are saying 29, which one is correct?   Another question is, since 802.15.4 supports up to 127-byte packet, does that mean we can redefine TOSH_DATA_LENGTH to be larger, say 100,

Re: [Tinyos-help] Payload length: 28 or 29?

2006-10-14 Thread Tie Luo
/opt/tinyos-2.x/tos/types/message.h:7:#define TOSH_DATA_LENGTH 28/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:70:#define TOSH_DATA_LENGTH 28/opt/tinyos-2.x/tos/chips/xe1205/XE1205.h:102:#define TOSH_DATA_LENGTH 28 I did not find anywhere defining it to be 29.   p.s. If anyone point out the caveats of

[Tinyos-help] make with a macro definition

2006-10-14 Thread Tie Luo
I searched for this problem but did not find the answer. I want to build a program with defining a macro. Generally, make -Dmacro will work for cc,gcc,CC etc. compilers, but on TInyOS, make -Dmacro platformdoes not work. How to do this job?    Thanks. -- Regards,Tie __

[Tinyos-help] integer division

2006-10-15 Thread Tie Luo
how does Tinyos process integer division? Specifically,   uint_16_t result = 3 / 5 * 5; then is result 3 or 0?-- Regards,Tie ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/ti

[Tinyos-help] calculate enery consumption on real motes

2006-10-15 Thread Tie Luo
I did find "How to calculating energy consumption in TOSSIM" in mail archive, but I want to calculate energy consumption on real motes. I also found there was a similar question in archive, but the answer is too general. Could anyone tell the pariticular interfaces and componets?  Many thanks.-- Re

Re: [Tinyos-help] How to enable auto ACK in MicaZ - tinyos-2.x

2006-10-15 Thread Tie Luo
PacketAckknowledgements.requestAck (msg) On 10/16/06, LE KHAC HIEU <[EMAIL PROTECTED]> wrote: Hi,I want to enable automatic ACK in MicaZ with tinyos-2.x. Could someoneplease give me a hint. Thanks,-Hieu___Tinyos-help mailing listTinyos-help@Millennium.Ber

Re: [Tinyos-help] Payload length: 28 or 29?

2006-10-16 Thread Tie Luo
c structs, maybe what Tie Luo sent was specific to telos motesoh well...MSJay Taneja wrote: > I know that the Telos/Tmote implementations generally use 28 byte> payloads because the 16-bit micro has some difficulties dealing with> odd bytelength fields. The Mica family, on the other ha

[Tinyos-help] how does tinyos handle Physical layer header

2006-10-17 Thread Tie Luo
In 802.15.4, the frame format is defined as:| PHY preamble | SFD | length | MAC_header | MAC_payload | MAC_footer Therefore the previous three (or two) fields seem to form the PHY header. But in tinyos 2.x there is: async command error_t PhySend.send(message_t* msg, uint8_t len) {   ...

[Tinyos-help] Frequency and Channel operation on CC2420

2006-10-19 Thread Tie Luo
1. What is the channel switch latency of CC2420? 2. Are the channels orthogonal to each other?   Thanks in advance!-- Regards,Tie ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listin

Re: [Tinyos-help] Changing Micaz Frequency at runtime in TinyOS 2.x

2006-10-19 Thread Tie Luo
I uses CC2420Config.setChannel(16) and then CC2420Config.sync(), but it does not work. What are possible reasons?  How long will it take for micaz to switch channels?  Thanks!   Tie ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://

Re: [Tinyos-help] Changing Micaz Frequency at runtime in TinyOS 2.x

2006-10-20 Thread Tie Luo
Yes the problem is sendDone does not get called. I also found the latest version has fixed this bug, but when I update using CVS I could not get the lastet file; the files got downloaded are still in July. Then I specified 'tinyos-2_0_devel-BRANCH' as modulename in cvs -z3 -d:pserver:[EMAIL PROTEC

[Tinyos-help] changing frequency on the fly does not work even in latest version of T2

2006-10-20 Thread Tie Luo
platform: micaz, tinyos 2.x (Revision: 1.1.2.22) I have updated to the latest TInyos delevelop branch.  Although some bug on switching channels was fixed (release resource after sync()), there are still problems. A mote can send message after switching to a new channel, but the other mote cannot re

[Tinyos-help] apps/BaseStation does not work after update using CVS

2006-10-22 Thread Tie Luo
After update the whole tinyos 2.x in October, using the develop branch, the apps/BaseStation does not work. In particular, using a Java program to open and write a message to the BaseStation via serial port will return error.  While the same code can run on the previous version of tinyos.   I have

Re: [Tinyos-help] apps/BaseStation does not work after update using CVS

2006-10-22 Thread Tie Luo
()location: class net.tinyos.message.SerialPacket    temp.listener.messageReceived (msg.get_header_dest(), received); ^  On 10/23/06, Tie Luo <[EMAIL PROTECTED]> wrote: After update the whole tinyos 2.x in October, using the develop branc

Re: [Tinyos-help] apps/BaseStation does not work after update using CVS

2006-10-22 Thread Tie Luo
alot.  On 10/23/06, Philip Levis <[EMAIL PROTECTED]> wrote: On Oct 22, 2006, at 8:23 PM, Tie Luo wrote:> After update the whole tinyos 2.x in October, using the develop > branch, the apps/BaseStation does not work. In particular, using a> Java program to open and write a message to the

Re: [Tinyos-help] apps/BaseStation does not work after update using CVS

2006-10-23 Thread Tie Luo
When using apps/BaseStation to communicate with tools/Listen.java, Listen.java prints '/dev/ttyS0:57600 - bad packet' What is the simplest way to fix the problem incurred by the updated serial protocol?  On 10/23/06, Tie Luo <[EMAIL PROTECTED]> wrote: Please ignore my previo

Re: [Tinyos-help] motes fail to communicate with Java program via serial port

2006-10-23 Thread Tie Luo
Hi, TEP 113 was last modified on 2006-06-14, but my tinyos July version works.  Only after I updated from the lastest develop branch version, Java program does not communicate with motes via serial port.   On 10/23/06, Philip Levis <[EMAIL PROTECTED]> wrote: On Oct 22, 2006, at 8:23 PM, T

Re: [Tinyos-help] apps/BaseStation does not work after update using CVS

2006-10-23 Thread Tie Luo
. :(    On 10/23/06, KANG HUI <[EMAIL PROTECTED]> wrote: Hi, Tie,I met the same problem. Say, for Osciscope, I can get the messagesuccessfully, but Listen.java prints 'bad packet.'Can you receive the message?HuiOn Mon, 23 Oct 2006, Tie Luo wrote:> When using apps/BaseStation to com

Re: [Tinyos-help] motes fail to communicate with Java program via serial port

2006-10-23 Thread Tie Luo
OTECTED]> wrote: On Oct 23, 2006, at 7:26 AM, Tie Luo wrote:> Hi, TEP 113 was last modified on 2006-06-14, but my tinyos July > version works.  Only after I updated from the lastest develop> branch version, Java program does not communicate with motes via> serial port.There was recently

[Tinyos-help] CC2420Config.syncDone() may not get called after sync() return SUCCESS

2006-10-25 Thread Tie Luo
if (call CC2420Config.sync()==SUCCESS) var=1; and in RadioConfig.syncDone(error_t err) I reset var=2 regardless of the value of err.   However, sometimes the var is always 1, even if I check var periodically.    This shows syncDone may not be called.  Is that a bug? I recall previously a simil

Re: [Tinyos-help] CSMA-CA on CC2420micaz

2006-10-25 Thread Tie Luo
Many thanks to David for your excellent inputs.  According to what you said as quoted below: Using the MacControl or CsmaControl interfaces, you can completely disable CCA (clear channel assessment).  This will make your motes transmit as fast as possible, but requires one mote to secure the channe

Re: [Tinyos-help] CC2420Config.syncDone() may not get called after sync() return SUCCESS

2006-10-25 Thread Tie Luo
nlikely that the radio is receiving/transmitting packets. Which not releasing resource bug are you referring to?Are you using the SPI bus for anything else? E.g., large storageoperations?PhilOn Oct 25, 2006, at 2:11 AM, Tie Luo wrote:> if (call CC2420Config.sync()==SUCCESS) var=1;> > an

Re: [Tinyos-help] CSMA-CA on CC2420micaz

2006-10-25 Thread Tie Luo
g an SFD.  According to Phil, this has since been solved by resetting the backoff timer if no SFD is received within a millisecond of TXACTIVE.   Hope that clears things up, -David   -Original Message-From: Tie Luo [mailto: [EMAIL PROTECTED]] Sent: Wednesday, October 25, 2006 7:09 AMTo:

Re: [Tinyos-help] CC2420Config.syncDone() may not get called after sync() return SUCCESS

2006-10-25 Thread Tie Luo
Embedded below. On 10/26/06, Philip Levis <[EMAIL PROTECTED]> wrote: On Oct 25, 2006, at 9:32 AM, Tie Luo wrote:> If radio is busy, I think CC2420Config.sync will fail, or may > return SUCCESS and signal syncDone at some time later. I do not> understand what you said "if sync

[Tinyos-help] Does AMSnoopingReceiver work?

2006-10-27 Thread Tie Luo
Dear all,   I am using AMSnoopingReceiverC, but the node seems only receive message destined to the node itself, and cannot receive messages for others. I saw in CC2420ActiveMessageC.nc there is a comment: "Note that snooping may not work, due to CC2420 early packet rejection if acknowledgements ar

Re: [Tinyos-help] Does AMSnoopingReceiver work?

2006-10-28 Thread Tie Luo
to snoop? And, I indeed do not need synchronous ACKs.   Tie   On 10/28/06, Philip Levis <[EMAIL PROTECTED]> wrote: On Oct 27, 2006, at 10:13 PM, Tie Luo wrote:> Dear all,>> I am using AMSnoopingReceiverC, but the node seems only receive > message destined to the node itself,

Re: [Tinyos-help] Does AMSnoopingReceiver work?

2006-10-28 Thread Tie Luo
From the last email it appears that CC2420 does provide snooping functionality, doesn't it? If unfortunately, it does not, then how to snoop on micaz?  Synchronous ACK is not necessary to us.  Really need help. Thanks a lot.  Tie On 10/28/06, Tie Luo <[EMAIL PROTECTED]> wrote: Tha

Re: [Tinyos-help] Re: Does AMSnoopingReceiver work?

2006-10-28 Thread Tie Luo
in T2 yet, so I'm not sure how it would bedone.  For more information, look at the CC2420 datasheet on Chipcon's website.- Ryan Stinnett"Tie Luo" <[EMAIL PROTECTED]> wrote:>From the last email it appears that CC2420 does provide snoopingfunctionality, doesn't it? If u

Re: [Tinyos-help] Re: Does AMSnoopingReceiver work?

2006-10-28 Thread Tie Luo
l get you what youwant.  I suppose the simplest way would be to delete this line, butreally there should be an interface to do so (if there is not already). Again, the CC2420 datasheet is very helpful, and is located at:http://www.chipcon.com/files/CC2420_Data_Sheet_1_4.pdf- Ryan Stinnett Tie Luo wro

[Tinyos-help] where is PLATFORM_MICAZ defined

2006-10-30 Thread Tie Luo
Hi, in T2, there are some codes like the following:   #ifdef PLATFORM_MICAZ #endif   However, I searched in all files under tos/ directory and did not found the definition of this macro.   Does the nesC compiler dynamically define this macro during compilation?   Thanks. -- Regards,Tie __

[Tinyos-help] Could anyone clarify a small piece of code

2006-10-30 Thread Tie Luo
I am confused by the following code in CC2420TransmitP.nc (T2):   void attemptSend() {        bool congestion = TRUE; ... 1 status = m_cca ? call STXONCCA.strobe() : call STXON.strobe();2 if ( !( status & CC2420_STATUS_TX_ACTIVE ) ) {3   status = call SNOP.strobe();4   if ( stat

[Tinyos-help] very strange code of sending on micaZ, Tinyos2.0

2006-11-01 Thread Tie Luo
Dear All, my questions are w.r.t to a strange function in CC2420TransmitP.nc, attached below.   Questions: Line 3: why check status again, provided line 1 already got it? Line 6: if congestion is true, even m_cca==false can enter S_SAMPLE_CCA state, which is wrong. Line 7: I do not find where the m

[Tinyos-help] automatic power up and down

2006-11-01 Thread Tie Luo
Hi,   I think motes will power up and down automatically to save energy, and I have two questions: 1) How to disable this function? 2) Will all variables be re-initialzed when a mote is powered down and later up by itself?   platform: micaz, T2 Many thanks.-- Regards,Tie __

Re: [Tinyos-help] very strange code of sending on micaZ, Tinyos2.0

2006-11-01 Thread Tie Luo
  Or, is it in calibration and thus TX is still not active?  On 11/2/06, Philip Levis <[EMAIL PROTECTED]> wrote: On Nov 1, 2006, at 1:35 AM, Tie Luo wrote:> Line 6: if congestion is true, even m_cca==false can enter > S_SAMPLE_CCA state, which is wrong.Why is this wrong? If it's con

[Tinyos-help] Is it possible to send immediately even if channel is busy

2006-11-02 Thread Tie Luo
CC2420Transmit.send() is to send without CCA, but it still backoff if channel is congested. Is it feasible to send immediately regardless of channel status? platform: micaz, T2   Thanks a lot.-- Regards,Tie ___ Tinyos-help mailing list Tinyos-help@Millen

[Tinyos-help] always confused by this segment of code

2006-11-04 Thread Tie Luo
I have been confused for a long time. Can anybody help?   T2: CC2420TransmitP.nc  void attemptSend():   1    status = m_cca ? call STXONCCA.strobe() : call STXON.strobe(); 2    if ( !( status & CC2420_STATUS_TX_ACTIVE ) ) { 3  status = call SNOP.strobe(); 4     if ( status & CC2420_ST

Re: [Tinyos-help] Re: Maximum Data length of TinyOS Stack (Philip Levis)

2006-11-05 Thread Tie Luo
Shouldn't there be another 2 bytes for MAC footer? So should the limit be 109 bytes? BTW, want to confirm whether the 6 bytes physical layer header is counted in the 127 bytes.  Thanks, Tie  On 10/22/06, Raghu Ganti <[EMAIL PROTECTED]> wrote: Yes, on the MicaZ, it is limited by 127, the headers are

[Tinyos-help] the actual data rate of micaz & telosb

2006-11-05 Thread Tie Luo
micaz and telosb use CC2420 as their transceiver, and in cc2420 data sheet the data rate is said to be 250kbps. I did a measurement and found the rate was much lower; less than 150kbps. Who else also did such measurements? Would like to hear your results.   p.s. the accuracy of timer is also involv

Re: [Tinyos-help] always confused by this segment of code

2006-11-05 Thread Tie Luo
. Thus, we are first checking first that the radio was not transmitting, and then checking if the command strobe cause the radioto begin transmitting.--Jonathan W. Hui[EMAIL PROTECTED] http://www.cs.berkeley.edu/~jwhui/On 11/4/06, Tie Luo <[EMAIL PROTECTED]> wrote:> I have been confused

Re: [Tinyos-help] the actual data rate of micaz & telosb

2006-11-05 Thread Tie Luo
Thanks MIchael. I have read your experiment report.  According to my experiments, I got much less msg loss and lower delay.  But I modified the lower-layer tinyos code a bit.  I did not do rigorous tests and not record the data.  There are still two parameters that our experiments cannot give good

[Tinyos-help] need to switch off RF when changing frequency?

2006-11-05 Thread Tie Luo
I found a checkpoint report of UC Berkeley EECS150 2006 which says the following: " After changing the frequency programmed in the FSCTRL configuration register, described above, it is necessary to issue the SRFOFF command strobe.   If this is not done, channel changing will not always work.  " Is

[Tinyos-help] TOSH_DATA_LENGTH can be more than 111

2006-11-07 Thread Tie Luo
Hi, According to CC2420 datasheet, the 127 byte packet size limit does not count in the PHY header, therefore the max payload length should be 127 - 10 (MAC header, excluding length field) - 2 (MAC footer) = 115 bytes, i.e. TOSH_DATA_LENGTH can be defined to be 115.   Dr. Levis, could you confirm?

[Tinyos-help] timer accuracy

2006-11-08 Thread Tie Luo
We are using micaz motes with T2.  Since we may set intervals as small as 1 ms, we are concerned about the timer accuracy. We read TEP and knew that timer0 uses external crystal and has the best accuracy, does the millisecond timer component use timer 0 rather than 1-3? If not, how to use timer0?An

Re: [Tinyos-help] duration of sensing when CCA.get () called in tinyos-2.x

2006-11-08 Thread Tie Luo
Hello, what is the relationship between the return value of CCA.get() and STXONCCA.strobe()?   Thanks.  On 11/9/06, Philip Levis <[EMAIL PROTECTED]> wrote: On Nov 8, 2006, at 11:50 AM, Avinash Sridharan wrote:> Hi All,>  I wanted to know as to what is the duration of sensing when using > CC2420 whe

Re: [Tinyos-help] always confused by this segment of code

2006-11-08 Thread Tie Luo
Hello, a quick question. What is the return value of STXON.strobe() if radio is currently receiving a message?   The CC2420 datasheet says that it causes radio to enter TX state and can send, but seen from my experiments it does not.  Rgds, Tie  On 11/6/06, Tie Luo <[EMAIL PROTECTED]>

Re: [Tinyos-help] bug in MSP430TimerM and MSP430TimerP

2006-11-10 Thread Tie Luo
If this is really a bug, where should be modified in Tinyos 2? On 11/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi,I tried to use the inputdivider function to set the prescaler for thetimer and it didnt work. I check the implementation and I believe I should be change fromasync command vo

Re: [Tinyos-help] collision or interfere in TOSSIM

2006-11-10 Thread Tie Luo
I work on real motes and thus did not use tossim. But I guess tossim can simulate interference since it use a SNR model while it does not simulate collision, which is rather difficult.Tie   On 11/10/06, Yinying Yang <[EMAIL PROTECTED]> wrote: Hi,   Does collision or interfere happens in TOSSIM?

Re: [Tinyos-help] Packet Timestamp

2006-11-10 Thread Tie Luo
Should not happen somewhere goes wrong :p  p.s. I am using T2; there is no TOS_Msg.  On 11/10/06, Lei Tang <[EMAIL PROTECTED]> wrote: Hi, everyoneI'm working with MICAz now to mark received packet with a timestamp. This posting of Joe suggested the TOS_Msg.time could be used for this purpose.

Re: [Tinyos-help] collision or interfere in TOSSIM

2006-11-10 Thread Tie Luo
Levis <[EMAIL PROTECTED]> wrote: On Nov 10, 2006, at 5:17 AM, Tie Luo wrote:> I work on real motes and thus did not use tossim. > But I guess tossim can simulate interference since it use a SNR> model while it does not simulate collision, which is rather difficult.>TOSSIM in TinyOS

Re: [Tinyos-help] Packet Timestamp

2006-11-10 Thread Tie Luo
you tell me more about how to use it? Or give me a document I can look through?Sorry for bothering you again.Thank you. Lei On 11/10/06, Tie Luo <[EMAIL PROTECTED]> wrote: Are you going to get the time when the msg being sent, or the time that you received it? For the former, you can use

Re: [Tinyos-help] collision or interfere in TOSSIM

2006-11-10 Thread Tie Luo
bits always occur at the start symbol and thus prevent reception?   Regards, Tie  On 11/11/06, Philip Levis <[EMAIL PROTECTED]> wrote: On Nov 10, 2006, at 7:14 PM, Tie Luo wrote:> Thank you for your clarification.> I think to detect collision in reality becomes difficult, since > both

[Tinyos-help] about CRC

2006-11-11 Thread Tie Luo
For CC2420, if AUTOCRC is set, will the hardware reject CRC-error packet automatically? If true, then is it possible to receive those packets but with AUTOCRC still being set? Because we do not want to generate CRC using software.Many thanks to comments. -- Regards,Tie

Re: [Tinyos-help] SendMsg

2006-11-14 Thread Tie Luo
Dear Sir, as you said "You can safely call send() in the sendDone() event.", can I do this without CCA? On 11/15/06, Philip Levis <[EMAIL PROTECTED]> wrote: 2On Nov 14, 2006, at 12:58 PM, ricardo tiago wrote:> Hi> i've made a program that sends 3 messages to his neighbors, but if > i send the messa

Re: [Tinyos-help] sendDone (error==SUCCESS) really means transmission succeeds?

2006-11-16 Thread Tie Luo
PacketAcknowledgments.requestAck() enables acknowledgement. But as a caveat, even if the ack is enabled and error==SUCCESS, it does not guarantee the message has been sent to receiver. After the transmitter sends out the message it will wait for a period of ACK_WAIT (some constant defined like th

Re: [Tinyos-help] how does Tinyos handle events if there are multiple event handlers

2006-11-21 Thread Tie Luo
AIL PROTECTED]> wrote: On Nov 21, 2006, at 5:54 AM, Tie Luo wrote: > Dear All, > > If component A signals an event, and component B (which uses an > interface implemented by A) defines an event handler as follows: > async event void interfaceA.eventName(...) {} //void bod

[Tinyos-help] the latest version of tinyos

2007-02-01 Thread Tie Luo
Hi, I saw that there are 2.0 release, 2.0 beta2, 2.0 prerelease2, and 2.0devel-Branch. So what is the latest version? To update to the latest version, which 'module-name' should I specify in the CVS command? Thanks alot! -- Tie ___ Tinyos-help mailing

[Tinyos-help] Install TinyOS but failed in installing MSP430 base tools

2006-08-31 Thread Tie Luo
Hi Guys,   When I was installing TinyOS 2.0, I encountered a problem in Step 3 (install native compilers) as below: $ rpm -ivh msp430tools-base-0.1-20050607.cygwin.i386.rpmerror: Failed dependencies:    /bin/sh is needed by msp430tools-base-0.1-20050607   But I have /bin/sh.exe there, and /bin

Re: [Tinyos-help] Install TinyOS but failed in installing MSP430 base tools

2006-08-31 Thread Tie Luo
Many thanks to Xiaofan Jiang, Karthik Dantu, R. Steve McKown!   Your suggestion works. :-)  Rgds, Tie  On 9/1/06, R. Steve McKown <[EMAIL PROTECTED]> wrote: On Thursday 31 August 2006 10:18 am, Tie Luo wrote:> Hi Guys,>> When I was installing TinyOS 2.0, I encountered a pr

[Tinyos-help] Develop a new MAC in TinyOS

2006-09-01 Thread Tie Luo
Hi Guys,   Anyone can give a rough outline or simply a pointer to developing a new (CSMA-based) MAC in TinyOS?   Thanks a ton!!-- Regards,Tie ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/ma

Re: [Tinyos-help] Develop a new MAC in TinyOS

2006-09-03 Thread Tie Luo
m, at least roughly, so then you can start making some modifications so youcan get a new protocol.   Regards,   Miguel Erazo Tie Luo <[EMAIL PROTECTED]> wrote: Hi Guys,   Anyone can give a rough outline or simply a pointer to developing a new (CSMA-based) MAC in TinyOS?   Thanks a to

Re: [Tinyos-help] Reg. MAC layer implementation

2006-09-08 Thread Tie Luo
Similar question that I have.  Will feel happy if hearing comments.  Tie  On 9/8/06, Madhu Mudigonda <[EMAIL PROTECTED]> wrote: Hello ,   I'm actually working on a project to implement MAC layer. I'm using telosb motes with CC2420 radio. Can anybody suggest some useful literature to understand th

[tinyos-help] How to detect packet collision in tinyos 2.0

2006-09-09 Thread Tie Luo
Hi, how to detect packet collision in tinyos 2.0?  Specifically, a collision can occur either during receiving a packet, or when the two packets come at the same time.   AMReceive only provides event void receive(), which is called when a "good" packet  has been received.   Thanks a lot in advance.

[tinyos-help] TinyOS does not provide TimerMicro?

2006-09-10 Thread Tie Luo
Although the precision_tag TMicro is defined and interface Timer is possible, we did not find any component the implement that type of timer.  The TimerMilliC.nc does exist (we use TinyOS 2.0) but a corresponding TimerMicroC.nc does NOT exist.   So, how to get a timer that operate on a micro_secon

[tinyos-help] TinyOS 2.0 lacks of TEP104 and 105

2006-09-10 Thread Tie Luo
Dear Dr. Levis,   Why TEP 104 & 105 are not released? I am referring to http://www.tinyos.net/tinyos-2.x/doc/ Any others who can help answer are also appreciated. -- Regards,Tie ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mai

Re: [tinyos-help] TinyOS 2.0 lacks of TEP104 and 105

2006-09-11 Thread Tie Luo
I believe both TEP 104 (Radio Physical Layer) and TEP 105 (Radio Link Layer) are interesting parts and deserve effort, especially for those working on physical and MAC layers rather than higher layers.   Can I take a look at the latest draft on TEP105 (since 104 is not available), although it may

[Tinyos-help] send packets using CSMA/CA

2006-09-12 Thread Tie Luo
This question is w.r.t MAC/PHY in TinyOS 2.0.   By theory, MAC should sense the channel until it becomes idle for some time (e.g. DIFS) and then sends the packet.  But we did not find how to control carrier sensing and backoff (the Backoff interface just provides two events - initial() & congestio

Re: [Tinyos-help] send packets using CSMA/CA

2006-09-12 Thread Tie Luo
D]http://www.cs.berkeley.edu/~jwhui/ On 9/12/06, Tie Luo <[EMAIL PROTECTED]> wrote:>> This question is w.r.t MAC/PHY in TinyOS 2.0.>> By theory, MAC should sense the channel until it becomes idle for some time > (e.g. DIFS) and then sends the packet.  But we did not find how to control&g

Re: [Tinyos-help] CSMA-CA on CC2420micaz

2006-09-20 Thread Tie Luo
I have the same concern about the CSMA implementation in TinyOS 2.0. Details are especially preferred.  Thanks in advance.  On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi,  My question follows the same line as that of Daniel, but I'm working onMICA2 motes, not MICAZ. What is not very c

[Tinyos-help] different sizes of message_t

2006-09-25 Thread Tie Luo
I am implementing a MAC protocol using Tinyos.  The protocol has a few types of control packets and one type of data packet.    However, in current TinyOS 2.0, there is only one type of message_t (once the platform is determined), which has a fixed message structure and size (payload length is 28by

[Tinyos-help] RTS/CTS in Tinyos

2006-09-25 Thread Tie Luo
Hi, Dr. Levis and all,   In your written TEP116 - Packet Protocols, section 3, there is a word "The Snoop interface does not assume always-on listening, for example, in the case of TDMA or RTS/CTS data link layer."  This means that, although Tinyos has only one message_t structure, it bore in mind

[Tinyos-help] does CC2420 support read/write more bytes?

2006-09-28 Thread Tie Luo
interface CCFifo specifies 'uint8_t length' as a parameter in all its commands, but in its implementation CC2420SpiImplP.nc, it actuall calls SpiPacket.send(), which specifies 'uint16_t length' as a parameter.  So, can I modify uint8_t in CCFifo to be uint16_t such that I can send a long packet? -

[Tinyos-help] CRC & Receive in CC2420, tinyos 2.x

2006-09-28 Thread Tie Luo
We spent a lot of time but are still confused by the following:   1) CC2420ReceiveP.nc, in event void RXFIFO.readDone(uint8_t* rx_buf, uint8_t rx_len, error_t error )   1.1) line 197:   if ( length > 10 ) {...}    (where length is header[0])   Q: why use constant 10? Does it mean sizeof(cc2

Re: [Tinyos-help] CRC & Receive in CC2420, tinyos 2.x

2006-09-28 Thread Tie Luo
Dr Hui, at first I thank you very much for your explanation.Based on your answer to 1.2, buf[ length ]  is crc.  But why buf[ length ] >> 7 being one indicates a good crc?   On 9/28/06, Jonathan Hui <[EMAIL PROTECTED]> wrote: On 9/28/06, Tie Luo <[EMAIL PROTECTED]> wrote:>

Re: [Tinyos-help] CRC & Receive in CC2420, tinyos 2.x

2006-09-29 Thread Tie Luo
datasheet. http://focus.ti.com/lit/ds/symlink/cc2420.pdf--Jonathan Hui[EMAIL PROTECTED]On 9/28/06, Tie Luo <[EMAIL PROTECTED] > wrote:> Dr Hui, at first I thank you very much for your explanation.> Based on your answer to 1.2, buf[ length ]  is crc.  But why buf[ length ]> >> 7 bein