[Tinyos-help] maximum packet size
Ruben Catteeuw
rubencatteeuw at hotmail.com
Wed Feb 25 01:51:31 PST 2009
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: psundars at gmail.com
To: tinyos-help at 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, <tinyos-help-request at millennium.berkeley.edu> wrote:
Send Tinyos-help mailing list submissions to
tinyos-help at 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-request at millennium.berkeley.edu
You can reach the person managing the list at
tinyos-help-owner at 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.li at 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 +0000
From: w.david.li at gmail.com
Subject: Re: [Tinyos-help] Development Platform Question
To: Janos Sallai <sallai.janos at gmail.com>, David Li
<w.david.li at gmail.com>, tinyos-help at millennium.berkeley.edu
Message-ID: <0016364c598314bce80463af9267 at 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 <sallai.janos at gmail.com> 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 <uhu at gmx.ch>
Subject: Re: [Tinyos-help] need help with understanding Tinyos
To: mhsedek at yahoo.com
Cc: tinyos-help at millennium.berkeley.edu
Message-ID: <49A4613C.70002 at 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 then is installed on the motes. In addition, the
development environment (without which you cannot use TinyOS) provides
libraries which run on the base station (computer) and facilitate
communication between the wireless sensor network and applications
running on the base station.
To summarize:
- TinyOS is primarily installed on the motes (sensor nodes, such as
MicaZ or TelosB).
- TinyOS is not very useful by itself, you need an application to go
with it (e.g. Deluge).
- The development environment for TinyOS provides libraries to be
installed on the base station.
To get started with TinyOS you might want to read the tutorials:
http://docs.tinyos.net/index.php/TinyOS_Tutorials
Cheers,
Urs
Mohamed H. Seddik wrote:
> Hi ALL
>
> I'd like to know, we install the tinyos (the operating system) on the mote or the base station ? if not the mote, what we use with the mot ?
>
> or we just use the tinyos for installing the application on the mote.
>
> I am really confused with this.
>
> last quest. is there any codes can be used to monitor the mote battery level ?
>
>
>
> thanks
>
>
> Mohamed
------------------------------
Message: 3
Date: Tue, 24 Feb 2009 22:32:53 +0100
From: Urs Hunkeler <uhu at gmx.ch>
Subject: Re: [Tinyos-help] need help with understanding Tinyos
To: mhsedek at yahoo.com, tinyos-help_list
<tinyos-help at Millennium.Berkeley.EDU>
Message-ID: <49A46785.8080608 at gmx.ch>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi Mohamed,
The battery voltage can be measured. I think this functionality should
be provided by a component called VoltageC. However, the battery voltage
is not always a good indicator for the remaining battery capacity. If
you use rechargeable batteries, the voltage tends to remain at a stable
level for a long time and then drops suddenly. In this case you would
need a means of measuring the actual energy consumed and subtract it
from the capacity of the batteries (this is what is for instance done in
laptops). If you search the list you will find a lot of discussions on
this subject.
Cheers,
Urs
Mohamed H. Seddik wrote:
> Thansk alot, I really appreciate your answer.
>
> just one more question, Is there any code can be used to monitor the mote battery level and gives these reads back
>
> thanks again
>
>
> Mohamed
>
> --- On Tue, 2/24/09, Urs Hunkeler <uhu at gmx.ch> wrote:
>
> From: Urs Hunkeler <uhu at gmx.ch>
> Subject: Re: [Tinyos-help] need help with understanding Tinyos
> To: mhsedek at yahoo.com
> Cc: tinyos-help at millennium.berkeley.edu
> Date: Tuesday, February 24, 2009, 11:06 PM
>
> 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 then is installed
> on the motes. In addition, the development environment (without which you cannot
> use TinyOS) provides libraries which run on the base station (computer) and
> facilitate communication between the wireless sensor network and applications
> running on the base station.
>
> To summarize:
> - TinyOS is primarily installed on the motes (sensor nodes, such as MicaZ or
> TelosB).
> - TinyOS is not very useful by itself, you need an application to go with it
> (e.g. Deluge).
> - The development environment for TinyOS provides libraries to be installed on
> the base station.
>
> To get started with TinyOS you might want to read the tutorials:
> http://docs.tinyos.net/index.php/TinyOS_Tutorials
>
> Cheers,
> Urs
>
>
> Mohamed H. Seddik wrote:
>> Hi ALL
>> I'd like to know, we install the tinyos (the operating system) on the
> mote or the base station ? if not the mote, what we use with the mot ?
>> or we just use the tinyos for installing the application on the mote.
>> I am really confused with this.
>> last quest. is there any codes can be used to monitor the mote battery
> level ?
>>
>> thanks
>>
>> Mohamed
>
>
>
>
------------------------------
Message: 4
Date: Tue, 24 Feb 2009 22:17:51 +0000
From: Poonam Hiwal <poonam.hiwal at googlemail.com>
Subject: Re: [Tinyos-help] Change packet rate
To: Jordi P?rez <pr.jordi at gmail.com>,
tinyos-help at millennium.berkeley.edu
Message-ID:
<3d1d30860902241417i7d3c5084ka2a59f6143a669aa at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
What do you mean by bit rate? You have no. of packets sent per second. The
simpliet way is that you can reduce the packets sent per second.
Thanks,
Poonam
On Tue, Feb 24, 2009 at 7:08 PM, Jordi P?rez <pr.jordi at gmail.com> wrote:
> Hi all,
>
> I am working with telosb motes and tinyos 2.x. I made an application that
> send data from mote A to mote B. I want to reduce the bit rate. How can I do
> it?
>
> Thanks in advanced
>
> Jordi
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090224/2a8c28c6/attachment-0001.htm
------------------------------
Message: 5
Date: Tue, 24 Feb 2009 21:29:39 -0500
From: Parkurm <parkurm at gmail.com>
Subject: Re: [Tinyos-help] LogWrite appendDone failure (error_t
error=FAIL)
To: "Chieh-Jan (Mike) Liang" <cliang4 at cs.jhu.edu>,
tinyos-help at millennium.berkeley.edu
Message-ID:
<bb932fb70902241829m3546f762w355dbae4cfa2ec7b at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
That really helped. Thanks!!
On Tue, Feb 24, 2009 at 2:33 PM, Chieh-Jan (Mike) Liang
<cliang4 at cs.jhu.edu>wrote:
> Try erase the volume first.
>
> Mike
>
>
> On Feb 24, 2009, at 12:13 PM, Parkurm wrote:
>
> Hi, I think I'm experiencing problem in LogWrite. When I try
>> LogWrite.append, when it signals appendDone, the error_t result is always
>> FAIL. Can anybody point out the possible reasons for a failure in appendDone
>> event?
>>
>> Here is my source code. When I run it (with the mote connected to the
>> programming board), I get printout like the following:
>> "Sensed data 31,writing to log..not busy, so we can write..appending
>> log..append failed, buf is original, len=0,err=FAIL"
>>
>>
>> #include "Log.h"
>> #include "printf.h"
>> module MyLogWriteP {
>> uses {
>> interface Boot;
>> interface Leds;
>> interface LogWrite;
>> interface Timer<TMilli>;
>> interface Read<uint16_t>;
>> }
>> }
>> implementation {
>>
>> enum {
>> SENSE_INTERVAL = 2000
>> };
>> typedef nx_struct logentry_t {
>> nx_uint16_t data;
>> } logentry_t;
>>
>>
>> bool m_busy = FALSE;
>> logentry_t m_entry;
>>
>> event void Boot.booted() {
>> call Timer.startPeriodic(SENSE_INTERVAL);
>> }
>>
>>
>>
>> event void Timer.fired() {
>> call Leds.led0On();//start sensing
>> call Read.read();
>> }
>> event void Read.readDone(error_t result,uint16_t data) {
>> call Leds.led0Off();//end sensing
>> if (result==SUCCESS) {
>> printf("Sensed data %d,writing to log..",data);
>> m_entry.data=data;
>> if (!m_busy) {
>> m_busy=TRUE;
>> printf("not busy, so we can write..");
>> call Leds.led1On();//start logging
>> if (call LogWrite.append(&m_entry,sizeof(m_entry))!=SUCCESS) {
>> m_busy=FALSE;
>> printf("Failed to initiate append log\n");
>> call Leds.led1Off();//log failure
>> }
>> else {
>> printf("appending log..");
>> }
>> }
>> else {
>> printf("busy, so this data is abandoned\n");
>> }
>> }
>> }
>>
>> event void LogWrite.eraseDone(error_t err) {
>> printf("Errase Done\n");
>> }
>> event void LogWrite.appendDone(void* buf, storage_len_t len,
>> bool recordsLost, error_t err) {
>> if (err==SUCCESS) {
>> printf("append success!\n");
>> call Leds.led2Toggle();
>> }
>> else {
>>
>> printf("append failed, ");
>> printf("buf %s original, ",buf==&m_entry?"is":"is not");
>> printf("len=%d,",len);
>> if(err==ESIZE)
>> printf("err=ESIZE\n");
>> if(err==FAIL)
>> printf("err=FAIL\n");
>> else
>> printf("err unknown\n");
>> }
>> call Leds.led1Off();
>> m_busy=FALSE;
>> }
>>
>> event void LogWrite.syncDone(error_t err) {
>> printf("Does anything happen here?\n");
>> }
>>
>> }
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help at millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090224/d6539bbe/attachment-0001.htm
------------------------------
Message: 6
Date: Tue, 24 Feb 2009 18:43:03 -0800
From: Omprakash Gnawali <gnawali at usc.edu>
Subject: Re: [Tinyos-help] 4 bit Link Estimator.
To: "M. Onur Ergin" <ergin at tkn.tu-berlin.de>, TinyOS_Help
<tinyos-help at millennium.berkeley.edu>
Message-ID:
<d4dcddd20902241843i1acaadf5w367090f17077ff9d at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On Thu, Feb 19, 2009 at 1:16 PM, M. Onur Ergin <ergin at tkn.tu-berlin.de> wrote:
> Hi! Thank you for the quick reply..
> CTP is working and the packets are delivered successfully. I am also
> printing the readings to the console using the Printf of tossim. Those
> (constant values from 8 to 25) are the return values of getLinkQuality for
> sure. In the TCP, you've written that these values should be between 0 and
> 255. Is 255 the best quality? And, since Sept 2008, have you updated the
> implementation? May be I am implementing on an old version.
The return values are EETX. Does this help explain those small numbers?
> I've back-traced the CTP code. As far as I see, all packet traffic of CTP
> is passing through 4bitle LinkEstimator, isn't it?
Yes, the routing beacons pass through the link estimator.
- om_p
------------------------------
_______________________________________________
Tinyos-help mailing list
Tinyos-help at millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
End of Tinyos-help Digest, Vol 70, Issue 74
*******************************************
_________________________________________________________________
Vanaf nu heb je je vrienden overal bij!
http://www.windowslivemobile.msn.com/?mkt=nl-be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090225/03ce3c2f/attachment-0001.htm
More information about the Tinyos-help
mailing list