Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

In-Vehicle SDK Package

pypi downloads downloads_monthly Tests

This package provides the In-Vehicle SDK, offering a range of functionalities to support communication and operations with in-vehicle systems.

Features

The In-Vehicle SDK package includes the following interfaces and implementations:

  1. Communication

    1. CommunicatorBase: Provides the capability to send and receive byte data over various protocols. The following implementations are available:

      • TcpCommunicator
      • UdpCommunicator
      • MulticastCommunicator
      • IsoTpCommunicator
      • DoipCommunicator
    2. RawSocketCommunicatorBase: Offers send, receive, and srp (send and receive answer) operations for py_pcapplusplus.Packet types. The following implementations are available:

      • Layer2RawSocket
      • Layer3RawSocket
      • WiFiRawSocket
    3. CanCommunicatorBase: Exposes the python-can functionality, offering operations like send, receive, sniff, and more. The following implementation is available:

      • CanCommunicatorSocketCan - A specific implementation for the socketcan driver
  2. DoipUtils: A utility library for performing Diagnostic over IP (DoIP) operations, such as vehicle identity requests, routing activation, and more.

  3. UdsUtilsBase: Used for performing Unified Diagnostic Services (UDS) operations, such as ECU reset, read DIDs, session change, and more. The following implementation is available:

    • UdsUtils - Can be initialized to work over DoIP/ISO-TP
  4. IDeviceShell: Allows for the execution of shell commands. The following implementations are available:

    • AdbDeviceShell
    • SerialDeviceShell
    • SshDeviceShell
  5. SomeipUtils: A utility library for SOME/IP operations, allowing the receive and parse services, and in these services invoke methods and subscribe to eventgroups

  6. Plugins:

    • SessionChangeCrashDetector: a plugin that detects ECU crash based on UDS session change
    • UnrespondedTesterPresentCrashDetector: a plugin that detects ECU crash based on UDS TP that is not being responded
    • UdsEcuRecoverPlugin: a plugin responsible of recovering the ECU back to predefined UDS state - session and elevation
    • RelayResetPlugin: a plugin that resets a device via relay
    • UdsBasedEcuResetPlugin: a plugin that resets a device via UDS ECU Reset
  7. ConfigurationManager: An API allowing to perform configuration of the IOT Device.

    • configure_actions(action/s) - can perform the following configuration actions on the device:
      1. IpAddAction - add an IP to an Ethernet interface, and optionally configure a route for this IP.
      2. IpRemoveAction - remove an existing IP from an Ethernet interface.
      3. CanConfigurationAction - configure CAN interface parameters. e.g. bitrate, sample-point, cc-len8-dlc flag and state.
      4. EthInterfaceConfigurationAction - configure the Ethernet interface: mtu, state and flags.
      5. WifiConnectAction - connect to a WiFi access point
      6. CreateVlanAction - creating a VLAN interface
    • get_device_configuration() - retrieves the current device configurations:
      1. Ethernet interface configuration: state, IPs, flags and MTU.
      2. CAN interface configurations: state, bitrate, sample-point and cc-len8-dlc flag.
      3. The available WiFi access points.

The complete user manual can be found in here

Installation

You can install the In-Vehicle SDK package using pip:
pip install cyclarity-in-vehicle-sdk

Usage

Example for importing and using CanCommunicatorSocketCan for sending a Message

from cyclarity_in_vehicle_sdk.communication.can.base.can_communicator_base import CanMessage
from cyclarity_in_vehicle_sdk.communication.can.impl.can_communicator_socketcan import CanCommunicatorSocketCan

canmsg = CanMessage(
            arbitration_id=0x123,
            is_extended_id = False,
            is_rx=False,
            data=b"\x00" * 8,
            is_fd=False,
            bitrate_switch=False,
        )

socket = CanCommunicatorSocketCan(channel="vcan0", support_fd=True)
with socket:
    socket.send(can_msg=canmsg)

Metadata

Release files for cyclarity-in-vehicle-sdk 1.1.2a60061

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

Source distribution (sdist)

Source distribution for cyclarity-in-vehicle-sdk 1.1.2a60061
File Size Uploaded
cyclarity_in_vehicle_sdk-1.1.2a60061.tar.gz 72.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cyclarity-in-vehicle-sdk 1.1.2a60061
File Interpreter ABI Platform
cyclarity_in_vehicle_sdk-1.1.2a60061-py3-none-any.whl Python 3 none any Details

Total release size: 177.4 kB

Release files / cyclarity_in_vehicle_sdk-1.1.2a60061.tar.gz

Download URL cyclarity_in_vehicle_sdk-1.1.2a60061.tar.gz
Size 72.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9df56c5fab7bbe19fd92fc00d1498a528241bf239a23c5a69922c174552c3c54
BLAKE2b-256 checksum
How to use checksums
d12b41ae49d6886010d2394defa8ef2a29cfac8bdabc3108eb8b2c6c8f7f7bb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.13 Linux/6.11.0-1015-azure

Release files / cyclarity_in_vehicle_sdk-1.1.2a60061-py3-none-any.whl

Download URL cyclarity_in_vehicle_sdk-1.1.2a60061-py3-none-any.whl
Size 105.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b21e6dce1c03495e8a95df08fd997d1f955818940507d6fadd34a519a1eaf61f
BLAKE2b-256 checksum
How to use checksums
095d2dfa359a988c6c13e91ae7860f9c5e087396b6d5d4458bccefe8372eca05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.13 Linux/6.11.0-1015-azure

Release history Release notifications | RSS feed

1.1.15

2 release files

1.1.13

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

This release

1.1.2a60061 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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