Software for Android Platform VCNL4020 and VCNL3020

Similar documents
Board also Supports MicroBridge

How to Install Applications (APK Files) on Your Android Phone

Adobe Summit 2015 Lab 718: Managing Mobile Apps: A PhoneGap Enterprise Introduction for Marketers

INF-USB2 and SI-USB Quick Start Guide

UP L18 Enhanced MDM and Updated Protection Hands-On Lab

M100 System File Manager Help

Debugging Export Connectors With Visual Studio.NET

Example Connection between USB Host and Android

Health Monitoring Demo for ice40 Ultra Wearable Development Platform User Guide. UG103 Version 1.0, September 2015

Homework 9 Android App for Weather Forecast

Network DK2 DESkey Installation Guide

Using. Microsoft Virtual PC. Page 1

Android, Bluetooth and MIAC

Global Image Management System For epad-vision. User Manual Version 1.10

HP Client Automation Standard Fast Track guide

How To Manage Inventory On Q Global On A Pcode (Q)

SSL VPN Setup for Windows

Grandstream Networks, Inc.

Active Directory Integration for Greentree

Samsung KNOX EMM Authentication Services. SDK Quick Start Guide

POPP Hub Gateway. Manual

Utilizing SASED OneDrive Cloud Storage

XConsole GUI setup communication manual September 2010.

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

Centrify Mobile Authentication Services for Samsung KNOX

FrontDesk Installation And Configuration

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

NetIQ. How to guides: AppManager v7.04 Initial Setup for a trial. Haf Saba Attachmate NetIQ. Prepared by. Haf Saba. Senior Technical Consultant

Silk Test Testing Mobile Applications

Qualcomm IR-I 2 C Bridge Demo

Analatom, Inc., 3210 Scott Blvd., Santa Clara, CA Phone: (408) Fax: (408)

Database Assistant. Once Database Assistant is installed you must login to gain access to the database. Copyright 2009

Summer 2013 Cloud Initiative. Release Bulletin

Running a Program on an AVD

CODESOFT Installation Scenarios

Migrating helpdesk to a new server

Cisco SSL Encryption Utility

Install MS Office 365 on your Android mobile device

Data Logging Software and Cable Bundle Model DL-SC3 User Manual. Overview

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

GETTING STARTED WITH SQL SERVER

Android Setup Phase 2

Updating Your Applied Account

ESC Mobile App Guide

QSG105 GETTING STARTED WITH SILICON LABS WIRELESS NETWORKING SOFTWARE

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

The KSystemLog Handbook. Nicolas Ternisien

Important Notes for WinConnect Server ES Software Installation:

How to use FTP Commander

Tips and Tricks SAGE ACCPAC INTELLIGENCE

Gauge Drawing Tool Slider Drawing Tool Toggle Button Drawing Tool One-Way List Drawing Tool... 8

Introduction to Gear VR Development in Unity APPENDIX A: SETUP (WINDOWS 7/8)

Lab 0 (Setting up your Development Environment) Week 1

New Technology Introduction: MIT App Inventor

NaviPac Alarm Monitor

How to downgrade Samsung Galaxy Tab 2 back to original V4.1.1 Android OS

Pharos Control User Guide

Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide

Quick Start Using DASYLab with your Measurement Computing USB device

VIRTUAL SOFTWARE LIBRARY REFERENCE GUIDE

Installation Guide v1.11 and Higher

POEMS Trading Platform (CFD)

HP-1000 Powerline Ethernet Adapter

NS DISCOVER 4.0 ADMINISTRATOR S GUIDE. July, Version 4.0

HP-1000 Powerline USB Adapter

How do I configure the wireless printer using a USB or Ethernet cable and install the printer driver in Windows?

Setting Up Monthly Reporter

Licensed Functionality: Remote Monitoring

Backup Server DOC-OEMSPP-S/6-BUS-EN

Client for Macintosh

Monitoring ESX/ESXi servers with Verax NMS & APM

