I would like to integrate audio sensors in OpenIoT platform and I have some doubts.
What is my target?
I would like to integrate audio sensors in OpenIoT platform. I read in the DOC that this is mainly a GSN issue, but maybe someone who already did it could give me a hint.
The idea is to select an audio sensor from the Graphical Interface and stream the audio from the physical layer to the Graphical Interface. NBo SafeStorage is intended to be used for now.
How am I working with OpenIoT?
I downloaded the VM available in the website.
I created a java class that I placed in the Folder of the workspace"/xgsn/src/main/java/org/openiot/gsn/wrappers/general". I extended from Abstract Wrapper and I implemented the four compulsory methods:
initialize()
finalize - (dispose??)
getOutputFormat()
getWrapperName()
Which are my doubts?
4.1. getOutputFormat()
I know that I should give a SQL format to the information to be accessed, but I am not sure how to do it. Let's say I only want 4 fields to set the sourceID, the time stamp, the packet number and a byte array containing the audio.
4.2. sendToWrapper(). As far as I know this is to commmunicate back to the sensor. If I need to stop the audio streaming I think I should implement it. Am I right?
4.3. Should I create a VSensor class too? The XML definition at least? Is the same I created before?
4.4. The XML metada should be copied into the "/xgsn/virtual-sensors/samples"?
4.5. How can I add it and test it when it is finished?
Thank you so much for, at least, reading until here.
Hi all,
I would like to integrate audio sensors in OpenIoT platform and I have some doubts.
3.3 · I created the "xml" file based on another example. I am not sure yet about how to define the query. But I would like to get the
Thank you so much for, at least, reading until here.
Best regards,