Running the HTML5 HMI

You can reconfigure your system to launch the HTML5 HMI instead of the default Qt5 HMI at startup.

To run the HTML5 HMI at startup:
  1. In a QNX terminal on the target board, mount the local filesystem with read-write permissions by entering this command:

    mount -uw /base

  2. In a text editor, open the System Launch and Monitor (SLM) configuration file (/base/etc/slm-config-all.xml).
    1. Enable the SLM component for the HTML5 HMI by changing this section:
      <!-- Uncomment the section below to enable automatic startup of the HTML5 HMI and
       comment the Qt5 section which follows -->
      <!--
          <SLM:component name="hmi">
              <SLM:command>/usr/bin/weblauncher</SLM:command>
      	<SLM:args>webkit-launcher /accounts/1000/appdata/car.navigator/app/native/wwe</SLM:args>
      	<SLM:stop stop="signal">SIGTERM</SLM:stop>
      	<SLM:envvar>HOME=/accounts/1000/appdata/car.navigator/data</SLM:envvar>
      	<SLM:depend>symlink_hmi</SLM:depend>
      	<SLM:depend>symlink_base</SLM:depend>
      	<SLM:depend>iopkt</SLM:depend>
      	<SLM:depend>pps</SLM:depend>
      	<SLM:depend>calib-done</SLM:depend>
      	<SLM:depend>screen-ready</SLM:depend>
          </SLM:component>   
      -->
      <!-- End uncomment for HTML5 HMI -->
      

      to this:

      <!-- Uncomment the section below to enable automatic startup of the HTML5 HMI and
       comment the Qt5 section which follows -->
      <!-- -->
          <SLM:component name="hmi">
              <SLM:command>/usr/bin/weblauncher</SLM:command>
      	<SLM:args>webkit-launcher /accounts/1000/appdata/car.navigator/app/native/wwe</SLM:args>
      	<SLM:stop stop="signal">SIGTERM</SLM:stop>
      	<SLM:envvar>HOME=/accounts/1000/appdata/car.navigator/data</SLM:envvar>
      	<SLM:depend>symlink_hmi</SLM:depend>
      	<SLM:depend>symlink_base</SLM:depend>
      	<SLM:depend>iopkt</SLM:depend>
      	<SLM:depend>pps</SLM:depend>
      	<SLM:depend>calib-done</SLM:depend>
      	<SLM:depend>screen-ready</SLM:depend>
          </SLM:component>   
      <!-- -->
      <!-- End uncomment for HTML5 HMI -->
      
    2. Disable the SLM component for the Qt5 HMI by changing this section:
      <!-- Comment the section below to disable automatic startup of the Qt5 HMI -->
      <!-- -->
          <SLM:component name="hmi">
              <SLM:command>/qtcar/bin/qnxcar2</SLM:command>
              <SLM:stop stop="signal">SIGTERM</SLM:stop>
              <SLM:envvar>HOME=/accounts/1000/appdata/car.navigator/data</SLM:envvar>
              <SLM:envvar>QQNX_PHYSICAL_SCREEN_SIZE=150,90</SLM:envvar>
              <SLM:envvar>QNXCAR2_ASSETS_DIR=/qtcar/share/qnxcar2</SLM:envvar>
              <SLM:stdout>/var/log/qnxcar2-qt.stdout</SLM:stdout>
              <SLM:stderr>/var/log/qnxcar2-qt.stderr</SLM:stderr>
      	<SLM:depend>symlink_hmi</SLM:depend>
      	<SLM:depend>symlink_base</SLM:depend>
      	<SLM:depend>iopkt</SLM:depend>
      	<SLM:depend>pps</SLM:depend>
      	<SLM:depend>calib-done</SLM:depend>
      	<SLM:depend>screen-ready</SLM:depend>
          </SLM:component>
      <!-- -->
      <!-- End comment for Qt5 HMI -->
      

      to this:

      <!-- Comment the section below to disable automatic startup of the Qt5 HMI -->
      <!--
          <SLM:component name="hmi">
              <SLM:command>/qtcar/bin/qnxcar2</SLM:command>
              <SLM:stop stop="signal">SIGTERM</SLM:stop>
              <SLM:envvar>HOME=/accounts/1000/appdata/car.navigator/data</SLM:envvar>
              <SLM:envvar>QQNX_PHYSICAL_SCREEN_SIZE=150,90</SLM:envvar>
              <SLM:envvar>QNXCAR2_ASSETS_DIR=/qtcar/share/qnxcar2</SLM:envvar>
              <SLM:stdout>/var/log/qnxcar2-qt.stdout</SLM:stdout>
              <SLM:stderr>/var/log/qnxcar2-qt.stderr</SLM:stderr>
      	<SLM:depend>symlink_hmi</SLM:depend>
      	<SLM:depend>symlink_base</SLM:depend>
      	<SLM:depend>iopkt</SLM:depend>
      	<SLM:depend>pps</SLM:depend>
      	<SLM:depend>calib-done</SLM:depend>
      	<SLM:depend>screen-ready</SLM:depend>
          </SLM:component>
      -->
      <!-- End comment for Qt5 HMI -->
      
  3. Save the SLM configuration file and return to the QNX terminal.
    When you're ready to run the HTML5 HMI, reboot the target board by issuing the reboot command.

The system reboots and launches the HTML5 HMI, which is identical in appearance and functionality to the Qt5 HMI.

Note: To run the Qt5 HMI again, restore the SLM configuration file to its original state (with the HTML5 HMI component disabled and the Qt5 HMI component enabled), and then reboot again.