[Tinyos-help] Help

2010-04-28 Thread lalit agrawal
Hi

I have installed tinyos2.1.0
Im newbie to tossim.

On going to the tutorials provided im getting the following error:-
I m working in python
 from tossim import *
 t=tossim
Traceback (most recent call last):
  File stdin, line 1, in module
NameError: name 'tossim' is not defined


Thanks In Advance

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

[Tinyos-help] Help regarding make micaz sim-sf in TestSerial application

2010-04-28 Thread Tony Charley
Hi,

While I try  1) make micaz sim-sf in TestSerial application ,
 2) make micaz sim in TestSerial application , the
following error occurs. What could be the problem.


linux-phdn:/opt/tinyos-2.x/apps/tests/TestSerial # make micaz sim-sf
mkdir -p simbuild/micaz
javac  *.java
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../lib64/crt1.o: In function
`_start':
/usr/src/packages/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:109:
undefined reference to `main'
/tmp/ccqBoXuY.o: In function `void
TestSerial::main(JArrayjava::lang::String**)':
cckKL8Vw.jar:(.text+0x553): undefined reference to
`net::tinyos::util::PrintStreamMessenger::class$'
cckKL8Vw.jar:(.text+0x564): undefined reference to
`net::tinyos::util::PrintStreamMessenger::err'
cckKL8Vw.jar:(.text+0x574): undefined reference to
`net::tinyos::packet::PhoenixSource*
net::tinyos::packet::BuildSource::makePhoenix(net::tinyos::util::Messenger*)'
cckKL8Vw.jar:(.text+0x58c): undefined reference to
`net::tinyos::util::PrintStreamMessenger::class$'

cckKL8Vw.jar:(.text+0x59d): undefined reference to
`net::tinyos::util::PrintStreamMessenger::err'

cckKL8Vw.jar:(.text+0x5b6): undefined reference to
`net::tinyos::packet::PhoenixSource*
net::tinyos::packet::BuildSource::makePhoenix(java::lang::String*,
net::tinyos::util::Messenger*)'

cckKL8Vw.jar:(.text+0x5be): undefined reference to
`net::tinyos::message::MoteIF::class$'

cckKL8Vw.jar:(.text+0x5d9): undefined reference to
`net::tinyos::message::MoteIF::MoteIF(net::tinyos::packet::PhoenixSource*)'

/tmp/ccqBoXuY.o:(.data+0x68): undefined reference to
`net::tinyos::message::MoteIF::class$'