Windows 8.1 Tips and Tricks

How To Configure CU*BASE Encryption

NAS 249 Virtual Machine Configuration with VirtualBox

Digital I/O: OUTPUT: Basic, Count, Count+, Smart+

-Android 2.3 is the most used version of Android on the market today with almost 60% of all Android devices running 2.3 Gingerbread -Winner of

CSA Software Listing Table of Contents. Both Windows and Mac platforms are supported.

Application Notes: MaxACD Connector For Salesforce

Vess A2000 Series. NVR Storage Appliance. Windows Recovery Instructions. Version PROMISE Technology, Inc. All Rights Reserved.

Remote Desktop Solution, (RDS), replacing CITRIX Home Access

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

Avaya IP Office 9.1. Set Up Guide for The IP Office Anywhere Demo Platform

GO!Enterprise MDM Device Application User Guide Installation and Configuration for Android with TouchDown

Android Programming and Security

APP ANALYTICS PLUGIN

XenMobile Logs Collection Guide

Tutorial. Patch Management

Note: With v3.2, the DocuSign Fetch application was renamed DocuSign Retrieve.

OPENGATE SMALL BUSINESS SOFTWARE

Application Notes: MaxCS Connector For Salesforce.com

Battery Xplorer Enterprise Software Release Notes 3.2

RecoveryVault Express Client User Manual

Installing S500 Power Monitor Software and LabVIEW Run-time Engine

Imaging License Server User Guide

BuzzTouch ios Push Notifications

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

Smart TPM. User's Manual. Rev MD-STPM-1001R

In this lab you will explore the Windows XP Firewall and configure some advanced settings.

KCU Communication. PC Software Installation and User s Guide For KCU-30 / KCU-40 / KCU-50 modules. System requirement: Windows XP or above

System Area Manager. Remote Management

Transcription:

VISHAY SEMICONDUCTORS www.vishay.com Optical Sensors This document is supplied with Vishay s Android software solution for the. This complete software package comes with all the necessary parts to simplify the integration of the VCNL4020 or VCNL3020 into an Android platform running Android version 4.0.1 or later. For demonstration purposes, the BeagleBoard-xM running Android v4.0.1 was used as a reference platform. If the same hardware is to be used, further information regarding where to purchase such a BeagleBoard-xM can be found here. The provided zip file VCNL4020_Android-SW v 1.0.zip, depicted in Figure 2, contains the documentation, source, and patch files required to allow an Android-based platform to communicate with the VCNL4020 or VCNL3020. This communication follows the standard Android sensors framework, as depicted in Figure 1. Fig. 1 The supplied Android VCNL4020 driver consists of two parts: the kernel module responsible for the data control and acquisition from the VCNL4020 or VCNL3020; and the subsequent HAL (Hardware Abstraction Layer) module to link the kernel to the main Android framework, allowing the information supplied by the sensor to be used by Android applications. An example Android app has also been included (VCNL40x0-DemoApp.apk), along with its associated source code, upon which user-specific Android applications can be built. Revision: 15-Apr-13 1 Document Number: 84188

DOCUMENTATION Fig. 2 The provided documentation files are Development Documentation.pdf and Integration Guide.pdf. The Development Documentation file describes how the sources are to be compiled in order to be used with the reference platform. When successfully compiled, the kernel and HAL modules are generated. In order to further simplify the build process, a build script is supplied, which is also documented in this file. The Integration Guide file describes how the VCNL4020 or VCNL3020 is to be integrated with the BeagleBoard xm. A description of both the kernel and the user space Android HAL module required for the integration is supplied. Furthermore, the document supplies information regarding the source files used to build these modules, which are also included in the zip file. The modules patches and the corresponding sources are supplied both in the form of the integration patch for all device repositories and specifically for the integration into the HAL of the reference repository. Information on how to apply these patches is also given in the guide. INCLUDED FILES Figure 3 includes an overview of the files supplied with the VCNL4020 software package. Fig. 3 The DemoApp folder contains the demonstration app along with its source code. The Sources folder contains all the necessary sources in order to compile the required Android kernel and HAL patches. Further information regarding the files located in the sub folders can be found in the Integration Guide. The current versions of the compiled patches can be found in the Patches folder. If the source code is expanded and the source needs to be recompiled, the build script used to ease this process is located in the Misc folder. The remaining VirtualMachine folder contains an incomplete virtual machine for our set-up build environment. The folder is incomplete as it is only needed for our own evaluation with the BeagleBoard-xM reference platform. The entire environment has not been included as the zip file size would increase to about 50 GB. However, if the build environment is required, please contact sensorstechsupport@vishay.com. Revision: 15-Apr-13 2 Document Number: 84188

