[Tinyos-help] Re: Receiving messages

2007-11-10 Thread preeti k
Hi All,

I have been trying to solve the problem mentioned in my earlier mail below.
As i tried to figure out why certain topologies do not work, i found
something which doesn't make sense to me.

As i mentioned earlier, i am able to receive messages for complete
topologies (say of 10 nodes). For this i run my program as follows
./build/pc/main.exe  10  result.out

Now i created a .nss file (say topo10.nss) of 10 nodes where each node can
communicate with every other node (again a complete topology).The
topo10.nssfile looks like this
0:1:0.0
0:2:0.0
.
.
.
9:8:0.0
I run my program using this file as input as follows
./build/pc/main.exe -rf=topo10.nss 10  result.out

What i found is that in the latter case again nodes do not receive messages
while they do in the former. This actually sounds wierd to me so i tried it
again but i get the same result.
Has anyone faced a similar problem?
Am i making some errors with the .nss file?
Can anyone please please help me ?

Thanks,
-Preeti





On 11/10/07, preeti k [EMAIL PROTECTED] wrote:

 Hi all,

 I have a problem with receving messages. Recently i had posted a
 query about being unable to receive messages for some topologies , while
 typically for complete topologies receiving packets looks possible.

 I tried to find out why this happens but i haven't gone too far. I figured
 that for certain topologies the receiving nodes do not detect the start
 symbol leading to not receiving the message. I am using tossim on
 tinyos1.x and cygwin.

 Now, I have the following doubts

 If the receiving node does not detect the start symbol, is it due to
 packet collision or is it because the nodes are not time synchronised?
 Does this change from one topology to another?
 How can this problem be rectified? Rather which is the place to look for
 to solve this problem? I tried MicaHighSpeedRadioM.nc but have been unable
 to pin point the place in the code  where this problem could exist.

 Has anyone faced this type of problem before? I tried searching the
 archives but could not get any pointers on  this.
 Can anyone please help me ?
 Thanks in advance

 Regards,
 Preeti




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

[Tinyos-help] receiving messages in Tossim and toplogies

2007-11-05 Thread preeti k
Hi all,

I am facing problems with receiving messages for topologies that are not
complete topologies.
I am using Tossim 1.x on cygwin.

I have created a simple topology of 4 nodes in a file say topology.nss and
specify it using the -rf option
0:1:0.0
1:0:0.0
1:2:0.0
2:1:0.0
2:3:0.0
3:2:0.0

I now want to communicate between these nodes. Node 0 sends the required
message but node 1 does not receive the msg though it shud according to the
topology.This has a cascading effect and none of the nodes receive the
message sent by node 0.
I tried to trace this using  MicaHighSpeedRadioM.nc but it does not seem to
receive msg.

As against this, if i change the topology to a complete topology i.e every
node connected to every other node, the nodes communicate. The message from
node 0 is received by all the nodes in the network..

Anyone has any idea as to why would this be happening?

Your help will be greatly appreciated.

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

[Tinyos-help] default topology ????

2007-05-07 Thread preeti k

Hello,
I have a basic question.
I run an application using say 10 motes by specifying
---
./build/pc/main.exe 10
---
I get the output for some topology (since i haven't specified any particular
topology .nss file). Can i know which topology is this?
I mean can i know which is this *default or built-in* or *random
*topology using
which my application gets executed?
Can i view the .nss file for that topology?
Can anyone help me please??

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

[Tinyos-help] changing the type of a packet??

2007-04-24 Thread preeti k

Hi,

I am writing an application  which requires me to change the type of a
packet i.e the type field of TOS_Msg. I 've been trying to figure out where
and how do packets get their types but could not progress much. I can change
and add the relevant data to the payload of the message but do not know how
to change the type .
Can someone please let me know about this?

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

[Tinyos-help] specifying topology??

2007-04-21 Thread preeti k

Hello,

I have been experimenting with network layer protocols using tinyos1.x.  The
topologies i used were random topologies, but now i want to use  specific
topology like say grid topology. I am using cygwin.
I read the documents for LossyBuilder and also created lossy topology using
the same. I created a topology with '-d 2 5 -s 10 'ie 2*5 grid with 10 feet
spacing.
Now i try to give this file (created by Lossybuilder) as input by saying


./build/pc/main.exe -rf = topo.nss 10 (number of motes)


Also i  run TinyViz for the graphical layout of motes and the radio links
between them.

My problem is that the topology given through the '-rf=topo.nss' command
line parameter and the one seen on TinyViz do not match.
How do i give the same input file to TinyViz so that i can see  the topology
as topo.nss ?
I tried to load the file in TinyViz but it looks for files with extension
'*.mps' . How do i create such files and what do they mean?

Is it that TinyViz does not automatically take the layout file specified
through -rf option on the command line? Is there any particular way of doing
this? Can anyone help me  please?

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

[Tinyos-help] ADCM$StartGet

2007-04-21 Thread preeti k

Hello,

I get the following warning when i compile my application.