/tmp/ccqBoXuY.o:(.data+0x168): undefined reference to
`net::tinyos::message::MessageListener::class$'
/tmp/cctsPp27.o: In function `TestSerialMsg::TestSerialMsg()':
cckKL8Vw.jar:(.text+0x23): undefined reference to
`net::tinyos::message::Message::Message(int)'
/tmp/cctsPp27.o: In function `TestSerialMsg::TestSerialMsg(int)':
cckKL8Vw.jar:(.text+0x7f): undefined reference to
`net::tinyos::message::Message::Message(int)'
/tmp/cctsPp27.o: In function `TestSerialMsg::TestSerialMsg(int, int)':
cckKL8Vw.jar:(.text+0xe8): undefined reference to
`net::tinyos::message::Message::Message(int, int)'
/tmp/cctsPp27.o: In function `TestSerialMsg::TestSerialMsg(JArraychar*)':
cckKL8Vw.jar:(.text+0x14e): undefined reference to
`net::tinyos::message::Message::Message(JArraychar*)'
/tmp/cctsPp27.o: In function `TestSerialMsg::TestSerialMsg(JArraychar*,
int)':
cckKL8Vw.jar:(.text+0x1bb): undefined reference to
`net::tinyos::message::Message::Message(JArraychar*, int)'
/tmp/cctsPp27.o: In function `TestSerialMsg::TestSerialMsg(JArraychar*,
int, int)':
cckKL8Vw.jar:(.text+0x239): undefined reference to
`net::tinyos::message::Message::Message(JArraychar*, int, int)'
/tmp/cctsPp27.o: In function
`TestSerialMsg::TestSerialMsg(net::tinyos::message::Message*, int)':
cckKL8Vw.jar:(.text+0x2b0): undefined reference to
`net::tinyos::message::Message::Message(net::tinyos::message::Message*, int,
int)'
/tmp/cctsPp27.o: In function
`TestSerialMsg::TestSerialMsg(net::tinyos::message::Message*, int, int)':
cckKL8Vw.jar:(.text+0x32f): undefined reference to
`net::tinyos::message::Message::Message(net::tinyos::message::Message*, int,
int)'
/tmp/cctsPp27.o:(.data+0x40): undefined reference to `java::lang::Object*
net::tinyos::message::Message::clone()'
/tmp/cctsPp27.o:(.data+0x50): undefined reference to `void
net::tinyos::message::Message::init(int)'
/tmp/cctsPp27.o:(.data+0x58): undefined reference to `void
net::tinyos::message::Message::init(int, int)'
/tmp/cctsPp27.o:(.data+0x60): undefined reference to `void
net::tinyos::message::Message::init(JArraychar*)'
/tmp/cctsPp27.o:(.data+0x68): undefined reference to `void
net::tinyos::message::Message::init(JArraychar*, int)'
/tmp/cctsPp27.o:(.data+0x70): undefined reference to `void
net::tinyos::message::Message::init(JArraychar*, int, int)'
/tmp/cctsPp27.o:(.data+0x78): undefined reference to `void
net::tinyos::message::Message::init(net::tinyos::message::Message*, int,
int)'
/tmp/cctsPp27.o:(.data+0x80): undefined reference to
`net::tinyos::message::Message* net::tinyos::message::Message::clone(int)'
/tmp/cctsPp27.o:(.data+0x88): undefined reference to `void
net::tinyos::message::Message::dataSet(JArraychar*)'
/tmp/cctsPp27.o:(.data+0x90): undefined reference to `void
net::tinyos::message::Message::dataSet(JArraychar*, int, int, int)'
/tmp/cctsPp27.o:(.data+0x98): undefined reference to `void
net::tinyos::message::Message::dataSet(net::tinyos::message::Message*, int)'
/tmp/cctsPp27.o:(.data+0xa0): undefined reference to `JArraychar*
net::tinyos::message::Message::dataGet()'
/tmp/cctsPp27.o:(.data+0xa8): undefined reference to `int
net::tinyos::message::Message::baseOffset()'
/tmp/cctsPp27.o:(.data+0xb0): undefined reference to `int
net::tinyos::message::Message::dataLength()'
/tmp/cctsPp27.o:(.data+0xb8): undefined reference to `int
net::tinyos::message::Message::amType()'

Re: [Tinyos-help] lesson learned from tinyos

2010-04-28 Thread vivek20

Hi 

I have installed tinyos2.1.0
Im newbie to tossim.

On going to the tutorials provided im getting the following error:-
I m working in python
 from tossim import *
 t=tossim
Traceback (most recent call last):
  File stdin, line 1, in module
NameError: name 'tossim' is not defined

Waiting for ur reply...

Thanks In Advance

With Regards
Lalit
-- 
View this message in context: 
http://old.nabble.com/lesson-learned-from-tinyos-tp28356270p28373666.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

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


Re: [Tinyos-help] *****SPAM***** Re: Getting bad packet from InternalVoltage measures in Telosb

2010-04-28 Thread David Conde
Hi,

I agree with you, I saw in TMote datasheet that minimum voltage level for
TelosB working right is 2,1 Volts, in fact, everything works right except
InternalVoltage measures, why is this? Does the InternalVoltage measures
need higher level of battery to performance this operation? Is it because
the Internal Voltage is got from the MSP430?

What is the real lowest voltage level (got from practical experience) that
you have found when you work with Telosb?

Thank you in advance 

-Mensaje original-
De: André Rodrigues [mailto:andremiguelrodrig...@gmail.com] 
Enviado el: martes, 27 de abril de 2010 20:35
Para: Michael Schippling; David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: *SPAM* Re: [Tinyos-help] Getting bad packet from
InternalVoltage measures in Telosb

