Get Device ID and Start Application

Get the device ID from the device_id file, then start the telemetry application.

  1. Copy the contents of the device_id file to a temporary file.

    If the device_id file does not already exist, it is automatically created when the system boots in the directory specified with the DEVICE_CLOUD_RUNTIME_DIR configuration parameter. For example, in /bd0:1/var/lib/iot.

    It will look something like this: 88749750-227d-11e8-ad00-cbbbec96566a

    Later, you will use the device ID to locate your device and application in the Device Cloud Management Portal.

  2. Start the telemetry application.

    For example, from the kernel shell, load and start a kernel (DKM) version of the application:

    -> ld < telemetry.out  
    -> app_telemetry_main

    The entry point for the kernel version of telemetry.c is app_telemetry_main.

    For the RTP version of the telemetry application, you can run it without setting any parameters if it is stored in the bin directory defined by the configuration parameter DEVICE_CLOUD_AGENT_BIN_DIR. For example:

    ->  cmd 
    [vxWorks *]#  cd /bd0:1/bin
    [vxWorks *]# telemetry.vxe &

    If you run the application from a different directory, you must set the path parameters. Execute the application with the -h option for more information.

    The application starts and connects with Device Cloud. The output in the kernel shell lists information about the connection, a series of registration messages, and finally a successful-connection message.

Use Management Portal to View Data Transmission