전체보기
-
-
[#ifdef ~ #endif] 조건부 처리대학원 연구/TinyOS 2009. 2. 5. 11:07
오랜만에 C++ 상속에 대해 고민좀 하다가 조건부 컴파일이란 걸 보고 쓰게 됨. #define, #ifdef, #ifndef, #endif 등 이것들을 '전처리기' 라고 합니다. a. #define은 '매크로' 라고도 하며 값을 정의(치환)하는 역할을 합니다. b. #ifdef는 'if define' = '만약 정의되어 있다면' 이란 뜻입니다. c. #ifndef는 'if not define' = '만약 정의되어 있지 않다면' 이란 뜻입니다. d. #endif는 꼭 b, c 끝에 써줘야 합니다. 전처리기 순서로 해석을 해보겠습니다. #define STAR 'STAR' 라는 이름을 정의. #ifdef STAR printf("Star "); #endif 만약 'STAR' 라는 이름이 정의되어 있다면, "St..
-
-
Tython for A dynamic simulation environment for sensor networks대학원 연구/TinyOS 2009. 1. 15. 20:52
TythonA Dynamic Simulation Environment for Sensor NetworksMichael Demmer and Phil Levis Overview Tython is an environment for testing and analyzing sensor network applications. Tython is itself not a program simulator -- it uses TOSSIM to model TinyOS execution. Tython compliments TOSSIM executions by adding a full featured scripting environment to augment the simulation. This allows users to bu..
-
[TOSSIM] TinyViz 테스트 하기대학원 연구/TinyOS 2009. 1. 15. 17:17
TinyViz: The TOSSIM User Interface TinyViz provides an extensible graphical user interface for debugging, visualizing, and interacting with TOSSIM simulations of TinyOS applications. Using TinyViz, you can easily trace the execution of TinyOS apps, set breakpoints when interesting events occur, visualize radio messages, and manipulate the virtual position and radio connectivity of motes. In addi..
-
[TOSSIM]Tinyviz 사용법대학원 연구/TinyOS 2009. 1. 15. 17:03
질문 > >TinyViz로 시뮬레이션을 해보려 하는데 실행이 잘되지 않네요.. >첫번째로, tinyviz.jar을 생성하기 위해서 /tools/java/net/tinyos/sim에 들어가서 make를 해보아도 tinyviz.jar가 생성되지 않습니다. > >그런데도 tinyviz는 실행이 됩니다. >그런데 실행이 될때 이상하게도 java의 exception이 나옵니다. specific한 platform, tosMsg를 찾을 수 없다는 메시지와 여러개의 자바 exception이 나옵니다. 그런데도 tinyviz가 실행이 됩니다. 물론 잘 돌아가는것 같진 않구요. > >시뮬레이션 start를 눌러도, simulation time이 올라가지 않습니다. ㅠㅠ > >뭐가 문제일까요?.. > >저는 윈도우 2000..
-