|
We can treat a PC as the JINI device. The PC will run JINI components as register as a JINI device to the network. This PC will provide the interface between the Sensor Network application and the JINI capable network. The Sensor Network gateway device will be connected to the serial port of this PC. As in the previous approach, here also we have to create a service in the JINI framework indicating the Sensor Network application. The PC will provide that service. For example, we have an application that queries what are the items in the refrigerator. Whenever this service will be quired in the network this PC will respond to that service query. From the JINI framework a function of the Sensor Network application will be called that will query the sensors in the intelligent refrigerator to report the items and their quantity and deliver it to the gateway. As the gateway is connected to the PC the PC will collect that data, if needed do some processing and supply to the querier application.
As in the the previous approach, the Sensor Network application can provide a port (TCP/IP) so that other JINI services/applications can connect to the Sensor Network application. These JINI services/applications will send their query to the Sensor Network application through this port. The Sensor Network application should also provide some support methods/services that will be called from the JINI framework.
|