ThingsBoard use case with virtual devices - iot

I have devices. And the devices are sending raw sensor values to a data collection service. The data collection service persists all sensor events grouped by sensor id and set id.
Now I want to use ThingsBoard to visualize the data.
Is it possible to create virtual devices in ThingsBoard? Each virtual device should represent a sensor and get the data from the existing persistent storage. And I dont want to get all sensor values for all devices. But I want to select a device and a set and then visualize only these values. The data should not be stored in the embedded Cassandra database. Is it possible to load the selected data only in memory? Everytime I select any data, ThingsBoard should pull the selected data again. Or an extra servcie should push the data again.

Devices can be virtual or physical. You need a method to post data to TB. If it's a software its OK, TB don't care about that.
When you create devices, you can create dashboards that can interact with devices data. You select what devices you want to use.
Unfortunately you need to save the data in the database. You cant show anything in dashboard if is not stored.

Related

Collecting telemetry data from AppSheet

I'm looking to build a new app for in-house users (employees) and want to try out AppSheet. However, I really want to collect telemetry (usage) data so I know who is using what, when, etc.
I don't see any information about this, even after searching here and the wider web.
Is it possible to collect usage data from users using AppSheet?

How to aggregate telemetry data from different devices contained in one asset?

I'm working with Thingsboard Community Edition 2.0.
I have one asset that contains two different devices. Both devices send telemetry data with the same key. I want to be able to show the sum of both values as the total for the asset.
Did anyone figure out how to do it?
Thanks.
The idea is basically to create a memory attribute containing a JSON of the data you want to save.
It's not straight forward but i found a way that works to do it.
Main steps :
Change originator to asset.
Each time telemetry comes, use enrichment to get the attribute memory, then with a script node put if from metadata to msg.
Merge the memory and the incomming telemetry (replace old value with new ones)
Compute what you want (min, max, mean, standard deviation, sum, etc...) and save it in telemetry or attribute.
Save in parallel the merged memory (note you can't save JS objects in telemetry or attributes, you have to use JSON.stringify() to save it and JSON.parse to take it back using enrichment node.
Hope it helps
Corentin

How to read data from a measurement device?

I need to read data from a measurement device and then save them in a file.
In this photo there is a list of commands (with check_sum that I don't know where to get) I can use for the communication:
Command List
Any help on how can I do that?

How can one get readable data(JSON, XML format or any other format) from Medical Equipments like Cardiac or heart monitors, Pulse oximeter?

I am new to this domain and i want to know that how can one interact with medical equipments to get readable data to get saved into the SQL Database? So, that one can maintain the data on Server.
Thanks in advance.
I think, you are looking for this API.
It is provided by FDA.
openFDA Unique Device Identifier
The unique device identification system was established to identify devices through distribution and use. Device labelers are required to include a unique device identifier (UDI) on device labels and packages. The Global Unique Device Identification Database (GUDID) contains key device identification information submitted to the FDA.
It will depend on the equipment. It's very likely you will need a separate module to retrieve data from the device and converting it back to json or xml.
You will have to check every equipment vendor you have!
I would suggest creating an interface in code and implement one per device. Then the code which converts to json / xml and / or saves to database does not need to be aware of the specific device it's being used.

Cache and Sync data on iOS devices

We have a requirement to be able to store the data on device and make it available even when device is off network, and when device comes back to network it should be able to sync the stored data and be able to update the stored data with latest server data and so on. I understand that lots of this needs to be implemented using sync/notification/versioning stuff ourself.
However are there any recommended framework/API (other than vanilla Core Data) that people use to store large amount of data to be stored/cached on iOS devices? Any reliable and intelligent caching solution out there?
Any recommendation of this sort will be very helpful.

Resources