[Tinyos-help] Acceleration Sensor

2007-08-07 Thread Bernardo Avila Pires
 Hi
   Can someone please help me? I've looked at the ADXL202E (mts310's
accel sensor) Datasheet, but I wasn't able to find an explicit
function that maps the output in volts to the acceleration value. If I
were able to understand how this sensor worked, I might have been able
to figure something out. But I am a bit confused.
   By the way, I found a graphic showing the relation between output
voltage and magnetic field for Honeywell, but no function.
   Does anyone know any of these functions? If so, please tell me.
   Thanks in advance for your help.
 Regards,
Bernardo

-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] A suggestion for all posters

2007-08-12 Thread Bernardo Avila Pires
Nice...

Platform: MacOS X (Tiger)
TinyOS version: 2.x
Programmer: MIB400
Device(s): Mica2, MicaZ
Sensor board: MTS 300, MTS310

Btw, I have written a short tutorial on tinyos, basically covering the
problems I had when trying to set up a wsn. Can I post the link here
so as to submit it to judgment and critic? I would really appreaciate
some feedback to improve it; there are surely many wrong/incompelte
things there...


2007/8/10, Michael Schippling <[EMAIL PROTECTED]>:
> Much too practical and useful. I don't see how it could catch on...
> MS
>
> Platform: WinXP/Cygwin
> TinyOS version: 1.x, Boomerang
> Programmer: MIB510
> Device(s): Mica2, MicaZ, Tmote
> Sensor board: homebrew
>
> Siirtola Harri wrote:
> > Hi,
> >
> > Could it be a good idea to make a signature that contains complete
> > platform and version info, and always use it when posting to this list?
> > Getting a reply like "what platform/version are you using?" is quite
> > common these days. It would also save many words of describing your
> > setup, in case you remember to do it ;)
> >
> > Most of us use several devices/programmers, so one could either edit the
> > sig after writing the email or create different sigs for various
> > combinations. This is quite easy with email programs. Any comments?
> >
> > Regards,
> >
> >   Harri
> >
> > ---
> > Platform: WinXP/Cygwin
> > TinyOS version: 1.x (MoteWorks 2.0.F)
> > Programmer: MIB510/MIB600
> > Device(s): MicaZ
> > Sensor board: MDA300
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] A suggestion for all posters

2007-08-12 Thread Bernardo Avila Pires
MIB600, I mean.

2007/8/12, Bernardo Avila Pires <[EMAIL PROTECTED]>:
> Nice...
>
> Platform: MacOS X (Tiger)
> TinyOS version: 2.x
> Programmer: MIB400
> Device(s): Mica2, MicaZ
> Sensor board: MTS 300, MTS310
>
> Btw, I have written a short tutorial on tinyos, basically covering the
> problems I had when trying to set up a wsn. Can I post the link here
> so as to submit it to judgment and critic? I would really appreaciate
> some feedback to improve it; there are surely many wrong/incompelte
> things there...
>
>
> 2007/8/10, Michael Schippling <[EMAIL PROTECTED]>:
> > Much too practical and useful. I don't see how it could catch on...
> > MS
> >
> > Platform: WinXP/Cygwin
> > TinyOS version: 1.x, Boomerang
> > Programmer: MIB510
> > Device(s): Mica2, MicaZ, Tmote
> > Sensor board: homebrew
> >
> > Siirtola Harri wrote:
> > > Hi,
> > >
> > > Could it be a good idea to make a signature that contains complete
> > > platform and version info, and always use it when posting to this list?
> > > Getting a reply like "what platform/version are you using?" is quite
> > > common these days. It would also save many words of describing your
> > > setup, in case you remember to do it ;)
> > >
> > > Most of us use several devices/programmers, so one could either edit the
> > > sig after writing the email or create different sigs for various
> > > combinations. This is quite easy with email programs. Any comments?
> > >
> > > Regards,
> > >
> > >   Harri
> > >
> > > ---
> > > Platform: WinXP/Cygwin
> > > TinyOS version: 1.x (MoteWorks 2.0.F)
> > > Programmer: MIB510/MIB600
> > > Device(s): MicaZ
> > > Sensor board: MDA300
> > >
> > > ___
> > > Tinyos-help mailing list
> > > Tinyos-help@Millennium.Berkeley.EDU
> > > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> --
> "The truth shall set you free"
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] My tiny tutorial

2007-08-12 Thread Bernardo Avila Pires
 Greetings!
   I have recently written a tutorial, putting together some of the
experience I gathered while trying to set up a WSN. I tried not to
repeat what can be easily found.
   I would much appreciate all help and feedback, so as to improve the
material to a level I consider satisfactory.
   Here it is:
   http://homepages.dcc.ufmg.br/~bpires/tutorials/tutorial/
   Some datasheets can be found in:
   http://homepages.dcc.ufmg.br/~bpires/tutorials/manuals/
   Please alert me if you find something whose distribution is
restricted (I downloaded it from the official websites).
   For those of you who understand Portuguese, please read also
   http://homepages.dcc.ufmg.br/~bpires/tutorials/dossie
   I will eventually translate this last one to English.

   I thank you all in advance for your help.
 Regards,
  Bernardo

Platform: MacOS X (Tiger)
TinyOS version: 2.x
Programmer(s): MIB600
Device(s): Mica2, MicaZ
Sensor board(s): MTS300, MTS310

-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Persistent Data, Packet Parrot, etc

2007-08-24 Thread Bernardo Avila Pires
 Ahoy there!
   I am currently trying to use LogStorageC services, but I am
experiencing some problems.
   I've noticed that the wiring

  LogStorageP.At45db -> At45dbC;

   is missing in LogStorageC.nc. Is it supposed to be like that?
  LogWrite.appendDone simply returns len=0 and error=FAIL.
   Does anybody know what this is about?
   I'll try to find a solution and, if I have time, change
PacketParrot to suit my needs, although I don't think it would help
finding out what the problem is.
   Thank you in advance for your help.
 Regards,
Bernardo

Platform: MacOS X (Tiger)
TinyOS version: 2.x
Programmer: MIB600
Device(s): Mica2
Sensor board: MTS 300, MTS310

-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] My tiny tutorial

2007-08-24 Thread Bernardo Avila Pires
Urs, I have did some fetching upon sensors and stuff, but the data is
written in Portuguese. I'll get it translated as soon as I can.

2007/8/13, Matt Welsh <[EMAIL PROTECTED]>:
> It doesn't matter to me who hosts the wiki; I was hoping to host it
> behind a generic DNS name so its physical location could be moved
> whenever.
>
>
> On Mon, 2007-08-13 at 12:51 -0700, Joe Polastre wrote:
> > > Our goal was that the wiki would be hosted at Harvard. The tinyos.net
> > > site is hosted by Berkeley, and the Debian packages are hosted by
> > > Stanford, so we thought that further distributing the administration
> > > would make it easier for new resources to join and also make it clear
> > > that it's a group effort.
> >
> > Shouldn't the TinyOS Alliance host everything so that its easy and
> > clear for users to access the available resources?  Then there would
> > be no direct affiliation or conflict with Universities or Companies
> > (ala Apache, ISA, Gentoo, IETF, etc...).
> >
> > -Joe
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re: Persistent Data, Packet Parrot, etc

2007-08-24 Thread Bernardo Avila Pires
One other thing (if I don't discover soon enough):

How do I establish a volume's valid last page? I mean, I erase the
volume with one application, but sync doesn't work after it. Later
attempts to write also fail, as though there were no valid metadata
pages in the volumes. Can someone please help me, even if by giving
some orientation into where to seek for the answer?
   Thank you very much

2007/8/24, Bernardo Avila Pires <[EMAIL PROTECTED]>:
>  Ahoy there!
>I am currently trying to use LogStorageC services, but I am
> experiencing some problems.
>I've noticed that the wiring
>
>   LogStorageP.At45db -> At45dbC;
>
>is missing in LogStorageC.nc. Is it supposed to be like that?
>   LogWrite.appendDone simply returns len=0 and error=FAIL.
>Does anybody know what this is about?
>I'll try to find a solution and, if I have time, change
> PacketParrot to suit my needs, although I don't think it would help
> finding out what the problem is.
>Thank you in advance for your help.
>  Regards,
> Bernardo
>
> Platform: MacOS X (Tiger)
> TinyOS version: 2.x
> Programmer: MIB600
> Device(s): Mica2
> Sensor board: MTS 300, MTS310
>
> --
> "The truth shall set you free"
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] need help regarding tinyos

2007-08-29 Thread Bernardo Avila Pires
I am using Logger in mica2 and I am experimenting many problems as
well. It seems as the invariant of the volumes is not initially held.
This can be solved by erasing the volume, or at least it should be
that way. The metadata page at the end of the volume might be created,
but after the erase the invariant is still not held.

What might be happenning?

2007/8/29, piumi karu <[EMAIL PROTECTED]>:
>
>
>
>
>
> Dear All,
> we are developing a mobile sensor network.
> we have a problem regarding storing & retrieving data from the mote. we
> thought this can be achieved by writing to EEPROM (Logger) and retrieving
> from it due to the memory constrain. is this the way to do it or is there
> any other methods you would recomend?
> actually we could write to the EEPROM but when we stop writting and try to
> read from it, it fails. please reply as soon as possible...
>
>  Thanks alot
>  
>  Ready for the edge of your seat? Check out tonight's top picks on Yahoo!
> TV.
>
>  
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
>  Play Sims Stories at Yahoo! Games.
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Problem with TinyOS 2 Collection in tutorial 12

2007-08-29 Thread Bernardo Avila Pires
Have you checked the thing about the separator? If you don't fix it,
then ID-based sending will not work.

The reference is Federico Univesity Mobilab's tutorial.

This is what I wrote in my tutorial (sorry I got lazy and just copy-pasted it)

Mac OS X is not supported by the core working group, but MobiLab has a
very good tutorial about how to install tinyos on such OS. If you use
such tutorial, there's one other line in the avr.rules that has to be
changed. Line 33, which is AMADDR=ActiveMessageAddressC\\$$addr should
be replaced for AMADDR=ActiveMessageAddressC\\never1096WritEaddr,
assuming you are using  never1096WritE as the separator mentioned. If
you don't do this, ID-oriented communication based on active messages
will not work, because the node will not be assigned a active message
address. If so, a message similar to this might appear during the
(re)installation processes of a component: Could not find symbol
ActiveMessageAddressC$addr in build/mica2/main.exe, ignoring symbol.
In this case I was trying to install the component in a mica2 mote.

I don't think it is the problem, but just in case it is...

2007/8/28, Risto Hietala <[EMAIL PROTECTED]>:
> Hi,
>
> I have been trying to get the Collection-example in tutorial 12 to
> work without success. Problem is that the root-node doesn't receive
> messages from other nodes.
>
> I'm using Mica2 and currently I've tested with three nodes in
> different roles. The hardware should be ok as the examples using
> AMSender and receiver work properly.
>
> I tried to debug by changing the sendMessage and sendDone -functions
> to toggle a led whenever it sends something:
>
> sendMessage:
> else {
> sendBusy = TRUE;
> call Leds.led1On();
> }
>
> Send.sendDone:
> sendBusy = FALSE;
> call Leds.led1Off();
>
> This way the sending node would just turn led 1 on, so my conclusion
> is that the first packet never arrives at root and the other nodes
> are just trying to retransmit it. The error-led doesn't light up at
> any time.
>
> I'm using
> nescc: 1.2.9
> gcc: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
> build 5367)
> and TinyOS-build is from CVS.
>
> When compiling, I get three "control may reach end of non-void
> function ... being inlined"-warnings and four times the warning
> "tos/lib/net/ctp/CtpForwardingEngineP.nc:656: warning: 'gradient' may
> be used uninitialized in this function" from different lines of that
> file.
>
> I played also with the TestNetwork-example and ended up not getting
> it to work either.
>
> If anyone has experienced similar problems, I'd be glad to share
> experiences. Especially with OSX-users, as it was not so easy to get
> the development environment to work.
>
>
> Thanks in advance and best regards,
>
>Risto Hietala
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Install on Mac OS

2007-08-29 Thread Bernardo Avila Pires
Pires, you mean =)

Since you are dealing with tutorial and I don't quite have the time
right now, could you do me a favor, please?

 I am almost 100% sure that something in the OS X installation goes
wrong, because volumes (persistent storage) do not work. They're
either not allocated or not recognized. I don't know how it works, but
it seems to me that Java is involved. I installed the volume-using
apps under Fedora and they worked perfectly.
 The favor is: would you discover the reason for this problem and fix it?
 Thank you

(sorry for double e-mail)

2007/8/29, Kevin Klues <[EMAIL PROTECTED]>:
> The tutorial wasn't quite complete.  There was a problem with setting
> the AM address correctly that would break performing collection
> correctly.  The problem was pointed out in another thread  on the
> mailing list eariler today by  Bernardo Avila Peres.  I have updated
> the tutorial to address this needed change.  Its in the section on
> setting the nesc separator correctly.
>
> Kevin
>
> On 8/29/07, Risto Hietala <[EMAIL PROTECTED]> wrote:
> > Hi Kevin,
> >
> > Indeed I followed your instructions on getting the environment
> > to work at the first place. I also have to thank Chien-Liang Fok
> > for his additional notes at:
> > http://www.cse.wustl.edu/~liang/tinyos-install/
> >
> > However, my problem with the collection still exists (previous
> > mail to the list on 28.8.) and I wouldn't like to do everything all
> > over again if there was some solution. And as the other
> > programs work, I'm a little bit sceptical that this would be
> > a problem of my development environment.
> >
> > But if there are no other solutions, I guess I have no other choice
> > than to go through your tutorial again.
> >
> > Thanks and best regards,
> >
> >Risto Hietala
> >
> >
> > On 28.8.2007, at 17.45, Kevin Klues wrote:
> >
> > > Some people have been expressing concerns recently on not getting
> > > tinyos to work properly under Mac OS.  I wanted to point them all
> > > again to a tutorial I wrote about a year ago.  Everyone I've heard
> > > from has had success with using it, so hopefully you will too.  I
> > > updated and tested it again last night so it should be good to go.
> > >
> > > http://www.stanford.edu/~klueska/installing_tinyos2.html
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> --
> ~Kevin
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] T1 - Measuring multi-hop packet delay

2007-08-29 Thread Bernardo Avila Pires
I usually use python scripts to process the trace files and deduce the
hop numbers by redoing the trajectory for each packet.

2007/8/29, Paul <[EMAIL PROTECTED]>:
> Hi all
>
> I am using TOSSIM to simulate multihop surge application. I need to measure
> the end-to-end packet delay. I already have a Surge Listen java tools to
> measure the throughput.
>
> Please share with me your experience on this.
>
> Thanks.
>
> --
> Cheers,
> Paul
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] T1 - Measuring multi-hop packet delay

