[Tinyos-help] What is the right operation steps to achieve the tinydb read the tinydbapp data simulated by the tossim?

2006-06-19 Thread
Hi, everyone:  What is the right operation steps to achieve the tinydb read the tinydbapp data simulated by the tossim?I cannot using the tinydb to read to data simulated by the pc. I have reinstalled the redhat linux 9 and use nearly all the same package mentioned by the instruction on thetinyos.net website.All the packages and run results are listed below. How can I achieve read the data ? It cansuccess on cygwin.I find out that the debug information has a line "param comm-string set to [EMAIL PROTECTED]:57600",but I used the -sim parameter. Whether it is the reason of can not read the data?  Thanks.The installed packages:avr-gcc-3.3tinyos-1avr-insight-pre6.0cvs.tinyos-1.3tinyos-tools-1.1.0-1task-tinydb-1.1.0-1tinyos-1.1.0-1 
 IBMJava2-142-ia32-SDK-1.4.2-5.0IBMJava2-JAVACOMM-1.4.2-5.0avarice-2.0.20030825cvs-1  avr-gcc-3.3tinyos-1avr-binutils-2.13.2.1-1avr-insight-pre6.0cvs.tinyos-1.3avr-libc-20030512cvs-1nesc-1.1.2b-1The output of tinydbmain:[EMAIL PROTECTED] java]# java net.tinyos.tinydb.TinyDBMain -sim -debug -run "select nodeid,light epoch duration 1024"param postgres-user set to teleparam postgres-passwd set to tinyparam postgres-db set to taskparam postgres-host set to localhostparam show-command-window set to trueparam show-status-window set to trueparam enable-logging set to falseparam root-id set to 0param am-group-id set to -1param gb-root set to falseparam comm-string set to [EMAIL PROTECTED]:57600param default-query set to create buffer sam size 5 as (select nodeid,light)param catalog-file set to
 net/tinyos/tinydb/catalog.xmlCatalog file in use: net/tinyos/tinydb/catalog.xmlGROUPID : -1Creating PhoenixSource with tossim-serialOpening tossim-serial sourceConnecting to Tossim event port at localhost:10585Connection opened to TOSSIM event portConnecting to Tossim command port at localhost:10584Connection opened to Tossim command port| Epoch | nodeid | light |-Message QueryMsg [qid=0x0] [fwdNode=0x7e] [msgType=0x0] [numFields=0x2] [numExprs=0x0] [fromBuffer=0x] [fromCatalogBuffer=0x0] [hasEvent=0x0] [hasForClause=0x0] [bufferType=0x0] [epochDuration=0x66] [type=0x0] [idx=0x0]
 [timeSyncData=0x0 0x0 0x0 0x0 0x0 ] [clockCount=0x0] [u.field.name=0x6e 0x6f 0x64 0x65 0x69 0x64 0x0 0x0 ] [u.field.op=0x0] [u.field.type=0x4] [u.expr.opType=0xffee] [u.expr.isStringExp=0x1] [u.expr.success=0x0] [u.expr.idx=0x6f] [u.expr.ex.opval.field=0x6564] [u.expr.ex.opval.op=0x69] [u.expr.ex.opval.value=0x0] [u.expr.ex.agg.field=0x6564] [u.expr.ex.agg.groupingField=0x6469] [u.expr.ex.agg.groupFieldOp=0x0] [u.expr.ex.agg.groupFieldConst=0x400] [u.expr.ex.agg.op=0x0] [u.expr.ex.tagg.agg.field=0x6564] [u.expr.ex.tagg.agg.groupingField=0x6469] [u.expr.ex.tagg.agg.groupFieldOp=0x0] [u.expr.ex.tagg.agg.groupFieldConst=0x400] [u.expr.ex.tagg.agg.op=0x0] [u.expr.ex.tagg.args=0x0 0x0 0x0 0x0 ] [u.expr.ex.sexp.op=0x64]
 [u.expr.ex.sexp.field=0x6469] [u.expr.ex.sexp.s=0x0 0x0 0x0 0x4 0x0 0x0 0x0 0x0 ] [u.expr.fieldOp=0x0] [u.expr.fieldConst=0x0] [u.expr.opState=0x0] [u.buf.cmd.name=0x6e 0x6f 0x64 0x65 0x69 0x64 0x0 0x0 ] [u.buf.cmd.hasParam=0x0] [u.buf.cmd.param=0x0] [u.buf.ram.hasOutput=0x0] [u.buf.ram.hasInput=0x1] [u.buf.ram.create=0x1] [u.buf.ram.numRows=0xded] [u.buf.ram.outBufName=0x64 0x65 0x69 0x64 0x0 0x0 0x0 0x4 ] [u.buf.ram.inBufName=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 ] [u.buf.ram.policy=0x0] [u.eventName=0x6e 0x6f 0x64 0x65 0x69 0x64 0x0 0x0 ] [u.numEpochs=0x6f6e] [u.ttl=0x6e]Message QueryMsg [qid=0x0] [fwdNode=0x7e] [msgType=0x0] [numFields=0x2] [numExprs=0x0] [fromBuffer=0x]
 [fromCatalogBuffer=0x0] [hasEvent=0x0] [hasForClause=0x0] [bufferType=0x0] [epochDuration=0x66] [type=0x0] [idx=0x1] [timeSyncData=0x0 0x0 0x0 0x0 0x0 ] [clockCount=0x0] [u.field.name=0x6c 0x69 0x67 0x68 0x74 0x0 0x0 0x0 ] [u.field.op=0x0] [u.field.type=0x4] [u.expr.opType=0xffec] [u.expr.isStringExp=0x1] [u.expr.success=0x0] [u.expr.idx=0x69] [u.expr.ex.opval.field=0x6867] [u.expr.ex.opval.op=0x74] [u.expr.ex.opval.value=0x0] [u.expr.ex.agg.field=0x6867] [u.expr.ex.agg.groupingField=0x74] [u.expr.ex.agg.groupFieldOp=0x0] [u.expr.ex.agg.groupFieldConst=0x400] [u.expr.ex.agg.op=0x0] [u.expr.ex.tagg.agg.field=0x6867] [u.expr.ex.tagg.agg.groupingField=0x74] [u.expr.ex.tagg.agg.groupFieldOp=0x0]
 [u.expr.ex.tagg.agg.groupFieldConst=0x400] [u.expr.ex.tagg.agg.op=0x0] [u.expr.ex.tagg.args=0x0 0x0 0x0 0x0 ] [u.expr.ex.sexp.op=0x67] [u.expr.ex.sexp.field=0x74] [u.expr.ex.sexp.s=0x0 0x0 0x0 0x4 0x0 0x0 0x0 0x0 ] [u.expr.fieldOp=0x0] [u.expr.fieldConst=0x0] [u.expr.opState=0x0] [u.buf.cmd.name=0x6c 0x69 0x67 0x68 0x74 0x0 0x0 0x0 ] [u.buf.cmd.hasParam=0x0] [u.buf.cmd.param=0x0] [u.buf.ram.hasOutput=0x0] [u.buf.ram.hasInput=0x0] [u.buf.ram.create=0x1] [u.buf.ram.numRows=0xd2d] [u.buf.ram.outBufName=0x67 0x68 0x74 0x0 0x0 0x0 0x0 0x4 ] [u.buf.ram.inBufName=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 ] [u.buf.ram.policy=0x0] [u.eventName=0x6c 0x69 0x67 0x68 

[Tinyos-help] why my tinydb cannot read the data simulated by tossim?

2006-06-16 Thread
Hi,everyone:I want to know why my tinydb cannot display the selected results?The tinydb I use is 1.1.3 and tinyos is 1.1.7. I started the TinyDBApp and use "java net.tinyos.tinydb.TinyDBMain -sim -text -run "select nodeid,light epoch duration 1024"" to start the tinydb. but the tinydb display stoped at "We're connected to avrmote| Epoch | nodeid | light |"I want to know why ? Why can't the tinydb display the selected results?I use the same command in the cygwin at windows and it works !The packages I installed are as follows and my linux is fedora core 4. The display is also listed below.I also tried the tinyos1.1.0-1 and tinydb 1.1.0-1,and they also stoped here and can not display the selected resluts..Thanks.ps: The GUI of tinydb also cannot display results. Add on it report a
 error "cannot load fonts for IMF".I also listed the display on my cygwin:)The installed packages in my fedora core 4:avr-gcc-3.3tinyos-1task-tinydb-1.1.3July2004cvs-1avr-insight-pre6.0cvs.tinyos-1.3tinyos-tools-1.2.1-3tinyos-1.1.7July2004cvs-2avr-gcc-3.3tinyos-1avr-binutils-2.13.2.1-1avr-insight-pre6.0cvs.tinyos-1.3avr-libc-20030512cvs-1IBMJava2-JAVACOMM-1.4.2-5.0IBMJava2-142-ia32-SDK-1.4.2-5.0avarice-2.0.20030825cvs-1  The display of tinydb:[EMAIL PROTECTED] java]# java net.tinyos.tinydb.TinyDBMain -sim -text -run "select nodeid,light epoch duration 1024"Catalog file in use: net/tinyos/tinydb/catalog.xmlCreating PhoenixSource with tossim-serialgetenv JNI library not found. Env.getenv will not work(please consult installation directions intinyos-1.x/tools/java/net/tinyos/util/Env.INSTALL)Built a Packet source for avrmoteOpening tossim-serial sourceConnecting to Tossim event port
 at localhost:10585Connection opened to TOSSIM event portConnecting to Tossim command port at localhost:10584Connection opened to Tossim command portWe're connected to avrmote| Epoch | nodeid | light |-The display of TinydbApp:[EMAIL PROTECTED] TinyDBApp]# export DBG=usr1[EMAIL PROTECTED] TinyDBApp]# build/pc/main.exe 3SIM: Random seed is 6796700: Setting bits from 0 to 80 to 12: Setting bits from 0 to 80 to 11: Setting bits from 0 to 80 to 10: Setting bits from 80 to 151 to 10: Setting bits from 0 to 80 to 00: Setting bits from 151 to 234 to 10: Setting bits from 80 to 151 to 02: Setting bits from 80 to 151 to 12: Setting bits from 0 to 80 to 02: Setting bits from 151 to 234 to 12: Setting bits from 80 to 151 to 01:
 Setting bits from 80 to 151 to 11: Setting bits from 0 to 80 to 01: Setting bits from 151 to 234 to 11: Setting bits from 80 to 151 to 0  The below is the display on cygwin:$ build/pc/main.exe 3SIM: Random seed is 9531250: Setting bits from 0 to 80 to 11: Setting bits from 0 to 80 to 12: Setting bits from 0 to 80 to 10: Setting bits from 80 to 151 to 10: Setting bits from 0 to 80 to 00: Setting bits from 151 to 234 to 10: Setting bits from 80 to 151 to 01: Setting bits from 80 to 151 to 11: Setting bits from 0 to 80 to 01: Setting bits from 151 to 234 to 11: Setting bits from 80 to 151 to 02: Setting bits from 80 to 151 to 12: Setting bits from 0 to 80 to 02: Setting bits from 151 to 234 to 12: Setting bits from 80 to 151 to 00: UNTARGETED MESSAGE FROM 2, SEQNO 30: UNTARGETED MESSAGE FROM 1, SEQNO 40: UNTARGETED MESSAGE FROM 2, SEQNO 40: UNTARGETED MESSAGE FROM 1,
 SEQNO 50: UNTARGETED MESSAGE FROM 2, SEQNO 50: UNTARGETED MESSAGE FROM 1, SEQNO 6  $ java net.tinyos.tinydb.TinyDBMain -text -sim -run "select nodeid,light epochduration 1024"Catalog file in use: net/tinyos/tinydb/catalog.xmlCreating PhoenixSource with tossim-serialgetenv JNI library not found. Env.getenv will not work(please consult installation directions intinyos-1.x/tools/java/net/tinyos/util/Env.INSTALL)Opening tossim-serial sourceConnecting to Tossim event port at localhost:10585Connection opened to TOSSIM event portConnecting to Tossim command port at localhost:10584Connection opened to Tossim command port| Epoch | nodeid | light |-
 1 | 2 | 2 | 798 | 3 | 2 | 600 | 4 | 1 | 390 | 4 | 2 | 357
 | 5 | 2 | 561 | 6 | 2 | 493 | 7 | 2 | 103 | 8 | 2 | 339 |
 9 | 1 | 325 | 10 | 2 | 134 | 10 | 1 | 255 | 11 | 2 | 69 | 12 |
 2 | 642 | 
		 
