[Octopus-users] Basics of Visualization Tool known as Octopus
David Strubbe
dstrubbe at berkeley.edu
Thu Sep 2 17:52:46 WEST 2010
Christian,
This mailing list is for the Octopus TDDFT physics software, hosted at
www.tddft.org/programs/octopus, which is not a visualization tool. Based on
your message, I think you are referring to a different code called Octopus,
and we won't be able to help you.
David
On Wed, Sep 1, 2010 at 11:20 PM, Christian To <tochristianng at gmail.com>wrote:
> Hello!
>
> I am a new user of this visualization tool known as the Octopus Project. I
> am having trouble with finding a solution to why there are no nodes shown
> when I execute the OctopusGui.java (I am working on an ubuntu 10.04 lucid
> lynx with a tinyos-2.1.1 environment, and my Octopus version is V2.1)
>
> The following are the steps I have tried:
>
> 1.) cd /opt/tinyos-2.1.1/apps/OctopusDashboard/motes
> 2.) make micaz
>
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:151: warning: `Energy.toggleLed'
> called asynchronously from `Leds.led2Toggle'
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:121: warning: `Energy.toggleLed'
> called asynchronously from `Leds.led1Toggle'
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:91: warning: `Energy.toggleLed'
> called asynchronously from `Leds.led0Toggle'
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:131: warning: `Energy.startLed'
> called asynchronously from `Leds.led2On'
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:101: warning: `Energy.startLed'
> called asynchronously from `Leds.led1On'
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:71: warning: `Energy.startLed' called
> asynchronously from `Leds.led0On'
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:141: warning: `Energy.stopLed' called
> asynchronously from `Leds.led2Off'
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:111: warning: `Energy.stopLed' called
> asynchronously from `Leds.led1Off'
> /opt/tinyos-2.1.1/tos/system/LedsP.nc:81: warning: `Energy.stopLed' called
> asynchronously from `Leds.led0Off'
> compiled OctopusAppC to build/micaz/main.exe
> 33290 bytes in ROM
> 2457 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
>
> *** I assume that this means that the compilation is successful ***
>
> 3.) make micaz install,0 mib520,/dev/ttyUSB0
> ==> then do this for the other nodes, incrementing only the number beside
> the "install"; i.e.) install,1
>
> 4.) Open Serial Forwarder first by:
>
> java net.tinyos.sf.SerialForwarder
>
> ==> change the mote communications port to the utilized port :
>
> serial@/dev/ttyUSB1:micaz
>
> ==> then refresh server
>
> ==> This is the output at the screen:
>
> Listening to serial@/dev/ttyUSB1:micaz
> Listening for client connections on port 9002
> serial@/dev/ttyUSB1:57600: resynchronising
>
> 5.) cd /opt/tinyos-2.1.1/apps/OctopusDashboard/java
> 6.) make
> 7.) export MOTECOM=serial@/dev/ttyUSB1:micaz
> 8.) java OctopusGui
>
> *** The GUI displayed itself, but issued an error message:
>
> serial@/dev/ttyUSB1:57600: resynchronising
> Exception in thread "Thread-2" java.lang.Exception: TOSComm JNI library
> runtime error: read: Resource temporarily unavailable
> at net.tinyos.comm.TOSCommJNI.NativeSerial_read__SWIG_1(Native Method)
> at net.tinyos.comm.NativeSerial.read(NativeSerial.java:195)
> at
> net.tinyos.comm.TOSSerial$SerialInputStream.gather(TOSSerial.java:163)
> at
> net.tinyos.comm.TOSSerial$SerialInputStream.available(TOSSerial.java:183)
> at
> net.tinyos.packet.SerialByteSource.readByte(SerialByteSource.java:111)
> at net.tinyos.packet.Packetizer.readFramedPacket(Packetizer.java:271)
> at net.tinyos.packet.Packetizer.run(Packetizer.java:227)
> at java.lang.Thread.run(Thread.java:636)
>
> *** The GUI works (I think) but it doesn't show any nodes on the screen.
> ***
>
> Please help. I am trying to use a visualization tool like the Octopus
> Project to test if my proposed time-synchronization algorithm is sufficient
> to reduce clock offset and skew. Unfortunately, there is no TinyViz in
> tinyos-2.x, so my options are Octopus and MViz. But MViz can only express a
> one-hop type of algorithm, it doesn't support multi-hop (which I have
> incorporated in my time-synchronization algorithm)
>
> Any help would be great! Thank You!
>
>
> **********************************************************************************************************************************************************************************************
>
> Christian To
> University of the Philippines
>
> _______________________________________________
> Octopus-users mailing list
> Octopus-users at tddft.org
> http://www.tddft.org/mailman/listinfo/octopus-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.tddft.org/pipermail/octopus-users/attachments/20100902/88ed8c11/attachment.html
More information about the Octopus-users
mailing list