Skip to content

Latest commit

 

History

History

hardware

Opentrons-Hardware Package

Running Tests

Some tests require a connected emulator to run. To connect your system to emulation you must have the OT-3 Emulator set up and running.

Tests will default to using vcan0 as their SocketCAN network. If you wish to change the network, then specify the CAN_CHANNEL environment variable with the name of your network.

Tools

The opentrons-hardware package includes some utility scripts.

Header Generator

This will generate a C++ header file defining constants shared between firmware and the opentrons-hardware package.

Usage

opentrons_generate_header --target TARGET

Example: opentrons_generate_header --target some_file.h

CAN Communication

This is a tool for sending messages to firmware over CAN bus

Usage

opentrons_can_comm --interface INTERFACE [--bitrate BITRATE]
                   [--channel CHANNEL]

Example: opentrons_can_comm --interface socketcan --channel vcan0