C:/tinyos/cyg/opt/tinyos-1.x/tos/system/ADCM.nc: In function
`ADCM$startGet':
C:/tinyos/cyg/opt/tinyos-1.x/tos/system/ADCM.nc:136: warning: comparison is
always false due to limited range of data type

I found a similar query on this mail archive but could not get a solution to
the above problem.
How serious is this warning? I traced it to ADCM.nc in ADCMStartGet function
as follows

if (port  TOSH_ADC_PORTMAPSIZE) {
 return FAIL;
   }

TOSH_ADC_PORTMAPSIZE =255 is initialized
What does it all mean?
How do i rectify this warning?

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

[Tinyos-help] SimpleCmd Tossim 1.x??????

2007-03-19 Thread preeti k

Hello,
I am trying to run the application given in lesson 7 of tinyos1.x. I have it
installed on cygwin and i am using the simulator Tossim.
My understanding of the application is that PC (Serialforwarder) injects
packets into the network through the serial port (TOSBase/TransparentBase)
which then communicates to the simulated motes (SimpleCmd) over the radio
and turns the yellow led on/off.

According to the insructions in lesson 7 i tried the following.
1. i run SimpleCmd application in one cygwin window and say
$./build/pc/main.exe 1 i.e simulate only one mote
2. i run TOSBase in another window and again simulate only one mote
i.e$./build/pc/main.exe 1
3. i run the SerialForwarder  in another cygwin window as follows $ java
net.tinyos.sf.SerialForwarder -comm tossim-serial
4. Finally i inject packets into the network running another cygwin window
$ java net.tinyos.tools.BcastInject  led_on

Now i see the injected packets being written on the Seialforwarder GUI, but
am not able to trace the path of the packets between TOSBase and SimpleCmd.
Either of these applications (SimpleCmd/TOSBase) give me the following error
(sometimes it is TOSBase and sometimes SimpleCmd)
--
$ ./build/pc/main.exe 1
0: ERROR: Unable to create EEPROM backing store file.
0: ERROR: Unable to create anonymous EEPROM region.
---
My query is am i running the sample application correctly or is there
something i have missed out?
I tried using TransparentBase (instead of TOSBase) but i get the same error.
How do i trace back this error? Is it got anything to do with my local
machine memory?
I saw the same error being discussed on this tinyos-help, but could not get
how to trace this error .

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

[Tinyos-help] Help - NoClassDefFoundError: javax/comm/SerialPortEventListen...........

2007-03-14 Thread preeti k

Hello,
I am using tinyos1.x on cygwin. I need to experiment with mote to pc
communication. I am following the instructions in lesson 6. When i try to
run the Listen class , i get the following exception.

$ java net.tinyos.tools.Listen
Exception in thread main java.lang.NoClassDefFoundError:
javax/comm/SerialPort
EventListener
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.access$100(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown
Source).

I tried to follow the discussion on the same issue in the archives and
accordingly copied getenv.dll to system32 directory. But i still get the
same error.  I have installed the java.comm package(commapi) as given in the
installation instructions.
The archives  on this issue say that the error is possibly due to 2 JVMs on
the machine . I tried to check this out but i have only one JVM.
Incidentally i am using JDK 1.5 and not JDK 1.4 Could it be that the error
is because tinyos looks for jdk 1.4 and cannot use jdk1.5? or could it be
something else?

Another point is i am using  tossim ( hence is say export MOTECOM=serial)
and not real motes for serial communication.Though i doubt it,does this have
anything to do with the above error?

Can someone please help me out? Your help is really valuable to me.

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

[Tinyos-help] Help - NoClassDefFoundError: javax/comm/SerialPortEventListen...........

2007-03-14 Thread preeti k

Hello,
I am using tinyos1.x on cygwin. I need to experiment with mote to pc
communication. I am following the instructions in lesson 6. When i try to
run the Listen class , i get the following exception.

$ java net.tinyos.tools.Listen
Exception in thread main java.lang.NoClassDefFoundError:
javax/comm/SerialPort
EventListener
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.access$100(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown
Source).

I tried to follow the discussion on the same issue in the archives and
accordingly copied getenv.dll to system32 directory. But i still get the
same error.  I have installed the java.comm package(commapi) as given in the
installation instructions.
The archives  on this issue say that the error is possibly due to 2 JVMs on
the machine . I tried to check this out but i have only one JVM.
Incidentally i am using JDK 1.5 and not JDK 1.4 Could it be that the error
is because tinyos looks for jdk 1.4 and cannot use jdk1.5? or could it be
something else?

Another point is i am using  tossim ( hence is say export MOTECOM=serial)
and not real motes for serial communication.Though i doubt it,does this have
anything to do with the above error?

Can someone please help me out? Your help is really valuable to me.

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

[Tinyos-help] A basic Question.......

2007-03-01 Thread preeti k

Hello,
I have a basic question about Tossim
I learn that tossim simulates the mica radio stack.
Having said this , can i run any *mica2 implementation on Tossim1 or 2.x?*
If not directly are there any configurations or wrapper classes available to
enable to run mica2 code on tossim? If yes where any what are they?
Or is there any other way this can be done?

Can anyone please help me out?
Thanks in advance
Regards,
-Preeti
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] installing tinyos 1.1

2007-02-23 Thread preeti k

Hello,
I need to install tinyos1.1 after uninstalling tinyos2.x.
I could install all the rpm files but when i  installed *
tinyos-1.1.0-1.cygwin.noarch.rpm*, i got a long list of errors  like

***
XnpMsg.h:81: syntax error before `pid'
XnpMsg.h:82: syntax error before `cid'
XnpMsg.h:83: syntax error before `data'
failed to parse message file XnpMsg.h
make[2]: *** [XnpMsg.java] Error 1
make[2]: Leaving directory `/opt/tinyos-1.x/tools/java/net/tinyos/xnp'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/opt/tinyos-1.x/tools/java/net/tinyos'
make: *** [subdirs] Error 2
error: %post(tinyos-1.1.0-1) scriptlet failed, exit status 2
***

I think that most of these errors have got to do with the java path, so i
checked the same. I figured that the CLASSPATH is the one i had for
tinyos2.x

$ printenv CLASSPATH
C:\cygwin\opt\*tinyos-2.x*\support\sdk\java\tinyos.jar;.

$ printenv TOSROOT
/opt/*tinyos-2.x
*

Hence i made changes to TOSROOT,CLASSPATH etc so that it points to *
tinyos1.x*.

Now i tried to run 'make pc' but it throws the following errors

**

$ make pc
mkdir -p build/pc
   compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc  -Wall
-Wshado
w -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000
-fnesc-cfile=buil
d/pc/app.c  Blink.nc -lm
C:/cygwin/opt/tinyos-1.x/tos/system/tos.h:57: redefinition of `uint8_t'
/usr/include/stdint.h:24: previous declaration of `uint8_t'
C:/cygwin/opt/tinyos-1.x/tos/system/tos.h:62: redefinition of `uint16_t'
/usr/include/stdint.h:25: previous declaration of `uint16_t'
make: *** [build/pc/main.exe] Error 1

***

Can someone please let me know how do i rectify this problem?

Thanks in advance

regards,

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

Re: RV: [Tinyos-help] Problem TOSSIM 2.0 on Cygwin (Python?)

2007-02-23 Thread preeti k

hi,
Add an empty main to one of the source files. I faced the same problem and
this solution worked for me.
-Preeti



On 2/23/07, Eva Maria Garcia [EMAIL PROTECTED] wrote:


I've done what you tell me. I've tried the following options:

PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config -lstdc++ -lpython$(PYTHON_VERSION)
-L/bin
PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config /bin -lstdc++
-lpython$(PYTHON_VERSION)
PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config -L/bin -lstdc++
-lpython$(PYTHON_VERSION)
PLATFORM_LIB_FLAGS = -L/bin -lstdc++ -lpython$(PYTHON_VERSION)

The result is:

g++ -fpic -W1,--enabled-auto-image-base   build/micaz/pytossim.o
build/micaz/sim.o build/micaz/tossim.o build/micaz/c-support.o
-L//usr/include/python2.4/config -lstdc++ -lpython2.4 -L/bin -o
_TOSSIM.dll
...
...
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o
):(.text+0x
ab): undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1

The next are similar and the error is the same.

I'm lost.

--Eva--


-Mensaje original-
De: Philip Levis [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 22 de febrero de 2007 18:51
Para: Eva Maria Garcia
CC: tinyos-help@Millennium.Berkeley.EDU
Asunto: Re: [Tinyos-help] Problem TOSSIM 2.0 on Cygwin (Python?)

On Feb 22, 2007, at 3:59 AM, Eva Maria Garcia wrote:
 The version of Python I have installed is 2.4. I've searched the
 file Python.h and it's in the directory /usr/include/python2.4. But
 you talk about the library libpython2.4.so, however I've got
 libpython2.4.dll (in the directory /bin). Is that the problem?
It probably is; you need to tell it to look for libraries in /bin.
Try adding -L/bin?

Phil=

___
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

Re: RV: [Tinyos-help] Problem TOSSIM 2.0 on Cygwin (Python?)

2007-02-23 Thread preeti k

Hi,
By empty main i mean code as follows:
main(){}
By source files i mean any one of tossim_wrap.cxx, tossim.c or hashtable.c.
Add the above  emty main to any one of them and compilation should go
successfully

-Preeti


On 2/23/07, Eva Maria Garcia [EMAIL PROTECTED] wrote:


 An empty main? How? To which one of the source files? I don't understand
the solution.



--Eva--





*De:* preeti k [mailto:[EMAIL PROTECTED]
*Enviado **el:* viernes, 23 de febrero de 2007 16:44
*Para:* Eva Maria Garcia
*CC:* tinyos-help@millennium.berkeley.edu
*Asunto:* Re: RV: [Tinyos-help] Problem TOSSIM 2.0 on Cygwin (Python?)



hi,

Add an empty main to one of the source files. I faced the same problem and
this solution worked for me.

-Preeti





On 2/23/07, *Eva Maria Garcia* [EMAIL PROTECTED] wrote:

I've done what you tell me. I've tried the following options:

PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config -lstdc++ -lpython$(PYTHON_VERSION)

-L/bin
PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config /bin -lstdc++
-lpython$(PYTHON_VERSION)
PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config -L/bin -lstdc++
-lpython$(PYTHON_VERSION)
PLATFORM_LIB_FLAGS = -L/bin -lstdc++ -lpython$(PYTHON_VERSION)

The result is:

g++ -fpic -W1,--enabled-auto-image-base   build/micaz/pytossim.o
build/micaz/sim.o build/micaz/tossim.o build/micaz/c-support.o
-L//usr/include/python2.4/config -lstdc++ -lpython2.4 -L/bin -o
_TOSSIM.dll
...
...
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o
):(.text+0x
ab): undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1

The next are similar and the error is the same.

I'm lost.

--Eva--


-Mensaje original-
De: Philip Levis [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 22 de febrero de 2007 18:51
Para: Eva Maria Garcia
CC: tinyos-help@Millennium.Berkeley.EDU
Asunto: Re: [Tinyos-help] Problem TOSSIM 2.0 on Cygwin (Python?)

On Feb 22, 2007, at 3:59 AM, Eva Maria Garcia wrote:
 The version of Python I have installed is 2.4. I've searched the
 file Python.h and it's in the directory /usr/include/python2.4. But
 you talk about the library libpython2.4.so, however I've got
 libpython2.4.dll (in the directory /bin). Is that the problem?
It probably is; you need to tell it to look for libraries in /bin.
Try adding -L/bin?

Phil=

___
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

[Tinyos-help] uninstall tinyos2.x?

2007-02-22 Thread preeti k

Hello,
I need to unistall tinyos2.x on one of the machines (cygwin, windows) and
then install tinyos1.x on cygwin.
I tried the rpm -e option but this is what happens


$ rpm -e avarice-2.4-1.cygwin.i386.rpm
error: package avarice-2.4-1.cygwin.i386.rpm is not installed

$ rpm -ivh avarice-2.0.20030825cvs-1w.cygwin.i386.rpm
Preparing...###
[100%]
   package avarice-2.4-1 (which is newer than
avarice-2.0.20030825cvs-1w) is already installed



Can someone help me out please? Is there any other way on unistalling
tinyos2?

Thanks in advance

Regards,

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

[Tinyos-help] javac error

2007-01-24 Thread preeti k

Hello,
I 've installed tinyos2.x on cygwin. The Blink application runs fine but
RadioCountToLeds doesn't. The reason is the javac path is not set. I looked
into a thread that discusses this and set the path accordingly. And now when
i say
'type javac' i get the correct path. But when i say 'printenv CLASSPATH' i
get the following o/p
**
C:tinyoscygwinopttinyos-2.xsupportsdkjavatinyos.jar
*
ie the path without the slashes(/). I exported the classpath as given in the
installation document(with cygpath -w  etc etc)
Can anyone let me know how do i get this working?
Because of this i suppose () i get  following errors when i compile
RadioCountToLeds
**
$ make micaz sim
mkdir -p build/micaz
javac RadioCountMsg.java
RadioCountMsg.java:7: package net.tinyos.message does not exist
public class RadioCountMsg extends net.tinyos.message.Message {
^
RadioCountMsg.java:67: package net.tinyos.message does not exist
   public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
  ^
RadioCountMsg.java:67: RadioCountMsg(byte[],int) is already defined in
RadioCoun
tMsg
   public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
  ^
RadioCountMsg.java:76: package net.tinyos.message does not exist
   public RadioCountMsg(net.tinyos.message.Message msg, int base_offset,
int da
ta_length) {
  ^
.

Can anyone please help me with this?
Thanks
-Preeti
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TestSerial -only sends packets ?

2007-01-12 Thread preeti k

Hi,
I am testing sample TestSerial application on tossim. After
toscomm.dllfile got created in java/jre/bin , i copied it to
windows/system32
as mentioned in  the archives. Now the TestSerial is running but it only
sends packets. I do not get any 'received packet sequence number x'
messages as mentioned in lesson 4.

$ java TestSerial -comm [EMAIL PROTECTED]:micaz [EMAIL PROTECTED]:57600
[EMAIL PROTECTED]:57600: resynchronising
Sending packet 0
Sending packet 1
Sending packet 2
Sending packet 3
Sending packet 4
Sending packet 5
Sending packet 6
Sending packet 7
Sending packet 8
Sending packet 9
Sending packet 10
Sending packet 11
...
*
Does anyone know why this happens?
Thanks in advance
-Preeti
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] flash errors on tossim

2007-01-09 Thread preeti k

Hi,
I am trying to run 'make micaz install ' (or make micaz install,1) for
BlinkToRadio application. I am using tossim simulator and not the real
motes.When i do this i get the following message Basically many 'flash
errors'
*
$ make micaz install
mkdir -p build/micaz
   compiling BlinkToRadioAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=10 -Wall -Wshadow
-Wnesc-all
-target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
-fnesc-dump=wiring -
fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
comp
onents)' -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkToRadioAppC.nc-lm
   compiled BlinkToRadioAppC to build/micaz/main.exe
   9740 bytes in ROM
236 bytes in RAM
avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
   writing TOS image
cp build/micaz/main.srec build/micaz/main.srec.out
   installing micaz binary with dapa
uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff  --erase
pulse
Atmel AVR ATmega128 is found.
Erasing device ...
pulse
Reinitializing device
Atmel AVR ATmega128 is found.

Fuse High Byte set to 0xd9

Fuse Extended Byte set to 0xff
sleep 1
uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff  --upload
if=b
uild/micaz/main.srec.out
pulse
Atmel AVR ATmega128 is found.
Uploading: flash

Fuse High Byte set to 0xd9
Fuse Extended Byte set to 0xff
sleep 1
uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff  --verify
if=b
uild/micaz/main.srec.out
pulse
Atmel AVR ATmega128 is found.
Verifying: flash
flash error at address 0x0: file=0x0c, mem=0xff
flash error at address 0x1: file=0x94, mem=0xff

flash error at address 0x260b: file=0x00, mem=0xff

Fuse High Byte set to 0xd9

Fuse Extended Byte set to 0xff
rm -f build/micaz/main.exe.out build/micaz/main.srec.out

***

Can someone please let me know whats happening and why? I went through the
mail archives which say that  it is got something to do with the hardware
mote , but since i am using tossim how do i go about?

Thanks in advance

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

[Tinyos-help] make micaz sim install,1 ?

2007-01-08 Thread preeti k

Hi,
I am trying to run  'BlinkToRadio'  given in tutorials.
I compile saying 'make micaz sim install,1' to compile the application for
tossim and install one node .Is this right?

I get undefined reference errors like..

/cygdrive/c/DOCUME~1/sb/LOCALS~1/Temp/cc9KMKdj.o(.text+0x239): In function
`fill
InOutput':
/opt/tinyos-2.x/tos/lib/tossim/sim_log.c:97: undefined reference to
`_hashtable_
search'
/cygdrive/c/DOCUME~1/sb/LOCALS~1/Temp/cc9KMKdj.o(.text+0x309):/opt/tinyos-
2.x/to
s/lib/tossim/sim_log.c:127: undefined reference to `_hashtable_search'
/cygdrive/c/DOCUME~1/sb/LOCALS~1/Temp/cc9KMKdj.o(.text+0xa42): In function
`sim_
set_node':
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:101: undefined reference to
`_TOS_NO
DE_ID'
/cygdrive/c/DOCUME~1/sb/LOCALS~1/Temp/cc9KMKdj.o(.text+0x1721): In function
`Act
iveMessageAddressC$amAddress':
/opt/tinyos-2.x/tos/lib/tossim/ActiveMessageAddressC.nc:55: undefined
reference
to `_TOS_NODE_ID'
**
Can somebody help me please