2007-08-30 Thread Bernardo Avila Pires
You don't need to do that. If you are measuting hops, you can just
trace the packets by their IDs and increment the hop count as
necessary (which is what I'd do in tests with actual nodes). Since you
are using TOSSIM, you can print a time string from the simulator if
you wish to measure time, and not hops. But as synchronizing is not
the easiest thing in life, hop counts are a much simpler and no less
reliable way to evaluate the average delay than delay itself. (Of
course, if you wish to relate hop count x time, you can do both and
get an average delay per hop).

2007/8/29, Paul <[EMAIL PROTECTED]>:
> Do you mean using the SysTimerC and print out the time when a packet is sent
> at the app layer, and print out again when it is received at the sink node?
> But this requires network time synchronization ? Please advice.
>
>  Thanks.
>
>
> On 8/30/07, Bernardo Avila Pires <[EMAIL PROTECTED]> wrote:
> > I usually use python scripts to process the trace files and deduce the
> > hop numbers by redoing the trajectory for each packet.
> >
> > 2007/8/29, Paul <[EMAIL PROTECTED]>:
> > > Hi all
> > >
> > > I am using TOSSIM to simulate multihop surge application. I need to
> measure
> > > the end-to-end packet delay. I already have a Surge Listen java tools to
> > > measure the throughput.
> > >
> > > Please share with me your experience on this.
> > >
> > > Thanks.
> > >
> > > --
> > > Cheers,
> > > Paul
> > > ___
> > > Tinyos-help mailing list
> > > Tinyos-help@Millennium.Berkeley.EDU
> > >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> >
> >
> > --
> > "The truth shall set you free"
> >
>
>
>
> --
> Cheers,
> Paul


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RF power

2007-09-01 Thread Bernardo Avila Pires
I think it is signal power, in mica2. In micaz you set both as packet fields.

2007/9/1, bou ahm <[EMAIL PROTECTED]>:
> HELLO,
> I am new to tinyos ,please what is the role and the fonction of each
> following commands and what means RF power.
> -interface CC1000Control
>  command uint8_t  GetRFPower();
> -interface PowerManagement
>  getPowerLevel() ;
> THANK YOU.
>
>  
>  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
> Mail
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RF power

2007-09-01 Thread Bernardo Avila Pires
The RFPower

2007/9/1, Bernardo Avila Pires <[EMAIL PROTECTED]>:
> I think it is signal power, in mica2. In micaz you set both as packet fields.
>
> 2007/9/1, bou ahm <[EMAIL PROTECTED]>:
> > HELLO,
> > I am new to tinyos ,please what is the role and the fonction of each
> > following commands and what means RF power.
> > -interface CC1000Control
> >  command uint8_t  GetRFPower();
> > -interface PowerManagement
> >  getPowerLevel() ;
> > THANK YOU.
> >
> >  
> >  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
> > Mail
> >
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> --
> "The truth shall set you free"
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Diferent components in TOSSIM

2007-09-27 Thread Bernardo Avila Pires
-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Re: Diferent components in TOSSIM

2007-09-27 Thread Bernardo Avila Pires
Greetings

  I am sorry for having sent the empty e-mail.
  Is there any way to simulate different components in TOSSIM? I've
tried to mask the components as one (by starting only the parts I needed for
each node), but it has not worked. The fake component did not work whereas
both components worked well individually.
  I am interested in attempting to change TOSSIM so that each node can
have a different component. Is this plausible?
 Well, that is all for now.
   Regards,
Bernardo
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] MIB600 115200

2007-10-02 Thread Bernardo Avila Pires
Talking about MIB600, dos anyone know how to find out the MAC address
of one of these? There's one here whose address has faded from the
board.

2007/10/2, Giri Baleri <[EMAIL PROTECTED]>:
>
>
> Here's what you need to do to change the default baud rates for the MIB600.
>
> 1. Open a web browser and type the IP address of MIB600. You should see
> Lantronix web manager page.
> 2. From the left hand menu corner, click on Channel 1 and and the default
> settings should be:
> Serial Port Speed: 115200
> Port :10001
>
> 3. From the left hand menu corner, click on Channel 2 and the default
> settings should be:
> Serial Port Speed: 57600
> Port:10002
>
> 4. If you make changes above, save/update the settings.
>
> I hope that helps,
> Giri
>
>  
>  From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of JeongKwanhee
> Sent: Tuesday, October 02, 2007 6:19 AM
> To: tinyos-help@Millennium.Berkeley.EDU
> Subject: [Tinyos-help] MIB600 115200
>
>
>
>
>
> Hello! Everybody.
>
>
>
> I am trying to change the baud rate from 57600 to 115200 on MIB600.
>
> However, I cannot operate correctly. I do not know why it is not running.
>
>
>
> So, I will write down about my trial for changing rate.
>
> First, I tried.
>
> In eprb.extra  file, I added –dport=10001 on uisp programming.
>
> …..is not run..
>
>
>
> Second, I tried.
>
> I changed HPLUART0M.nc file as follows.
>
> outp(15, UBRR0L) -> outp(7, UBRR0L)
>
> …is not run..
>
>
>
> At result of my test, it always runs just to 10002 port(57600bps).
>
>
>
> If somebody know how to change the baud rate, please reply to this.
>
>
>
> Thank you
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"

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


Re: [Tinyos-help] MIB600 115200

2007-10-02 Thread Bernardo Avila Pires
The problem is that I set its IP address via 'arp' command, using its
MAC address.

2007/10/2, Giri Baleri <[EMAIL PROTECTED]>:
> If you know the IP address, you can look it up in Lantronix device
> installer and make a note of the corresponding MAC address.
>
> Giri
>
> -Original Message-
> From: Bernardo Avila Pires [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 02, 2007 12:15 PM
> To: Giri Baleri
> Cc: JeongKwanhee; tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] MIB600 115200
>
> Talking about MIB600, dos anyone know how to find out the MAC address of
> one of these? There's one here whose address has faded from the board.
>
> 2007/10/2, Giri Baleri <[EMAIL PROTECTED]>:
> >
> >
> > Here's what you need to do to change the default baud rates for the
> MIB600.
> >
> > 1. Open a web browser and type the IP address of MIB600. You should
> > see Lantronix web manager page.
> > 2. From the left hand menu corner, click on Channel 1 and and the
> > default settings should be:
> > Serial Port Speed: 115200
> > Port :10001
> >
> > 3. From the left hand menu corner, click on Channel 2 and the default
> > settings should be:
> > Serial Port Speed: 57600
> > Port:10002
> >
> > 4. If you make changes above, save/update the settings.
> >
> > I hope that helps,
> > Giri
> >
> >  
> >  From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > JeongKwanhee
> > Sent: Tuesday, October 02, 2007 6:19 AM
> > To: tinyos-help@Millennium.Berkeley.EDU
> > Subject: [Tinyos-help] MIB600 115200
> >
> >
> >
> >
> >
> > Hello! Everybody.
> >
> >
> >
> > I am trying to change the baud rate from 57600 to 115200 on MIB600.
> >
> > However, I cannot operate correctly. I do not know why it is not
> running.
> >
> >
> >
> > So, I will write down about my trial for changing rate.
> >
> > First, I tried.
> >
> > In eprb.extra  file, I added -dport=10001 on uisp programming.
> >
> > .is not run..
> >
> >
> >
> > Second, I tried.
> >
> > I changed HPLUART0M.nc file as follows.
> >
> > outp(15, UBRR0L) -> outp(7, UBRR0L)
> >
> > ...is not run..
> >
> >
> >
> > At result of my test, it always runs just to 10002 port(57600bps).
> >
> >
> >
> > If somebody know how to change the baud rate, please reply to this.
> >
> >
> >
> > Thank you
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-he
> > lp
> >
>
>
> --
> "The truth shall set you free"
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] A discussion on TOSSIM

2007-10-03 Thread Bernardo Avila Pires
Hi, I would like to ask some questions and expose some ideas of mine.
 1) How many people might need a simulator for more than one application?
 2) How many people might use simulators as means of debugging their
application?
 3) How many people might use simulators to evaluate application performance
and behavior?

I found myself in need of a simulator to debug the algorithms for
interaction between two applications. So I posted a question about how to
hammer to applications in TOSSIM and later I had an idea. So, how hard would
it be to translate nesC to C++? Given C++ code for components, it would be
possible to build and use a NS-like simulator, no? So I kept thinking about
this translation process:
   There could be two ways to bind components via interface: by generating
code for the bindings (static) or by passing objects (which would be
instances of components) as parameters to other objects in execution time
(dynamic). Also, statically bound interfaces could be inspected many times
in order to remove indirection levels. Some low-level components would need
to be implemented as C++ code integrated to the simulator if efficiency
during simulation were important, otherwise the simulator could emulate the
nodes right away.
I have to put more thought on the other ideas I have.
   Regards,
  Bernardo

-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] A discussion on TOSSIM

2007-10-04 Thread Bernardo Avila Pires
That is one problem, no? The monolith.c is what I was trying to run away
from...

2007/10/3, Kevin Klues <[EMAIL PROTECTED]>:
>
> Don't forget that all your nesC modules just get turned into one giant
> app.c file in your build/ directory if thats useful.
>
> Kevin
>
> On 10/3/07, Bernardo Avila Pires <[EMAIL PROTECTED]> wrote:
> > Hi, I would like to ask some questions and expose some ideas of mine.
> >  1) How many people might need a simulator for more than one
> application?
> >  2) How many people might use simulators as means of debugging their
> > application?
> >  3) How many people might use simulators to evaluate application
> performance
> > and behavior?
> >
> > I found myself in need of a simulator to debug the algorithms for
> > interaction between two applications. So I posted a question about how
> to
> > hammer to applications in TOSSIM and later I had an idea. So, how hard
> would
> > it be to translate nesC to C++? Given C++ code for components, it would
> be
> > possible to build and use a NS-like simulator, no? So I kept thinking
> about
> > this translation process:
> >There could be two ways to bind components via interface: by
> generating
> > code for the bindings (static) or by passing objects (which would be
> > instances of components) as parameters to other objects in execution
> time
> > (dynamic). Also, statically bound interfaces could be inspected many
> times
> > in order to remove indirection levels. Some low-level components would
> need
> > to be implemented as C++ code integrated to the simulator if efficiency
> > during simulation were important, otherwise the simulator could emulate
> the
> > nodes right away.
> > I have to put more thought on the other ideas I have.
> >Regards,
> >   Bernardo
> >
> > --
> > "The truth shall set you free"
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> --
> ~Kevin
>



-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Is it possible to adjust MOTE/MiCAz's transmit powe r in the middle of the process

2007-10-05 Thread Bernardo Avila Pires
The micaz radio stack (it's what I think it's called) allows you to set the
power via packet. Each time a packet is sent, one of its fields is checked
and the value is set for RF power.
I don't know about Telos.
As regards mica2, you have to use the component CC1000ControlP.nc , the
interface CC1000Control and the command setRFPower( /* I think it is an*/
uint8_t )

2007/10/3, Murray, Ben <[EMAIL PROTECTED]>:
>
>  For the Micaz (and Telos?) I think you can use CC2420Config and
> CC2420Power interfaces in the CC2420ControlC Component
> tinyos-2.x\tos\chips\cc2420\control to adjust RF settings on the fly - it
> works for changing the channel, not tried it with power myself, but I'd have
> thought there would be a way to do it
>
>
> -Original Message-
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] Behalf Of *Chang
> *Sent:* 03 October 2007 08:27
> *To:* tinyos-help@Millennium.Berkeley.EDU
> *Subject:* [Tinyos-help] Is it possible to adjust MOTE/MiCAz's transmit
> power in the middle of the process
>
> As we all know, we need to specify some transmit power for the nodes and
> compile it then upload to the nodes to run.
> But in this way, the power is pre-specified and cannot be changed.
> I wonder if it is possible to change the power in the middle. Or anyone
> knows what hardware platform can do this (like Telos)?
>
> Thanks for your information.
>
>
> ***
>
> Please consider the environment before printing this email.
>
>
> ***
>
> This email and any files transmitted with it are intended solely for the
> use of
>
> the individual or entity to whom they are addressed and may not be
> divulged to
>
> any third party without the express permission of the originator. Any
> views
>
> expressed in this message are those of the individual sender, except where
> the
>
> sender specifically states them to be the views of Thales Research &
> Technology
>
> (UK) Limited.
>
>
> ***
>
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] sample applications for Mica2 Sound sensors usage

2007-10-07 Thread Bernardo Avila Pires
There's the Sense application, which can be modified for tone
detection. And including the SounderC in it is not hard. Check the
sensing part of the tutorial (chapter 5). There are some details to
consider, such as using " SENSORBOARD=mts300 make mica2 ... " command.


2007/10/7, hamsa jega <[EMAIL PROTECTED]>:
> Hi,
>
> Are there are any sample applications for generating and detecting sound on
> Tinyos2. It would be of great help if anyone could give me pointers on how
> to get started.
>
> Thanks,
> Hamsa
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] AMSenderC Wiring Help

2007-10-26 Thread Bernardo Avila Pires
You have to wire SerialActiveMessageC 's (for serial communication) or
ActiveMessageC (for radio communication) 's SplitControl to a used
SplitControl of yours.

2007/7/11, Ian Welch <[EMAIL PROTECTED]>:
> I'm trying to write a module to be use to take care of timeing in the
> network. When I try to wire it up to a test Module I get the following
> errors
>
> In component `CC1000CsmaP':
> /opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaP.nc: In
> function `startStopDone.runTask':
> /opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaP.nc:191:
> SplitControl.stopDone not connected
> /opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaP.nc:193:
> SplitControl.startDone not connected
> make: *** [exe0] Error 1
>
>  I tried to find the solution in the Programming Manual and had no success.
> Any help / guidance you could give me would be great.
> Thanks.
>
> Here is my configuration
> /* This application is used to keep track of the time
>  and synch witht the time of the base station
> */
>
> #include 
>
> configuration TimeKeeperC
> {
> provides {
> interface TimeKeeper;
> }
> }
>
> implementation
> {
> componentsMainC;
> components TimeKeeperApp;
> components new TimerMilliC() as Clock;
> componentsnew AMSenderC(9) as Sender;
> componentsnew AMReceiverC(9) as Receiver;
>
> TimeKeeper = TimeKeeperApp;
>
>
> TimeKeeperApp.Boot-> MainC;
> TimeKeeperApp.Clock -> Clock;
> TimeKeeperApp.TSend-> Sender;
> TimeKeeperApp.TPacket -> Sender;
> TimeKeeperApp.TReceive ->Receiver;
> }
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] SplitControl Question

2007-10-27 Thread Bernardo Avila Pires
You need to wire a SplitControl of yours to SplitControl provided by
ActiveMessageC (and start it during execution).

2007/10/26, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]>:
> Hi,
>
>  I'm trying to implement a simple sender-reciever with TinyOS 2.0.
>  I used the AMSenderC and the AMReceiverC components.( with the AMSend and
> Recieve interfaces)
>  While the sender works fine separately, the reciever does not.
>
>
>  I keep getting these two error messages :
>
>  component CC1000Csmap.nc: In function Startstopdone.runtask:
>
>  SplitControl.startdone not connected
>  SplitControl.stopdone not connected
>
>
>  I dont know how to fix this.
>  Is this some kind of a version problem or wiring of components issue ?
>  Because the sender works just fine when implemented and I dont know what is
> wrong with combining the reciever.
>
>  Does somebody have an idea or suggestion ?
>
>
>  Thanks a lot
>  Bhuvana
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] float data type in TinyOS

2007-10-28 Thread Bernardo Avila Pires
If you are expecting float at the other side, just typecast the
message content at the sender and at the receiver.

2007/10/28, Jeongyeup Paek <[EMAIL PROTECTED]>:
> One work around is...
> *100 before sending, and /100 after receiving.
>
> Thanks
>
> - jpaek
>
> Angela Perez wrote:
> > Hi guys,
> >
> > Could you give me some advice if I want to use float as a data type in
> > my programs? For example say I want to send a packet containing a float
> > to another mote. Am I right in thinking that float is not currently
> > supported (or the data types supported are only the nx_ data types that
> > are platform independent).
> >
> > I know I can *use* float but can not send them as packet contents or to
> > printf for example. Anybody know any workarounds?
> >
> > Thanks
> > Angela
> >
> >
> > 
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> --
> Jeongyeup Paek
> Ph.D. student
> Embedded Networks Laboratory
> Department of Computer Science
> University of Southern California
> http://enl.usc.edu/~jpaek
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Change mote ID

2007-11-25 Thread Bernardo Avila Pires
use make ... instal.id

where id is the id number. Or use the tos-set-symbols. Check the
tutorials lesson 13 for more information.

2007/11/23, Roberto Fernández Martínez <[EMAIL PROTECTED]>:
>
>
>
>
> Hello.
>
> Anybody knows chande mote ID in TinyOS 2.0?
>
> I tried with set-mote-id but in this SO I don't have this program.
>
> Thanks.
>
>
>
> Roberto
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"

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


Re: [Tinyos-help] Fwd: Changing TX_POWER

2007-12-01 Thread Bernardo Avila Pires
By the way, why isn't the CC1000 stack treated the same way
(packet-based TX power control)? No maintainers, or is it due to
device characteristics?