Spam detection software, running on the system produccion.citic.es, has
identified this incoming email as possible spam.  The original message has
been attached to this so you can view it (if it isn't spam) or label similar
future email.  If you have any questions, see the administrator of that
system for details.

Content preview:  Hi The MSP datasheet says that but on the other way the
TMoteSky
   datasheet claims 2.1 as the mininum for running at 8MHz. Something is
wrong...
   [...] 

Content analysis details:   (4.2 points, 4.0 required)

 pts rule name  description
 --
--
 0.0 STOX_REPLY_TYPESTOX_REPLY_TYPE
 1.1 DNS_FROM_OPENWHOIS RBL: Envelope sender listed in
bl.open-whois.org.
-0.0 SPF_PASS   SPF: sender matches SPF record
 0.0 BAYES_50   BODY: Bayesian spam probability is 40 to 60%
[score: 0.5000]
 3.1 FORGED_MUA_OUTLOOK Forged mail pretending to be from MS Outlook




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


Re: [Tinyos-help] how do i find where a value is being generated?

2010-04-28 Thread Eric Decker
Thanks for finding this.

That is indeed the problem.   When I change the #define to something like
F_FAIL then I get the expected result in app.c.

I don't understand why other things don't blow up because FAIL is part of an
enum in TinyError.h

enum {
  SUCCESS=  0,
  FAIL   =  1,   // Generic condition: backwards compatible
  ESIZE  =  2,   // Parameter passed in was too big.
  ECANCEL=  3,   // Operation cancelled by a call.
  EOFF   =  4,   // Subsystem is not active
  EBUSY  =  5,   // The underlying system is busy; retry
later
  EINVAL =  6,   // An invalid parameter was passed
  ERETRY =  7,   // A rare and transient failure: can retry
  ERESERVE   =  8,   // Reservation required before usage
  EALREADY   =  9,   // The device state you are requesting is
already set
  ENOMEM = 10,   // Memory required not available
  ENOACK = 11,   // A packet was not acknowledged
  ELAST  = 11// Last enum value
};

So I would expect the definition of FAIL to then become

1 = 1,   which should blow up with a syntax error.


So I definitely know that the culprit is flash.h because when I modify FAIL
in flash.h the problem goes away.
I also know that flash.h isn't getting included until sometime after the
other uses of FAIL have already been added to app.c.
That is why the enum definition works.

flash.h gets included by the cpu include.  What I don't understand is why it
doesn't hit the whole of app.c.  Why does it
hit my file and not the other places?

eric


On Mon, Apr 26, 2010 at 9:29 AM, Greg Hackmann g...@cse.wustl.edu wrote:

 On 4/26/10 6:28 AM, Michiel Konstapel wrote:
  Now that is interesting - I've recently noticed the same thing myself.
  Is something redefining FAIL, somewhere?

 Out of curiosity, I grepped for FAIL in my copy of the MSP430 libc.
 Something interesting popped up in include/msp430/flash.h:

 #define FAIL0x0080  /* Last Program or Erase failed */

 If a module in your app #included this file (either directly, or by
 #including another header in the MSP430 libc that in turn #included
 flash.h), it would completely explain the problem you're seeing.

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




-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How to distinguish 2 packet types at one base station?

2010-04-28 Thread martin . osterloh
Hi,

maybe a simple question. I have one base station and my mote sends 2 different
packet types (one with AM_ID = 6 and the other one AM_ID = 7).

How can I distinguish them at the base station? My base station code is pretty
much the same that is in the tinyos tree.

Any suggestions how to do this?

Best,
Martin


This message was sent using IMP, the Internet Messaging Program.
___
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 distinguish 2 packet types at one base station?

2010-04-28 Thread Eric Decker
You have to modify the base station s/w so that it looks at the packet type
(am_type)
and does something different.

So it can't be the standard base station.  If you want it to do something
different you
will have to change the source.


On Wed, Apr 28, 2010 at 4:01 AM, martin.oster...@tu-ilmenau.de wrote:

 Hi,

 maybe a simple question. I have one base station and my mote sends 2
 different
 packet types (one with AM_ID = 6 and the other one AM_ID = 7).

 How can I distinguish them at the base station? My base station code is
 pretty
 much the same that is in the tinyos tree.

 Any suggestions how to do this?

 Best,
 Martin

 
 This message was sent using IMP, the Internet Messaging Program.
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Working with TinyOs and MSP430

2010-04-28 Thread ALFONSO MARTINEZ DE LA TORRE
Hi!

We are working on a new platform with MSP430FG439, for now we are trying
to compile Blink and debug it, it goes OK, but went I try to open the
app.c generated with the Code Composers it gives us a million errors
like:

../app.c, line 3: error: expected an identifier
/usr/lib/ncc/nesc_nx.h, line 386: error: __attribute__ has
already been declared in the current scope
/opt/msp430/msp430/include/sys/reent.h, line 227: error: identifier
__extension__ is undefined

