1.2. Motion tutorial - Sending acceleration data from an iOS device#

This chapter describes the basic usage of Motion.

As an example, we will use Motion to acquire acceleration data and send it to the intdash server. Then, check the data in real time with Data Visualizer.

../_images/motion-live-tutorial-sensor-data.png

Fig. 38 Tutorial overview#

To perform this tutorial, you will need the following in addition to an intdash environment, an iOS device, and a PC.

  • 1 user account for sign-in

  • 1 edge for data acquisition (can be created in My Page)

1.2.1. Install Motion#

Install Motion on your iOS device.

  1. Use the QR code below to open the Motion app page on the App Store.

    ../_images/intdash-motion-appstore-qrcode.png

    Alternatively, search for "intdash Motion" in the App Store.

  2. Tap [Get].

1.2.2. Sign in to intdash with Motion#

  1. Launch the Motion application.

  2. When the sign-in screen appears, enter the URL of your intdash server (varies for each customer, e.g. https://example.vm2m.jp) and tap [Next].

    ../_images/sign-in-url.png

    Fig. 39 Enter the URL of the intdash server#

    When you see '"Motion" Wants to Use ... to Sign In', tap [Continue].

  3. Enter your user name (or the email address registered in your user account) and password, then tap [Sign In].

    ../_images/sign-in-edge-password.png

    Fig. 40 Sign in#

    Note

    Use a "user" account to sign in.

  4. When you're prompted for permission to use your location, tap "Allow While Using App". (Please note that if you tap [Don't allow] here, you will not be able to send GPS data.)

  5. When prompted for access to the microphone and camera, tap [OK] for each.

    After successful sign in, the Main screen will be displayed.

    ../_images/start-measurement.jpg

    Fig. 41 Main screen#

  6. If you are using Motion for the first time, a guide will appear on the screen.

    Follow the instructions in the guide to select which edge to retrieve and send data as.

    The selected edge is displayed at the top of the Main screen.

    ../_images/selected-edge.png

    Fig. 42 Selected edge (Motion app sends data as this edge)#

1.2.3. Configure settings for data acquisition and transmission#

Tap [Settings] to configure settings for the data to be acquired.

Here, as an example, we will configure the application to send accelerometer data.

  1. Turn on [Sensors].

    ../_images/sending-sensor-data.jpg

    Fig. 43 GPS setting screen#

  2. Set as follows.

    • Stream to Server: On

    • Save to Server: On

    • Channel: 1

    • Sensor Types > Acceleration: On

Note

When [Save to Server] is turned on, all data sent by the iOS device will be saved on the server. If you do not want to save data to the server, turn [Save to Server] off.

1.2.4. Set up Data Visualizer#

Prepare Data Visualizer to display data.

1.2.4.1. Sign in to view the Data Visualizer#

  1. Open the Data Visualizer application in your Chrome web browser (URL is different for each customer, e.g. https://example.vm2m.jp/vm2m/).

  2. When the sign-in screen is displayed, enter the user name (or the email address registered in the user account) and password, and then click [Sign In].

    The Data Visualizer is displayed.

    ../_images/data-visualizer-initial-view.png

    Fig. 44 Data Visualizer#

1.2.4.2. Import a data settings (.dat) file to display the data#

Get the data settings file from the dedicated download page in order to view data from iOS devices.

  1. Click Links (links) on the left side of the Data Visualizer screen.

  2. Click [Download DAT File]. A list of downloadable DAT files (files in .dat format) is displayed.

    ../_images/dat-files.png

    Fig. 45 List of DAT files#

  3. Download the following DAT file.

    General Sensor > general_sensor_ch001.dat

  4. On the left side of the Data Visualizer screen, click [Data Settings] (data-settings) > [Add Group]> [Import] to import the DAT file.

This completes the import of the data settings file.

1.2.4.3. Place visual parts on the screen#

  1. Click any empty panel and select [2 x 2].

    ../_images/2x2.png

    Fig. 46 Select a panel#

  2. Select [Line Graph] as the visual part.

    ../_images/select-visual-part.png

    Fig. 47 Select Line Graph#

  1. Select the source (edge) of the data you wish to visualize.

    ../_images/bind-edge.png

    Fig. 48 Select an edge#

  2. Select "1_Gen:AccX" (acceleration in the X-axis direction) as the data to be visualized.

    ../_images/bind-data.png

    Fig. 49 Bind acceleration data#

1.2.5. Start measurement and visualize data#

After setting up Motion and Data Visualizer, send the data from the iOS device to intdash.

  1. Put the Data Visualizer in live mode for real-time visualization. If you see the pink live mode icon (live-mode), you are currently in live mode. If you see a gray icon (live-mode-inactive), click the icon to switch to live mode.

    ../_images/live-button.png

    Fig. 50 Live mode display#

  2. Tap play in the center of the Motion Main screen to start the measurement.

  3. Click the play button play in Data Visualizer. The data sent from your iOS device is displayed on the dashboard.

    ../_images/dashboard-with-acceleration-data.png

    As you shake or move your iOS device, you can see that the value displayed in the Data Visualizer fluctuate.

  1. Tap ■ in Motion to end the measurement.

    This completes one measurement. The measurement data from tapping play to tapping ■ in Motion is saved in the server as one measurement.

This completes the measurement and visualization of acceleration with Motion.

In addition to acceleration, Motion can acquire various sensor data, video, audio, and GPS data. See Acquire data with Motion for settings to retrieve these data.

Note

Pressing and holding (long tap) the Main screen will lock the screen to prevent accidental operation. To unlock the screen, press and hold the screen again.

../_images/display-locked.png

Fig. 51 Locked screen (Press and hold the screen to unlock.)#