Difference between revisions of "WCPS: Wireless Cyber-Physical Simulator"

From Cyber-Physical Systems Laboratory
Jump to navigationJump to search
Line 16: Line 16:
 
Current release of WCPS under  TinyOS 2.1.1, which can be installed following the three methods.
 
Current release of WCPS under  TinyOS 2.1.1, which can be installed following the three methods.
  
*1. Follow the TinyOS official tutorial on installation of TinyOS for your specific platform: [http://docs.tinyos.net/tinywiki/index.php/Getting_started#User_Contributed_Methods Link] Links: [http://dl.acm.org/citation.cfm?id=2426658 Paper]
+
*1. Follow the TinyOS official tutorial on installation of TinyOS for your specific platform: [http://docs.tinyos.net/tinywiki/index.php/Getting_started#User_Contributed_Methods Link]
*2. Directly download the pre-tested Cygwin or MacOS image for TinyOS 2.1.1.
+
*2. Directly download the pre-tested TinyOS 2.1.1 image for:  [http://docs.tinyos.net/tinywiki/index.php/Getting_started#User_Contributed_Methods Link]
  
 
==== Install Mac Layer Architecture(MLA) ====
 
==== Install Mac Layer Architecture(MLA) ====

Revision as of 18:40, 7 February 2013

End-user's Tutorial on using WCPS: Wireless Cyber-Physical Simulator

Normal User Tutorial on the Wireless Cyber-Physical Simulator(WCPS) WCPS is design for, but not limited to, realistic Wireless Structural Control simulations. The layered infrastructure and efficient integration of state-of-the-art control and wireless networking tools, i.e., Simulink and TOSSIM, have made WCPS an ideal choice for general wireless control simulations with Simulink and TOSSIM.

As an exemplary example of Cyber-Physical Systems that perform close-loop control using real-time sensor data collected through wireless sensor networks, Wireless Structural Control (WSC) systems can play a crucial role in protecting civil infrastructure in the events of earth quakes and other natural disasters. Existing WSC research usually employ wireless sensors installed on small lab structures, which cannot capture realistic delays and data loss in wireless sensor networks deployed on large civil structures and their impacts on structural control. The lack of realistic studies and tools that capture both the cyber (wireless) and physical (structures) aspects of WSC systems represent a hurdle for cyber-physical systems research for civil infrastructure.

WCPS advances the state of the art of WSC and Cyber-physical System through the following contributions. First, it for the first time presents an integrated environment that combines realistic simulations of both wireless sensor networks and structures. WCPS integrates Simulink and TOSSIM, a state-of-the-art sensor network simulator featuring a realistic wireless model seeded by signal traces. Second, release of WCPS in comprised of two realistic case studies each matching a structural model with wireless traces collected from real-world environments. The building study combines a benchmark building model and wireless traces collected from a multi-story building. The bridge study combines the structural model of the Cape Girardeau bridge over the Mississippi River and wireless traces collected from a similar bridge (the Jindo Bridge) in Korea. These case studies shed lights on the challenges of WSC and the limitations of a traditional structural controller under realistic wireless conditions.

The following tutorial introduces in detail how to configure general MATLAB, TinyOS, and PYTHON environments, as well as the WCPS framework. The tutorial herein is an end-user version specifically for end-users that do not do much development but instead trying to do wireless control simulations with Simulink, TOSSIM and WCPS. An advanced tutorial on in-depth TinyOS development (e.g., routing protoocls, MAC layer development) with WCPS can be found [here].

Software Environment Setup

Software Requirements

Install TinyOS

WCPS is implemented and tested on MacOS X (snowleopard), Windows XP, and Windows 7. Current release of WCPS under TinyOS 2.1.1, which can be installed following the three methods.

  • 1. Follow the TinyOS official tutorial on installation of TinyOS for your specific platform: Link
  • 2. Directly download the pre-tested TinyOS 2.1.1 image for: Link

Install Mac Layer Architecture(MLA)

Install MATLAB and Simulink

Install Python

Environment Setup Testing

Wireless Network Modeling in WCPS

Application Layer

Mac Layer

Physical Layer

Real-world Wireless Traces

Traces from a 4-story building

Traces from a cable-stayed bridge

Example

Application layer code:

* navigation
** mainpage|mainpage
** Special:Recentchanges|Recent changes

Simulink Modeling in WCPS

General simulink modeling

Structural models in WCPS

Example

Application layer code:

* navigation
** mainpage|mainpage
** Special:Recentchanges|Recent changes

Integrated Simulation with WCPS

WSC Examples with WCPS

Wireless Building Control

Application layer code:

* navigation
** mainpage|mainpage
** Special:Recentchanges|Recent changes

Wireless Bridge Control

Application layer code:

* navigation
** mainpage|mainpage
** Special:Recentchanges|Recent changes

References

  • B. Li, Z. Sun, K. Mechitov, G. Hackmann, C. Lu, S. Dyke, G. Agha and B. Spencer, "Realistic Case Studies of Wireless Structural Control," ACM/IEEE International Conference on Cyber-Physical Systems (ICCPS'13), April 2013.
  • Z. Sun, B. Li, S.J. Dyke and C. Lu, "Evaluation of Performances of Structural Control Benchmark Problem with Time Delays from Wireless Sensor Network," Joint Conference of the Engineering Mechanics Institute and ASCE Joint Specialty Conference on Probabilistic Mechanics and Structural Reliability (EMI/PMC'12), June 2012.
  • H. Lee, A. Cerpa, and P. Levis. Improving wireless simulation through noise modeling. In IPSN, 2007.
  • P. Levis, N. Lee, M. Welsh, and D. Culler. Tossim: Accurate and scalable simulation of entire tinyos applications. In Sensys, 2003.