Thanks,
-Preeti
___
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 tossim/python: Segmentation fault (core dumped)

2007-01-01 Thread preeti k

Hi,
I added one more flag (-shared) in PLATFORM_BUILD_FLAGS like this

PLATFORM_BUILD_FLAGS= -fpic *-shared* -W1,--enabled-auto-image-base

And the segmentation fault was gone..

-Preeti


On 1/1/07, Philip Levis [EMAIL PROTECTED] wrote:


On Dec 31, 2006, at 9:06 AM, Mohamed Ahmed wrote:

 Hi,

 When I run the command
  from TOSSIM import *
 I got the error Segmentation fault (core dumped).

 I also tried other options already tested by Preeti K. (according
 to one of his previous
 emails) and got the following outputs:

  from tinyos.TOSSIM import *
 Traceback (most recent call last):
   File stdin, line 1, in ?
 ImportError: No module named tinyos.TOSSIM
  from tinyos.tossim import *
 Traceback (most recent call last):
   File stdin, line 1, in ?
 ImportError: No module named tinyos.tossim
  from tossim import *
 Traceback (most recent call last):
   File stdin, line 1, in ?
 ImportError: No module named tossim

I have yet to be able to reproduce this error. I think it must be due
to either incorrect compilation or a strange Cygwin conflict. The
best way to trace this down is to run python in gdb:

