<commit_before>===================================
Compiling the Default Configuration
===================================

Going beyond emulated data, you can start using your VI with a real vehicle by
using the default configuration. default configuration. This build is not
configured to read any particular CAN signals or messages, but it allow you to
send On-Board Diagnostic (OBD-II) requests and raw CAN messages for
experimentation.

Again, assuming you've :doc:`set up your development environment
</getting-started/development-environment>` and you have a `reference VI from
Ford <http://vi.openxcplatform.com>`_, move to the ``vi-firmware/src`` directory
and compile for the ``FORDBOARD`` platform:

.. code-block:: sh

    vi-firmware/ $ cd src
    vi-firmware/src $ export PLATFORM=FORDBOARD
    vi-firmware/src $ make clean
    vi-firmware/src $ make -jj4
    Compiling for FORDBOARD...
    ...lots of output...
    Compiled successfully for FORDBOARD running under a bootloader.

Make sure you run ``make clean`` first whenever changing the environment
variable flags (e.g. we omitted ``DEFAULT_EMULATED_DATA_STATUS`` this time, so
the emulated data isn't generated).

Just as with the emulated data build, there will be a lot more output when you
run this but it should end with ``Compiled successfully...``. If you got an
error, try and follow what it suggests, then look at the troubleshooting
section, and finally ask for help on the `Google Group
</overview/discuss.html>`_.

Re-flash your VI (go back to the section on :doc:`compiling-emulator` if
you forgot how to do that), and try the ``openxc-version`` command again to make
sure it's running your new version.

You can use the ``openxc-diag`` tool (also from the OpenXC Python library) to
send a simple OBD-II request for the engine speed (RPM) to your car. Plug the VI
into your car, then attach via USB and run:

.. code-block:: sh

    $ openxc-diag --id 0x7df --mode 1 --pid 0xc
    {"success": true, "bus": 1, "id": 2016, "mode": 1, "pid": 12, "payload": "0x0"}<commit_msg>Fix typos. 0x7df in hex is 2015 in decimal.<commit_after>===================================
Compiling the Default Configuration
===================================

Going beyond emulated data, you can start using your VI with a real vehicle by
using the default configuration. default configuration. This build is not
configured to read any particular CAN signals or messages, but it allow you to
send On-Board Diagnostic (OBD-II) requests and raw CAN messages for
experimentation.

Again, assuming you've :doc:`set up your development environment
</getting-started/development-environment>` and you have a `reference VI from
Ford <http://vi.openxcplatform.com>`_, move to the ``vi-firmware/src`` directory
and compile for the ``FORDBOARD`` platform:

.. code-block:: sh

    vi-firmware/ $ cd src
    vi-firmware/src $ export PLATFORM=FORDBOARD
    vi-firmware/src $ make clean
    vi-firmware/src $ make -j4
    Compiling for FORDBOARD...
    ...lots of output...
    Compiled successfully for FORDBOARD running under a bootloader.

Make sure you run ``make clean`` first whenever changing the environment
variable flags (e.g. we omitted ``DEFAULT_EMULATED_DATA_STATUS`` this time, so
the emulated data isn't generated).

Just as with the emulated data build, there will be a lot more output when you
run this but it should end with ``Compiled successfully...``. If you got an
error, try and follow what it suggests, then look at the troubleshooting
section, and finally ask for help on the `Google Group
</overview/discuss.html>`_.

Re-flash your VI (go back to the section on :doc:`compiling-emulator` if
you forgot how to do that), and try the ``openxc-version`` command again to make
sure it's running your new version.

You can use the ``openxc-diag`` tool (also from the OpenXC Python library) to
send a simple OBD-II request for the engine speed (RPM) to your car. Plug the VI
into your car, then attach via USB and run:

.. code-block:: sh

    $ openxc-diag --id 0x7df --mode 1 --pid 0xc
    {"success": true, "bus": 1, "id": 2015, "mode": 1, "pid": 12, "payload": "0x0"}
{'fraction_non_alphanumeric': 0.12037708484408992, 'fraction_numerical': 0.00870195794053662, 'mean_word_length': 4.140372670807453, 'pattern_counts': {'":': 12, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7574014', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1137, 'n_words': 565}