Skip to main content

ANDi SDK is a package to support powerful ANDi scripting API from python environment providing powerful Ethernet and automotive testing development kit.

Calling andisdk from Python

ANDi SDK allows the creation and handling of Ethernet based messages or channels, this can be done with or without an ANDi test project

# creating a message using a project
from andisdk import load_project
api = load_project(path_to_atp)
eth_msg = api.message_builder.create_ethernet_message()
# creating a message without a project
from andisdk import message_builder
msg = message_builder.create_ethernet_message()

Requirements to run ANDi SDK

ANDi SDK is portable, it can be used on both Windows and Linux machines.

Before running ANDi SDK, the following requirements need to be met:

  • .NET 8 runtime: responsible for running ANDi library files (dlls).

  • CodeMeter: responsible for license handling.

  • Npcap or Winpcap(Windows): responsible for hardware interfaces.

  • Libpcap (Linux): responsible for hardware interfaces.

Examples

# this example will create and send an UDP message
from andisdk import message_builder, andi
import sys

adapters = andi.get_adapters()

if (len(adapters) <= 0):
    print("No adapters found, stopping script")
    sys.exit()

adapter = adapters[0]
print("using adapter " + adapter.id + " to send udp message")
channel = andi.create_channel("Ethernet")
message = message_builder.create_udp_message(channel, channel)

message.payload = tuple([0x01, 0x02, 0x03, 0x04])
message.udp_header.port_source = 1234

print("sending udp message with payload " + str([x for x in message.payload]))
message.send()

Using python-can

# this example will use python-can to send and receive a CAN message
import can

bus = can.interface.Bus(interface='andisdk', channel='1', driver='tecmp', link='can', dev_port=1, dev_id=64)
payload = b'\x02\x08\x08\xFF\x03\x11\x04\x02'
# create can message
msg = can.Message(arbitration_id = 0x80000749, data = payload, is_fd = False)

# sending
bus.send(msg)

# receiving with timeout 5 seconds
msg_received = bus.recv(5)
print(msg_received)

Copyrights and licensing

This product is the property of Technica Engineering GmbH. © Copyright 2022-2024 Technica Engineering GmbH

This product will not function without a proper license. A proper license can be acquired by contacting Technica Engineering GmbH. For license related inquiries, this email: support@technica-engineering.de is available from Technica Engineering.

Release files for andisdk 3.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for andisdk 3.7.0
File Size Uploaded
andisdk-3.7.0.tar.gz 118.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for andisdk 3.7.0
File Interpreter ABI Platform
andisdk-3.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 238.2 MB

Release files / andisdk-3.7.0.tar.gz

Download URL andisdk-3.7.0.tar.gz
Size 118.8 MB
Tags Source
SHA-256 checksum
How to use checksums
76ef0d8e55bd543ea6c631e41d3e2445ce9597c6c1777c7797366673095e8fdf
BLAKE2b-256 checksum
How to use checksums
8486bfc2b7df0823d175283eab8e65d7b5ab3c4950c3bf74ba60a49cde861b5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / andisdk-3.7.0-py3-none-any.whl

Download URL andisdk-3.7.0-py3-none-any.whl
Size 119.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
55644a4ad26959d791bb4ef03fd66ceb70ea4b977526888d92d7373ffcaeaf9e
BLAKE2b-256 checksum
How to use checksums
60fab524601cffb2aadf1138a15ddcce92079542ef368b4190470e160683f191
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

3.7.0 This release

2 release files

3.0.0

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.1

2 release files

2.1.0

2 release files

1.45.1

2 release files

1.44.0

2 release files

1.41.0

2 release files

1.39.0

2 release files

1.33.0

2 release files

1.28.1

2 release files

1.27.0

2 release files

1.25.0

2 release files

1.24.0

2 release files

1.23.0

2 release files

1.20.0

2 release files

1.18.0

2 release files

1.16.0

2 release files

1.13.0

2 release files

1.8.4

2 release files

0.0.42

2 release files

0.0.27

1 release file

0.0.26

1 release file

0.0.22

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page