摘要 |
A sensor device management method in a sensor node operating system is provided to allow the access through the same programming technique although a new device is mounted by offering an unified API for various sensor devices. If a new device is mounted, a device driver is registered in a Driver Function List through an Insert_TD() function. A device name, index, type and function pointer are recorded in a Transducer Device Table. An Application Program obtains information about a corresponding device driver pointer from the Transducer Device Table through an open() function. The access to the corresponding Driver Function is made through the pointer. The Transducer Device Table is used, controlled and released by the open(), close(), read(), write(), register_handler() and ioctl().
|