發表文章

目前顯示的是 11月, 2012的文章

Connect to OSX Server.app postgresql on Mountain Lion « Shell Person

Connect to OSX Server.app postgresql on Mountain Lion « Shell Person : 'via Blog this'

[Warning] Time Machine Backup can not work fine on OS X Server

Be careful that Time Machine can not backup OS X Server services. My wiki service crashed and I restored my entire hard disk using Time Machine. And then.... Wiki service still crash....And now I am worry about whole wiki date gone....WHAT THE FUCK... Related article: http://www.bill.eccles.net/bills_words/2008/08/designed-to-fail-apple-time-ma.html http://support.apple.com/kb/PH8384

RIPS working staus (11/27/2012)

After long time searching web and ready TinyOS 1.x documents. I already let RIPS Java tools worked. But. Because I only have 4 motes. 1 for station. 3 for motes. We need at least one more motes let RIPS work all functions. Still waiting for new motes shipping to me. Related works: http://kiwi.sndb.net/wiki/projects/rips/RIPS_research.html http://kiwi.sndb.net/wiki/pages/95w1_1/Java_codes_in_RIPS.html At this moment. I can not waste time. Following is something we should prepare first. 1. Start trace RIPS Java codes. Find algorithm to calculate localization. 2. Start trace RIPS TinyOS codes. Try to find algorithm to measurement distance.

How to compile java code that import classes from different directory?

I am stock this problem for a while. And finally I find my anser via follwing link: http://stackoverflow.com/questions/631682/help-with-packages-in-java-import-does-not-work Okay, just to clarify things that have already been posted. You should have the directory  com , containing the directory  company , containing the directory example , containing the file  MyClass.java . From the folder containing  com , run: $ javac com\company\example\MyClass.java Then: $ java com.company.example.MyClass Hello from MyClass! These must both be done from the root of the source tree. Otherwise,  javac  and  java  won't be able to find any other packages (in fact,  java  wouldn't even be able to run  MyClass ). A short example I created the folders "testpackage" and "testpackage2". Inside testpackage, I created TestPackageClass.java containing the following code: package testpackage ; import testpackage2 . MyClass ; public class TestPackageClass

How to compile RIPS Java programs?

*This document is clone form my wiki RIPS Java Codes RIPS Java codes located in : /tinyos-1.x/contrib/vu/tools/java/ related documents : /tinyos-1.x/contrib/vu/tools/java/isis/nest/localization/ripsls/compilationInstructions.txt /tinyos-1.x/contrib/vu/tools/java/isis/nest/localization/ripsls/rips_doc.zip Environment Preparation 1. include *.jar from contrib/vu/tools/java/jars files to your CLASSPATH How to include CLASSPATH ? export CLASSPATH=$CLASSPATH:/opt/tinyos-1.x/contrib/vu/tools/java/jars 2. But there are no make file in these locations. So how to build it? Ans: Just use javac *.java in all java folders. 3. By the way. Source code uses "javax.comm" class. And this class is not part of standard java classes. We need install javax.comm package. About javax.comm javax.comm is extension package for java. official description here official FAQ here official released library download path more reference link We should download librry and in

install tinyos-1x under WindowsXP

Because I am wondering if using XP environment is better for RIPS project. Today I try to install tinyos-1x into windowsXP based on Memsic MoteWorks 3.2 environment. Following this steps: http://wsn.cse.wustl.edu/index.php/TinyOS_1.x_Installation_on_Windows_XP It can compile nc files correctly. I didn't finished java SerialForwarder application connection test. It seems fail to connect MICA2 serial port. So sad. According to some test. I think the result will same as Linux. So I decide switch back to Linux and keep going.

Need more motes for build RIPS environment

According to RIPS's document shows. http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-1.x/contrib/vu/apps/RipsOneHop/readme.txt?view=markup We need at least 5 motes for simulate RIPS. 1 for TOSBase and 4 for RipOneHop application. So we need purchase at least one more. Need to discuss with professor tomorrow.

How to restore OS X Wiki Service

由於我自己架的OS X Server Wiki Service 掛掉了,不明原因,只好找救回來的方法,Time Machine也不小心被我玩壞了,所以找直接備份database的方法看是否可以重灌丟回新的機器: 官方說明: (for Lion) http://support.apple.com/kb/HT5082?viewlocale=en_US&locale=en_US (for Mountain Lion)  http://support.apple.com/kb/HT5585 其他網友說明: https://discussions.apple.com/thread/4160366?start=0&tstart=0 https://discussions.apple.com/thread/3243481?start=0&tstart=0

2 motes connect success in Linux TinyOS 1.x envirement

終於完成了在Linux TinyOS 1.x環境下面build出可以互相同連的傳送跟接收的motes. 關於讓他們無線連線,需要指定Group ID以及transceiver的frequency: 我依照TinyOS Build Environment的建議,增加 /opt/tinyos-1.x/tools/make/Makelocal 檔案增加customize的參數如下: DEFAULT_LOCAL_GROUP = 0x33 PFLAGS += -DCC1K_DEF_FREQ=916700000 另外在java部分有下面心得: 開啟連線前,需要設定MOTECOM參數讓程式知道溝通的serial port: export MOTECOM=serial@/dev/ttyUSB1:mica2 關閉連線後:unset MOTECOM 把此參數清掉,但我自己測試發現沒清掉也沒關係才對,之後的程式可以沿用讀取沒有關不掉的問題。

Got "flash error at address" problem when install mica2 program under linux envirement

目前在Linux開方平台上面遇到當install到mica2的時候,會有無法燒錄進去的問題,而且把make好的binary拿到PC上使用MoteWorks的環境燒錄也不行,似乎欠缺一些指定平台的參數,目前正在測試當中。 現在找到的可能問題如下網址: https://www.millennium.berkeley.edu/pipermail/tinyos-help/2008-June/034667.html 看來應該確定是設定的問題,因為後來我打make mica2 help查詢可以使用的make command發現,似乎因為是舊版本的關係,他無法認出"make mica2 install mib520,/dev/ttUSB0"中的mib520是什麼裝置,所以就將系統導到使用預設的dapa(use parallel port programmer),但我們應該是使用serial port的才對,所以mib520改成使用mib510即可pass。

完成MoteWorks 2.0系統建置

原本使用MoteWorks_3.2在Win7下面企圖安裝,看來是安裝OK沒有問題,但欠缺原本使用手冊寫道的Programmer's Notepad這套軟體,感覺好像變不好用了,所以跟代理商要了Crossbow時代的MoteWorks_2.0.F. MoteWorks_2.0.F安裝在WinXP上,一開始Cygwin不正常,用下面方式避開了錯誤,就是先只安裝他原本的Cygwin,之後更新網路上最新版本的Cygwin,接著才重新做一次full installation,就可以正常的執行完成安裝動作。 Programmer's Notepad的make指令測試OK沒問題。 後面的開發發現,RIPS不是使用MoteWorks開發的,由於MoteWorks不是標準的TinyOS系統,有被Crossbow修改過,所以環境上很難去compiler RIPS的code,所以後來重新安裝了linux的版本,TinyOS 1.0的contribute目錄已經包含了RIPS的程式碼,可以直接make成功。