How can I fix that so I can debug it as an standard C file?
And how can I download it inte my MSP430 using the USB ports?

Sorry if the questions are a bit basic, we are just starting with TinyOS
and we have a world of doubts.

Best Regards!
Alfonso Martínez

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


[Tinyos-help] Cygwin problem while uploading program

2010-04-28 Thread mgm ncm
Hi all,

I am using Xbow usb Mib520 to program the Micaz motes and use cygwin for
it.I use the command make micaz install.1 mib520,/dev/ttyS2

Some times the program gets loaded into the mote but some times the cygwin
hangs with the following message,

uisp -dprog=mib520 -dserial=/dev/ttyS2 --wr_fuse_h=0xd9 -dpart=ATmega128
--wr_fu
se_e=ff  --erase --upload if=build/micaz/main.srec.out-1
Warning: Converting Cygwin /dev/ttyS2 device to Windows device.

I have to use ctrl C to exit the program.After that it displays make: ***
[program] Error:58

I am facing this problem for long time.

Thanks in advance

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

[Tinyos-help] can't install tinyos plugin for eclipse

2010-04-28 Thread Etienne Lachaud
Hi.
In Eclipse, I can't install the Yeti 2 software. I add this address, it
shows me the Yeti 2 components. I select all the required and recommended,
but I can't clic on install because an error occurs:

Cannot complete the install because one or more required items could not be
found.
  Software being installed: Yeti 2 - Core Plugin (required) 2.2.17
(Feature_Core_Plugin.feature.group 2.2.17)
  Missing requirement: Yeti 2 - Core Plugin (required) 2.2.17
(Feature_Core_Plugin.feature.group 2.2.17) requires 'org.eclipse.draw2d
0.0.0' but it could not be found

This is precisely what I'm trying to install! I installed the Ganymede
plugin for C/C++ as I saw in another mail from this mailing list but the
same error occurs. I also tried to select only Yeti 2 - Core Plugin
(required) 2.2.17 but always the same error.
I don't know what to do.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] help needed on simulating Deluge on TOSSIM

2010-04-28 Thread rui zhang
Spam detection software, running on the system mail.Millennium.Berkeley.EDU, 
has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Hi, I am a novice to tinyos. Currently I need simulate Deluge
   on TOSSIM. I am using Tinyos 2.0.2. Currently make micaz in 
apps/test/deluge/GlodenImage
   is successful, but make micaz sim produces a lot of error. Below are just
   the last few lines of the compilation results. [...] 

Content analysis details:   (3.6 points, 3.3 required)

 pts rule name  description
 -- --
 3.2 FH_DATE_PAST_20XX  The date is grossly in the future.
 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP
 0.0 HTML_MESSAGE   BODY: HTML included in message
-0.7 BAYES_20   BODY: Bayesian spam probability is 5 to 20%
[score: 0.1165]
 1.1 DNS_FROM_OPENWHOIS RBL: Envelope sender listed in bl.open-whois.org.

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor.

---BeginMessage---
Hi,

 I am a novice to tinyos. Currently I need simulate Deluge on TOSSIM. I
am using Tinyos 2.0.2.
 Currently  make micaz in apps/test/deluge/GlodenImage is successful,
but make micaz sim produces a lot of error. Below are just the last few
lines of the compilation results.

/opt/tinyos-2.x/tos/lib/net/Deluge/extra/micaz/TOSBoot_platform.h:39:
`SPM_PAGES
IZE' undeclared here (not in a function)
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/micaz/TOSBoot_platform.h:39:
enumerator
 value for `TOSBOOT_INT_PAGE_SIZE' not integer constant
In file included from
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/avr/InternalFlash
C.nc:31:
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/micaz/InternalFlash.h:39:24: error:
avr
/eeprom.h: No such file or directory
In file included from
/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/Flas
hVolumeManagerC.nc:61,
 from /opt/tinyos-2.x/tos/lib/net/Deluge/DelugeC.nc:41,
 from GoldenImageC.nc:31:
In component `NetProgC':
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgC.nc:43: failed to
preprocess /o
pt/tinyos-2.x/tos/lib/net/Deluge/extra/avr/InternalFlashC.nc
In file included from
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgC.nc:44,
 from
/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/Flas
hVolumeManagerC.nc:61,
 from /opt/tinyos-2.x/tos/lib/net/Deluge/DelugeC.nc:41,
 from GoldenImageC.nc:31:
In component `NetProgM':
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:45: interface
CC2420Config
not found
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc: In function
`Init.init':
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:88: interface has no
comman
d or event named `setShortAddr'
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:89: interface has no
comman
d or event named `sync'
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc: In function
`NetProg.progr
amImgAndReboot':
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:116: interface has no
comma
nd or event named `getPhysicalAddress'
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:116: subscripted value
is n
either array nor pointer
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc: At top level:
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:136: `syncDone' is not
in i
nterface `CC2420Config'
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:138: syntax error
before `D
elugeStorage'
In file included from
/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/Flas
hVolumeManagerC.nc:61,
 from /opt/tinyos-2.x/tos/lib/net/Deluge/DelugeC.nc:41,
 from GoldenImageC.nc:31:
In component `NetProgC':
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgC.nc:58: component
CC2420Control
P not found
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgC.nc:52: no match
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgC.nc:59: no match
In component `FlashVolumeManagerC':
/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManagerC.nc:52:
 cannot find `BlockRead'
/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManagerC.nc:53:
 cannot find `BlockWrite'
/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManagerC.nc:54:
 cannot find `BlockRead'
/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManagerC.nc:55:
 cannot find `BlockWrite'
