- From: Nilsson, Claes1 <Claes1.Nilsson@sonyericsson.com>
- Date: Wed, 5 Oct 2011 15:47:29 +0200
- To: "public-device-apis@w3.org" <public-device-apis@w3.org>
- Message-ID: <6DFA1B20D858A14488A66D6EEDF26AA35D61FEDDA5@seldmbx03.corpusers.net>
Hi, I have created a simple demo that finds and displays the values of sensors in the current device as well in another wifi connected device. It implements the Webinos Service Discovery API, http://dev.webinos.org/specifications/draft/servicediscovery.html, and the Webinos Sensor API, http://dev.webinos.org/specifications/draft/sensors.html, It works for Android 2.2 and later. The demo is here: http://www.semcsensors.appspot.com/ . The implementation of the Webinos Discovery and Sensor APIs use a simple REST API towards a local web server that provides access to the Android sensors . You need to download, install and start the local server. Link to this server is on the demo application page. To get access to sensors on another Android device set this other device as a WiFi hotspot and connect to this device with WiFi from the device running the demo application. Then you will get a list of both the internal sensors and sensors on the other device. Note that the internal web server must be running on this other device as well. You can also run the demo application in your PC and connect with WiFi to an Android device and get access to the sensors on this device. By some reason you have to reload the demo application page after loading it the first time. Note that this demo uses the Webinos sensor API and it displays the values of all sensors it finds in the Android device, including the accelerometer and compass values. This does not mean that I am convinced that the final version of the sensor API should provide access to accelerometer and compass. Access to these sensors are covered by the W3C Device Orientation API and we should probably not duplicate this functionality. However, I decided for demo purposes to include all Android sensors to show the general principle. Best regards Claes [cid:image001.gif@01CC8364.545ED0D0] Claes Nilsson M.Sc.E.E Master Engineer, Research Technology Research - Advanced Application Lab Sony Ericsson Mobile Communications Phone: +46 10 80 15178 Mobile: +46 705 56 68 78 Switchboard: +46 10 80 00000 E-Mail: mailto:claes1.nilsson@sonyericsson.com Visiting Address; Nya Vattentornet SE-221 88 LUND, Sweden Disclaimer: The information in this e-mail is confidential and may be legally privileged. It is intended solely for the named recipient(s) and access to this e-mail by anyone else is unauthorized. The views are those of the sender and not necessarily the views of Sony Ericsson and Sony Ericsson accepts no responsibility or liability whatsoever or howsoever arising in connection with this e-mail.Any attachment(s) to this message has been checked for viruses, but please rely on your own virus checker and procedures. If you contact us by e-mail, we will store your name and address to facilitate communications. If you are not the intended recipient, please inform the sender by replying this transmission and delete the e-mail and any copies of it without disclosing it.
Attachments
- image/gif attachment: image001.gif
Received on Wednesday, 5 October 2011 13:48:02 UTC