發表文章

目前顯示的是有「RIPS」標籤的文章

需要修改程式來因應MICA2 900MHz的差異

根據 NTU UbiComp 的相關研究人員經驗分享,RIPS原本是使用460Mhz的,所以跟目前的900Mhz MICA2有差異,需要修改source code才有機會正常進行distance measurement. 目前正聯絡看看是否可以從台大實驗室拿到之前的成果,假如不行的話只好繼續自己改下去了。

NTU UbicompLab

圖片
找到一個台大實驗室有RIPS經驗 NTU UbicompLab

How to compile code that related other java code in different foder?

For example. We try to compile "tools/java/isis/nest/localization/" folder. But codes related to "tools/java/isis/nest/math/". We can change working folder to "tools/java/" folder and type "javac isis/nest/localization/*.java". Then it work.

[2/26] tinyos 1.x for windows try

Another try to install TinyOS 1.x under WindowsXP. I follow step:  http://www.tinyos.net/tinyos-1.x/doc/install.html And success to install JDK 1.4 + TinyOS 1.x + javax.comm. But this package does not contained contribute source codes. It means without RIPS functions. So I download TinyOS 1.x CVS tarball via sourceforge and try to make java tools again. FAIL.... Next. I may try to contact author that make XubunTOS virtual machine...

[download issue] waiting for anoncvs_tinyos's lock

I got same problem as following issue. Trying to find solution. http://sourceforge.net/p/forge/site-support/2770/ No I download source code via Download GNU tarball link http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-1.x/ Hope it will work.

javax.comm "no serial ports found" issue when run BlackBox

I got "no serial ports found" problem when run javax.comm library sample. My environment: [OS] WinXP SP3 32bit [JDK] jdk1.5.0_11 [javax.comm verison] Javacomm20-win32 Description: I placed my javax.comm files into following directories: ( reference page ) Copy win32comm.dll to C:\Program Files\Java\  jdk1.5.0_11 \jre\bin Copy comm.jar to C:\Program Files\Java\  jdk1.5.0_11 \jre\lib\ext Copy javax.comm.properties to C:\Program Files\Java\  jdk1.5.0_11 \jre\lib I set CLASSPATH as below: c:\commapi\samples\Blackbox\BlackBox.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\comm.jar;C:\commapi\samples\Simple Then I got  "no serial ports found" error when run java BlackBox Solution: I try to do following change copy win32com.dll to C:\Program Files\Java\jre1.5.0_11\bin Copy javax.comm.properties to  C:\Program Files\Java\jre1.5.0_11\lib Then PORT_OWNED correctly. Additional test: I try to compile SerialDemo and r...

try to solve TinyOS 1.x java compile problem

It appears "package javax.comm does not exist" error when I try to javac "/opt/tinyos-1.x/tools/java/net/tinyos/mcenter" folder. I need to find solution! 1. check if javax.comm setup correctly!? I try to setup javax.comm under WinXP again(with JDK 1.1.6). According to following installation guide "Javacomm20-win32/commapi/PlatformSpecific.html" I installed. And BlackBox can run. the sample code "SimpleRead" and "SimpleWrite" also can work. PS. When you want to run .java file. You need set folder that have .java files into "CLASSPATH". Next try. setup javax.comm under WinXP (with JDK 1.5) It shows following error ""No serial ports found!" when run BlackBox. (Solved) TODO List: 直接找RIPS作者看看有沒有Virtual Machine Image. C compile error的部份,問問看forum是否有人有解答

make file for RIPS java files

Because RIPS java code have following compile error: package xxx.xxx.xxx.xxx does not exist So I try to clone makefile rule from "/opt/tinyos-1.x/tools/java/Makefile.include" I do following steps: 1. copy Makefile , Makefile.include into "/opt/tinyos-1.x/contrib/vu/tools/java" 2. copy "jni" directory into   "/opt/tinyos-1.x/contrib/vu/tools/java" 3. Edit Makefile to fit current directory environment "SUBDIRS = isis net jni"

About javax.comm package in WinXP

I am trying to let " javax.comm " work under windows XP.  But it seems doesn't work properly. Any ideas? related websites:  TinyOS 1.x Installation on Windows XP

RIPS real test(12/25)

終於搜集到五個Mica2可以進行RIPS的測試 依照文件 rips_doc.zip 的指示進行操作 Query Motes的部份運作正常 我把三個motes設定位置,並標示為anchor,四個motes都標示為sender,然後進行mote measurement,看起來commands是有出去的,但回傳的結果跟文件說明的不一樣,不知道有沒有成功?沒法看到RecvData以及Ranging資料,以致於後續的功能好像都不是很正常。 按下start localization會回覆: max range:100.0, all abcd measurements:0, good measurements:0 range stat under30=NaN% under100=NaN% 目前還是失敗的....

用光測距在smart device上應用的可行性評估

1. 相對於聲音,光太快以至於沒辦法使用簡單的儀器測量,所以應該不可行。 2. 另一個問題是,光的干擾性更強,無法用螢幕或LED之類已經在device上的可見光實踐,白天大太陽下的侷限更強。 以上兩個就已經打槍讓光測距在行動裝置上難以廣泛使用。

取代红外传感 苹果公布声纳测距专利技术_网络设备业界动态_太平洋电脑网PConline

這是很簡單的原理,但被寫成專利卻是頭一遭~在想論文的時候發現已經被蘋果給註冊了,這應該可以降低成本的測距方式。 取代红外传感 苹果公布声纳测距专利技术_网络设备业界动态_太平洋电脑网PConline : "  专利文件中描述了这样一个测距系统:系统将获取两个声波样本,分别是“之前”和“之后”的声波,通过对这两个声波的对比来判定,被测对象离用户设备的距离是否发生改变。其依赖于当下应用于电子学的基本声学原理。比如说,当设备靠近某个对象,之后离开,麦克风的信号均衡就会相对原本的声源发生弯曲。 " 'via Blog this'

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 ; publi...

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.

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成功。