All Questions
173 questions
1
vote
0
answers
118
views
DroneCAN: GNSS-node CRC errors
I am trying to make a Dronecan GNSS-node from a stm32g4, using fdcan but with a classic can implementation(8byte payloads), I use the canard lib for managing the node. but when trying to receive the ...
0
votes
1
answer
53
views
bus0.recv(timeout=1.0) can't handle CANFD msg
In my Ubuntu22.04, I can not use bus0.recv API to acquire CANFD msg.
at first, I set up two virtual CAN device named "CAN0" and "CAN1".
In Terminal 'A',I run the Python program ...
0
votes
0
answers
172
views
how to send a can bus message with 2 seconds between spaces in python-can
I want to be able to send a message on canbus one with 2 seconds between them
have tried some python can examples with the same result
can send and receive with python-can code
now I don't know if I'm ...
0
votes
1
answer
121
views
CANoe Physical to functional requests
I need to control CANoe with Python using win32com and change Physical Requests to Functional Group Request. This can also be seen in Diagnostics/ISO TP Configuration under CAN Networks under ...
2
votes
0
answers
173
views
No output when Extracting CAN Bus Logging Data Using DBC Files in asammdf (Closed)
Update 7/12: The issue was the mdf file was not closed.
mdf.close() does the trick
I am trying to extract CAN bus logging data from an MDF file using a set of DBC files with the asammdf library in ...
0
votes
0
answers
187
views
Python Script with Multithreading and CAN Bus Communication Does Not Terminate
I am working on a Python script that sets up communication between multiple Electronic Control Units (ECU1 and ECU2) using the python-can library. The script is designed to read messages from a BLF ...
0
votes
0
answers
65
views
os.system in python code crashes raspberry pi terminal?
I'm trying to use can bus on the raspberry pi and I'm using a waveshare dual can hat. the sample code give is this:
import os
import can
print("hello1")
os.system('sudo ip link set can0 ...
-1
votes
1
answer
83
views
PiCan Filtering
So I am pretty new to can bus stuff but i need a way to "select" certain bits(46-30) of the 64 bit Data part of the can frame. Here is what i have so far.
import os
import time
import can
...
1
vote
0
answers
143
views
Single millisecond send resolution with python-can, Vector CANalyzer
python version: 3.9.13, python-can version: 4.0.0
I am trying to send a CAN message every millisecond using python-can to access Vector's CANalyzer software. Using the code below, I would expect to ...
0
votes
0
answers
160
views
Python Can-bus comunication doesnt stop sending messages
Good day.
I have the following python code:
#!/usr/bin/env python
import time
import can
import os
import csv
import pdb
os.system('sudo ifconfig can0 down')
os.system('sudo ip link set can0 type ...
0
votes
1
answer
334
views
Canopen SdoCommunicationError when trying to read RPDO config
I have a peak CAN adapter connected to a device communicating on the CAN with Canopen.
I use canopen library 2.1.0 with python 3.10.0 to create a network, add a node with an eds file and connect.
I'm ...
1
vote
2
answers
2k
views
get diagnostic data from ECU use python-uds
I am trying to get diagnostic data from ECU.
I've tried an example but nothing works out, it always throws some exceptions.
I am using VN5620 as a CAN Interface.
I tried using the raw send command ...
0
votes
1
answer
114
views
which DataIdentifier (DID) I need to get the voltage from ECU?
I use IsoTPSocketConnection of UDS protocol, I want to get the voltage from the vehicleת I wrote (I show part of the code):
with Client(conn, request_timeout=2, config=config) as client:
response =...
0
votes
1
answer
2k
views
How to use python-can to connect the vector virtual bus
How to use python-can to connect to the vector virtual bus. I ran XCPsim(the software provided by Vector to simulate XCP slave) on my computer and wanted to use a python script to connect to the ...
0
votes
0
answers
125
views
python 'socket' has no attribute 'CAN_J1939'
just making a pretty straightforward J1939 reader with the socket library:
import socket
with socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_J1939) as s:
s.setsockopt(socket....