Hallo zusammen,

ist es möglich Accelormeterdaten (500Hz), Temperatur(10Hz) mit zugehörigem Zeitstempel

 per USB aufzuzeichnen und auf der Festplatte als Messdatei zu speichern?

Desweiteren habe ich gelesen das mit dem XDK eine FFT möglich sei. Gibt es dazu ein Beispiel?

Ich benutze die Workbenchversion 3.4.0

 

Vielen Dank

 

Hello everyone

It is possible Accelormeter data (500Hz), temperature (10Hz) with associated time stamp

record by USB and save it on the hard drive as a measuring file?

Furthermore, I read that an FFT is possible with the XDK. Is there an example of this?

I use the workbench version 3.4.0

Thank you very much

0 (0 Stimmen)
RE: Daten über USB auf Festplatte speichern
Antwort
30.04.19 08:50 als Antwort auf Michael Österreicher.

Hello Michael Österreicher,

There are 2 applications you can use for your requirement,

  1. DataLogger application : purchased from Iot marketplace
  2. StreamSensorDataOverUsb : available in XDK workbench

DataLogger application

  • In DataLogger application, you can configure BMA280 sensor output data rate to 500Hz and BME280 sensor configured to sample between 1 sec to 1 month. Furtheremore the sensor data can be logged in SD card with timestamp.
  • There is no FFT algorithm applied on the sensor data
  • You can get the DataLogger firmware from Bosch IoT marketplace https://rb-iot-marketplace.bosch.com/boschiotcustomermarketplace/en/EUR/Industry-4-0/Data-Logger-Firmware/p/405862100105/

The Data Logger firmware has 2 versions,

  1. Trial version : the software package is free and the sensor data can be logged for 30 minutes only
  2.  Full version : the software package is EUR 59.00 and the sensor data can be logged till 24 hours

StreamSensorDataOverUsb

  • In this application, you can enable BMA280 and and BME280 sensors and log the sensor data from usb output. After obtaining the data you can apply FFT algorithm.
  • But one cannot configure individual output data rate for each sensor, rather sensor will be sampled at a frequency of 1 second. Also timestamp will not be obtained

Thank you,

Padmapriya G

0 (0 Stimmen)
RE: Daten über USB auf Festplatte speichern
Antwort
30.04.19 09:37 als Antwort auf Padmapriya G.

Hello Padmapriya,

thank you for your quick answer.

i will try it.

0 (0 Stimmen)
RE: Daten über USB auf Festplatte speichern
Antwort
30.04.19 10:18 als Antwort auf Michael Österreicher.

Is it possible to save the streaming data from the console to a csv file ?

if the answer is yes how can i do that ?

0 (0 Stimmen)
RE: Daten über USB auf Festplatte speichern
Antwort
02.05.19 08:09 als Antwort auf Michael Österreicher.

Hello Michael,

if you use the function printf("something\r\n") in your programm, the content (here "something") is send to your computer via the USB cable. On your computer you are free to write a programm to catch that data from the COM port. In Visual Studio you can something like this for example:

            SerialPort serialPort = new SerialPort("COM7", 115200);
            try
            {
                serialPort.Open();
                while (true)
                {
                    string data = serialPort.ReadLine();
                    Console.WriteLine(data);
                }
            }

After you received the data in your c# application you are free to process the data in all possible ways.

I hope this was helpfull. If you have any futher questions dont hesitate to ask.

Best regards,

Christian

0 (0 Stimmen)