Andi
Summary
This variable is available as andi
global variable
- Methods
Structure
- class Andi
- auto_fix_channels()
Set the channels adapters.
- clear_output_console()
Clears the ANDi's output console
- create_channel(adapter_id: str) IChannelAdapter
Creates a channel.
- Parameters
adapter_id (
str
) – Adapter's name follows a special naming format: see Adapter Naming Notations in documentation for more info- Returns
Channel adapter.
- Return type
- create_channel(driver: str, link: str, dev_port: int32, dev_id: int32 or None = None, dev_ip: str = None, dev_mac: str = None, sys_nic: str = None) IChannelAdapter
Creates a channel.
- Parameters
- driver (
str
) – Protocol/driver used. Possible values:
tecmp
,bts
,btsevo
.
- driver (
- link (
str
) – Link layer. Possible values:
can
,canfd
,lin
,flexray
,serial
,analog
,ethernet
,io
.
- link (
dev_port (
int32
) – Port assigned to the channel (CM Channel ID, BTS interface ID...).dev_id (
int32
or None) – Device ID (CM ID, BTS Board Index...).dev_ip (
str
) – Device IP.dev_mac (
str
) – Device MAC address.sys_nic (
str
) – PC network interface.
- Returns
Channel adapter.
- Return type
- create_node(database: Database, ecu_name: str, channel: object) EcuNodeEthernet
Creates and returns a SOME/IP RBS node.
- Parameters
- Returns
Ecu node created
- Return type
- create_timer() Timer
Creates and returns a timer object.
- Returns
Timer object created.
- Return type
- detect_hardware()
Detects hardware.
- get_output_console() str
Gets the text that's displayed in the ANDi's output console.
- Returns
Text displayed on output console
- Return type
- load_channels(file_path: str) Dictionary[str, IChannelAdapter]
Gets a dictionary of loaded channels.
- Parameters
file_path (
str
) – Channels Configuration file path- Returns
Dictionary of loaded channels.
- Return type