BEAGLEBOARD-XM EXPANSION The development was done using the BeagleBoard-xM as a reference platform, with the VCNL4020 sensor board connected via the expansion connector. This connector provides the I 2 C lines required to interface with the VCNL4020 or VCNL3020. The general set-up is shown in Figure 4. Fig. 4 This interconnection board takes care of the I 2 C bus as well as the needed power supply. The 3.3 V supply voltage for the sensor is created by a small voltage regulator tied to 5 V. The necessary I 2 C bus pull-up resistors are connected to 1.8 V. The connections are depicted in Figure 5. Fig. 5 Revision: 15-Apr-13 3 Document Number: 84188

VCNL40x0 DEMO APP The Android software package comes with an Android demonstration app, VCNL40x0-DemoApp.apk, which can be run on any Android platform running v.4.0.1 or higher. It is to be used both for testing purposes and by developers as a base for building further Android applications. To install this.apk, simply use an Android file manager such as ASTRO File Manager or copy the file onto a web server in order to open the file via a link directly from the phone. The Android Debug Bridge can also be used with the command: adb install -r <application.apk>. After successful installation, the icon shown in Figure 6 will be added to your home screen. Selecting the icon will launch the application and take you to the Proximity tab, as shown in Figure 7. Fig. 6 Fig. 7 The displayed information shows that the device is successfully communicating with the VCNL4020 or VCNL3020. The Value is an indication of the information sent to the app through the Android sensor manager. This value changes to 0.0 when an object is within 5 mm of the sensor, as a proximity event has been through the Android sensor API. The "Sensor Enabled" button registers the app for system updates. Revision: 15-Apr-13 4 Document Number: 84188

Selecting the Ambient Light tab will display the ambient light menu, as shown in Figure 8. Fig. 8 Again the sensor information is read and displayed and the Sensor Enabled button registers the app for system updates. The Value field continuously updates with the current ambient light value as read by the VCNL4020. Note that the VCNL3020 does not contain an ambient light sensor. The LocalFile tab brings up a blank screen unless the VCNL4020 is being used (Figure 9). Fig. 9 Revision: 15-Apr-13 5 Document Number: 84188

After setting up the reference platform and applying the patches, the LocalFile menu displays what is shown in Figure 10. Fig. 10 Here the current status of the proximity and ambient light measurements are displayed, along with the corresponding threshold values. If the Refresh button on the bottom left is toggled ON, these values are continuously updated and the latest values read by the VCNL4020 sensor are shown. The Reset button resets the values along with the threshold values. For example, if the environment is changed by placing glass over the sensor - as it would be in a mobile phone - the Reset button can be pressed after the glass has been put into place. The proximity detection in the Proximity menu will now react to the newly set threshold, taking the new offset values into consideration. The new threshold values are taken and the new upper limit is set 200 counts above this. The new lower limit used to switch on again is taken as half the upper limit counts (i.e. 100 counts). These values are displayed as Threshold max. and Threshold min. in the logging data. Further information such as the amount of measurements taken, icountstatus, or an average of the measured proximity values, Av, is also displayed. REMARK: This Android software may also be used for the VCNL4010 without any changes. Revision: 15-Apr-13 6 Document Number: 84188