$ gdb /usr/bin/python

and send the stack traceback to the list.

Phil
___
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

Re: [Tinyos-help] problem with tossim

2006-12-29 Thread preeti k

Hi,
I faced the same problem.
Adding  an empty main to one of the source files rectified this error.
So you can try it.
By source files i mean one of tossim_wrap.cxx, tossim.c or hashtable.c

-Preeti



On 12/28/06, Mohamed Ahmed [EMAIL PROTECTED] wrote:


Hi,

The execution of OSTYPE=cygwin make micaz sim produced the following
error:

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o
):(.text+0xab):
 undefined reference to [EMAIL PROTECTED]' [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1

Any hint on how to solve this problem?

Thank you.
Mohamed

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

___
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


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

[Tinyos-help] packet collision simulation

2006-12-29 Thread preeti k

Hi,

I need to simulate packet collision for any basic simple network using
TOSSIM.
I have been reading through the lessons on tinyos but could not get exactly
how to go about  it.
Can someone let me know this?

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

[Tinyos-help] cannot run tossim in python

2006-12-20 Thread preeti k

Hello,

I have compiled the Blink application but an unable to run it.
After 'from tinyos.tossim import *' , when i say 't=tossim([])', i get an
errot saying 'NameError: tossim not defined'
In the tossim lesson i came  across some python commands to get the
variables. But here again i get error as follows:
**
$ python
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type help, copyright, credits or license for more information.

from tinyos.tossim.TossimApp import *
n=NescApp()

Traceback (most recent call last):
 File stdin, line 1, in ?
 File /opt/tinyos-2.x/support/sdk/python/tinyos/tossim/TossimApp.py, line