雅虎免费邮箱-3.5G容量,20M附件
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Is it the tinydb Cannot load fonts for IMF error casues the tinydb cannot display result?

2006-06-10 Thread
Hello,everyone:I have two quesitons:1.Is it the tinydb "Cannot load fonts for IMF" error casues the tinydb cannot display result?2.How can I make the DemoApp using the tossim instead of reading the serial port?  I tried the tinydb in my fedora core4 using tossim.But I get the error of "Cannot load fonts for IMF".Although the tinydb still can run and appears the GUI but the query result could not displayed on the GUI.Is it the "Cannot load fonts for IMF" error casues the tinydb cannot display result?  The packages I used are:tinyos-1.1.0-1tinyos-tools-1.2.1-3task-tinydb-1.1.0-1  ps:I have changed the gcc to 3.4.4 and nesc 1.2.4 also recompiled. toscheck returns no errors. The tinyviz can work normally.  In addition, how can I use the DemoApp in the tinydb directory with tossim. How can I specify the program to read the tossim but not the serial port? I find it reads a config
 file:tinydb.conf, and have a line "comm-string:[EMAIL PROTECTED]". Whether change that line have effect?1.What is the reason of "Cannot load fonts for IMF"? Is it this error causes the tinydb GUI could not display results?[EMAIL PROTECTED] java]# java net.tinyos.tinydb.TinyDBMain -simCatalog file in use: net/tinyos/tinydb/catalog.xmlCreating PhoenixSource with tossim-serialOpening tossim-serial sourceConnecting to Tossim event port at localhost:10585Connection opened to TOSSIM event portConnecting to Tossim command port at localhost:10584Connection opened to Tossim command portCannot load fonts for IMF.Cannot load fonts for IMF.Cannot load fonts for IMF.headings = [Epoch, temp, nodeid]h = tempquery = Fields in query:0 temp1 nodeid0 expressions representing query:Epoch Duration = 102Query ID = 0  headings = [Epoch, temp, nodeid]h =
 nodeidquery = Fields in query:0 temp1 nodeid0 expressions representing query:Epoch Duration = 102Query ID = 0  Cannot load fonts for IMF.  2. How can I make the DemoApp using the tossim instead of reading the serial port?[EMAIL PROTECTED] java]# java net.tinyos.tinydb.DemoAppCatalog file in use: net/tinyos/tinydb/catalog.xmlCreating PhoenixSource with [EMAIL PROTECTED]:57600[EMAIL PROTECTED]:57600: resynchronisingSending query.JVMDG217: Dump Handler is Processing Signal 2 - Please Wait.JVMDG215: Dump Handler has Processed Interrupt Signal 2. __赶快注册雅虎超大容量免费邮箱?http://cn.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] Who knows how the tinyos-tools package detects the java? and why appear can not find the /usr/local/bin/locate-jre?

