Download VirtualSense User Guide 2
Transcript
University of Urbino & NeuNet www.virtualsense.it Contents 1 Introduction 5 2 General description and Key Features 6 3 Key components and features 7 4 Architecture 8 5 Hardware and software stacks 9 6 Install VirtualSense Development Kit 6.1 System Requirements . . . . . . 6.2 Installation . . . . . . . . . . . . . 6.2.1 Install Requirements . . . 6.2.2 Install VSDK . . . . . . . . 6.2.3 Install VirtualSense-BSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Basic Application Structure 10 10 10 10 10 12 13 8 VirtualSense API 8.1 Actuators Interfaces . . . . . . 8.1.1 Leds . . . . . . . . . . . . 8.2 Sensors Interfaces . . . . . . . . 8.2.1 ADC . . . . . . . . . . . . 8.2.2 Light . . . . . . . . . . . . 8.2.3 Temperature . . . . . . . 8.2.4 Pressure . . . . . . . . . . 8.3 PowerManagement Interfaces 8.4 Network Interfaces . . . . . . . 8.4.1 Networking example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 16 16 17 17 19 19 20 21 23 25 9 VirtualSense Example 9.1 Hello World example . 9.2 Blink example . . . . . 9.3 Sense example . . . . 9.4 Vscaling example . . 9.5 Multi Thread example 9.6 Radio Test example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 26 27 28 29 31 34 . . . . . . . . . . . . . . . . . . . . . . . . 10 Create a new application VS-UG1-Environment Installation v1.0 . . . . . . 39 2