05-09-2013 дата публикации
Номер: US20130232402A1
A method for processing sensor data and a computing node are provided. The method is applied to a computing node, and the computing node includes a hardware layer, an OS running on the hardware layer, and a browser engine running on the OS, where the hardware layer includes a first sensor device. The method includes: sensing, by the first sensor device, a state change, generating sensor data, and transmitting the sensor data to the OS in form of an event; determining, by the OS, an event type of the event according to the sensor data, and transmitting the sensor data and the event type to the browser engine; determining, by the browser engine according to the event type, that the event has been registered, and executing processing logic of the event. Thus the written application is capable of running on different OSs, thereby enabling an application to run across platform. 1. A method for processing sensor data comprising:sensing, by a first sensor device of a computing node, a state change, wherein the computing node comprises a hardware layer, an operating system (OS) running on the hardware layer, and a browser engine running on the OS, wherein the hardware layer comprises the first sensor device;generating sensor data;transmitting the sensor data to the OS in a form of an event;determining, by the OS, an event type of the event according to the sensor data;transmitting the sensor data and the event type to the browser engine, wherein the sensor data is transmitted to the browser engine in the form of the event;determining, by the browser engine, according to the event type that the event has been registered; andexecuting processing logic of the event.2. The method according to claim 1 , wherein the browser engine comprises a browser Shell claim 1 , a web page parsing and rendering engine claim 1 , and a script parsing engine claim 1 , and wherein determining claim 1 , by the browser engine claim 1 , according to the event type that the event has been registered ...
Подробнее