2006-06-03 Thread
Hello, everyone:  Anyone who can tell me the how the tinyos-tools package dectects the java path?   I have tried the IBM JDK 1.5.0-2 ,IBM JDK 1.4.2-5 and SUN j2sdk-1_4_2_12, I also edit the PATH,CLASSPATH the .bashrc file in the user home directory.But when I run the tinyos-tools-1.2.1-3.i386.rpm, It says that "java not found. not installing jni code".  when using the IBM jdk 1.4.2,after install the tinyos-tools, when install the tinyos-1.1.15Dec2005cvs-1.noarch.rpm, It says that "/etc/profile.d/tinyos.sh" line 16 /usr//local/bin/locate-jre :error no file   can not find the java and javac!!  thanks! __赶快注册雅虎超大容量免费邮箱?http://cn.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] What causes the following errors when I make the Blink apps under fedora core 4?

2006-06-03 Thread
Hello,everyone:  When I make the Blink apps the following errors occur. Anyone who knows the reasons? I use the fedora core 4 and IBM jdk 1.4.2. The toscheck shows no errors.Thanks!!  [EMAIL PROTECTED] apps]# cd Blink[EMAIL PROTECTED] Blink]# lsBlinkM.nc Blink.nc build Makefile README SingleTimer.nc[EMAIL PROTECTED] Blink]# make pcmkdir -p build/pc compiling Blink to a pc binaryncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -I%T/lib/Deluge -I%T/lib/Flash -I%T/lib/Flash/STM25P -DDEFAULT_EEPROM_SIZE=0x10 -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"root\" -DIDENT_HOSTNAME=\"ma.cs.tyut.edu.\" -DIDENT_USER_HASH=0x129a2e14L -DIDENT_UNIX_TIME=0x4482611dL -DIDENT_UID_HASH=0x0baf1edfL Blink.nc
 -lmIn file included from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/packet_sim.h:55, from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/nido.h:84, from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/hardware.h:43, from /home/ma/TINYOSDIR/tinyos-1.x/tos/system/tos.h:144:/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'In
 file included from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/hardware.h:116, from /home/ma/TINYOSDIR/tinyos-1.x/tos/system/tos.h:144:/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of `length' shadows global declaration/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of `length' shadows global declaration/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declarationmake: *** [exe0] Error 1 __赶快注册雅虎超大容量免费邮箱?http://cn.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] How can I using a java program to connect the tinydb simulated by the tossim?

2006-05-28 Thread
Dear:  I am the new user of tinyos and tinydb. Nowadays, I do not have the hardware of the wireless sensor network node, so I want to use the tossim to simulate. The problem is that I do not know how to use a java program to read the data from the simulated node by the tossim using pc.The tinydb document sites in the tinyos 1.1 mentioned a java program, but I find it reads the data from the serial port. So, how can I using a java program to read the data from the tossim simulated wireless sensor network?  Best regards
		抢注雅虎免费邮箱-3.5G容量,20M附件! ___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help