?Great Jay, I had enough info about Soft-Sensor Manager Service. ?Have to need a look at things like what you mentioned here. Thanks for that.
If I get anymore Questions to mind, when working with these I will contact you again. Thanks, Ganesh On Thu, Apr 16, 2015 at 4:40 PM, ??? <junghyun.oh at samsung.com> wrote: > Ganesh, I added my comment inlined. :) > > > > ------- *Original Message* ------- > > *Sender* : Ganesh Kaila<kgan4dev at gmail.com> > > *Date* : 2015-04-16 19:31 (GMT+09:00) > > *Title* : Re: [dev] Understanding/Working guide required for IOTivity > sample services. > > > 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".? > * ==> You are not actually registering the physicall sensor but the > "Softsensor" into the SSM.* > * How to create & register SoftSensor? it's described in the > doc.* > * How to retreive the information from the Softsensor? you need > to create a CQL based query & register it* > * to the SSM.* > * Then the SSM will execute the Softsensor and make it to > generate & deliver the information you need.* > > 2. I can see here "HeightSensorApp" and "WeightSensorApp" as well. Where > these two can be used again? > > > * ==> Those sample physical sensors are for the BMISensor > Testing. Similar to the DiscomfortnessIndex, execute the Height > & Weight sensors and choose # 5 "BMISensor Sample Query" to test > the BMI Soft Sensor. :)* > > 3. What do you mean by "IndoorTrajectorySensor sample query".? > > * ==> IndoorTrajectorySensor is one of the sample Soft-Sensor for tracking > the user's movement. To test this Softsensor, you will need to > prepare several Arduino Devices + with BLE sensor* > * and the Ubuntu or Tizen device with BLE capability.* > * When prepared, find the Referent_Thing & Trackee_Thing in ...* > * /iotivity/service/soft-sensor-manager/SampleApp/arduino/..* > * and install those sample apps into different arduino devices, > place them at any room you want.* > * Execute the SSMTesterAPP on the Ubuntu or Tizen device and > then it's all ready. :)* > * If you move with holding Ubuntu or Tizen device you will see > the log which print the path you * > * walk through.(Since it's sample app., the accuracy is not fully > guaranteed :( ... ) * > 4. How can I use "Register Query" and "Unregister Query".? > * ==> As I mentioned before, you need little bit of study on how to use > the CQL.* > * And if you know what informaion the specific softsensor provide, > you can create a CQL statement * > * and use it. (See to document first)* > > 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 > > > > > > *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/42318798/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 201504162010922_T9SZN3WZ.gif Type: image/gif Size: 13168 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150416/42318798/attachment.gif> -------------- next part -------------- A non-text attachment was scrubbed... Name: 201504162010927_PYMC4CBB.gif Type: image/gif Size: 13168 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150416/42318798/attachment-0001.gif>