494
, in __init__
   raise Exception(\nERROR: cannot find file \%s\.
Exception:
ERROR: cannot find file app.xml.

Your nesC app cannot be imported.  Be sure that you compiled with the
nescDecls
 option.




**

Can someone please help me out with respect to running tossim?

Thanks,

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

[Tinyos-help] import _TOSSIM

2006-12-20 Thread preeti k

Hi,

I am trying to find why tossim does not run. I guess there is a problem with
the statement ' import _TOSSIM' in the TOSSIM.py file that gets generated.
IF i comment out the import statement and just import TOSSIM, i get
following output
***

import TOSSIM

Traceback (most recent call last):
 File stdin, line 1, in ?
 File TOSSIM.py, line 45, in ?
   class MAC(_object):
 File TOSSIM.py, line 55, in MAC
   __swig_destroy__ = _TOSSIM.delete_MAC
NameError: name '_TOSSIM' is not defined

But when i uncomment the import statement (ie keep the ' import _TOSSIM'
statement), i get the segmentation fault error.
Does this mean that there is a problem with the _TOSSIM.dll or is it that
the syntax or something is incorrect?

Thanks in advance,
Preeti

btw, i am able to collect NescApp.variables and print them but when i say
t=Tossim(vars) ie try to create a Tossim object i get a NameError. That
makes it confusing for me !
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Re: did you figure out the TOSSIM problem?

2006-12-20 Thread preeti k

Add the following  shared flag to the build flags in sim.extra file

PLATFORM_BUILD_FLAGS= -fpic -shared -W1,--enabled-auto-image-base

That should solve the problem.

-Preeti



On 12/21/06, Mikhail Nesterenko [EMAIL PROTECTED] wrote:


Let me know if you do because I seem to have the same segfault
problem.

thanks,
--
Mikhail

 Hi,

 I am trying to find why tossim does not run. I guess there is a
 problem with
 the statement ' import _TOSSIM' in the TOSSIM.py file that gets
generated.
 IF i comment out the import statement and just import TOSSIM, i get
 following output

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

[Tinyos-help] segmentation fault with running tossim

2006-12-15 Thread preeti k

Hi,
I successfully compiled tossim for the Blink application. But i am now
unable to run it. I get the error as follows when i run it using python


$ python
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type help, copyright, credits or license for more information.

from TOSSIM import *

Segmentation fault (core dumped)
$

Can someone please help me?

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

Re: [Tinyos-help] python version

2006-12-15 Thread preeti k

Hi,

Finally my tossim compilation went through.
The  links you sent were useful.
I added an empty main to one of the source files and the wierd unreferened
[EMAIL PROTECTED] error was gone.  I could not understand how exactly this
rectified the error though.
Thanks
Preeti







On 12/15/06, Mr. Jonathan A. Gomez [EMAIL PROTECTED] wrote:



Phil wrote:
You've entered a level of Cygwin details that I have to admit I know
nothing about.

I suspect I know much less than Phil, but I tried google-ing.  Maybe one
of these will help:
http://cygwin.com/faq/faq_3.html#SEC94
http://sourceware.org/ml/cygwin/2004-03/msg00220.html

By the way, for future reference, the option -L specifies not the library
file itself, but a
location to search for library files.  In addition, the option -l is used
to specify a library
in an abbreviated form.  So if you have a library at
/weird/blah/libstuff.so, then you might do
something like
gcc source.c -L/weird/blah/ -lstuff
with the capitalization differentiating the two.

-- Jon.

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

[Tinyos-help] Re: segmentation fault with running tossim

2006-12-15 Thread preeti k

How do i find out where the segmentation fault occurs when i type

from TOSSIM import *

Segmentation fault (core dumped)

Any suggestions?
Does this have to do anything with the compilation process?

Preeti



On 12/15/06, preeti k [EMAIL PROTECTED] wrote:


Hi,
I successfully compiled tossim for the Blink application. But i am now
unable to run it. I get the error as follows when i run it using python


$ python
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type help, copyright, credits or license for more information.
 from TOSSIM import *
Segmentation fault (core dumped)
$

Can someone please help me?

Preeti

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

[Tinyos-help] Re: segmentation fault with running tossim

2006-12-15 Thread preeti k

i changes 'from TOSSIM import *' to  'from tinyos.tossim import *' and it
seems to work but t=tossim([]) doesn't.
I tried various combinations of cases of Tossim but it doesn't seem to work
*
$ python
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type help, copyright, credits or license for more information.
* from tinyos.tossim import *
* t=*tossim*([])
Traceback (most recent call last):
 File stdin, line 1, in ?
NameError: name 'tossim' is not defined

t=*Tossim*([])

Traceback (most recent call last):
 File stdin, line 1, in ?
NameError: name 'Tossim' is not defined

t=*TOSSIM*([])

Traceback (most recent call last):
 File stdin, line 1, in ?
NameError: name 'TOSSIM' is not defined




Any sugestions as to whats happening please?

Preeti


On 12/15/06, preeti k [EMAIL PROTECTED] wrote:


How do i find out where the segmentation fault occurs when i type
 from TOSSIM import *
Segmentation fault (core dumped)

Any suggestions?
Does this have to do anything with the compilation process?

Preeti



On 12/15/06, preeti k [EMAIL PROTECTED] wrote:

 Hi,
 I successfully compiled tossim for the Blink application. But i am now
 unable to run it. I get the error as follows when i run it using python

 
 $ python
 Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
 [GCC 3.3.1 (cygming special)] on cygwin
 Type help, copyright, credits or license for more information.
  from TOSSIM import *
 Segmentation fault (core dumped)
 $
 
 Can someone please help me?

 Preeti



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

[Tinyos-help] Re: segmentation fault with running tossim

2006-12-15 Thread preeti k

I tried changing PYTHONPATH from *'/.././python'*to  *
/..//python/tinyos*
Now i get the following error

$ python
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type help, copyright, credits or license for more information.

*from tossim import **

Traceback (most recent call last):
 File stdin, line 1, in ?
 File /opt/tinyos-2.x/support/sdk/python/tinyos/tossim/TossimApp.py, line
45,
in ?
   from tinyos.tossim.TossimNescDecls import *
ImportError: No module named tinyos.tossim.TossimNescDecls




Can someone please help me out?

Preeti

On 12/15/06, preeti k [EMAIL PROTECTED] wrote:


i changes 'from TOSSIM import *' to  'from tinyos.tossim import *' and it
seems to work but t=tossim([]) doesn't.
I tried various combinations of cases of Tossim but it doesn't seem to
work
*
$ python
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type help, copyright, credits or license for more information.
* from tinyos.tossim import *
* t=*tossim*([])
Traceback (most recent call last):
  File stdin, line 1, in ?
NameError: name 'tossim' is not defined
 t=*Tossim*([])
Traceback (most recent call last):
  File stdin, line 1, in ?
NameError: name 'Tossim' is not defined
 t=*TOSSIM*([])
Traceback (most recent call last):
  File stdin, line 1, in ?
NameError: name 'TOSSIM' is not defined


Any sugestions as to whats happening please?

Preeti


On 12/15/06, preeti k [EMAIL PROTECTED] wrote:

 How do i find out where the segmentation fault occurs when i type
  from TOSSIM import *
 Segmentation fault (core dumped)

 Any suggestions?
 Does this have to do anything with the compilation process?

 Preeti



 On 12/15/06, preeti k [EMAIL PROTECTED]  wrote:
 
  Hi,
  I successfully compiled tossim for the Blink application. But i am now
  unable to run it. I get the error as follows when i run it using python
 
  
  $ python
  Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
  [GCC 3.3.1 (cygming special)] on cygwin
  Type help, copyright, credits or license for more information.
   from TOSSIM import *
  Segmentation fault (core dumped)
  $
  
  Can someone please help me?
 
  Preeti
 



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

Re: [Tinyos-help] make micaz sim

2006-12-14 Thread preeti k

Thanks for the reply.
Well the version number i have set is 2.3 ie   'PYTHON_VERSION=2.3'
Also i tried to search for the python library files . In my case /usr/lib is
empty, there is absolutely no file in there. But i tried to search for
files like libpython2.3.dll  etc and found them at /bin
Copying this library file to the /usr/lib location does not work

Any  suggestions please ... it wud be of great help

Preeti



On 12/13/06, Mr. Jonathan A. Gomez [EMAIL PROTECTED] wrote:



I bow to whomever else wishes to advise you, for I do not use CYGWIN, but
here are my two cents.

Did you set the version to 2.3.4?  Maybe it would help you to specify 2.3as the 
version number?
Since that's the version number suffix on the support directory, it might
presumably be your
library file's version number suffix.  From reading the makefile, it looks
for a library with
the version number added after the name, so...

If you want, you might look a little more carefully for the python library
in /usr/lib, because
you want to locate the actual library file, not just a related
directory.  You're probably
looking for something with an appropriate ending, for example things like
.dll or .so, with
python in its name, and some version number.  (It will be different for
you, yet for example, on
my linux system the library is /usr/lib/libpython2.3.so with a version
suffix of 2.3 even though
the real python version is 2.3.5).

-- Jon.

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

[Tinyos-help] python version

2006-12-14 Thread preeti k

I think my mail bounced back hence sending it again
Thanks
Preeti

-- Forwarded message --
From: preeti k [EMAIL PROTECTED]
Date: Dec 14, 2006 7:54 PM
Subject: Re: [Tinyos-help] python version
To: Mr. Jonathan A. Gomez [EMAIL PROTECTED], Philip Levis 
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]

