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 5 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 an 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, 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 1.27.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| andisdk-1.27.0.tar.gz | 131.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| andisdk-1.27.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 263.4 MB
Release files / andisdk-1.27.0.tar.gz
| Download URL | andisdk-1.27.0.tar.gz |
|---|---|
| Size | 131.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e439f486159b08ddf249e04a0b4bf46a5143ff5e76cf7830138638f0570701ef
|
|
BLAKE2b-256 checksum How to use checksums |
2ac77803c342c468a02d2944e90c909dd6f7344a9c7aead53a4fbee554847737
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / andisdk-1.27.0-py3-none-any.whl
| Download URL | andisdk-1.27.0-py3-none-any.whl |
|---|---|
| Size | 132.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c0e6e2652e9a2545f65670854deced83b338b66ecbcbe53f49da23bf77787ee
|
|
BLAKE2b-256 checksum How to use checksums |
dd2ced29d389001c84a80cac2beeb84ae85d56200f828edc304401c32bb3318b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|