Skip to main content

py_canoe

Python 🐍 Package for controlling Vector CANoe 🛶 Tool

Acknowledgements

I want to thank plants 🎋 for providing me oxygen each day. Also, I want to thank the sun 🌄 for providing more than half of their nourishment free of charge.

Prerequisites

  • Python(>=3.6)
  • Vector CANoe software(>=v11)
  • Windows PC(recomended win 10 os)

Installation

Create Virtual environment

python -m venv venv

Activate virtual environment and upgrade pip

venv\Scripts\activate
python -m pip install pip --upgrade

Install py_canoe module

pip install py_canoe

Usage

Import CANoe module

# Import CANoe module
from py_canoe import CANoe

# create CANoe object
canoe_inst = CANoe()

Example use cases

# open CANoe configuration. Replace canoe_cfg with yours.
canoe_inst.open(canoe_cfg=r'C:\Users\Public\Documents\Vector\CANoe\Sample Configurations 11.0.81\.\CAN\Diagnostics\UDSBasic\UDSBasic.cfg')

# print installed CANoe application version
canoe_inst.get_canoe_version_info()

# Start CANoe measurement
canoe_inst.start_measurement()

# get signal value. Replace arguments with your message and signal data.
sig_val = canoe_inst.get_signal_value('CAN', 1, 'LightState', 'FlashLight')
print(sig_val)

# set signal value. Replace arguments with your message and signal data.
canoe_inst.set_signal_value('CAN', 1, 'LightState', 'FlashLight', 1)

# send diagnostic request. Replace arguments with your diagnostics data.
resp = canoe_inst.send_diag_request('Door', '10 01')
print(resp)

# Stop CANoe Measurement
canoe_inst.stop_measurement()

# Quit / Close CANoe configuration
canoe_inst.quit()

For all available CANoe methods check user documentation.

User Documentation click here

Download files

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

Source Distribution

py_canoe-0.0.9.tar.gz (258.3 kB view details)

Uploaded Source

Built Distribution

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

py_canoe-0.0.9-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file py_canoe-0.0.9.tar.gz.

File metadata

  • Download URL: py_canoe-0.0.9.tar.gz
  • Upload date:
  • Size: 258.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for py_canoe-0.0.9.tar.gz
Algorithm Hash digest
SHA256 44345b7268ed9caa2b18e0f93b4df5c98cff0615fac7b8992e4fbba05d5435a8
MD5 031ed08e9c02633017225f4247c713d1
BLAKE2b-256 f6e7ff730adb19609beff5ab1371cb1d304fa324d437efae9cb2d25343795404

See more details on using hashes here.

File details

Details for the file py_canoe-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: py_canoe-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for py_canoe-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 47c76c0476c2d4df872296925cd6298c297719f8de1ef67063d406cd00dedb9c
MD5 2a9a75e7c9598924dcc6a3ef7380acc6
BLAKE2b-256 b7177d669f67f02b0d6a32d839d6742f133775875c9456072a31488bc2331edb

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