2007/12/1, Vijayant Bhatnagar <[EMAIL PROTECTED]>:
> Hi Phil,
> Right now we are using TOSSIM 2 based simulation environment. I studied your
> reply carefully and implemented CC2420ActiveMessageC interface for setting
> TX power on per packet basis. However, I also found one more thread :
> http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg14660.html
> wherein you have clearly mentioned that TOSSIM doesnt support changing
> tx_power functionality.
> Is there any way/fix to change power on per packet basis ?  Changing power
> is very much crucial to our research.  Most of the things that we are trying
> to do depends on changing  transmitter power.
>
> Any help is appreciated.
>
> Thanks,
> Vijayant Bhatnagar.
> Rutgers.
>
>
> On Nov 28, 2007 1:53 AM, Philip Levis <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Nov 27, 2007, at 10:34 PM, Vijayant Bhatnagar wrote:
> >
> > > Hi,
> > > We found out that CC2420 does not support changing power at runtime :
> > >
> http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/
> > > msg13680.html
> > >
> > > Is there any development / fix for this ? If not, can any one give
> > > us some cue on how to do this.
> > >
> > > Help appreciated.
> > >
> > >
> >
> > Read the thread more carefully. You can set the power level on a per-
> > packet basis. Creating a simple shim sender component that sets all
> > transmissions to a given power level should be pretty easy. It would
> > be a generic configuration (e.g., PowerAMSenderC) that instantiates
> > an AMSenderC, a generic module that has provides/uses AMSend and adds
> > a set power call, and a singleton module to store the packet power
> > level.
> >
> > Phil
> >
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"The truth shall set you free"
___
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 use TimeStamp in tinyOS-1.x or TinyOS-2.x?

2007-12-02 Thread Bernardo Avila Pires
Synchronizing the nodes might be hard... Couldn't you use hop count and
estimate the average delay as a function of distance? With hop count +
average delay, you can estimate the total delay...
A workaround for this is to have the motes start a oneShot time with
interval of 0x ms, then try to turn the motes on at the same time;
But you have to check how desynchronized the nodes get.

2007/11/30, antonio gonga <[EMAIL PROTECTED]>:
>
>
> Hey all,
>
> I'd like to use timeStamp while sending a message.
> The Sender insert the time on which the message was sent, and the Base
> Station also inserts the time when the message is received. On the
> application layer (java Application, the system converts and subtracts these
> values, so that a delay can be calculated.
> Using this strategy it's possible to calculate the delay between two
> sensor. It's important because I want to use it to send messages over 1Km(
> i.e Wide area Wireless Sensor Network) using intermediate node. If some
> data sensitive to delay has to be carried in the packets this could be the
> first step to evaluate the possibility  or impossibility to use WSN
>
> I think there should be a function that enables to insert packet
> timestamps like in RTP.
>
> thanks in advance
>
>
> --
> You keep typing, we keep giving. Download Messenger and join the i'm
> Initiative now. Join 
> in!
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Test automation

2007-12-05 Thread Bernardo Avila Pires
Greetings!
   I am currently facing serious problems to transform some of my
tests usign mica2 motes into automated versions (repeated executions
with parameter variations among them).
  Can someone please shed some light on my ideas? Any books or
comments would be useful.
  Also, is there a way to reboot the motes via software?
  Thanks in advance for your help.
   Regards,
Bernardo

-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Test automation

2007-12-05 Thread Bernardo Avila Pires
Thank you very much

2007/12/5, Jeongyeup Paek <[EMAIL PROTECTED]>:
>
>
> You can reboot the motes via software.
> Five lines copied from deluge code...
>
>   cli();
>   wdt_enable(0);
>   while(1) {
> __asm__ __volatile__("nop" "\n\t" ::);
>   }
>
> Thanks
>
> - jpaek
>
>
> Bernardo Avila Pires wrote:
> > Greetings!
> >I am currently facing serious problems to transform some of my
> > tests usign mica2 motes into automated versions (repeated executions
> > with parameter variations among them).
> >   Can someone please shed some light on my ideas? Any books or
> > comments would be useful.
> >   Also, is there a way to reboot the motes via software?
> >   Thanks in advance for your help.
> >Regards,
> > Bernardo
> >
>
> --
>
> Jeongyeup Paek
> Ph.D. student
> Embedded Networks Laboratory
> Department of Computer Science
> University of Southern California
> http://enl.usc.edu/~jpaek
>



-- 
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Possible problem in TOSSIM (tinyos-2.x)

2007-03-23 Thread Bernardo Avila Pires

  Greetings!
   My name is Bernardo, I'm a college student and I am new to both tinyOS
and tinyOS community. I have recently tried to update some of my code to
tinyOS-2.x and I have run into a little problem in TOSSIM: no radio message
is sent! I have then started to delve the sourcecodes and after some
analisys I found out that, in TossimPacketModelP.nc, there a function named
send_backoff which might be causing the problem. Please read this function's
implementation so as to understand with more ease what comes next.
   There is a function in sim_csma.c called sim_csma_set_max_iterations
which is not called in any of the modules in .../tinyos- 2.x/tos/lib/tossim
and this should initialize this max iteration numbers, which is set to 0 via
  ( #define SIM_CSMA_MAX_ITERATIONS 0 ). This zero value causes
a loop like that:
  1. call send_backoff via event execution (when dequeuing the event)
  2. evaluate that sim_csma_set_max_iterations is equal to 0 and thus
increment the backoff in the event.
(line:
 else if (sim_csma_max_iterations() == 0 ||
backoffCount <= sim_csma_max_iterations()) {

)
  3. enqueue event (which leads to 1 being executed again).
 The backoff field is overflow-ed  several times and radio communication
never works.
   So, why did I comment this here? Well, it happens that I don't know what
to do with this information. I looked for "sim_csma_set_max_iterations" and
I found a CVS update which seemed to have the same problem. Apparently
movind this (sim_csma_max_iterations() == 0) to the first if clause (which
is the one where messages are effectively sent), thins seem to work - I
haven't tested enough, though.
   So, what do I do?
  Thank you in advance.
 Best wishes,
Bernardo

P.S.: Please forgive any inconvenience; I am not used to posting into mail
lists.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] TinyOS packet size

2007-03-25 Thread Bernardo Avila Pires

 I think I have seen in the tinyOS 1.0 tutorial that 29 bytes was the
maximum size by convention. It also said that changing this size required
"some non-trivial hacking of the code".

2007/3/25, DeveshChhabildas Jinwala <[EMAIL PROTECTED]>:


Hello

Can anyone please assist me with the probable pointers to the answers to
the following questions:

   1. While I believe it is possible to have the TinyOS packet sizes of
   variable lengths, what is the limit  on the maximum length of the same ?
   2. Why is the data payload in TinyOS limited at 29 bytes only ?
   3. Have there been any upgrades of the TinSec ?

Thanks
D C Jinwala,
SVNIT, Surat

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





--
Não deixe de visitar meu blog, ao menos uma vez:
http://obernardo.blogspot.com/
"Um homem só se torna um homem quando faz cinco coisas: planta uma árvore,
luta contra um touro, escreve um livro, cria um filho e visita o blog d'O
Bernardo"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Re: Possible problem in TOSSIM (tinyos-2.x)

2007-03-26 Thread Bernardo Avila Pires

My bad, my bad... I took a more conservative approach and started to fetch
for errors in my doings, which was the case. There's no error, except for my
public blasphemy as the first e-mail to a help community

2007/3/23, Bernardo Avila Pires <[EMAIL PROTECTED]>:



   Greetings!
My name is Bernardo, I'm a college student and I am new to both tinyOS
and tinyOS community. I have recently tried to update some of my code to
tinyOS-2.x and I have run into a little problem in TOSSIM: no radio
message is sent! I have then started to delve the sourcecodes and after some
analisys I found out that, in TossimPacketModelP.nc, there a function
named send_backoff which might be causing the problem. Please read this
function's implementation so as to understand with more ease what comes
next.
There is a function in sim_csma.c called sim_csma_set_max_iterations
which is not called in any of the modules in .../tinyos- 2.x/tos/lib/tossim
and this should initialize this max iteration numbers, which is set to 0 via
  ( #define SIM_CSMA_MAX_ITERATIONS 0 ). This zero value causes
a loop like that:
   1. call send_backoff via event execution (when dequeuing the event)
   2. evaluate that sim_csma_set_max_iterations is equal to 0 and thus
increment the backoff in the event.
 (line:
  else if (sim_csma_max_iterations() == 0 ||
 backoffCount <= sim_csma_max_iterations()) {

)
   3. enqueue event (which leads to 1 being executed again).
  The backoff field is overflow-ed  several times and radio communication
never works.
So, why did I comment this here? Well, it happens that I don't know
what to do with this information. I looked for "sim_csma_set_max_iterations"
and I found a CVS update which seemed to have the same problem. Apparently
movind this (sim_csma_max_iterations() == 0) to the first if clause (which
is the one where messages are effectively sent), thins seem to work - I
haven't tested enough, though.
So, what do I do?
   Thank you in advance.
  Best wishes,
 Bernardo

P.S.: Please forgive any inconvenience; I am not used to posting into mail
lists.






--
Não deixe de visitar meu blog, ao menos uma vez:
http://obernardo.blogspot.com/
"Um homem só se torna um homem quando faz cinco coisas: planta uma árvore,
luta contra um touro, escreve um livro, cria um filho e visita o blog d'O
Bernardo"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Re: Re: tossim segfaults on a tutorial app in a Linux machine

2007-04-20 Thread Bernardo Avila Pires

Hi, I got this from the archives.

On Feb 27, 2007, at 9:27 PM, Philip Levis wrote:


>* On Feb 27, 2007, at 10:49 AM, pavan kumar wrote:*
>
**>>* I am having a similar kind of error as posted in the link*
>>* http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006- *
>>* December/021625.html*
>>
**>>* Python 2.4.2 (#1, Feb 12 2006, 03:59:46)*
>>* [GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2*
>>* Type "help", "copyright", "credits" or "license" for more *
>>* information.*
>>* >>> from TOSSIM import **
>>* >>> t = Tossim([])*
>>* >>> t.runNextEvent()*
>>* False*
>>* >>> m = t.getNode(32);*
>>* >>> m.bootAtTime(1000);*
>>* Segmentation fault*
>>* The link does not provide any solution, we would like to know how *
>>* you people*
>>* solved it.*
>>
**>
**>* Could you perhaps answer the two questions I asked in that thread?*

Here are the next steps to take:

If giving a trace doesn't tell you where you are, then you need to
step through the code. The first thing to do is determine if the SEGV
occurs before, during, or after the TOSSIM function underlying
bootAtTime().

So start python in gdb, and break on bootAtTime. This function is
defined in tossim.c. If you SEGV before you get there, it's happening
on the way in (Python -> C++ -> C); if it SEGVs after the breakpoint,
it's either the function or on the way out (C -> C++ -> Python). You
can break at the C++ level by breaking on Mote::bootAtTime.


The issue is that I can't reproduce the problem, so I can't solve it

by myself.


Phil



I used gdb ad traced the problem to simTime = t; in SimMoteP.nc...

I tried the most recent CVS version, but I think the problem persisted.

 I get quite strange interpretations from stuff, especially from reading
source codes and extracting information from it, but I may have gotten to
the point now. You see, TOSSIM uses a C++ class to represent the mote, and
when python calls a function it is wrapped to this class's  corresponding
function, which calls the  SimMoteP's corresponding function. It seems that
what happens is that the component itself was not created, so, when it tries
to access variables such as startTime, which does not exist, segmentation
fault happens. What I did was to prefix the variables with m_ (to avoid name
clashes) and put them also into the class Mote. Although the node limit is
1000, which I also altered but whose effects I have not yet evaluated, I
changed the tmp's in SimMoteP.nc from int to unsigned long int, which is the
type of the value returned by sim_node() and the parameter type for
sim_set_node().

 I hope you forgive my mistakes in this message whatsoever =D


--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] How to make an application multi-hop enabled

2007-04-21 Thread Bernardo Avila Pires

I have never actually experimented with motes, but I have heard that even
light itensity influenced on collision ratio. Maybe you could try some
barrier around the gateway (or in whichever direction you need) to force
packet loss and, thus, isolate it.
Just a suggestion, but I know there are better ones...

2007/4/21, ankur jain <[EMAIL PROTECTED]>:


Hi all,
i was trying all the applications that comes with the tinyos
distro.however i found that the applications that invovled radio xmissions
were directly sending data to gatway. So i was wondering that if i have to
keep my sensor nodes far apart from the gateway such that they are not in
direct range then i will have to make  the application multi-hop enabled.
But unfortunately i don't know how to do it .Also i don't know that if the
application is query-based (i.e it starts sensing and responding on
receiving query)  or self-started (apps. like XSensorMTS400 which starts
sending data as soon as the mote is switched on),the approach that would be
followed to make it  multi-hop would be same or different.So please if
anyone can throw some light upon this issue would be highly appreciated
thnx in advance
ankur jain

--
Check out what you're missing if you're not on Yahoo! 
Messenger


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





--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Re: Re: tossim segfaults on a tutorial app in a Linux machine

2007-04-21 Thread Bernardo Avila Pires

Btw, was this problem solved by someone? If so, where can I find the
sollution?

2007/4/20, Bernardo Avila Pires <[EMAIL PROTECTED]>:


Hi, I got this from the archives.

On Feb 27, 2007, at 9:27 PM, Philip Levis wrote:
>
> >* On Feb 27, 2007, at 10:49 AM, pavan kumar wrote:*
> >
> **>> * I am having a similar kind of error as posted in the link*
> >>* http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006- *
> >>* December/021625.html*
> >>
> **>>* Python 2.4.2 (#1, Feb 12 2006, 03:59:46)*
> >> * [GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2*
> >>* Type "help", "copyright", "credits" or "license" for more *
> >>* information.*
> >>* >>> from TOSSIM import **
> >>* >>> t = Tossim([])*
> >>* >>> t.runNextEvent()*
> >>* False*
> >>* >>> m = t.getNode(32);*
> >>* >>> m.bootAtTime(1000);*
> >>* Segmentation fault*
> >>* The link does not provide any solution, we would like to know how *
> >>* you people*
> >>* solved it.*
> >>
> **>
> **>* Could you perhaps answer the two questions I asked in that thread?
> *
>
> Here are the next steps to take:
>
> If giving a trace doesn't tell you where you are, then you need to
> step through the code. The first thing to do is determine if the SEGV
> occurs before, during, or after the TOSSIM function underlying
> bootAtTime().
>
> So start python in gdb, and break on bootAtTime. This function is
> defined in tossim.c. If you SEGV before you get there, it's happening
> on the way in (Python -> C++ -> C); if it SEGVs after the breakpoint,
> it's either the function or on the way out (C -> C++ -> Python). You
> can break at the C++ level by breaking on Mote::bootAtTime.
>
The issue is that I can't reproduce the problem, so I can't solve it
> by myself.
>
>
> Phil


I used gdb ad traced the problem to simTime = t; in SimMoteP.nc...

I tried the most recent CVS version, but I think the problem persisted.

  I get quite strange interpretations from stuff, especially from reading
source codes and extracting information from it, but I may have gotten to
the point now. You see, TOSSIM uses a C++ class to represent the mote, and
when python calls a function it is wrapped to this class's  corresponding
function, which calls the  SimMoteP's corresponding function. It seems that
what happens is that the component itself was not created, so, when it tries
to access variables such as startTime, which does not exist, segmentation
fault happens. What I did was to prefix the variables with m_ (to avoid name
clashes) and put them also into the class Mote. Although the node limit is
1000, which I also altered but whose effects I have not yet evaluated, I
changed the tmp's in SimMoteP.nc from int to unsigned long int, which is
the type of the value returned by sim_node() and the parameter type for
sim_set_node().

  I hope you forgive my mistakes in this message whatsoever =D


--
"Segmentation Fault"
  ...de onde concluímos que a falha de segmentação é
ninfomaníaca.





--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Many problems when programming the motes

2007-05-14 Thread Bernardo Avila Pires

Hi!
  Please someone help me... I am almost giving up programming these motes.
   I have the following errors when using the commands:
 make micaz reinstall mib510,/dev/ttyS0
 make mica2 reinstall mib510,/dev/ttyS0
   What happens is that, for reasons I cannot determine, these error
messages appear:
Probably the AVR MCU is not in the RESET state. (1)
Probably the wiring is incorrect or target might be damaged. (2)
   I am using MIB510 directly into serial port and I have tried
positioning the motes in many ways (as I haven't found a definition of
what is a "firmly positioned" mote), with them switched on and off,
with all leds on, all leds of, some leds on others off. I have pressed
reset button many times... To be honest, I see this going nowhere. The
archives didn't help me at all (or some other resources I found
elsewhere). The MIB510 uses external power and I have also tried all
of this with the small switch on and off.
   All this not to mention that the Keyspan (USA-19HS) adapter I used
other times didn't work.
The error messages seem completely random, but I shall try to
map the state of mote/board to the error message given if necessary
(which I suppose to be, although I would regret having written a big
table for nothing). Is it necessary?
   Please help me.
I thank you all in advance.
 Bernardo
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Help with NesC and TOSSIM

2007-05-14 Thread Bernardo Avila Pires

The tutorials in the tinyOS site are very good. Try them out, it
worked well for me.

2007/5/11, khawla Lahamar <[EMAIL PROTECTED]>:

Hi,

I'm trying to write a small application for temperature sensor with NesC.
After, I would like to simulate it with TOSSIM.
 I am a beginner in this kind of programming. Do you know where i can find a
good manual to begin with the language.

I haven't any hardware mote and working with tinyos1.1.15

Can someone help me to begin please?

thanks in advance


 --
Khawla

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




--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re: Many problems when programming the motes

2007-05-14 Thread Bernardo Avila Pires

BTW, I am using Fedora 6.

2007/5/14, Bernardo Avila Pires <[EMAIL PROTECTED]>:

Hi!
   Please someone help me... I am almost giving up programming these motes.
I have the following errors when using the commands:
  make micaz reinstall mib510,/dev/ttyS0
  make mica2 reinstall mib510,/dev/ttyS0
What happens is that, for reasons I cannot determine, these error
messages appear:
 Probably the AVR MCU is not in the RESET state. (1)
 Probably the wiring is incorrect or target might be damaged. (2)
I am using MIB510 directly into serial port and I have tried
positioning the motes in many ways (as I haven't found a definition of
what is a "firmly positioned" mote), with them switched on and off,
with all leds on, all leds of, some leds on others off. I have pressed
reset button many times... To be honest, I see this going nowhere. The
archives didn't help me at all (or some other resources I found
elsewhere). The MIB510 uses external power and I have also tried all
of this with the small switch on and off.
All this not to mention that the Keyspan (USA-19HS) adapter I used
other times didn't work.
 The error messages seem completely random, but I shall try to
map the state of mote/board to the error message given if necessary
(which I suppose to be, although I would regret having written a big
table for nothing). Is it necessary?
Please help me.
 I thank you all in advance.
  Bernardo




--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Many problems when programming the motes

2007-05-14 Thread Bernardo Avila Pires

But what exactally is "sits firmly"? I have tried with many motes and
with many of them the LEDs were on... And for different units I got
diffrent LED combinations...

2007/5/14, Giri Baleri <[EMAIL PROTECTED]>:

Hi Bernardo,

You would see this error message (Probably the AVR MCU is not in the
RESET state) in 2 cases:
1. The Mote is not properly plugged into the MIB510 (or even when
completely unplugged).
2. The CPU of the Mote itself somehow got mis-configured/damaged.

The question is are you seeing this error on every Mote you have? If so,
the possibility # 1 is most likely the case. Try to press the Mote
against MIB510 until it seats firmly. If that doesn't help, try another
MIB board (in case the contacts of your MIB510 are worn-out).

If you are seeing this error on only a couple of Motes, then #2 could be
the cause. You might be able to recover them using JTAG pod.

Giri

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Bernardo Avila Pires
Sent: Monday, May 14, 2007 11:38 AM
To: tinyos-help
Subject: [Tinyos-help] Many problems when programming the motes

Hi!
   Please someone help me... I am almost giving up programming these
motes.
I have the following errors when using the commands:
  make micaz reinstall mib510,/dev/ttyS0
  make mica2 reinstall mib510,/dev/ttyS0
What happens is that, for reasons I cannot determine, these error
messages appear:
 Probably the AVR MCU is not in the RESET state. (1)
 Probably the wiring is incorrect or target might be damaged.
(2)
I am using MIB510 directly into serial port and I have tried
positioning the motes in many ways (as I haven't found a definition of
what is a "firmly positioned" mote), with them switched on and off, with
all leds on, all leds of, some leds on others off. I have pressed reset
button many times... To be honest, I see this going nowhere. The
archives didn't help me at all (or some other resources I found
elsewhere). The MIB510 uses external power and I have also tried all of
this with the small switch on and off.
All this not to mention that the Keyspan (USA-19HS) adapter I used
other times didn't work.
 The error messages seem completely random, but I shall try to
map the state of mote/board to the error message given if necessary
(which I suppose to be, although I would regret having written a big
table for nothing). Is it necessary?
Please help me.
 I thank you all in advance.
  Bernardo
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p




--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Help with NesC and TOSSIM

2007-05-15 Thread Bernardo Avila Pires

I think that it is if there is an available temperature sensor. It
will be way simpler if there is already a module providing some
abstraction over this sensor.

2007/5/15, khawla Lahamar <[EMAIL PROTECTED]>:

Good morning
thanks for your help and I'm working in this lessons and tutorials.
 But I want to ask if the application I want to do is feasible and after I
can simulate it with TOSSIM?
thanks again

Khawla


 2007/5/14, Bernardo Avila Pires < [EMAIL PROTECTED]>:
> The tutorials in the tinyOS site are very good. Try them out, it
> worked well for me.
>
> 2007/5/11, khawla Lahamar <[EMAIL PROTECTED]>:
> > Hi,
> >
> > I'm trying to write a small application for temperature sensor with
NesC.
> > After, I would like to simulate it with TOSSIM.
> >  I am a beginner in this kind of programming. Do you know where i can
find a
> > good manual to begin with the language.
> >
> > I haven't any hardware mote and working with tinyos1.1.15
> >
> > Can someone help me to begin please?
> >
> > thanks in advance
> >
> >
> >  --
> > Khawla
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> >
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> --
> "Segmentation Fault"
>   ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
>



--





--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Error of cannot find 'ResourceDefaultOwner'

2007-05-24 Thread Bernardo Avila Pires

I'm having a problem like that. I found in the archives a message from David
Gay, according to which we should update  the tree because this was due to
some inconsistent tree.
It happens that I have updated it, but nothing really changed.

When I try to compile things using mts300 (including Sense application),
these error messages appear:

(using command : SENSORBOARD=mts300 make mica2 install mib510,/dev/ttyS0 )

In component `PhotoTempDeviceC':
/opt/tinyos-2.x/tos/sensorboards/mts300/PhotoTempDeviceC.nc:24: cannot find
`ResourceDefaultOwner'
/opt/tinyos-2.x/tos/sensorboards/mts300/PhotoTempDeviceC.nc:29: cannot find
`Int1'
/opt/tinyos-2.x/tos/sensorboards/mts300/PhotoTempDeviceC.nc:34: cannot find
`ResourceDefaultOwner'
/opt/tinyos-2.x/tos/sensorboards/mts300/PhotoTempDeviceC.nc:39: cannot find
`Int2'

I changed some stuuf in the files after that but the sensors didn't work
(just the sounder) =/
But these errors appear when I use the original files from the tree.

I've noticed that PhotoPower (SplitControlPowerManagerC.nc) doesn't use the
interface ResourceDefaultOwner and that PhotoArbiter (RoundRobinArbiterC.nc)
doesn't provide it. Yet, there it is, a wiring through this interface... And
no Int1 in MicaBusC either.

Well, thanks in advance.
  Regards,
 Bernardo

2007/5/7, Fangming Zhang <[EMAIL PROTECTED]>:


Hi everyone,

I put all MTS300 files in sensorboards folder and name this folder as
micasb like : '../tos/sensorboards/micasb'. I compiled it using command
like:
SENSORBOARD=micasb make micaz

However, there is an error: In component `AccelConfigP':
/opt/tinyos-2.x/tos/sensorboards/micasb/AccelConfigP.nc:33: cannot find
`Resourc
eDefaultOwner'.

But, there is a file called ResouceDefaultOwner.nc in 'tos/interfaces'.
Where is problem?

Regards,
Fangming


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





--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Error of cannot find 'ResourceDefaultOwner'

2007-05-24 Thread Bernardo Avila Pires

Hello again

Both have ResourceController interface. Am I supposed to just replace
ResourceDefaultOwer por ResourceController? Can I use MicaBusC PW1 instead
of Int1? I think it should be there...

Thanks again
Regards
   Bernardo

2007/5/24, Bernardo Avila Pires <[EMAIL PROTECTED]>:


I'm having a problem like that. I found in the archives a message from
David Gay, according to which we should update  the tree because this was
due to some inconsistent tree.
It happens that I have updated it, but nothing really changed.

When I try to compile things using mts300 (including Sense application),
these error messages appear:

(using command : SENSORBOARD=mts300 make mica2 install mib510,/dev/ttyS0 )

In component `PhotoTempDeviceC':
/opt/tinyos-2.x/tos/sensorboards/mts300/PhotoTempDeviceC.nc:24: cannot
find `ResourceDefaultOwner'
/opt/tinyos-2.x/tos/sensorboards/mts300/PhotoTempDeviceC.nc:29: cannot
find `Int1'
/opt/tinyos-2.x/tos/sensorboards/mts300/PhotoTempDeviceC.nc:34: cannot
find `ResourceDefaultOwner'
/opt/tinyos-2.x/tos/sensorboards/mts300/PhotoTempDeviceC.nc:39: cannot
find `Int2'

I changed some stuuf in the files after that but the sensors didn't work
(just the sounder) =/
But these errors appear when I use the original files from the tree.

I've noticed that PhotoPower (SplitControlPowerManagerC.nc) doesn't use
the interface ResourceDefaultOwner and that PhotoArbiter (
RoundRobinArbiterC.nc) doesn't provide it. Yet, there it is, a wiring
through this interface... And no Int1 in MicaBusC either.

Well, thanks in advance.
   Regards,
  Bernardo

2007/5/7, Fangming Zhang <[EMAIL PROTECTED]>:
>
> Hi everyone,
>
> I put all MTS300 files in sensorboards folder and name this folder as
> micasb like : '../tos/sensorboards/micasb'. I compiled it using command
> like:
> SENSORBOARD=micasb make micaz
>
> However, there is an error: In component `AccelConfigP':
> /opt/tinyos-2.x/tos/sensorboards/micasb/AccelConfigP.nc:33: cannot find
> `Resourc
> eDefaultOwner'.
>
> But, there is a file called ResouceDefaultOwner.nc in 'tos/interfaces'.
> Where is problem?
>
> Regards,
> Fangming
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>



--
"Segmentation Fault"
  ...de onde concluímos que a falha de segmentação é
ninfomaníaca.





--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] More problems with frequencies

2007-05-24 Thread Bernardo Avila Pires

 Hi!
   I am have been attempting to get BlinkToRadio to work, but it is not
working. I do suppose it is due to frequency stuff. I've checked out
CC1000Const.h and I've found the
#ifndef CC1E_DEF_PRESET
#define CC1E_DEF_PRESET (CC1E_915_998_MHZ)
#endif

But with another frequency value. What happens is that this file is in two
folders, one suffixed with _lpl. What does it mean? I have indeed tried to
change things in both, but nothing happened. I renamed the folders and no
error occurred during the compilation of the BlinkToRadio. I get it from Mr.
Levis's text that it is a matter of configuration, but what configuration?
How do I change it?

  Thanks in advance.

Regards,
   Bernardo

--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] More problems with frequencies

2007-05-26 Thread Bernardo Avila Pires

As a matter of fact, what you said did help me a lot to solve my
problem. Now it works fine =) Thank you very much.

