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

2006-06-19 Thread Shili Xiang
Hi,
Please make sure your "make" sequence follows the sequences below and try again?
 

1. "make clean" the PC binary from the TinyDBApp application by typing "make clean" in the 
tinyos-1.x/apps/TinyDBApp directory.

2. "make clean" in tools/java directory.


3. "make �Cf MakePC" in tools/java/net/tinyos/tindydb directory.


4. "make �Cf MakePC pc" in the tinyos-1.x
/apps/TinyDBApp directory.
Good luck!
 
Best wishes,
Shili
 
On 6/20/06, 泽 江 <[EMAIL PROTECTED]> wrote:


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 the
tinyos.net website.All the packages and run results are listed below. How  can I achieve read the data ? It can
success 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-1
 
The 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 tiny
param 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 0
param 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:10585
Connection opened to TOSSIM event portConnecting to Tossim command port at localhost:10584Connection opened to Tossim command port|   Epoch   |   nodeid  |   light   |-
Message   [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   [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.ex

[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-1     The 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   [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   [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