Class AxiomaticSocketcanBridge

Class Documentation

class AxiomaticSocketcanBridge

This class will bridge a socketcan connection and read/write to the can-eth device tcp connection.

Public Functions

AxiomaticSocketcanBridge(const std::string &can_interface_name, const std::string &ip, const std::string &port, bool verbose = false)

Constructor.

Parameters:
  • can_interface_name – name of the can interface for socketcan

  • ip – IP address of the ethernet can device

  • port – port for the ethernet can device

  • verbose – enables printing of debug logs if true. Defaults to false

~AxiomaticSocketcanBridge()

Destruct axiomatic socketcan bridge.

bool on_configure()

configures and opens the TCP and CAN sockets for the bridge

Returns:

success for opening both sockets

bool on_activate()

activates and starts the reception threads for the socketcan and axiomatic adapters

Returns:

success for starting both threads

bool on_deactivate()

joins the reception threads to the main thread on deactivate

Returns:

success for joining bpth threads

bool on_shutdown()

Shuts down and closes the TCP and CAN sockets.

Returns:

success for closing both sockets