2007/5/25, Alexander Becher <[EMAIL PROTECTED]>:

* Bernardo Avila Pires:
>CC1000Const.h and I've found the
>#ifndef CC1E_DEF_PRESET
>#define CC1E_DEF_PRESET (CC1E_915_998_MHZ)
>#endif
>
>But with another frequency value. What happens is that this file is in two
>folders, one suffixed with _lpl. What does it mean?

I think "lpl" stands for "low power listening" and is an attempt to save
energy by having the radio off most of the time, and powered on only at
specific times.

Unfortunately, I don't know the solution to your other problem.

Regards,
Alexander

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




--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é ninfomaníaca.

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


Re: [Tinyos-help] (no subject)

2007-06-01 Thread Bernardo Avila Pires

I am having the problem of mts300's photo sensor always returning zero (in
tinyos-2.x). Can it's reason be related to this PW / Int issue? The code for
mts300 uses Int, but I had to change it to PW to compile. I know this is not
a good idea, so how do I see if everything is ok? The souder works fine, the
temperature prevents leds from working...

2007/6/1, Giri Baleri <[EMAIL PROTECTED]>:


 It is quite likely that you have an MTS310C*B* board (look for a jumper
wire on the bottom-side of the sensor board).
The MTS310CA uses INT2 for temperature power control where as the CB
version uses PW0. It sounds like you are using CA code on CB hardware and
hence the Temp sensor never gets turned on and returns 0.
The software modification involves changing one line of code. In
sensorboard.h file of the app, change
TOSH_ALIAS_PIN(TEMP_CTL, INT2) to TOSH_ALIAS_PIN(TEMP_CTL, PW0)
Recompile and reprogram the Mote attached to the Mote. You should be able
to read the correct temperature value now.

I hope that helps,
Giri

 --
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Oussama
Chougna
*Sent:* Friday, June 01, 2007 12:51 AM
*To:* 'Monica Bell'; tinyos-help@Millennium.Berkeley.EDU
*Subject:* RE: [Tinyos-help] (no subject)

 I mean the ADChannel input that you are reading is grounded.



Sorry,





Chougna


 --