Hi,

Finally i think i figured that the problem is of  compilation happening for
linux when i am actually using cygwin.
So i hard coded OSTYPE=cygwin in the sim.extra file. Now it has stopped
throwing undefined reference errors but i am still not done since now i get
the following error

*
 linking into shared object ./_TOSSIM.dll
g++ -fpic -W1,--enabled-auto-image-base   build/micaz/pytossim.o
build/micaz/sim
.o build/micaz/tossim.o build/micaz/c-support.o-L/usr/include/python2.3/config
-lstdc++ - lpython2.3 -o _TOSSIM.dll
*/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
cannot
find -lpython2.3
collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1*
**

I referered to the tinyos-help thread which talks about the same problem but
i cud not find a solution. To rectify the problem i changed
PLATFORM_LIB_FLAGS in sim.extra file as follows

Initially it was
PLATFORM_LIB_FLAGS = -L$(PYDIR)/config .dll -lstdc++  *
-lpython$(PYTHON_VERSION)*

I changed it to PLATFORM_LIB_FLAGS = -L$(PYDIR)/config */bin/libpython2.3*.dll
-lstdc++

I thus deleted the '-lpython$(PYTHON_VERSION) ' and added
/bin/libpython2.3.dll (to -L option), since that is the location of my
python library file.I do not know how correct this is but apparently the
-lpython not found error is gone but now i get the following error


 linking into shared object ./_TOSSIM.dll
