No project description provided
Project description
In-Vehicle SDK Package
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:
-
Communication
-
CommunicatorBase: Provides the capability to send and receive byte data over various protocols. The following implementations are available:
TcpCommunicator
UdpCommunicator
MulticastCommunicator
IsoTpCommunicator
DoipCommunicator
-
RawSocketCommunicatorBase: Offers send, receive, and srp (send and receive answer) operations for
py_pcapplusplus.Packet
types. The following implementations are available:Layer2RawSocket
Layer3RawSocket
WiFiRawSocket
-
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
-
-
DoipUtils: A utility library for performing Diagnostic over IP (DoIP) operations, such as vehicle identity requests, routing activation, and more.
-
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
-
IDeviceShell: Allows for the execution of shell commands. The following implementations are available:
AdbDeviceShell
SerialDeviceShell
SshDeviceShell
-
SomeipUtils: A utility library for SOME/IP operations, allowing the receive and parse services, and in these services invoke methods and subscribe to eventgroups
-
Plugins:
SessionChangeCrashDetector
: a plugin that detects ECU crash based on UDS session changeUnrespondedTesterPresentCrashDetector
: a plugin that detects ECU crash based on UDS TP that is not being respondedUdsEcuRecoverPlugin
: a plugin responsible of recovering the ECU back to predefined UDS state - session and elevationRelayResetPlugin
: a plugin that resets a device via relayUdsBasedEcuResetPlugin
: a plugin that resets a device via UDS ECU Reset
-
ConfigurationManager: An API allowing to perform configuration of the IOT Device.
- configure_actions(action/s) - can perform the following configuration actions on the device:
IpAddAction
- add an IP to an Ethernet interface, and optionally configure a route for this IP.IpRemoveAction
- remove an existing IP from an Ethernet interface.CanConfigurationAction
- configure CAN interface parameters. e.g. bitrate, sample-point, cc-len8-dlc flag and state.EthInterfaceConfigurationAction
- configure the Ethernet interface: mtu, state and flags.WifiConnectAction
- connect to a WiFi access pointCreateVlanAction
- creating a VLAN interface
- get_device_configuration() - retrieves the current device configurations:
- Ethernet interface configuration: state, IPs, flags and MTU.
- CAN interface configurations: state, bitrate, sample-point and cc-len8-dlc flag.
- The available WiFi access points.
- configure_actions(action/s) - can perform the following configuration actions on the device:
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cyclarity_in_vehicle_sdk-1.1.1.tar.gz
.
File metadata
- Download URL: cyclarity_in_vehicle_sdk-1.1.1.tar.gz
- Upload date:
- Size: 72.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.13 Linux/6.11.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bd3cc52578745f7aaa06bf2ed953891f7d6a7defacbcead0f137955e45a5b3fe
|
|
MD5 |
14c946d998224c1e6aefec1c05119f8d
|
|
BLAKE2b-256 |
53d3014ef2a6252f4b483aeb961729156c9ae3364b2e7928e015b75475c855b8
|
File details
Details for the file cyclarity_in_vehicle_sdk-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: cyclarity_in_vehicle_sdk-1.1.1-py3-none-any.whl
- Upload date:
- Size: 107.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.13 Linux/6.11.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bcbe277675fddfbc7755d55bcb331134956449aa4ee8754781b241e4267803fd
|
|
MD5 |
cc01013b6462e8626ef3b7d52eec6f1e
|
|
BLAKE2b-256 |
5a6810289235d0cb1d032f190938c351805124c501deb77aa7926eca02223c4c
|