Wednesday Oct 15, 2008

SunSPOT simulator

This will be only brief topic around SPOT simulator called Solarium.  Solarium you can run for device simulation. You can create more than one SPOTs and play with them. Solarium is the part of SPOTManager. You have to download jnlp and run it.

In SPOTmanager here is tab Solarium. When you run it you get silulator workplace. Here you can place any of SPOTs (Emulator-> New virtual SPOT). Write a code for SPOT is on you.

Enjoy!

Thursday May 22, 2008

Solarium Emulator - usage

Solarium Emulator who is available on SunSPOT purple SDK (Download Manger and additional demos) can be very useful for students or developeres which don't have physical SunSPOT yet. If Profesor decide to use SunSPOT for education purposes he can assign homework to it :). It could be very interesting for students too. 
For very quick introduction follow this entry. 

1. Start up Sun SPOT Manager tool
2. Click on Solarium tab and on Solarium button -> SPOTworld Emulator should start
3. Add new virtual SPOT ( Emulator -> Add new virutal SPOT )
4.  You can change a name (Right click on SPOT -> Set Name) if you want. But you should assign SPOT application by right click again ( Right click on SPOT -> Specify application jar file .. )


5. Now you can start up your application and display inputs from eDemoSensor board ( Right click on SPOT -> Display sensor panel ) [Image 1]

 

6. It's very useful to see output of your SPOT application ( Right click on SPOT -> Display applicaiton output ) [Image 2]
7. And in the end here is a source code of application output. SPOT applicaion you have to build and after that you have to assign it to your virtual SPOT [Image 3]


Tuesday May 13, 2008

Solarium Emulator, squawk.exe and Windows processes

I every priciate Solarium emulator ( pic. 1 ) . It's realy cool simulate SunSPOT environment without real device. But I think there is small issue inside windows with running processes.  


Issue rised up when you have opened New virutal SunSPOT,  java VM squawk has been stared up too. Problem is that when you want to close virtual SunSPOT or whole Solarium all your squawk processes are still running ( pic. 2 ). It can slow down you computer and also your fan is working more. It will be nice when all squawk processes could be closed when you close virtual sunspot or Solarium.

 

Solution: press <CTRL>+<ALT>+<DEL> processes manager is open and destroy this processes there.

SunSPOT Solarium - windows XP issue

I want to inform windows users about known issue under this operating system. It appears when you want to  try out Solarium and than you are adding new virtual SPOT device. You usually got this error state in SOLARIUM report (inside Sun SPOT Manager tool ).  

[    [java] [Emulator System.err] Uncaught exception in Thread.run():
     [java] [Emulator System.err]     on thread com.sun.squawk.imp.MIDletMainWr
apper - main
     [java] Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBounds
Exception: 0 >= 0
     [java]     at java.util.Vector.elementAt
(Vector.java:427)
     [java]     at javax.swing.tree.DefaultMutable
TreeNode.getChildAt(DefaultMutableTreeNode.java:230)

problem is inside the file .sunspot.properties [C:\\Documents and Setting\\<user name>\\...]. Inside this file you have to change the variable sunspot.home. After this change you have to restart yours SPOTManager, of course !
And now you can use sunspot simulator in the normal way :)

Example:
from: sunspot.home=C:/Program Files/Sun/SunSPOT/sdk
to: sunspot.home=C:/PROGRA~1/Sun/SunSPOT/sdk

 

About

My experience as a software engineer, ambassador, coordinator and university relation

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today