Skip to main content

ANDi python package to interact with ANDi scripting features from stand alone python package

Reason this release was yanked:

Broken Release

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

andisdk-2.2.4.tar.gz (107.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

andisdk-2.2.4-py3-none-any.whl (108.0 MB view details)

Uploaded Python 3

File details

Details for the file andisdk-2.2.4.tar.gz.

File metadata

  • Download URL: andisdk-2.2.4.tar.gz
  • Upload date:
  • Size: 107.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for andisdk-2.2.4.tar.gz
Algorithm Hash digest
SHA256 efbe98e9ac520f7fc02af73f902ce8904459f9017aed9eff2694278947733192
MD5 a248bd152fb830c30e1b1641c3d1683a
BLAKE2b-256 d929c40f5c48753d7565099c93e78ed2aa7bc05154590fa9df29797bd72ffd10

See more details on using hashes here.

File details

Details for the file andisdk-2.2.4-py3-none-any.whl.

File metadata

  • Download URL: andisdk-2.2.4-py3-none-any.whl
  • Upload date:
  • Size: 108.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for andisdk-2.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 619bb1b77ba9fc1c9d3612cab50c0e68bce1c42f11a72c12e344e7221603b2e7
MD5 84410b9d4eb2c82a3aabab031f82dbb8
BLAKE2b-256 8bf405aea312f7a52ce7cc1b84d65ee96c94879eb91c7836dac7e5166d1523c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page