g++ -fpic -W1,--enabled-auto-image-base   build/micaz/pytossim.o
build/micaz/sim
.o build/micaz/tossim.o build/micaz/c-support.o-L/usr/include/python2.3/config
/bin/libpython2.3.dll -lstdc++  -o _TOSSIM.dll
/*usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o
)(.text+0x7
c): undefined reference to [EMAIL PROTECTED]'* [EMAIL PROTECTED]'
*collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1*

Now I am completely at a loss here as to whats going wrong. Can someone
please help me out?

Preeti




On 12/14/06, preeti k [EMAIL PROTECTED] wrote:


Thanks for the reply.
Well the version number i have set is 2.3 ie   'PYTHON_VERSION=2.3'
Also i tried to search for the python library files . In my case /usr/lib
is empty, there is absolutely no file in there. But i tried to search for
files like libpython2.3.dll  etc and found them at /bin
Copying this library file to the /usr/lib location does not work

Any  suggestions please ... it wud be of great help

Preeti



On 12/13/06, Mr. Jonathan A. Gomez [EMAIL PROTECTED]  wrote:


 I bow to whomever else wishes to advise you, for I do not use CYGWIN,
 but here are my two cents.

 Did you set the version to 2.3.4?  Maybe it would help you to specify
 2.3 as the version number?
 Since that's the version number suffix on the support directory, it
 might presumably be your
 library file's version number suffix.  From reading the makefile, it
 looks for a library with
 the version number added after the name, so...

 If you want, you might look a little more carefully for the python
 library in /usr/lib, because
 you want to locate the actual library file, not just a related
 directory.  You're probably
 looking for something with an appropriate ending, for example things
 like .dll or .so, with
 python in its name, and some version number.  (It will be different for
 you, yet for example, on
 my linux system the library is /usr/lib/libpython2.3.so with a version
 suffix of 2.3 even though
 the real python version is 2.3.5).

 -- Jon.



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

Re: [Tinyos-help] can't Blink with 'make micaz sim '

2006-12-12 Thread preeti k

On 12/11/06, Mr. Jonathan A. Gomez [EMAIL PROTECTED] wrote:



Hmm... I don't know anything about compiling TOSSIM, but I do understand
some of the meaning of
your error messages:

You got a lot of lines like

build/micaz/sim.o(.text+0x2f86): In function `sim_log_add_channel':
/opt/tinyos-2.x/tos/lib/tossim/sim_log.c:166: undefined reference to
`_hashtable_search'

In other words, there is a dependency in sim.o, which uses but doesn't
define the
hashtable_search function.  It's not linking because it is missing the
hashtable function.  In
my copy of the TinyOS-2.x cvs, there is a file called hashtable.c in the
tos/lib/tossim
directory which defines these.  I don't know if you have such a file in
your version.  At any
rate, looking at the command being passed to g++, it doesn't seem that
this file is being
included.



Even i have the hashtable.c placed at the same position ie is
tos/lib/tossim.


This was the command which generated your errors (all the rest just spit out

warnings):

g++ -fpic -shared -W1,--enable-auto-image-base  build/micaz/pytossim.o
build/micaz/sim.o
build/micaz/tossim.o -L/usr/lib/python2.3/config -lpython2.3-lstdc++ -o
_TOSSIM.dll

I hesitate to say that this will help, since I haven't even tried to
compile the program myself,
but it might help to insert 'hashtable.c' in the arguments if you have the
file, right before
the first 'build/...'.  Perhaps?



How and where do i insert hashtable .c ? I mean i tried copying the file in
build dir as well as in micaz  dir but it doesn't work. I do not know how to
go about this, can you please elaborate if possible?


I might try to do the compilation, just to see if I can't reproduce your

problem.  Then I might
be able to be more helpful.


Now the Java problem:

$ $CLASSPATH
bash: C:\tinyos\cyg\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.:
command not found

It thinks you're trying to run the classpath as a command.  When you want
to change the
classpath for Java, at least Sun Java, you can do something such as
java -cp $CLASSPATH program
In which case, java is the command, -cp means set the classpath, etc.



Thanks for this.  Actually i wanted to print the classpath to find if it was
set properly and $CLASSPATH is probably not the right command for this !

Preeti

-- Jon.


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

Re: [Tinyos-help] can't Blink with 'make micaz sim '

2006-12-12 Thread preeti k

On 12/11/06, Philip Levis [EMAIL PROTECTED] wrote:


On Dec 11, 2006, at 8:16 AM, Mr. Jonathan A. Gomez wrote:


 Hmm... I don't know anything about compiling TOSSIM, but I do
 understand some of the meaning of
 your error messages:

 You got a lot of lines like

 build/micaz/sim.o(.text+0x2f86): In function `sim_log_add_channel':
 /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:166: undefined reference to
 `_hashtable_search'

 In other words, there is a dependency in sim.o, which uses but
 doesn't define the
 hashtable_search function.  It's not linking because it is missing
 the hashtable function.  In
 my copy of the TinyOS-2.x cvs, there is a file called hashtable.c
 in the tos/lib/tossim
 directory which defines these.  I don't know if you have such a
 file in your version.  At any
 rate, looking at the command being passed to g++, it doesn't seem
 that this file is being
 included.

 This was the command which generated your errors (all the rest just
 spit out warnings):

 g++ -fpic -shared -W1,--enable-auto-image-base  build/micaz/
 pytossim.o build/micaz/sim.o
 build/micaz/tossim.o -L/usr/lib/python2.3/config -lpython2.3-lstdc+
 + -o _TOSSIM.dll

 I hesitate to say that this will help, since I haven't even tried
 to compile the program myself,
 but it might help to insert 'hashtable.c' in the arguments if you
 have the file, right before
 the first 'build/...'.  Perhaps?

The hashtable code is compiled into c-support.o, which isn't being
linked in. This is because sim-cygwin is an old Makefile. The new
Makefile links it in.




how do i get the new Makefile and how do i link it? Do i need to download
and reinstall tinyos or something?

Also i tried using 'make micaz sim' , but this throws numerous
'undefined_reference' errors like say

/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3065: undefined reference to
`_Py
Long_FromUnsignedLong'
build/micaz/pytossim.o(.text+0xdc71):/opt/tinyos-2.x
/tos/lib/tossim/tossim_wrap.
cxx:3065: undefined reference to `_PyInt_FromLong'
build/micaz/pytossim.o(.text+0xdcca): In function
`_Z22SWIG_From_long_SS_longx':

/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3073: undefined reference to
`_Py
Long_FromLongLong'
build/micaz/pytossim.o(.text+0xdcda):/opt/tinyos-2.x
/tos/lib/tossim/tossim_wrap.
cxx:3073: undefined reference to `_PyInt_FromLong'
build/micaz/pytossim.o(.text+0xdd43): In function
`_Z23SWIG_FromCharPtrAndSizePK
cj':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2955: undefined reference to
`_Py
String_FromStringAndSize'
build/micaz/pytossim.o(.data+0x1a0): In function `SWIG_TypeCompare':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:398: undefined reference to
`_PyO
bject_GenericGetAttr'
collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1
I checked the tinyos-help thread on this. It says i need to change the
sim.extra file to reflect the correct python version (in my case it is 2.3.4).
I made this change to the sim.extra file. The help also says i need to have
/usr/lib/pythonX.Y , but i   do not have anything in my /usr/lib directory ,
but have a directory by name 'python2.3'  at  location   /lib/python2.3  I
copied this directory to   /usr/lib  , but this does not work.
Now how do i get over this? Which rpm for python-devel do i need to
download? Where can i find it? will it work for cygwin?

I know these are too many questions but please do let me know

Preeti




Phil


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

[Tinyos-help] cygwin shell ?

2006-12-07 Thread preeti k

I m extremely new to tinyos. i am trying to install the same on windows,
according to the installation instructions at tinyos.net.  I have downloaded
'cygwin-1.2a.tgz'.  The next step given on the site is

'In a cygwin shell, unzip the above package into some directory. In these
instructions the directory is /cygdrive/c/newcygpkgs.
$ cd /cygdrive/c/newcygpkgs
$ tar zxvf cygwin-1.2a.tgz  '

Now i do not know how to get the  cygwin shell to run the above commands. !

This may sound nuts but can anyone help please?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] make micaz sim doesn't work

2006-12-07 Thread preeti k

i am trying to run the sample Blink application on tinyos2.x using cygwin.
but i get the folowing error

$ make micaz sim
mkdir -p build/micaz
 placing object files in build/micaz
 writing XML schema to app.xml
 compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=10
00 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)
-finline-limit=10 -
Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c
-board=mic
asb  -Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components
-fnesc-dump=varia
bles -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs
-fnesc
-dump=tags -fnesc-dumpfile=app.xml
make: *** [sim-exe] Error 1

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

Re: [Tinyos-help] installation query

2006-09-11 Thread preeti k
i haven't modified the file but it still doe not seem to workOn 9/11/06, sougata sen [EMAIL PROTECTED]
 wrote:have u modified the AM.h file because it is showing a parse error in 
AM.h. check if u have done some changes in that
On 9/9/06, preeti k [EMAIL PROTECTED]

 wrote: 

Hi,I gave the 'make pc ' command by going to the application stored at ../tinyosdir/tinyos1.x/apps/Blink.But the file did not compile and i got the following error (it is quite long but i am pasting it for your reference) 
[EMAIL PROTECTED] Blink]# make pc compiling Blink to a pc binaryncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000 -fnesc-cfile=build/pc/app.c 
Blink.nc -lmIn file included from /home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/GuiMsg.h:51, from /home/preeti/tinyosdir/tinyos- 
1.x/tos/types/dbg.h:70, from /home/preeti/tinyosdir/tinyos- 1.x/tos/platform/pc/hardware.h:65, from /home/preeti/tinyosdir/tinyos-1.x/tos/system/tos.h:132:/home/preeti/tinyosdir/tinyos- 
1.x/tos/types/AM.h:155: parse error before `struct'/home/preeti/tinyosdir/tinyos- 1.x/tos/types/AM.h:156: parse error before `struct'/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: parse error before `struct' 
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:183: parse error before `TOS_Msg'In file included from /home/preeti/tinyosdir/tinyos- 
1.x/tos/platform/pc/hardware.h:116, from /home/preeti/tinyosdir/tinyos- 1.x/tos/system/tos.h:132:/home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:/home/preeti/tinyosdir/tinyos- 
1.x/tos/platform/pc/eeprom.c:114: warning: declaration of `length' shadows global declaration /home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration/home/preeti/tinyosdir/tinyos- 
1.x/tos/platform/pc/eeprom.c:144: warning: declaration of `length' shadows global declaration /home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declarationmake: *** [build/pc/main.exe] Error 1 

Can anyone help please?Preeti

On 9/9/06, Sumit Gupta [EMAIL PROTECTED] 
 wrote: 


Hi,make pc is a command to compile which will store the compiled binary file in build folder in your computer.For example: If you want to compile application 

Blink stored in ../tinyos-1.x/apps/Blink/ then you need to give following command:make platformthus for tossim (or PC platform), it is: 
make pc (it will store binary in .../Blink/build/pc/main.exe)and for other platforms like mica2 it is: 
make mica2 
(it will store binary in .../Blink/build/mica2/main.exe)Now to run the file on TOSSIM (which comes with Tinyos-1.x by defualt, thus u dont have to install it) - stay in Blink directory and type:

build/pc/main.exe number of nodes you want to simulatethus for example for 10 nodes network:build/pc/main.exe 10. To see the result of simulation you have to learn more about tinyos's tools and options and you might want to go through TOSSIM tutorial located at 
http://www.tinyos.net/tinyos-1.x/doc/nido.pdfI hope it helped.Sumit 


On 9/8/06, preeti k  [EMAIL PROTECTED] 
 wrote:



Hello there..i have been trying to install tinyos1.x on fedora core 5 . I need to use tossim as well. i typed 'make pc ' on the prompt to get tossim running but i could not. Can anyone help please
Preeti
___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 
___Tinyos-help mailing list

Tinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 
-- Sougata SenBangalore 


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

Re: [Tinyos-help] installation query

2006-09-11 Thread preeti k
yes, toscheck completes without any errorsOn 9/10/06, Tarun Bansal [EMAIL PROTECTED] wrote:
Have you gone through these tests:
http://www.tinyos.net/tinyos-1.x/doc/tutorial/verifyhw.htmlTarun___Tinyos-help mailing listTinyos-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

Re: [Tinyos-help] installation query

2006-09-09 Thread preeti k
Hi,I gave the 'make pc ' command by going to the application stored at ../tinyosdir/tinyos1.x/apps/Blink.But the file did not compile and i got the following error (it is quite long but i am pasting it for your reference)
[EMAIL PROTECTED] Blink]# make pc compiling Blink to a pc binaryncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000 -fnesc-cfile=build/pc/app.c 
Blink.nc -lmIn file included from /home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/GuiMsg.h:51, from /home/preeti/tinyosdir/tinyos-1.x/tos/types/dbg.h:70, from /home/preeti/tinyosdir/tinyos-
1.x/tos/platform/pc/hardware.h:65, from /home/preeti/tinyosdir/tinyos-1.x/tos/system/tos.h:132:/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'/home/preeti/tinyosdir/tinyos-
1.x/tos/types/AM.h:156: parse error before `struct'/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:183: parse error before `TOS_Msg'In file included from /home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/hardware.h:116, from /home/preeti/tinyosdir/tinyos-
1.x/tos/system/tos.h:132:/home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:/home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/eeprom.c:114: warning: declaration of `length' shadows global declaration
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration/home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/eeprom.c:144: warning: declaration of `length' shadows global declaration
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declarationmake: *** [build/pc/main.exe] Error 1Can anyone help please?Preeti
On 9/9/06, Sumit Gupta [EMAIL PROTECTED] wrote:
Hi,

make pc is a command to compile which will store the compiled binary file in build folder in your computer.

For example: If you want to compile application Blink stored in ../tinyos-1.x/apps/Blink/ then you need to give following command:

make platform
thus for tossim (or PC platform), it is: make pc (it will store binary in .../Blink/build/pc/main.exe)
and for other platforms like mica2 it is: make mica2 (it will store binary in .../Blink/build/mica2/main.exe)

Now to run the file on TOSSIM (which comes with Tinyos-1.x by defualt,
thus u dont have to install it) - stay in Blink directory and type:
build/pc/main.exe number of nodes you want to simulate
thus for example for 10 nodes network:

build/pc/main.exe 10. 

To see the result of simulation you have to learn more about tinyos's
tools and options and you might want to go through TOSSIM tutorial
located at 

http://www.tinyos.net/tinyos-1.x/doc/nido.pdf

I hope it helped.

Sumit 
On 9/8/06, preeti k 
[EMAIL PROTECTED] wrote:

Hello there..i have been trying to install tinyos1.x on fedora
core 5 . I need to use tossim as well. i typed 'make pc ' on the
prompt to get tossim running but i could not. Can anyone help
pleasePreeti

___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

[Tinyos-help] installation query

2006-09-08 Thread preeti k
Hello there..i have been trying to install tinyos1.x on fedora core 5 . I need to use tossim as well. i typed 'make pc ' on the prompt to get tossim running but i could not. Can anyone help pleasePreeti
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help