/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManagerC.nc:56:
 cannot find `SerialAMSender'

Re: [Tinyos-help] can't install tinyos plugin for eclipse

2010-04-28 Thread Arik Sapojnik
Contact the Yeti support here: http://tinyos.ethz.ch/phpBB3/

Arik



On Wed, Apr 28, 2010 at 16:12, Etienne Lachaud e.lach...@gmail.com wrote:

 Hi.
 In Eclipse, I can't install the Yeti 2 software. I add this address, it
 shows me the Yeti 2 components. I select all the required and recommended,
 but I can't clic on install because an error occurs:

 Cannot complete the install because one or more required items could not be
 found.
   Software being installed: Yeti 2 - Core Plugin (required) 2.2.17
 (Feature_Core_Plugin.feature.group 2.2.17)
   Missing requirement: Yeti 2 - Core Plugin (required) 2.2.17
 (Feature_Core_Plugin.feature.group 2.2.17) requires 'org.eclipse.draw2d
 0.0.0' but it could not be found

 This is precisely what I'm trying to install! I installed the Ganymede
 plugin for C/C++ as I saw in another mail from this mailing list but the
 same error occurs. I also tried to select only Yeti 2 - Core Plugin
 (required) 2.2.17 but always the same error.
 I don't know what to do.

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




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

Re: [Tinyos-help] what is the super user name and password

2010-04-28 Thread Kevin Klues
Use sudo and your normal password.

http://www.gratisoft.us/sudo/man/sudo.html

2010/4/26 xiaojun8763 xiaojun8...@163.com:
 Hi:
  i want to know the super user name and passwor of Xbuntos 2.1. When i
 install software, i got the tips that i should run as the super user,but i
 don't know the super user name and password of Xbuntos 2.1.
 Looking forward your reply.Thanks!

 John Lee

 April 26, 2010

 
 有域名马上来,网易免费送你200户域名邮箱



-- 
~Kevin

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

Re: [Tinyos-help] Cygwin problem while uploading program

2010-04-28 Thread Michael Schippling
If it sometimes works I would suspect a hardware issue,
loose cable or connector, bad power, etc. I also think
I remember being able to turn on trace messages...yup:

   -v   Set verbose level (-v equals -v=2, min/max: 0/4, default 1)

or peruse the other uisp options with --help

MS

mgm ncm wrote:
 
 
 Hi all,
 
 I am using Xbow usb Mib520 to program the Micaz motes and use cygwin for 
 it.I use the command make micaz install.1 mib520,/dev/ttyS2
 
 Some times the program gets loaded into the mote but some times the 
 cygwin hangs with the following message,
 
 uisp -dprog=mib520 -dserial=/dev/ttyS2 --wr_fuse_h=0xd9 -dpart=ATmega128 
 --wr_fu
 se_e=ff  --erase --upload if=build/micaz/main.srec.out-1
 Warning: Converting Cygwin /dev/ttyS2 device to Windows device.
 
 I have to use ctrl C to exit the program.After that it displays make: 
 *** [program] Error:58
 
 I am facing this problem for long time.
 
 Thanks in advance
 
 --MGM
 
 
 
 
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] CTP Routing Frame

2010-04-28 Thread Yusnaidi Md Yusof
Hi All,

I have read the Ctp.h and from the ctp_routing_header_t structure, one of
the item is 'nx_uint8_t (COUNT (0) data)[0]'. Comparing with the TEP 123,
the given CTP routing frame format is: options - parent - etx. Thus, by
accounting the 'nx_uint8_t (COUNT (0) data)[0]' item, is it correct if I
re-translate the CTP routing frame format as: options - parent - etx -
data?   , since a 'data' field follows after the 'collect_id' field in the
CTP data frame format (also narrated in the TEP 123).

Many thanks..


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

[Tinyos-help] how to know sender address in tinyos

2010-04-28 Thread chikh omar
hello,
did any body know how to get the sender address of a received message in 
tinyos2.1

 
thnaks in advance,

**
Omar Cheikhrouhou 
Engineer  Researcher @SENS Lab (Software Engineering and Network Security)
Higher Institute of Technological Studies - Address : Mahdia's road Km 2.5 
Sfax. BP 88 A - 3099 El Bustan Sfax Telephone : (+216)74 237425 Poste : 437 
Fax: : (+216)74 431 386
Ph.D @ CES Lab (Computer and Embedded System)-University of Sfax, National 
School of Engineers BP W, Sfax, 3038, Tunisia , Fax:(+216)74665369  
Coordinator C2i @ ISET Sfax (Certified C2i since 2008)



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

[Tinyos-help] Why the MViz example always show wrong id?

2010-04-28 Thread chris cgha
Hi:
  I've deployed the mviz example into my boards,but found there are always
some wrong id shows on the pc app.Is it the ctp problem? How to solve it?

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

[Tinyos-help] random values

2010-04-28 Thread Roberto Pagliari
Hi All,
I tried this code

value = call Random.rand16();
if( (value  1) == 1 ) {
  call BitVector.set(0);
  call Leds.led0On();
}


several times but, apparently, random always returns the same value. I wired
RandomC.Init to main. Do I need to do anything else?

Thanks

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

[Tinyos-help] Help: bad packet in JAVA Ocilloscope GUI about ECG collection

2010-04-28 Thread fengnaixing
Spam detection software, running on the system mail.Millennium.Berkeley.EDU, 
has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  hi all, i encounter a big problem about bad packet displaying
   on Cygwin. i hava two tmote sky any TinyOS-1.x. i don't know if you have
  the Oscilloscope that it can collect six internal sensors about Humidity,
  Temperature TSR, PAR,InternalTemperature, InternalVoltage and TOSbase in a
   file called Moteiv. now it's my problem time! i write codes like 
Oscilloscope,
   i means i want to use the ECG external module connected to tmote sky with
   my codes, i use external expansion ADC0. first , make tmote succeed. And
  then make tmote reinstall succeed. everything is ok but when i call  MOTECOM
   =ser...@comx:tmote java com.moteiv.oscope.oscilloscope  command(where X
  is my COM port), it display  { ser...@com5:57600: resynchronising Creating
   Channel for Mote 3 Chan 0 ser...@com5:57600 bad packet ser...@com5:57600
   bad packet ser...@com5:57600 bad packet ...} the bad packet result 
happened
   when i used ADC0 external port to collect random signal without connected
   ECG module, the bad packet result happaned if it contacted with that. please
   analyse your views, the more you point, the more ideas i have. thanks in
  advance! [...] 

Content analysis details:   (4.8 points, 3.3 required)

 pts rule name  description
 -- --
 3.2 FH_DATE_PAST_20XX  The date is grossly in the future.
 0.0 HTML_MESSAGE   BODY: HTML included in message
 0.0 BAYES_50   BODY: Bayesian spam probability is 40 to 60%
[score: 0.4980]
 1.1 DNS_FROM_OPENWHOIS RBL: Envelope sender listed in bl.open-whois.org.
 0.5 AWLAWL: From: address is in the auto white-list

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor.

---BeginMessage---
hi all,
  i encounter a big problem about bad packet displaying on Cygwin.
  i hava two tmote sky any TinyOS-1.x.
  i don't know if you have the Oscilloscope that it can collect six 
internal sensors about Humidity, Temperature
 TSR, PAR,InternalTemperature, InternalVoltage and TOSbase in a file called 
Moteiv.
 now it's my problem time! i write codes like Oscilloscope, i means i want 
to use the ECG external module connected to tmote sky with my codes, i use 
external expansion ADC0. first , make tmote succeed. And then make tmote 
reinstall succeed. everything is ok but when i call   MOTECOM 
=ser...@comx:tmote  java com.moteiv.oscope.oscilloscope 
command(where X is my COM port), it display 
  { ser...@com5:57600: resynchronising 
 Creating Channel for Mote 3 Chan 0
 ser...@com5:57600 bad packet
 ser...@com5:57600 bad packet
 ser...@com5:57600 bad packet
 ...}
   the bad packet result happened when i used ADC0 external port to collect 
random signal without connected ECG module, the bad packet result happaned if 
it contacted with that. 
please analyse your views, the more you point, the more ideas i have.
   thanks in advance!
 
Eric







 

 

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

[Tinyos-help] how to contribute to tinyos-2.x-contrib

2010-04-28 Thread CL
Hi All

My University has a contrib folder, but one of its authors told me that
it is not possible add any others as the caretakers of the contrib are
unresponsive.

I tried myself to contact a caretaker regarding creating a new folder in
contrib, but i got no reply yet (it's been close to 6 or 7 weeks now).
We have a lot of code to share (with a new sensor codes) under several
platforms, which may be of great use for the community.

If someone knows, pls let me know how to get this done.

Rgds

CL

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


[Tinyos-help] Duplicate packets in TOSSIM

2010-04-28 Thread Anurag Rai
Hi all,
I am using TOSSIM with serialforwarder to send packets to the simulation
from an outside client. I searched the code a bit and found that as soon as
a packet is received by SF it inserts it into the eventHeap with time
stamp(sim_time) as key. For debugging I printed the packet just before
sim_queue_insert and after it is returned to the SerialReceive.receive. I
have marked my packets with sequence number. Now just before the  insert
packets are being inserted but when they are received at
receive,occasionally,  one of them gets lost and one gets duplicated. eg.
100,101,102 get inserted but  I get 100 102 102 at receive.
I am wondering whether concurrency issues(wrt heap) could be one of the
reasons. Someone please throw some light.

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

[Tinyos-help] Question about the waiting periods in CC2420's Radio Control States

2010-04-28 Thread Yi Tang
Hi All,

In CC2420's Radio Control States there are 12 (or 8 for TX_CALIBRATE) symbol
periods after TX_CALIBRATE, RX_CALIBRATE, and TX_ACK_CALIBRATE.

So what are these periods for (or why the value is 12/8)? Waiting for
calibration to be completed, or something else?

Thanks a lot!

Yi

-- 
Yi Tang
Laboratory of Secure  HIgh-performance NEtworks (SHINE)
Bradley Department of Electrical and Computer Engineering
Virginia Tech
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] random values

2010-04-28 Thread Arik Sapojnik
Never worked with it, but usually you need to initialize a seed.
If you want different values - every time a different one.

Arik



On Thu, Apr 29, 2010 at 04:24, Roberto Pagliari
robertodemed...@gmail.comwrote:

 Hi All,
 I tried this code

 value = call Random.rand16();
 if( (value  1) == 1 ) {
   call BitVector.set(0);
   call Leds.led0On();
 }


 several times but, apparently, random always returns the same value. I
 wired RandomC.Init to main. Do I need to do anything else?

 Thanks

 --
 Roberto

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




-- 
Best Regards,
Arik Sapojnik
___
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 know sender address in tinyos

2010-04-28 Thread Arik Sapojnik
Use the force AMPacket interface - getSource() function.

Arik



On Thu, Apr 29, 2010 at 00:57, chikh omar enis01a...@yahoo.fr wrote:

 hello,
 did any body know how to get the sender address of a received message in
 tinyos2.1

 thnaks in advance,

 ***
 Omar Cheikhrouhou
 **Engineer  Researcher @SENS Lab (Software Engineering and Network
 Security)
 Higher Institute of Technological Studies - Address : Mahdia's road Km 2.5
 Sfax. BP 88 A - 3099 El Bustan Sfax Telephone : (+216)74 237425 Poste : 437
 **  **Fax: : (+216)74 431 386*

 *Ph.D @ CES Lab (Computer and Embedded System)-University of Sfax,
 National School of Engineers BP W, Sfax, 3038, Tunisia , Fax:(+216)74665369
 ** *

 *Coordinator C2i @ ISET Sfax (Certified C2i since 2008)*



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




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