Hi Jay, Great service at the first try of IOTivity. Ok, I have few more Questions about this soft-sensor manager service now.
1. Are, only "THSensorApp" and "THSensorApp1" belong to "DiscomfortIndexSensor sample query".? or Do we have any other Sensors to Register under "DiscomfortIndexSensor sample query".? 2. I can see here "HeightSensorApp" and "WeightSensorApp" as well. Where these two can be used again? 3. What do you mean by "IndoorTrajectorySensor sample query".? 4. How can I use "Register Query" and "Unregister Query".? Parallely, I will look into the "/iotivity/service/doc/SSM - Programmer's guide_v0.9.0.pdf" Thanks your time Jay, Regards, Ganesh On Thu, Apr 16, 2015 at 3:13 PM, ??? <junghyun.oh at samsung.com> wrote: > Hi Ganesh, :) > > > > There are 5 sample applications for testing the features of the > Soft-Sensor manager. > > SSMTesterApp is an application with Soft-sensor Manager & Softsensors > inside. > > Last of them are all sample resource server which play as a physical > sensor device. > > > > In order to trigger the execution of the available soft-sensors & get the > information from them, > > you will need to query your request with the "CQL" like statement. > > EX) subscribe Device If Device.type == "TV" and > Device.NumberOfPeopleWatchingTV.number > 2 > > --> Notify me when if TV detects the people in front of the TV are > greater than 2 > > The "NumberOfPeopleWatchingTV.number" is the result created by > a SoftSensor > > And you're subscribing the conditional query in order to > receive the notification msg > > when current status meets the requested condition( > 2) > > > > When register the query, you will received the notification msg everytime > the current status meets > > the request condition till you unregister the query. > > > > If you execute the SSMTesterApp, it print out some query registration > samples. > > The DiscomfortnessIndexSensor generate "Room Discomfortness Index" > information using the > > temperature and humidity data collected from the sensors(THSensorAPP, > THSensorApp1) > > If you want to test the "Register DiscomfortnessSensor Sample Query" test, > you need to execute the > > sample physical sensors(THSensorAPPs) in different consoles, and select > the #3 after you start the SSMTesterApp. > > Then you will see the logs which SSMTesterAPP generate in order to show > show the Soft-sensor(DiscomfortnessIndex) > > running inside the SSMTesterApp. :) > > > > Main goal of the Softsensor Manager is to provide a way to manage the > "Soft-sensors" which has complex > > algorithm inside in order to calculate/produce value-added information > using data aggregated from the physical sensors. > > If you want to know "How to Create a Soft-Sensor" including the feature > that I described above, > > please refer the "SSM-Programmer's guide" is the /iotivity/service/doc > folder. :) > > Feel free to ask if you need more information about the service. > > > > Thank you. > > Jay. > > > > ------- *Original Message* ------- > > *Sender* : Ganesh Kaila<kgan4dev at gmail.com> > > *Date* : 2015-04-16 16:18 (GMT+09:00) > > *Title* : [dev] Understanding/Working guide required for IOTivity sample > services. > > > Hi, > > I 'm trying to understand IOTivity sample services in detail. I followed > this link > https://www.iotivity.org/documentation/iotivity-services/getting-started-iotivity-services > to install dependencies and then I pulled latest IOTivity source from > https://gerrit.iotivity.org/gerrit/p/iotivity.git. When I 'm giving > scons, It also expected *gtest and gtest_main *libraries to be required > for unittests. I also get them from this > https://code.google.com/p/googletest/downloads/detail?name=gtest-1.7.0.zip&can=2&q=. > Finally, I finished successful build process of IOTivity source. > > Now, I started trying Soft-Sensor- Manager sample service. For this, as > of now. I open three separate terminals in Ubuntu Machine. > > In One terminal, (Assume, I 'm in IOTivity source root directory). > > *$ pushd out/linux/x86/release* > *$ export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH* > *$ pushd service/soft-sensor-manager* > *$ ./SSMTesterApp* > *program start.* > *searching SSMResource* > *===============================================* > * Iotivity Soft Sensor Manager Test Application* > *===============================================* > * 1. Register Query* > * 2. Unregister Query* > * 3. Register DiscomfortIndexSensor sample query* > * 4. Register IndoorTrajectorySensor sample query* > * 5. Register BMISensor sample query* > * 9. exit* > *===============================================* > * Please Enter the NO:* > > And, in second terminal > > *$ pushd out/linux/x86/release* > *$ export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH* > *$ pushd service/soft-sensor-manager* > $ ./THSensorApp > Running thing as /Thing_TempHumSensor > Type any key to terminate > 0: > In entity handler wrapper: > > In Server CPP entity handler: > requestFlag : Request > requestType : GET > > > And, in third terminal > > *$ pushd out/linux/x86/release* > *$ export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH* > *$ pushd service/soft-sensor-manager* > $ ./THSensorApp1 > *Running thing as /Thing_TempHumSensor1* > *Type any key to terminate* > > As of now, I did this.How can I working flow this soft-sensor-manager > service.? Can anyone guide me to understand IOTivity services? > > Thanks, > Ganesh > > > > > > *Jung-hyun Oh. * > > IoT Solution Lab. | *SW R&D Center *| SAMSUNG ELECTRONICS CO.,LTD > > *Mobile +82-10-9890-6731 *| Beyond your imagination, Always > > > > > > -- Thanks, Ganesh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150416/e3b4d219/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 201504161843419_4CBBEM6S.gif Type: image/gif Size: 13168 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150416/e3b4d219/attachment.gif>