*From:* Oussama Chougna [mailto:[EMAIL PROTECTED]
*Sent:* vrijdag 1 juni 2007 9:40
*To:* 'Monica Bell'; 'tinyos-help@Millennium.Berkeley.EDU'
*Subject:* RE: [Tinyos-help] (no subject)



Sounds like your temperature sensor output is grounded on the board?






 --

*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Monica Bell
*Sent:* vrijdag 1 juni 2007 4:03
*To:* tinyos-help@Millennium.Berkeley.EDU
*Subject:* [Tinyos-help] (no subject)



Dear all,

I am having some problem with the temperature sensor value that I am
getting from MTS310 sensorboard. I am using Crossbow's
contrib/xbow/apps/XSensorMTS300 application. This application reads , among
other things, the temperature sensor value. My problem is I always get 0
from  Temperature.dataReady(uint16_t data)  event. Please note that I am
using micaz and tinyos 1.1.11. But when I remove the MTS310 board from the
micaz mote, the temperature reading that I get is not 0. Please let me know
what I am missing here.

Thanks a lot,
Monica


 --

Get your own web 
address.
Have a HUGE year through Yahoo! Small Business.

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





--
"Segmentation Fault"
 ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Problem with Java

2007-06-11 Thread Bernardo Avila Pires

  Hello
   I am currently ** off, so I'll try to be as gentle as possible, as I
humbly ask of you to help me.
Recently, I started trying to get mote to serial communication to work.
It happens that Java is not working (and let me say I hate Java because it
always causes me trouble). I tried 'make' in $TOSROOT/tools/tinyos/java/,
and this is the output:

Making all in env
make[1]: Entrando no diretório `/opt/tinyos-2.x/tools/tinyos/java/env'
gcc "-I/usr/include/linux" "-I/usr/include" -shared -fpic -m32
net_tinyos_util_Env.c -olibgetenv.so
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/lib/gcc/i386-redhat-linux/4.1.1/include/jni.h:48,
from net_tinyos_util_Env.h:4,
from net_tinyos_util_Env.c:3:
/usr/include/gconv.h:72: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/gconv.h:88: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/gconv.h:97: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before
'size_t'
In file included from /usr/include/stdio.h:72,
from /usr/lib/gcc/i386-redhat-linux/4.1.1/include/jni.h:48,
from net_tinyos_util_Env.h:4,
from net_tinyos_util_Env.c:3:
/usr/include/libio.h:329: error: expected specifier-qualifier-list before
'size_t'
/usr/include/libio.h:361: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/libio.h:370: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/libio.h:486: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '_IO_sgetn'
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.1/include/jni.h:48,
from net_tinyos_util_Env.h:4,
from net_tinyos_util_Env.c:3:
/usr/include/stdio.h:308: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdio.h:315: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdio.h:357: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdio.h:359: error: format string argument not a string type
/usr/include/stdio.h:361: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdio.h:610: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fread'
/usr/include/stdio.h:616: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fwrite'
/usr/include/stdio.h:638: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fread_unlocked'
/usr/include/stdio.h:640: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fwrite_unlocked'
In file included from net_tinyos_util_Env.c:4:
/usr/include/stdlib.h:140: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__ctype_get_mb_cur_max'
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:438,
from net_tinyos_util_Env.c:4:
/usr/include/linux/time.h:10: error: expected specifier-qualifier-list
before 'time_t'
/usr/include/linux/time.h:16: error: expected specifier-qualifier-list
before 'time_t'
In file included from /usr/include/sys/select.h:46,
from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:438,
from net_tinyos_util_Env.c:4:
/usr/include/bits/time.h:70: error: redefinition of 'struct timeval'
In file included from net_tinyos_util_Env.c:4:
/usr/include/stdlib.h:455: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:485: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:487: error: nonnull argument with out-of-range operand
number (argument 1, operand 4)
/usr/include/stdlib.h:589: error: expected ')' before '__size'
/usr/include/stdlib.h:591: error: expected ')' before '__nmemb'
/usr/include/stdlib.h:600: error: expected declaration specifiers or '...'
before 'size_t'
In file included from /usr/include/stdlib.h:612,
from net_tinyos_util_Env.c:4:
/usr/include/alloca.h:33: error: expected ')' before '__size'
In file included from net_tinyos_util_Env.c:4:
/usr/include/stdlib.h:617: error: expected ')' before '__size'
/usr/include/stdlib.h:622: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:622: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:776: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:776: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:777: error: nonnull argument with out-of-range operand
number (argument 1, operand 5)
/usr/include/stdlib.h:781: error: expected declaration specifiers or '...'
before 'size_t'
/usr/include/stdlib.h:781: error: expected declaration specif

Re: [Tinyos-help] [Broadcast and tree graph]

2007-06-13 Thread Bernardo Avila Pires

I suggest you look the tinyos tutorial, I think there might be
something useful about the IntToArfm (1.x) and BlinkToRadio (2.x). You
should define a sink component and a node component but most
importantly a message struct for this application. Once you get the
point about the BlinkToRadio you'll do it.

2007/6/13, vazoumana fofana <[EMAIL PROTECTED]>:


It s not really the distance but the  minimal number of hops until the sink.
the mote just keep its  minimal cots of hops until the sink. I don t use
TOSSIM. i experiment under real conditions. This is the sink who collect all
motes' positions and can deduce a graph of id mote.
Thanks

>From: "Bernardo Avila Pires" <[EMAIL PROTECTED]>
>To: "vazoumana fofana" <[EMAIL PROTECTED]>
>Subject: Re: [Tinyos-help] [Broadcast and tree graph]
>Date: Wed, 13 Jun 2007 07:38:00 -0300
>
>It happens that I actually programmed somthing like this in tinyos-2.x
>and 1.x. I didn't use the distance thing, though. But I suppose you
>need each mote to know its position for this to work. They may be able
>to calculate their distance from the sink, by analyzing signal power
>and so. Do you want the mote to know it's exact position as well? Will
>you test with TOSSIM?
>
>2007/6/13, vazoumana fofana <[EMAIL PROTECTED]>:
>>hello,
>>
>>i want to implement an appliaction where a basestation broadcast a message
>>wich contains its id and distance ( 0 for the sink). When a mote receive
>>its
>>message, it acks by sending its id end distance by incrementing distance.
>>It
>>does recursively until all motes have acked messages.
>>It looks like to CPT. At the end, the base station can have a tree of all
>>motes. Have you ever programmed it ? Can you help me ?
>>
>>_
>>Windows Live Spaces : créez votre blog à votre image !
>>http://www.windowslive.fr/spaces
>>
>>___
>>Tinyos-help mailing list
>>Tinyos-help@Millennium.Berkeley.EDU
>>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>--
>"The truth shall set you free"

_
Windows Live Messenger sur i-mode™ : dialoguez avec vos amis depuis votre
mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/





--
"The truth shall set you free"

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


Re: [Tinyos-help] make: *** [sim-exe] Error 2

2007-06-13 Thread Bernardo Avila Pires

I think only micaz is supported by tossim in tinyos-2.x... I remember
having seen it in the TOSSIM section of the tutorials.
(some time later)
Yes, I've checked it out:
"Currently, the only platform TOSSIM supports is the micaz."

2007/6/12, Latro 2000 <[EMAIL PROTECTED]>:

Hello.
When I try to compile Blink Application to TOSSIM, I get the error showed
below. It seems I have an environment variable wrong, but I was looking for
it, so, It seems ok. I'm using tinyos 2.0.1, Win XP SP2 + Cygwin.

TOSROOT=/opt/tinyos-2.x
TOSDIR=/opt/tinyos-2.x/tos
MAKERULES=/opt/tinyos-2.x/support/make/Makerules
CLASSPATH='C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.'
PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/
cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Archivos de
programa/Java/jdk1.6.0_01/bin:/cygdrive/c/Archivos de
programa/Java/jdk1.6.0_01/jre
/bin:/cygdrive/c/Archivos de programa/QuickTime/QTSystem/:/opt/msp430/bin'

$ ncc --version
ncc: 1.2.1
nescc: 1.2.8a
gcc: gcc (GCC) 3.3.3 (cygwin special)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'll appreciate your help.

cheers, Latro

++
[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make telosb sim
mkdir -p build/telosb
  placing object files in build/telosb
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -DUSE_DL_IMPORT -fpic  -o build/telosb/sim.o -g -O0 -O -tossim
-fnesc-nid
o-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)
-mdisable-
hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb
-fnesc-cf
ile=build/telosb/app.c -board=  -Wno-nesc-data-race BlinkAppC.nc
-fnesc-dump=c
omponents -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnes
c-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
Unknown target telosb
Known targets for TinyOS directory /opt/tinyos-2.x/tos
and the specified include directories are:
  eyesIFXv1 eyesIFXv2 intelmote2 mica2 mica2dot micaz null telosa telosb
tinynod
e
make: *** [sim-exe] Error 2
+++

_
Te gusta estar en control, crea tu propia experiencia en Internet
http://live.com

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




--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] make: *** [sim-exe] Error 2

2007-06-13 Thread Bernardo Avila Pires

I could figure out the main idea of this text in Spanish, although I
don't know Spanish at all...
Have you installed the old tinyos-2.x from the installation tutorial?
Maybe you should get the latest one from the CVS.
If it is a cygwin/Windows issue, I'm afraid I cannot help you, but I
feel this isn't the case.

2007/6/13, Latro 2000 <[EMAIL PROTECTED]>:

Buen dia Bernardo.

te agradezco mucho la ayuda pero ya lo probe con micaz y con telosb y con
ninguno me funciona el simulador Tossim cheque las variables de entorno y
segun yo esta todo bien espero tengas alguna otra idea que pueda darme luz a
este problema

aqui abajo estan las variables que actualmente tengo en mi sistema
cygwin+windowsxp+tinyos 2.0.1

saludos.

>2007/6/12, Latro 2000 <[EMAIL PROTECTED]>:
>>
>>Hello.
>>When I try to compile Blink Application to TOSSIM, I get the error showed
>>below. It seems I have an environment variable wrong, but I was looking
>>for
>>it, so, It seems ok. I'm using tinyos 2.0.1, Win XP SP2 + Cygwin.
>>
>>TOSROOT=/opt/tinyos-2.x
>>TOSDIR=/opt/tinyos-2.x/tos
>>MAKERULES=/opt/tinyos-2.x/support/make/Makerules
>>CLASSPATH='C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.'
>>
>>PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/
>>cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Archivos
>>de
>>programa/Java/jdk1.6.0_01/bin:/cygdrive/c/Archivos de
>>programa/Java/jdk1.6.0_01/jre
>>/bin:/cygdrive/c/Archivos de programa/QuickTime/QTSystem/:/opt/msp430/bin'
>>
>>$ ncc --version
>>ncc: 1.2.1
>>nescc: 1.2.8a
>>gcc: gcc (GCC) 3.3.3 (cygwin special)
>>Copyright (C) 2003 Free Software Foundation, Inc.
>>This is free software; see the source for copying conditions.  There is NO
>>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>>PURPOSE.
>>
>>I'll appreciate your help.
>>
>>cheers, Latro
>>
>>++
>>[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
>>$ make telosb sim
>>mkdir -p build/telosb
>>   placing object files in build/telosb
>>   writing XML schema to app.xml
>>   compiling BlinkAppC to object file sim.o
>>ncc -c -DUSE_DL_IMPORT -fpic  -o build/telosb/sim.o -g -O0 -O -tossim
>>-fnesc-nid
>>o-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)
>>-mdisable-
>>hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb
>>-fnesc-cf
>>ile=build/telosb/app.c -board=  -Wno-nesc-data-race BlinkAppC.nc
>>-fnesc-dump=c
>>omponents -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
>>-fnes
>>c-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
>>Unknown target telosb
>>Known targets for TinyOS directory /opt/tinyos-2.x/tos
>>and the specified include directories are:
>>   eyesIFXv1 eyesIFXv2 intelmote2 mica2 mica2dot micaz null telosa telosb
>>tinynod
>>e
>>make: *** [sim-exe] Error 2
>>+++
>>
>>_
>>Te gusta estar en control, crea tu propia experiencia en Internet
>>http://live.com
>>
>>___
>>Tinyos-help mailing list
>>Tinyos-help@Millennium.Berkeley.EDU
>>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
>--
>"The truth shall set you free"

_
Te gusta estar en control, crea tu propia experiencia en Internet
http://live.com





--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Need help on receiving multiple messages in tinyos-2.x

2007-06-14 Thread Bernardo Avila Pires

I think it would be easier to deal with defining a struct for a
message and then manipulating it as in BlinkToRadio...

2007/6/8, Murtuza <[EMAIL PROTECTED]>:

Hello friends,

I have 2 different questions.

1. I wanted to know how can I receive messages of different payload format
i.e the payload are of different sizes and structures from different motes
to a common mote. I have seen the code for BaseStation. It does a similar
thing. But the doubt which bogs me is the AM type of a message. Can anyone
tell me the meaning of AM type. I understand that different message types
have different AM types. And we can differentiate different message based on
this. Two packets coming from different kinds of motes running different
applications can be distinguished using AM types. Am I right ? If I am then
how can we make sure that the AM types are always distinct.

  And if my concept of AM Type is entirely wrong then please do not curse me
and tell me what it really means. I would be more than thankful if you do
so.

2. When i receive messages from motes to the base station I get a messages
that do not match the tinyos message_t structure. For example I ran a simple
test in which the source mote sends its TOS_NODE_ID and a serial number of
the message over the radio.  The TOS_NODE_ID  of this node was 3. The
structure of the message payload was as shown below.

typedef nx_struct test{
nx_am_addr_t nodeid;
nx_uint16_t num;
}test;

I got this as the output displayed on my computer.
00 FF FF 00 03 04 22 06 00 03 00 01
00 FF FF 00 03 04 22 06 00 03 00 02
00 FF FF 00 03 04 22 06 00 03 00 03


The output of the BlinkToRadio application. But why is it that the output
sent by the motes is not according to the message_t structure.
typedef nx_struct cc1000_header {
 nx_am_addr_t addr;
 nx_uint8_t length;
 nx_am_group_t group;
 nx_am_id_t type;
} cc1000_header_t;

Why is it that there is always the TOS_NODE_ID inserted after the
destination ID. In the header the

first field is the destination address right. Then its the length. But why
is it that i always get
the source node ID.

Thanking You
MMA





















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




--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] How to restart a TOSSIM simulation TinyOS 2.x

2007-06-14 Thread Bernardo Avila Pires

BTW, has the TOSSIM dependence on old gcc versions been fixed?

2007/6/14, Philip Levis <[EMAIL PROTECTED]>:

On Jun 12, 2007, at 8:57 AM, Philip Levis wrote:

> On Jun 12, 2007, at 5:42 AM, Marek Jawurek wrote:
>
>> Well I tried turning the nodes off and on again but I get a
>> segmentation
>> fault. So I tried the example c++ Driver from Tutorial 11 to be
>> able to
>> use gdb on it.
>>
>> I appended the Driver sourcecode with my modifications.
>>
>> I compile it with:
>> g++ -g -c -o ctest.o ctest.cpp\
>> -I/data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim
>>
>> g++ -g -o ctest ctest.o build/micaz/tossim.o build/micaz/sim.o\
>> build/micaz/c-support.o
>>
>>
>> "gdb ctest" produces:
>> (gdb) run
>> Starting program: /data/hiwi/tinyos/tinyos-2.x/apps/ProbFlooding/
>> ctest
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x in ?? ()
>> (gdb) bt
>> #0  0x in ?? ()
>> #1  0x0804bd70 in sim_run_next_event ()
>> at /data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim/sim_tossim.c:118
>> #2  0x0804ae67 in Tossim::runNextEvent (this=0x80d3008)
>> at /data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim/tossim.c:278
>> #3  0x08049980 in main () at ctevst.cpp:21
>>
>>
>> As I receive dbg output from my program's channel and Tossim dbg
>> here is
>> the complete output of ctest (without gdb) http://jawurek.net/
>> ProbCDUMP
>> At the end it appears if the sim_ticks var has overrun ?
>>
>> Is this now a problem in my program for the nodes or some internal
>> TOSSIM error ?
>>
>> Any help greatly appreciated.
>>
>
> It could be either, but it's more likely TOSSIM. I've never tested
> trying to reset a simulation. I'll try to reproduce the bug and
> hopefully the fix(es) will make their way into 2.0.2.

The bug is the following:

TossimPacketModelC statically allocates a TOSSIM event within its
frame for MAC backoff (this seemed easier than dynamically
allocating). The problem that occurs is when you reboot a mote, its
memory is wiped clean to the state it should be at boot: all memory
is initialized to zero, except variables that have initializers. So
the event structure is being zeroed out when a node reboots.

The bug occurs when the node is in the midst of MAC backoff. It has a
MAC backoff event pending in the queue and is rebooted. The event is
zeroed out, and the function pointers to handle() and cleanup()
become null (as does the time). When TOSSIM executes the event, it
hits seg fault.

The easy fix for you is to, rather than turnOff/turnOn, turnOff and
schedule a bootAtTime in the near future (50ms should be fine). The
TOSSIM fix for 2.0.2 (which I'm about to check in) is to check that
the function pointers are non NULL before using them.

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




--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] MTS310 SENSOR BOARD

2007-06-15 Thread Bernardo Avila Pires

I think I've had bus problems when I tried to do this, but I also had
a compilation problem due to wrong interface names. How did you solve
it?

2007/6/15, Christian Hermann <[EMAIL PROTECTED]>:

It is supported. If you got the actual CVS-snapshot the driver located
in tos\sensorboards\mts300 does actually support mts310 as well. I'm
using it successfully (just the sound sensor doesn't cover my needs)
If you find some way to record audio-streams with 16khz or if you're
able to use the tone-detector please tell me! I got no answers to
these problems so far...
regards
Christian

mai naaom schrieb:
> hi
> Am working on  mts310 sensor board (it is used for micaA2 motes)how
> can i compile this sensorboard with TinyOS-2.
> It is not supported by it so should i switch to TinyOS-1 or what i have to
> do?
> please someone help
> thanks in advance
>
> regards,
> Mai
>
>
> 
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--

Christian Hermann

Am Weinberg 9
08529 Plauen
Fax +49 3741 470159
Tel +49 173 4020035

[EMAIL PROTECTED]
http://www.christian-hermann.de
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] MTS310 SENSOR BOARD

2007-06-15 Thread Bernardo Avila Pires

That's it... I'll try it this afternoon. Thanks for the hint.

2007/6/15, Christian Hermann <[EMAIL PROTECTED]>:


Post more details, I don't get your problem. Maybe the following?
I don't use SensorMts300C.nc but the single sensorC's directly.
Also because I've got no voltageC component in the whole TinyOS-2.x-dist
so this component(SensorMts300C.nc) can't compile correctly.
Christian

Bernardo Avila Pires schrieb:
> I think I've had bus problems when I tried to do this, but I also had
> a compilation problem due to wrong interface names. How did you solve
> it?
>
> 2007/6/15, Christian Hermann <[EMAIL PROTECTED]>:
>> It is supported. If you got the actual CVS-snapshot the driver located
>> in tos\sensorboards\mts300 does actually support mts310 as well. I'm
>> using it successfully (just the sound sensor doesn't cover my needs)
>> If you find some way to record audio-streams with 16khz or if you're
>> able to use the tone-detector please tell me! I got no answers to
>> these problems so far...
>> regards
>> Christian
>>
>> mai naaom schrieb:
>> > hi
>> > Am working on  mts310 sensor board (it is used for micaA2
>> motes)how
>> > can i compile this sensorboard with TinyOS-2.
>> > It is not supported by it so should i switch to TinyOS-1 or what i
>> have to
>> > do?
>> > please someone help
>> > thanks in advance
>> >
>> > regards,
>> > Mai
>> >
>> >
>> >
>>

>> >
>> > ___
>> > Tinyos-help mailing list
>> > Tinyos-help@Millennium.Berkeley.EDU
>> >
>>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>> --
>> 
>> Christian Hermann
>>
>> Am Weinberg 9
>> 08529 Plauen
>> Fax +49 3741 470159
>> Tel +49 173 4020035
>>
>> [EMAIL PROTECTED]
>> http://www.christian-hermann.de
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@Millennium.Berkeley.EDU
>>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>

--

Christian Hermann

Am Weinberg 9
08529 Plauen
Fax +49 3741 470159
Tel +49 173 4020035

[EMAIL PROTECTED]
http://www.christian-hermann.de





--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] MTS310 SENSOR BOARD

2007-06-15 Thread Bernardo Avila Pires

I've updated from the CVS, but how do I check my tree version?

2007/6/15, David Gay <[EMAIL PROTECTED]>:

On 6/15/07, Christian Hermann <[EMAIL PROTECTED]> wrote:
> It is supported. If you got the actual CVS-snapshot the driver located
> in tos\sensorboards\mts300 does actually support mts310 as well.

This driver is in the TinyOS 2.0.1 release (which you definitely want
if using mica* motes, because of a timer problem in 2.0).

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




--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] MTS310 SENSOR BOARD

2007-06-15 Thread Bernardo Avila Pires

I supposed so. Thanks.
BTW, is this timer problem general or only in TOSSIM? The fixes I saw
in the install instructions suggested it affected only the simulator.

2007/6/15, David Gay <[EMAIL PROTECTED]>:

On 6/15/07, Bernardo Avila Pires <[EMAIL PROTECTED]> wrote:
> I've updated from the CVS, but how do I check my tree version?

CVS trees don't have any automatic numbering. But more or less by
definition (ok, branches do complicate life), if you're at the head of
CVS, your more recent than the most recent release... If you do want
to call it something, it's "CVS as of June 15 2007"...

David Gay




--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] hi i need your help to install tiny0s2.x

2007-06-16 Thread Bernardo Avila Pires

javac is the java compiler. You should download and install the SDK
(the first step in the installation guide). If you have installed the
Java SDK, then you have to assure that javac is found, by adding the
directory where javac is installed to your path environment variable.
I dunno how this can be done in Cygwin, though :p

2007/6/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

hi dude,

i need your help to install full tinyOS2.x . if i installed that i hope i
will implement UART . HELP ME.

I followed following link but i have an error like java command not found.

http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html

[EMAIL PROTECTED]
/cygdrive/c/cygwin/opt/tinyos-2.x/apps/tests/TestSerial
$ make telosb
mkdir -p build/telosb
javac *.java
/bin/sh: javac: command not found
make: *** [TestSerial.class] Error 127

i don't know how to solve this problem.

one more thing that grphviz. i try make documents of my application but i
didn't get proper grapviz rpm. if you have tinyos2.x graphviz rpm please
send me.

thank you very much.

bye,
moorthy.T



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




--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] TOSSIM Tutorial Questions

2007-06-17 Thread Bernardo Avila Pires

2007/6/16, Tal Rusak <[EMAIL PROTECTED]>:


 I have read the TOSSIM tutorial at

http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson11.html

 As I followed the tutorial, I encountered the following issues when
using TinyOS 2.0.1:

1)   For some reason, the result of the command dir(t) appears to be
quoted incorrectly at the end of the "Running TOSSIM with Python" section.
When I run this command, I get a command ticksPerSecond in addition to the
ones listed in the tutorial.

2)   The "setThreshold" command, cited at the start of the tutorial
section "Configuring a Network", does not appear to exist in this release.
Also, it is not listed in the dir(r) response cited above or in the one
that I run myself.  How, then do I complete the following step of the
tutorial?

"If you set node's clear channel assessment to be at -110dBm, then nodes
will never transmit, as noise and interference never drop this low."

3)   The tutorial cites the first ten lines of the meyer-heavy.txt noise
trace. However, these are not the first ten lines of the actual file in
the distribution that I downloaded (from the Toilers). The first ten lines
of the file I have are:
-39
-98
-98
-98
-99
-98
-94
-98
-98
-98
 This appears to be the same as the current CVS version of the file.
If this seems incorrect, where can I find the full, correct
meyer-heavy.txt noise trace?

4)   The tutorial refers to the file packets.py. This file contains the
following line of code:

print "Delivering " + msg.__str__() + " to 0 at " + str(t.time() + 3);

 This line does not run correctly for me. This is the error message:

Traceback (most recent call last):
  File "packets.py", line 46, in ?
print "Delivering ", msg, " to 0 at ", str(t.time() + 3);
TypeError: 'str' object is not callable

 However, when I change it as follows, then the code does run:

print "Delivering " + msg.__str__() + " to 0 at " + (t.time() + 3);

 Line 46 of the latest CVS version
(/tinyos-2.x/tos/lib/tossim/examples/packets.py) still seems to have
this problem.



I don't know why it is complaining, but I read that when you call print, it
automatically calls str() on objects which are not strings. It seems to me
that since msg.__str__() is defined, calling "print msg;" would go fine.
I really don't know python well, but wouldn't the interpreter complain if
you used

"print "Delivering " + msg.__str__() + " to 0 at " + (t.time() + 3);"  ?

I don't know the return type of Tossim.time but since you are adding it to
3, you shouldn't be able to concatenate strings and numbers.

But

print "Delivering ", msg.__str__(), " to 0 at ", (t.time() + 3);

might work.

I need confirmation on all this I said =(




5)   The "Configuring a Network" section of the tutorial has the following

statement near the end:

"TOSSIM has two sample configuration files generated from the tool in
tos/lib/tossim/topologies. The first is grid.txt . . . The second file is
scatter.txt"

 However, I cannot find these files in the cited directory.

 If anyone knows about any form of additional documentation for TOSSIM
beyond this tutorial, such as source code documentation, I would be
very interested in reading it.

 I appreciate your help in advance.

Thanks,
Tal




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





--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Fan-Out and Combine function help.

2007-06-17 Thread Bernardo Avila Pires

I remember having this problem. What happened to me was that this
receive interface had multiple effects in components. I don't know
exactaly how to put it, but you've wired multiple components by the
same interface, the same instance of receiver.
I had this problem when I needed to use TOSSIM with multiple
components. What I did was to connect all of the in one module and
choose to initialize the most convenient one for the node. Since two
components were wired to the same instance of the receiver interface
(although they would'n be active at the same time), whenever I
received a message, events were triggered in both components. When I
started programming the motes, I separated the components and the
warning disappeared.
So, try to check out your configurations =)

2007/6/17, Ian Welch <[EMAIL PROTECTED]>:

I'm getting the follow warning
"calls to Recieve.recieve in CC1000ActiveMessageP fan out, but there is no
combine function fnction specified for the return type"

I looked in the NESC programming guide and couldn't figure out how to solve
me problem but did find out that this warning should not be overlooked. How
do I solve this warning, I'm thinking it's something to do with using
AMSenderC and ActiveMessageC?

 Thanks ahead of time for the help.
-Ian


module InsoleC {
uses interface Boot;
uses interface Leds;
uses interface Timer as SampleDelay;
uses interface Timer as AckDelay;
uses interface Timer as Time;
uses interface Timer as TimeAck;
uses interface Atm128AdcMultiple as Multiple;
uses interface Atm128AdcSingle as Single;
uses interface Init as ADCInit;

uses interface Packet;
uses interface Receive as Receiver[am_id_t myid];
uses interface AMSend[am_id_t id];
uses interface Packet as DataPacket;
uses interface AMSend as DataSend;
uses interface PacketAcknowledgements as ACK;

uses interface GeneralIO;
uses interface GeneralIO as Battery1;
uses interface GeneralIO as Battery2;

uses interface LogRead;
uses interface LogWrite;

uses interface Suspend;
uses interface PowerControl;
}







implementation {
components MainC;
components LedsC;
components InsoleC;
components Atm128AdcP as MyADC;
components new TimerMilliC() as SampleDelay;
components new TimerMilliC() as AckDelay;
components new TimerMilliC() as Time;
components new TimerMilliC() as TimeAck;
components ActiveMessageC as Radio;
components new AMSenderC(6) as Data;
components HplAtm128GeneralIOC as BattIO;
components new LogStorageC(VOLUME_LOG,TRUE);
components MotePowerApp;
 components SuspendApp;
//components new LogStorageC(VOLUME_STORAGE,FALSE) as
SampleStorageC;

InsoleC.Boot-> MainC;
InsoleC.Leds-> LedsC;
InsoleC.SampleDelay-> SampleDelay;
InsoleC.AckDelay-> AckDelay;
InsoleC.Time-> Time;
InsoleC.TimeAck-> TimeAck;
InsoleC.Multiple-> MyADC;
InsoleC.ADCInit-> MyADC;//Atm128AdcSingle was not included,
I dont think this is required
InsoleC.Single-> MyADC;

InsoleC.PowerControl-> MotePowerApp;
InsoleC.Suspend-> SuspendApp;

InsoleC.ACK-> Radio;
InsoleC.Packet -> Radio;
InsoleC.AMSend-> Radio;
InsoleC.Receiver-> Radio.Receive;

InsoleC.DataPacket-> Data;//Used to interface witht he data
packet
InsoleC.DataSend -> Data;//Dat packet

InsoleC.Battery1->BattIO.PortC6;//Used to monitor Battery
InsoleC.Battery2->BattIO.PortC7;//Used to monitor Batery

InsoleC.LogWrite -> LogStorageC;
InsoleC.LogRead-> LogStorageC;
//InsoleC.SampleWrite-> SampleStorageC;
//InsoleC.SampleRead-> SampleStorageC;
}

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




--
"The truth shall set you free"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] [Makefile]

2007-06-20 Thread Bernardo Avila Pires

Look what I found =)
COMPONENT=PuitsAppC
include $(MAKERULES}

you should close with ) instead of } . I bet it is a typo...

COMPONENT=PuitsAppC
include $(MAKERULES)

2007/6/20, vazoumana fofana <[EMAIL PROTECTED]>:


The message error is written in french language :

M%akefile:2: *** référence incomplète à une variable.
It s like it doesn t  find Puits in Makerules . I don t understand ?

>From: "J. Ryan Stinnett" <[EMAIL PROTECTED]>
>To: vazoumana fofana <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED],  tinyos-help@Millennium.Berkeley.EDU
>Subject: Re: [Tinyos-help] [Makefile]
>Date: Wed, 20 Jun 2007 04:49:57 -0500
>
>vazoumana fofana wrote:
>>
>>It was ever done. i ve ever succeeded in compiling other applications in
>>tutorial so i don t think it s  a problem with variables environment.
>
>I thought that might be the case.  Could you post the full text of the
>error message you're getting?
>
>Thanks,
>Ryan
>
>>>From: "J. Ryan Stinnett" <[EMAIL PROTECTED]>
>>>To: vazoumana fofana <[EMAIL PROTECTED]>
>>>CC: [EMAIL PROTECTED],  tinyos-help@Millennium.Berkeley.EDU
>>>Subject: Re: Re: [Tinyos-help] [Makefile]
>>>Date: Wed, 20 Jun 2007 03:15:28 -0500
>>>
>>>vazoumana fofana wrote:

Hi

Here is my Makefile :
COMPONENT=PuitsAppC
include $(MAKERULES}
>>>
>>>Your Makefile should end here.
>>>

#include "Puits.h"


configuration PuitsAppC {
}
implementation {
  components MainC;
  components PuitsC as App;
  components ActiveMessageC;
  components new AMSenderC(AM_PUITSMSG);
  components new AMReceiverC(AM_PUITSMSG);
  App.Boot -> MainC;
  App.Packet -> AMSenderC;
  App.AMPacket -> AMSenderC;
  App.AMSend -> AMSenderC;
  App.AMControl -> ActiveMessageC;
  App.Receive -> AMReceiverC;

}
>>>
>>>All of this code should be placed in PuitsAppC.nc.  If you've already
>>>done that, make sure your environment variables match the values from the
>>>TinyOS installation page.
>>>
>>>- Ryan
>>>


>From: Michael Schippling <[EMAIL PROTECTED]>
>To: vazoumana fofana <[EMAIL PROTECTED]>
>CC: tinyos-help@Millennium.Berkeley.EDU
>Subject: Re: [Tinyos-help] [Makefile]
>Date: Mon, 18 Jun 2007 10:49:52 -0600
>
>well...you probably have a variable that is not defined or
>misspelled...
>Post the whole Makefile and the actual error text and maybe someone
>can spot the problem.
>MS
>
>
>vazoumana fofana wrote:
>>Hi ,
>>
>>i ve got a question. I try to implement a new application : when i
>>compile , a message error appears : it doesn't find the v ariable of
>>referernce : incomplete referernce of a variable / STOP.
>>
>>Anyone can help me ?
>>
>>Thanks
>>
>>_
>>Avec Windows Live OneCare éliminez tous les virus de votre PC !
>>http://www.windowslive.fr/liveonecare/default.asp
>>
>>___
>>Tinyos-help mailing list
>>Tinyos-help@Millennium.Berkeley.EDU
>>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>

_
Windows Live Messenger sur i-mode™ : dialoguez avec vos amis depuis
votre mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/



>>
>>_
>>Ten :  Messenger en illimité sur votre mobile !
>>http://mobile.live.fr/messenger/ten/
>>
>>
>>

_
Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/

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




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">

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


Re: [Tinyos-help] wrong message received

2007-06-20 Thread Bernardo Avila Pires

I don't remember or understand very well of tinyos-1.x, but how did
you check the message receival in the computer? Have you mapped
correctly the message fields to the output of the program in the
computer which shows the received messages?

One suggestion: set address based values via TOS_LOCAL_ADDRESS, and
set its value later, when compiling the component.

(sorry for the double message... I still have to get used to clicking
'reply to all')

2007/6/19, projet19 projet19 <[EMAIL PROTECTED]>:


Hello,

We have made a NesC application like surge, which can send and receive
messages.

So before sending a message from our motes we filled every fields of our
message struct with :

*
MoteAppMsg *pReading;
TOS_Msg gMsgBuffer;
TOS_MsgPtr pMsgBuf;
pMsgBuf = &gMsgBuffer;

if (pReading = (MoteAppMsg *)call SendApp.getBuffer(&gMsgBuffer,&Len))
{
  pReading->myaddr = 0x56;//TOS_LOCAL_ADDRESS;
  pReading->type = MOTEAPP_TYPE_RATE_READING;
  pReading->parentaddr = call RouteControl.getParent();
 pReading->reading = timer_rate;
  }

*

And we send that message with :

*

if ((call SendApp.send(&gMsgBuffer,sizeof(MoteAppMsg))) !=
SUCCESS) // Si l'envoi ne se passe pas bien
  {
  atomic gfSendBusy = FALSE;  // l'envoie de donne n'est
pas occupée
call Leds.redToggle();
}

:

*
So the different fields of the message received on our computer , are not
the same as the differents fields filled of our message sent before...

We don't know how it doesn't work, we have followed the same way as surge or
other applications of tinyOS...

Can anyone help us ?

Thank you very much,

Regards,

Tony GOMES and Ahmed DEHBI

 
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">

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


Re: [Tinyos-help] [TOSSIM for blink]

2007-06-22 Thread Bernardo Avila Pires

I think that it just runs one event and it doesn't catch the following
events ?


Precisely. You should use more "t.runNextEvent()", in order to run
more than one event. Put in a while loop with a event limit or a time
limit and things should go fine.

2007/6/22, vazoumana fofana <[EMAIL PROTECTED]>:

Hello

Here is my script :

from TOSSIM import *
import sys
f = open("log.txt", "w")
t = Tossim([])
t.addChannel("BlinkC", sys.stdout);
t.addChannel("Boot", sys.stdout);
m = t.getNode(2).bootAtTime(0);
t.runNextEvent()

and it printed :

DEBUG (2): Timer 0 started @ 0:0:0.0.
I think that it just runs one event and it doesn't catch the following
events ?



>From: "Bernardo Avila Pires" <[EMAIL PROTECTED]>
>To: "vazoumana fofana" <[EMAIL PROTECTED]>
>Subject: Re: [Tinyos-help] [TOSSIM]
>Date: Thu, 21 Jun 2007 14:23:49 -0300
>
>Which script are you using?
>
>2007/6/21, vazoumana fofana <[EMAIL PROTECTED]>:
>>i run tossim for Blink application. It dosen t work good. In fact when i
>>launch script it just prints the boot messages not Blink messages.
>>
>>Can you help me ?
>>
>>
>> >From: Peizhao Hu <[EMAIL PROTECTED]>
>> >Reply-To: [EMAIL PROTECTED]
>> >To: vazoumana fofana <[EMAIL PROTECTED]>
>> >CC: tinyos-help@Millennium.Berkeley.EDU
>> >Subject: Re: [Tinyos-help] [Broadcast and tree graph]
>> >Date: Wed, 13 Jun 2007 21:02:41 +1000
>> >
>> >It sounds like the Collection and Dissemination services.
>> >
>> >vazoumana fofana wrote:
>> >>hello,
>> >>
>> >>i want to implement an appliaction where a basestation broadcast a
>>message
>> >>wich contains its id and distance ( 0 for the sink). When a mote
>>receive
>> >>its message, it acks by sending its id end distance by incrementing
>> >>distance. It does recursively until all motes have acked messages.
>> >>It looks like to CPT. At the end, the base station can have a tree of
>>all
>> >>motes. Have you ever programmed it ? Can you help me ?
>> >>
>> >>_
>> >>Windows Live Spaces : créez votre blog à votre image !
>> >>http://www.windowslive.fr/spaces
>> >>
>> >>___
>> >>Tinyos-help mailing list
>> >>Tinyos-help@Millennium.Berkeley.EDU
>> >>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> >
>> >--
>> >regards;
>> >
>> >Peizhao
>> >
>>
>>_
>>Personnalisez votre Messenger avec Live.com
>>http://www.windowslive.fr/livecom/
>>
>>___
>>Tinyos-help mailing list
>>Tinyos-help@Millennium.Berkeley.EDU
>>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>--
>"The truth shall set you free"
>http://www.nerdtests.com/nq_ref.html";>
>http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
>alt="I am nerdier than 99% of all people. Are you a nerd? Click here
>to find out!">

_
Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/





--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">

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


Re: [Tinyos-help] Problems with symbol substitution on OS X

2007-06-25 Thread Bernardo Avila Pires

I have run into this problem recently and figured out a solution
supposing that this "$" was an avr separator.

  Go to line 33 in avr.rules and replace it for
 AMADDR = ActiveMessageAddressC\never1096WritEaddr

  (you should replace $ for \never1096WritE , which is the separator
you've set)
  It actually worked. My application which used ID-based AM
communication strated worked again.


2007/6/25, James Kebinger <[EMAIL PROTECTED]>:

Hello all, I'm trying to get tinyos 2.x up and running on my Mac, and I
think I'm almost there, but I can't program node ids into my mica2 motes.
 I've followed a set of directions here:
http://docs.google.com/View?docid=ajjph9mvqk3z_bchp66xkmgk6n

It would appear that many of the changes from that document are already in
the source tree.

I get the following message when installing BlinkToRadio
Could not find symbol ActiveMessageAddressC$addr in build/mica2/main.exe,
ignoring symbol.

One of the steps in the directions above involved changing the
fnesc-separator as follows:
-fnesc-separator=\never1096WritE. (the build doesn't work
if this isn't changed)

So my question is, is the symbol missing because some tool didn't get the
memo on the new nesc-separator, or is it because its looking in main.exe on
a non-windows machine?

I'd appreciate any nudges in the right direction anyone can provide.

Thanks

-James Kebinger

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




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Interfaces

2007-06-25 Thread Bernardo Avila Pires

 Deer TinyOS-ers,
   And so it came the day when I had to measure received signal
strength, etc, in mica2 motes. I found that cc2420 has a nice and
simple way to get such information. It is not the case for cc1000, is
it?
   What if I define an interface for it and implement the operations?
Would it be extremely hard and unrecommended? And I have to mantaing
everthing TEP-compliant, right?
   If there's a interface for getting rssi information from received
messages, please tell me and point me some directions.
   Thanks in advance for your help.
Regards,
Bernardo

--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Interfaces

2007-06-25 Thread Bernardo Avila Pires

What I got from TEP 111 was that we should use interface programming,
instead of accessing the field directly. Besides, Tos_Msg was replaced
for message_t in T2...
Thanks for the help

2007/6/25, Michael Schippling <[EMAIL PROTECTED]>:

In T1, and I think T2 as well, you can look at the Tos_Msg.strength
field in your message receive() function(s). This will give you
the raw reading from the chip's rssi pin. I keep forgetting how
to convert it to dbm, so search this list or the xbow manuals
for the formula.

MS


Bernardo Avila Pires wrote:
>  Deer TinyOS-ers,
>And so it came the day when I had to measure received signal
> strength, etc, in mica2 motes. I found that cc2420 has a nice and
> simple way to get such information. It is not the case for cc1000, is
> it?
>What if I define an interface for it and implement the operations?
> Would it be extremely hard and unrecommended? And I have to mantaing
> everthing TEP-compliant, right?
>If there's a interface for getting rssi information from received
> messages, please tell me and point me some directions.
>Thanks in advance for your help.
> Regards,
> Bernardo
>




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Need help on receiving multiple messages in tinyos-2.x

2007-06-25 Thread Bernardo Avila Pires

2007/6/25, Murtuza <[EMAIL PROTECTED]>:

Hi Steve

 Thanks for ur reply...and i apologize for replying late

 I want to elaborate on these sentences of mine in the previous mail

 > Two packets coming from different kinds of motes running different
 > applications can be distinguished using AM types. Am I right ?

 [This was your reply]
 I'm not sure I understand this question.  Can you share what are you trying
to
 accomplish?  The AM type field allows one to distinguish the contents of
the
 active message payload only.  Any correlations between "kind of mote" or
 application and AM type value sets is up to the programmer.

 Actually what I mean is suppose there are two mica2 motes running distinct
applications on eachother. Then how can I distinguish between these messages
at the receiver. Can I have two Receive.receive events in my receiver
application. Or should I use the same Receive.recvieve event and then
separate out (or distinguish) between the messages by looking into the
packet.

 Can i do sth like this..

 In mote 1 configuration
 Mote_1.AMSend -> AMSenderC.AMSend[AM_Type_1];

 In mote2 configuraton
 Mote_2.AMSend -> AMSenderC.AMSend[AM_Type_2];


 IN THE RECEIVER MOTE

 Now I dont understand how I can have separate ActiveMessageC.Receive
events. Is this permitted

 uses interface Receive as Mote_1_Receive;
 uses interface Receive as Mote_2_Receive;

 Rx_Mote.Mote_1_Receive -> ActiveMessageC.Receive[AM_Type_1];
 Rx_Mote.Mote_2_Receive -> ActiveMessageC.Receive[AM_Type_2];

 My aim is to have a receiving mote receive data from two motes running
different applications. Without parsing through the received message can I
separate out these packets { The ones received from different motes }. I
basically want to separate them during Receive events.

 I am not sure whether i have a valid question or not. I would really
appreciate your help and others' as well.



 Yes you can. Try it out and you'll se it works fine...



 Thanking You
 MMA






On 14/06/07, Steve McKown < [EMAIL PROTECTED] > wrote:
> On Friday 08 June 2007 13:58, Murtuza wrote:
> > Hello friends,
> >
> > I have 2 different questions.
> >
> > 1. I wanted to know how can I receive messages of different payload
format
> > i.e the payload are of different sizes and structures from different
motes
> > to a common mote. I have seen the code for BaseStation. It does a
similar
> > thing. But the doubt which bogs me is the AM type of a message. Can
anyone
> > tell me the meaning of AM type. I understand that different message
types
> > have different AM types. And we can differentiate different message
based
> > on this.
>
> Yes.  Every type of message can have its own AM type value.  So a receiver
> receiving a message with type==1 can treat it differently than for a
message
> with type==2.
>
> > Two packets coming from different kinds of motes running different
> > applications can be distinguished using AM types. Am I right ?
>
> I'm not sure I understand this question.  Can you share what are you
trying to
> accomplish?  The AM type field allows one to distinguish the contents of
the
> active message payload only.  Any correlations between "kind of mote" or
> application and AM type value sets is up to the programmer.
>
> > If I am [right] then
> > how can we make sure that the AM types are always distinct.
>
> If you want unique AM type values, you'll have to manage this yourself.
> One option would be to maintain a header containing the list of all
message
> types for all your applications, to ensure they are unique.  Each time you
> need a new app msg, add one to the list and give it the next number in
> sequence.  Include this with all apps as the sole source of am type
> definitions.
>
> #define AM_TYPE_APP1_MSG1   0x20
> #define AM_TYPE_APP1_MSG2   0x21
> #define AM_TYPE_APP2_MSG1   0x22
> #define AM_TYPE_APP2_MSG2   0x23
> #define AM_TYPE_APP2_MSG3   0x24
>
> > 2. When i receive messages from motes to the base station I get a
messages
> > that do not match the tinyos message_t structure. For example I ran a
> > simple test in which the source mote sends its TOS_NODE_ID and a serial
> > number of the message over the radio.  The TOS_NODE_ID  of this node was
3.
> > The structure of the message payload was as shown below.
> >
> > typedef nx_struct test{
> > nx_am_addr_t nodeid;
> > nx_uint16_t num;
> > }test;
> >
> > I got this as the output displayed on my computer.
> > 00 FF FF 00 03 04 22 06 00 03 00 01
> > 00 FF FF 00 03 04 22 06 00 03 00 02
> > 00 FF FF 00 03 04 22 06 00 03 00 03
>
> This looks good.  I presume you have a java or C serial forwarder running
> against the serial port to which the base station mote is attached, then
the
> output above is from a program attaching to the local port opened by the
> serial forwarder.  Here's how the first packet's values break down:
>
> The first byte is the serial packet format dispatch byte.  A
> val

Re: [Tinyos-help] Need help on receiving multiple messages in tinyos-2.x

2007-06-25 Thread Bernardo Avila Pires

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


Re: [Tinyos-help] Interfaces

2007-06-26 Thread Bernardo Avila Pires

I think it does, because it was possible to extract a value from
TOS_Msg in T1 and then transform it into received signal strength...

2007/6/26, Steve McKown <[EMAIL PROTECTED]>:

Hi Bernardo,

On Monday 25 June 2007 09:02:15 am Bernardo Avila Pires wrote:
>   Deer TinyOS-ers,
> And so it came the day when I had to measure received signal
> strength, etc, in mica2 motes. I found that cc2420 has a nice and
> simple way to get such information. It is not the case for cc1000, is
> it?
> What if I define an interface for it and implement the operations?
> Would it be extremely hard and unrecommended? And I have to mantaing
> everthing TEP-compliant, right?
> If there's a interface for getting rssi information from received
> messages, please tell me and point me some directions.

I'm not the right person to answer this question, since I haven't used the
cc1000 radio.  You can look at its data sheet to see if it has a feature not
currently supported in software.

Steve





--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Actual usage

2007-06-27 Thread Bernardo Avila Pires

  I have a not-so-much tinyos-related question... Where can I find
out about some huge existing mote network?

--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Actual usage

2007-06-27 Thread Bernardo Avila Pires

Thank you very much =)

2007/6/27, Steve McKown <[EMAIL PROTECTED]>:

On Wednesday 27 June 2007 02:24:22 pm Bernardo Avila Pires wrote:
>I have a not-so-much tinyos-related question... Where can I find
> out about some huge existing mote network?

--  Forwarded Message  --

Subject: Re: [Tinyos-help] Does anyone know what is the scale of a sensor
network deployment ?
Date: Tuesday 12 June 2007
From: Steve McKown <[EMAIL PROTECTED]>
To: tinyos-help@millennium.berkeley.edu

On Tuesday 12 June 2007 06:45, tomoto wrote:
> Hi, all. I currently work on deploying a sensor network.
> Does anyone know what the typical scale, i.e. the number of sensor nodes
> involved , of a sensor network is (in single-tier)? Or, papers address this
> issue ?

I don't have a good answer for you, but a few links:

There was an 800 node demo at Berkely in 2001:
http://webs.cs.berkeley.edu/800demo/

This paper talks about lessons from a live deployment in Maine:
http://www.polastre.com/papers/ewsn04.pdf

There is a list of projects using TinyOS at
http://webs.cs.berkeley.edu/users/select_users.php .  You might find some
useful links there.

Steve
---




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] how to obtain RSSI with Mica2

2007-06-29 Thread Bernardo Avila Pires

Wasn't the value in msg->strenght some untransformed one? I remember
having read that a function should be applied to it in order to obtain
RSSI.

2007/6/29, Benjamin Madore <[EMAIL PROTECTED]>:


msg->strength is uint16_t
You're only getting half the number.

Besides,
uint16_t * stren = (uint16_t *) msg->strength;
RSSI = stren[0];
should be easier to read. I think there is an even more elegant way to state
this, but I don't care enough to find it. Avoid doing multiple things on one
line until your sure all your bugs are gone. (I.E. Never do multiple things
on one line.) Let the compiler optimize.

Your RSSI should be between 400 and 0. It is interpreted as a negative
number, with 400 being quiet, and 0 being very loud.

You can also wire to ADC.ADC[TOS_ADC_CC_RSSI_PORT] and call "ADC.getData();"
which provides the event "ADC.dataReady(uint16_t data);" like you said.

dataReady is singled every time anyone calls getData. The radio stack does
this a lot. You have to filter out your calls. I might suggest a lock.

When you call getData, set a boolean to true, and when you have read one
value in dataReady, set it to false.

-Ben

On Fri, June 29, 2007 10:21 am, CASTEL Myriam said:
> Hello,
>
> I'm trying to obtain the RSSI value with Mica2 motes.
> -I programmed a component which stores the strength of a TOSMsg received:
> RSSI=*((uint8_t *)recv_packet->strength);
> But this doesn't give reasonnable results. I think this method is only
> for the micaz? Isn't it?
>
> - In the documentation, I saw that the RSSI was given by the channel 0
> in mica2.
> I tried to sample channel 0 with in configuration file: MyApp.ADC->
> ADCC.ADC[0];
> in module file:  event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr
> recv_packet){
>   call ADC.getData();
>   return recv_packet;
>   }
> async event result_t ADC.dataReady(uint16_t data) {
>   atomic pack->xData.datap1.value = data;
>   post sendMsg();
>   return SUCCESS;
> }
> but the problem is that the mote execute ADC.dataReady even if getData
> wasn't called. Maybe I have forgotten some elements as:
> call ADC.Control.bindPort(TOS_ADC_CC_RSSI_PORT,TOS_ACTUAL_CC_RSSI_PORT)
> or other things.
>
> Can you help me to obtain RSSI value (with channel 0 or other)? If you
> have the code to compute RSSI, can you send it to me?
>
> I'm sorry for this question but I'm new and I don't find the answers in
> the documentation provided by Crossbow.
>
> Thanks
>



--
The difference between the right word and the almost right word is really a
large matter- it's the difference between a lightning bug and the lightning.
-Twain

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




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Localization

2007-07-03 Thread Bernardo Avila Pires

Also, establish ID-based communication (by sending messages with data
about the sender) and, if you wish to log the values, create a volume
(tinyos-2 tutorial has material on this).
And, yes, use RSSI values.

2007/7/3, Firat TARAKTAS <[EMAIL PROTECTED]>:



Take RSSI values of the received signals. Use triangulation method. If you
google it you can reach lots of material.



Firat TARAKTAS

Electrical&Electronics Engineer

Reseracher
GENETLAB INFORMATION TECHNOLOGIES
Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
Icerenkoy / ISTANBUL / TURKIYE
Phone: +90 (216) 573 00 85 (int.354)
Fax: +90 (216) 469 85 07
[EMAIL PROTECTED]
www.genetlab.com


 
 From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Tarek Mohamed Salah El-Din Mansour
Sent: Tuesday, July 03, 2007 4:08 AM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Localization





I want to ask if i have 4 different mica2 motes, three fixed and they should
record the received signal from the forth. Using the received signal from
the three receivers it should be approximately decided where is the place of
the forth.
Any ideas about how this could be done? i mean like how to save the signals
from the 3 and be computed to localize the forth? and how could that be
displayed?

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




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] MIB520 Micaz Install problem

2007-07-04 Thread Bernardo Avila Pires

I don't know about the failure to enter programming mode, but if the
problem that is causing this error is not the same causing the others,
they could be due to not seating the motes properly on the board
(which caused me many problems in the past). Have you tried with other
motes (other micaz's and other types)?

2007/7/3, Mayur Maheshwari <[EMAIL PROTECTED]>:

All,
Has anyone tried installing apps on MicaZ using MIB520 in TOS2?
I tried installing the Blink app on MicaZ using MIB520 and ran into few
problems. I am using TOS2 and since MIB520 is not defined in the makerule I
am issuing 'MIB510' in the command. I have the ports COM7 and COM8.  Also,
the nature of the error keeps on changing.

Mayur [EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make micaz reinstall mib510,COM7
cp build/micaz/main.srec build/micaz/main.srec.out
installing micaz binary using mib510
uisp -dprog=mib510 -dserial=COM7 --wr_fuse_h=0xd9 -dpart=ATmega128
--wr_fuse_e=f
f  --erase --upload if=build/micaz/main.srec.out
Please use /dev/ttyS6 rather than COM7 (the latter often doesn't work)
Firmware Version: 1.8
An error has occurred during the AVR initialization.
 * Target status:
   Vendor Code = 0xff, Part Family = 0xff, Part Number = 0xff

Probably the wiring is incorrect or target might be `damaged'.
make: *** [program] Error 2

Mayur [EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make micaz reinstall mib510,COM7
cp build/micaz/main.srec build/micaz/main.srec.out
installing micaz binary using mib510
uisp -dprog=mib510 -dserial=COM7 --wr_fuse_h=0xd9 -dpart=ATmega128
--wr_fuse_e=f
f  --erase --upload if=build/micaz/main.srec.out
Please use /dev/ttyS6 rather than COM7 (the latter often doesn't work)
Firmware Version: ►.►
Failed to enter programming mode.
make: *** [program] Error 2

Mayur [EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make micaz reinstall mib510,/dev/ttyS6
cp build/micaz/main.srec build/micaz/main.srec.out
installing micaz binary using mib510
uisp -dprog=mib510 -dserial=/dev/ttyS6 --wr_fuse_h=0xd9 -dpart=ATmega128
--wr_fu
se_e=ff  --erase --upload if=build/micaz/main.srec.out
Firmware Version: ►.►
Failed to enter programming mode.
make: *** [program] Error 2

Mayur [EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make micaz reinstall mib510,/dev/ttyS6
cp build/micaz/main.srec build/micaz/main.srec.out
installing micaz binary using mib510
uisp -dprog=mib510 -dserial=/dev/ttyS6 --wr_fuse_h=0xd9 -dpart=ATmega128
--wr_fu
se_e=ff  --erase --upload if=build/micaz/main.srec.out
Firmware Version: 1.8
Probably the AVR MCU is not in the RESET state.
Check it out and run me again.
make: *** [program] Error 2

Mayur [EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make micaz reinstall mib510,/dev/ttyS6
cp build/micaz/main.srec build/micaz/main.srec.out
installing micaz binary using mib510
uisp -dprog=mib510 -dserial=/dev/ttyS6 --wr_fuse_h=0xd9 -dpart=ATmega128
--wr_fu
se_e=ff  --erase --upload if=build/micaz/main.srec.out
Firmware Version: ►.►
Failed to enter programming mode.
make: *** [program] Error 2
Any suggestions?

Thanks for all your help!
Regards
--
Mayur Maheshwari([EMAIL PROTECTED] )

"Karmanye Vadhikaraste Ma Phaleshu Kadachana,
Ma Karma Phala Hetur Bhurmatey Sangostva Akarmani"
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">

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


Re: [Tinyos-help] how to make mica mote receiver + transmitter ?

2007-07-04 Thread Bernardo Avila Pires

I don't remember about tinyos-1, but the basic idea is that you use an
interface for sending data (SendMsg) and another for receiving
(ReceiveMsg), and using the same instances of them in both
configurations (if you're going to create different components). Then
you create a module to implement the events of reception and to send
data as you need.



2007/7/4, Hossam El-Din Hassanein <[EMAIL PROTECTED]>:

Thanx Bernardo for your reply ,
 But my doubts are as follows I tried to combining between CntToLedsAndRfm
and RfmToLeds  but got lots of errors , these were the 2 components i used
in order to establish communication between 2 motes . But in this case one
mote will act as a transmitter( one with CntToLedsAndRfm) the other will act
as a receiver( one with RfmToLeds) . I need for both to act as transceivers
in order to have data exchange between them . I need to know how could I
reach that code-wise and what components should I use to reach my goal.


On 7/4/07, Bernardo Avila Pires <[EMAIL PROTECTED]> wrote:
> Usually CntToLedsAndRfm does the job to help creating the component.
> You should first be able to establish radio communication from one
> mote to another, the fuse the configurations and implementations and
> something good should come out of it. The tutorials aid a lot as well;
> if you post specific doubts, I could try to give more specific help.
>
> 2007/7/4, Hossam El-Din Hassanein <[EMAIL PROTECTED]>:
> > Hello there ,
> >
> > I am using a mica2 mote and facing a problem at some points . One of
> > these points can be described as follows:
> >  I need for the mote to act as a receiver and a transmitter of data at
the
> > same time . I tried to refer to some modules that are ready like
> > CntToLedsAndRfm and RfmToLeds and tried to create a module that links
the
> > functionalities of both modules but failed . Could anyone please help me
> > with this problem as soon as possible .
> >
> >  Kindest Regards,
> >  Hossam
> >
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> >
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> --
> "The truth shall set you free"
> http://www.nerdtests.com/nq_ref.html ">
> http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
> alt="I am nerdier than 99% of all people. Are you a nerd? Click here
> to find out!">
>



--
Kindest Regards,
Hossam


Hossam El-Din Hassanein
Student - Networking Dept.
Faculty of Information Engineering and Technology
The German University in Cairo - GUC
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Loss of messages

2007-07-05 Thread Bernardo Avila Pires

Even if you could get the recepient to receive multiple messages at
the same time, there would be still a high collision rate.

2007/7/5, bou ahm <[EMAIL PROTECTED]>:

Hello,
I am new to TinyOS ,I am liveliness of implement the directed diffusion, I
am facing problems with learning the nesC langage.
the brodcast of many messages at same time from several source node to the
same recipient node source cause many problems
mainly the loss of messages ,I have used a buffer for avoid the loss of
messages but the problem is did n't resolved.please help me to resolve this
problem with not use the delay between nodes Thank you .
 


 
 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
Mail


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




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] [BlinkToRadio]

2007-07-05 Thread Bernardo Avila Pires

Are you using MIB600?  If so, you should properly set the board IP.
Also, I telnet it before each upload, so as to avoid these timeouts.
I do:
Once:
arp -s  
To upload something
telnet  1
(the connection will be refused)
make...


2007/7/5, Pedro Almeida <[EMAIL PROTECTED]>:

Hello;

I'm not sure I can be of any help, I don't know that error, but how are you
programming your motes?


On 7/5/07, vazoumana fofana < [EMAIL PROTECTED]> wrote:
> Hello,
>
> i try compile an application BlinkToradio : compile is OK but when i try
to
> set program to the motes, there is a mesage error wich occurs : errno110
> Connection timed out.
> Anyonecan help me ?
>
> thanks
>
>
_
> Windows Live Spaces : créez votre blog à votre image !
> http://www.windowslive.fr/spaces
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


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




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">

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


[Tinyos-help] MTS400

2007-07-09 Thread Bernardo Avila Pires

 Hi, can you help me, please? I would like to try to develop a
component to allow MTS400 to work. Is it a decent idea? Where can I
find material about how to do it? I suppose I won't though... is it
the case?
 Thanks


--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] DDRA, DDRB, ...

2007-07-10 Thread Bernardo Avila Pires

 Hi! Can you help me, please? Where do I find the declarations of DDRA,
PORTA, PINA, etc ? It seems to me that the bit values are written to memory
and I suppose the CPU reads from them. Is that so? Is there such information
in the ATMega docs?
 Thank you very much.

--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif"; alt="I
am nerdier than 99% of all people. Are you a nerd? Click here to find
out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] DDRA, DDRB, ...

2007-07-10 Thread Bernardo Avila Pires

Thanks for the hint; I supposed that something like this memory mapping
existed  by seeing they wrote to memory in things like FLIP. I check these
things out. Thanks again.

2007/7/10, Michael Schippling <[EMAIL PROTECTED]>:


Speaking for ATMEGA and T1 (probably the same in T2) the basic pin,
port, and register definitions are in:
/usr/local/avr/include/avr/iom128.h
And as just recently mentioned here, the control registers are
memory mapped so writing to them makes things happen directly.
Search out a copy of the ATMEGA128 manual for TooMuchInformation
about what each bit does.

MS


Bernardo Avila Pires wrote:
>
>   Hi! Can you help me, please? Where do I find the declarations of DDRA,
> PORTA, PINA, etc ? It seems to me that the bit values are written to
> memory and I suppose the CPU reads from them. Is that so? Is there such
> information in the ATMega docs?
>   Thank you very much.
>
> --
> "The truth shall set you free"
> http://www.nerdtests.com/nq_ref.html";>
> http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
> alt="I am nerdier than 99% of all people. Are you a nerd? Click here to
> find out!">
>
>
> 
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help





--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif"; alt="I
am nerdier than 99% of all people. Are you a nerd? Click here to find
out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Sleep function (tinyos 2.x)

2007-07-10 Thread Bernardo Avila Pires

The ATMega processor has various standby modes; I don't now if there are
abstractions to control it, though...

2007/7/9, Ali Shah <[EMAIL PROTECTED]>:


Is there a sleep function in tinyos 2.x  that I can call in a loop to
block execution until a certain component is free?
Thanks,
Ali
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help





--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif"; alt="I
am nerdier than 99% of all people. Are you a nerd? Click here to find
out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] TinyOS-2.x - Controlling the Default Radio Power inSoftware

2007-07-10 Thread Bernardo Avila Pires

Intersting... Is there such a structure for CC1K? I used to set the power by
using CC1000ControlP's setRFPower...

2007/7/10, David Moss <[EMAIL PROTECTED]>:


Phil's right - looks like the comments are out of sync with the
implementation.  Use CC2420Packet to set each outbound packet's Tx power.
When you send it, the TransmitP uses this to adjust the radio's power:

if ( m_tx_power != tx_power ) {
  call TXCTRL.write( ( 2 << CC2420_TXCTRL_TXMIXBUF_CUR ) |
 ( 3 << CC2420_TXCTRL_PA_CURRENT ) |
 ( 1 << CC2420_TXCTRL_RESERVED ) |
 ( (tx_power & 0x1F) << CC2420_TXCTRL_PA_LEVEL )
);
}

Where m_tx_power is the transmit power level the radio is currently set
to.
The lowest power level you can set is 1.  Each message can be sent using a
different transmit power level.

-David



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Philip
Levis
Sent: Monday, July 09, 2007 10:54 PM
To: Andy Dalton
Cc: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] TinyOS-2.x - Controlling the Default Radio
Power
inSoftware

On Jul 9, 2007, at 9:50 PM, Andy Dalton wrote:

> Greetings,
>
> I'm looking to control the default radio power level at runtime for
> Telos motes using TinyOS-2.x.  In tos/chips/cc2420/CC2420Power.nc I
> see the following comment:
>
> "[This] does not include transmission power, see the CC2420Config
> interface."
>
> However, the CC2420Config interface does not include any command to
> set the default radio power level.  The file
> tos/chips/cc2420/CC2420ControlP.nc includes a state variable
> 'm_tx_power' that is initialized to CC2420_DEF_RFPOWER; however, that
> variable is never used.  The file tos/chips/cc2420/CC2420TransmitP.nc
> directly uses CC2420_DEF_RFPOWER to set the default power level:
>
>if ( !tx_power ) {
>  // If our packet's tx_power wasn't configured to anything but 0,
>  // send it using the default RF power.  This assumes the
>  // packet's metadata is all set to 0's on boot.
>
>  tx_power = CC2420_DEF_RFPOWER;
>}
>
> It looks to me like the original intent was to provide a software
> interface for setting the default radio power level via the
> CC2420Config, but that its realization got lost along the way.  With
> the current implementation, I cannot see a way to set the default
> radio power in software.
>
> One way to resolve this would be to add two new commands to the
> CC2420Config interface:
>
>command uint8_t getDefaultTxPower();
>command void setDefaultTxPower(uint8_t txPower);
>
> Then, in CC2420ControlP add implementations of those commands (again,
> 'm_tx_power' is already declared in this module and initialized to
> CC2420_DEF_RFPOWER):
>
>command uint8_t CC2420Config.getDefaultTxPower() {
>return m_tx_power;
>}
>
>command uint8_t CC2420Config.setDefaultTxPower(uint8_t txPower) {
>m_tx_power = txPower;
>}
>
> Then, in CC2420TransmitP use the CC2420Config interface, and call the
> getDefaultTxPower command to set the default power:
>
>if ( !tx_power ) {
>  // If our packet's tx_power wasn't configured to anything but 0,
>  // send it using the default RF power.  This assumes the
>  // packet's metadata is all set to 0's on boot.
>
>  tx_power = call CC2420Config.getDefaultTxPower();
>}
>
> Does this seem reasonable?  Am I missing some other mechanism to set
> the default radio power level in software?

To follow up, because my first answer was completely irrelevant to
your question...

The person to talk with about this idea would be David Moss, he's the
current maintainer of the CC2420 stack. Once 2.0,2 goes out, there
will probably be a good deal of discussion on -devel with respect to
some proposed changes core has for radio interfaces[1]. We wanted to
postpone them until a possible 2.1 and get feedback from the
community. It might be useful to incorporate these kinds of changes
in that reworking.

Phil

[1] Changes to getPayload to make it more easily checkable by memory
safety tools and removing accessors from Receive so it can have fan-in.


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


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





--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif"; alt="I
am nerdier than 99% of all people. Are you a nerd? Click here to find
out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Re: How can I succeed to connect from my notebook compuer to motes(micaz) for installing code to mote.

2007-07-17 Thread Bernardo Avila Pires

Another possibility is to use MIB500.

2007/7/17, Urs Hunkeler <[EMAIL PROTECTED]>:

Hi again,

Just a detail for later: In most cases the switch on the MIB510 should
be in the off position. I think if the switch is in the on-position, it
disables serial communication between the application running on the
mote and the pc. This does not interfere with programming, but you would
not be able to send data to a running application on the mote.

Cheers,
Urs


DAE HEE KIM schrieb:
> Hi,
>
> Fortunately, I found out I worked by myself.
> Probably, the connection with micaz and programming board might have not
> fixed.
> This morning, I tightly combined mote with programming board.
> Now, It works. I can see blink by LEDs of both programming board and
> mote (I
> am testing Blink application).
>
> The setting is as follows :
> micaz mote : don't have battery, switch ON
> MB510 programming board : power connected, switch ON
> Cable : DB9(MB510) - USB(Notebook computer,Linux, TinyOS 2.0.1)
>
> The command for installing and messages are as follows
>
> # make micaz reinstall mib510,/dev/ttyUSB0
>
> cp build/micaz/main.srec build/micaz/main.srec.out
>installing micaz binary using mib510
> uisp -dprog=mib510 -dserial=/dev/ttyUSB0 --wr_fuse_h=0xd9 -dpart=ATmega128
> --wr_fuse_e=ff  --erase --upload if=build/micaz/main.srec.out
> Firmware Version: 2.1
> Atmel AVR ATmega128 is found.
> Uploading: flash
>
> Fuse High Byte set to 0xd9
>
> Fuse Extended Byte set to 0xff
> rm -f build/micaz/main.exe.out build/micaz/main.srec.out
> 
-
>
>
> I am so sorry If I have bothered you. Thanks.
>
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
"The truth shall set you free"
http://www.nerdtests.com/nq_ref.html";>
http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!">
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help