1,226 questions
Best practices
0
votes
0
replies
17
views
Handling RX CAN messages in the AUTOSAR ASWC
I’m working with periodic RX CAN messages in an ASWC. I have several messages with a cycle time of 10 ms, some with 20 ms, and others with 1000 ms. I need to handle them using periodic runnables. ...
2
votes
1
answer
55
views
MCP2515: normal Operation mode and Listen-Only mode
I have two ESP32S, each connected to a CAN driver (MCP2515 + TJA1050). One is constantly sending data, the other is constantly only receiving it. I want whoever receives the data to work in Listen-...
1
vote
0
answers
80
views
ASP.NET Core app in docker container not accessible
I have an ASP.NET Core web app that sends signal through can bus on Raspberry Pi. When I run the app throught dotnet run it runs flawlessly. I had to dockerize, and in order to have access to can bus ...
2
votes
0
answers
112
views
MicroPython MCP2515 CAN bus: Lost some responses at a 10 ms request cycle
I’m working on a Raspberry Pi Pico and MCP2515 CAN bus setup using MicroPython. I’m simulating OBD-II vehicle speed responses (PID 0x0D). At a 100 ms request cycle from my USB-to-CAN adapter (Linux ...
2
votes
2
answers
137
views
Running Zephyr CANopennode example project on alternate boards
Using a setup with the Kvaser Leaf3, Nucleo-G01BRE board, and a CANopennode project compiled using the CubeMX IDE, successful CAN communications take place with both reading and writing the object ...
1
vote
1
answer
155
views
How to efficiently parse data packets into structs
I am currently building functions that take packets of CAN data and parse them into structs depending on their ID as seen below.
Is there a 'cleaner' way of parsing data into structs instead of ...
0
votes
0
answers
149
views
How do I debug a Vector CANalyzer CAPL script with error 01-0025 "Measurement stopped due to recursive lock on environment/system variables update"?
I've been getting error 01-0025 "Measurement stopped due to recursive lock on environment/system variables update". I'm at a loss as to what could be causing this, as there is no recursion ...
1
vote
2
answers
193
views
Using a program vs Function block with cycle times in Codesys
My main language is embedded C/C++, but I have a little background in structured text and worked with Codesys a while back in school. I am still figuring out what is possible and best practice in the ...
0
votes
0
answers
225
views
Interaction layer settings in CAN DBC and Vector CANoe
We are working on a Vector based Hardware in loop project. In Vector CANoe,if I add a network node and assign an simulated node to it, CANoe transmits all the Tx messages of the node on the bus as per ...
1
vote
2
answers
150
views
Infineon c167 atomicity violation can
I have a problem with CAN sending variable of type ulong from microcontroller Infineon C167CS (ST10F168). External microcontroller sends me remote request, and I send data generated by my ...
0
votes
1
answer
73
views
Physical order of devices on the CANopen bus [closed]
I came across an interesting solution that uses CANopen. The devices are mounted on a DIN rail, and the master is connected to several slaves via TBUS connectors. In this case, they should be arranged ...
0
votes
0
answers
103
views
XNET CAN write error - two different type terminals
I'm really new to Labview and XNET CAN vi. I'm trying to interface with a board through CAN bus and I have to configure and set some parameters. As hardware I'm using a CAN HS/FD Interface NI-XNET USB-...
0
votes
1
answer
125
views
How can I check a signal's one bit's value in Vector CAPL?
I need a assistance for my Vector CAPL script below. I couldn't find a way to find out if a signal's value of a message that in my database (one bit) is 0 or 1.
Here is the code:
variables {
message ...
0
votes
1
answer
86
views
STM32 Nucleo F303 Board not sending messages on CAN bus
I'm trying to send a message over a CAN bus with my F303 board, but I'm not getting anything. I have an oscilloscope hooked up to my CAN_Tx pin and I've been getting nothing no matter what I try. I ...
3
votes
1
answer
72
views
Difficulty enabling CAN on ESP32
I am currently trying to implement CAN on an ESP32. Here is my code:
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/twai.h&...
-1
votes
1
answer
170
views
Clear all DTCs using a CAN message
I have created one Windows Forms form to send and read CAN messages of an ECU. When I created a function to clear all DTCs with the command 0x14 0xFF 0xFF 0xFF, the message response was 7F 14 78 (...
-3
votes
1
answer
49
views
How to get infinite(loop) data get with paramiko [duplicate]
I want to get infinite(loop) data from remote server with paramiko.
first, I succeeded in connecting to remote.
I can get data that is not looped in the system. (like a 'ls -a')
but, when I command ...
0
votes
1
answer
48
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
239
views
read Vector log file in BLF format issue
How to read the Vector file format *.BLF using C#?
I found that python-can can be used in Python, but I can't find any information regarding C#
The XL Driver Library is also not there, or did I miss ...
2
votes
0
answers
88
views
Simple CAN message with PIC18F2580
I’m encountering some issues with the CAN BUS module on the PIC18F2580. I should probably mention that I’m new to working with CAN, so I may have overlooked something quite simple.
Currently, I’m ...
0
votes
0
answers
63
views
how to use Thingsboard two way RPC in CAN Connector?
I was able to establish a connection between the ThingsBoard gateway and a CAN network adapter using CAN-Connector, allowing communication with a CAN device. I also created a widget to set up and test ...
1
vote
0
answers
76
views
STM32 cube and CAN-bus
I am working on an STM32 microcontroller project that involves CAN (Controller Area Network) communication and UART. My setup includes the following:
CAN Configuration:
The CAN peripheral is ...
0
votes
0
answers
57
views
STM32F429: CAN cannot receive message from host PC
I am trying to use my STM32F429IGT6 CAN to receive some data from the host computer. The data is basically 4 16-bit unsigned integers (8 bytes in total), the message ID is 0x16 and uses the 11-bit ...
0
votes
0
answers
153
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
0
answers
39
views
STM32F756VGH6 CAN mailbox registers behave unpredictably
I am learning the CAN communication based on register programming. For now, I dont have anything complicated on my mind, dont have any filters or queues set up for CAN packets, my goal is to start a ...
0
votes
0
answers
83
views
STM32 Canbus Multiple Device Weird İssue
I am developing a project with STM32 using the STM32G473CET6 chip and working on a CAN bus system. In this project, the STM32 sends messages to the bus, processes the received messages, and responds ...
0
votes
1
answer
173
views
Shell Script to Log CAN Messages with FIFO
Edit 1-29-25:
My goal is to have access to the last N number of actions that happened. To do this, I imagine that I need to continuously log CANbus messages in the Linux environment in a buffer. Then, ...
0
votes
1
answer
155
views
STM32F4 : Send/receive data to MCP25xxFD using SPI with DMA
I am interfacing the can_fd controller MCP2517FD with the STM32F4 (Cortex-M) using the SPI HAL library.
using the controller driver :https://github.com/SDibla/Cortex-M4-MCP2517FD_Driver
In blocking ...
0
votes
0
answers
111
views
Having Trouble Getting CAN-bus Data to Display on an LCD
I am using an Arduino Uno with a SEEED CAN-bus shield and a 4x20 LCD with the Adafruit I2C backpack. I'm trying to make the Uno recieve several different messages via CAN, then display the data it ...
1
vote
1
answer
70
views
ndo_start_xmit() not called when using cansend command
A little background, I want to receive CAN frames to Linux SOM, which does not have CAN peripheral, so I use stm32 which acts just like a bridge that sends CAN frames over UART to SoM. That part is ...
0
votes
0
answers
64
views
Why is there sometimes a delay on blocking CAN sockets when using 2 threads?
I am writing a library for CubeMars motors that use the CAN communication protocol.
The library uses 2 threads: the main thread does almost everything, while the second thread is a listener that ...
-1
votes
1
answer
136
views
DEM DTC aging depends on the DTC status mask [closed]
when will aging counter of the dtc will starts reducing, specifically based on Which bit of the status mask aging counter will depends.
does it depends on the Bit0: Test failed or Bit1 test failed in ...
0
votes
1
answer
121
views
AUTOSAR based application software component for reading CAN messages
I am new to AUTOSAR and COM stack. I am trying to write arxml file for application software component that will receive one CAN message asynchronously and do the decoding. ID is 0x500, DLC is 8 and ...
0
votes
1
answer
130
views
Switching between two CAN messages
I have a robot that is moving when it received the CAN message. So, on the robot side I have only one Port for CAN message receiving but I am giving the CAN message from two difference controller, one ...
0
votes
0
answers
97
views
IS CAN NM message suppression possible in AUTOSAR
My ECU sends NM message default at startup. I need to control this behavior to send only on certain events. Is that possible? I'm using EB stack.
2
votes
1
answer
162
views
maximum data size sent by SDO
I have a question about the SDO function.
From what I understand, we can only send messages of 8 bytes and in the case of an SDO where the data exceeds these 8 bytes, it will be stored in an array/...
1
vote
1
answer
600
views
CanOpenNode with stm32
I'm working on CanOpen. I found and used the CanOpenNode open source software. However, the code seems to be running in slave mode. I couldn't switch it to master mode. When it works in this way, I ...
0
votes
0
answers
51
views
Unable to get CAN network to show up in Docker Container despite passing the --network host parameter
# Use the official ROS 2 Humble base image
FROM ros:humble-ros-base
# Set up workspace
WORKDIR /walle_dt
# Install necessary dependencies, including net-tools, can-utils, and ping
RUN apt-get update ...
0
votes
1
answer
638
views
STM32 FDCAN filters not filtering anything
The problem
I am unable to get the HAL CAN filters to filter anything. I have FDCAN working perfectly on my STM32H723VGT6 uController. I would like to now implement CAN filters, but when I configure ...
1
vote
0
answers
149
views
Issues Establishing CAN FD on STM32U575
I'm trying to establish CAN FD communication using the STM32U575 microcontroller, but I've encountered some difficulties. While I successfully set up loop-back mode using the HAL library, I keep ...
0
votes
0
answers
174
views
UDP Multicast Windows
I have developed a C# application that needs to listen for UDP multicast messages. The UDP multicast is being sent from a Linux virtual machine (VM) with the following network details: inet: 192.168.6....
1
vote
1
answer
191
views
STM32L552 CANFD Filter configuration
I'm currently working with CANFD and have to set up the filters in my STM32L552. I need to get four IDs (0, 20, 10, 100).
Currently I only get the two IDs 0 and 20.
FDCAN_FilterTypeDef myFDCanFilter;...
0
votes
0
answers
76
views
What does tx method spontaneous means in arxml
I am designing test cases for an arxml database for CAN-FD bus. Some PDUs are defined with cycle time 0 and tx Method spontaneous. I am not sure what to expect here and cannot find any reference.
Can ...
1
vote
1
answer
405
views
Send a simple CANopen TPDO
I have some experience with CAN, but completely new to CANopen.
I have instructions to send a TPDO to a specific COB-ID (0x0050). I have the index (0x4602) and sub-index (13) to send the data (16 bits)...
-1
votes
1
answer
179
views
How to use filters with socket can on a Raspberry Pi?
I'm working on a Raspberry Pi based device to communicate with cars via the OBD plug. I have a CAN bus hat (https://www.waveshare.com/wiki/2-CH_CAN_HAT) on a RPi 4.
I can't seem to make the filters ...
1
vote
0
answers
192
views
Sending and Receiving AT Commands with a NUCLEO-F042K6 to a SIM7600G-H Modem
Let me preface this question with the statement that I am not, by any means, an expert in embedded systems engineering but a humble student trying to learn on the fly for a project that will ...
0
votes
1
answer
116
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 ...
1
vote
0
answers
99
views
interpretion of direct OSEK NetworkManagement How ECU should react when interrupt LimpHome mode (TError, Tmax, Twbs)
I am a tester, working in one OEM project which require (direct) OSEK NM. we bought OSEK stack and also NetworkTestSuite but it report failed in some cases; interrupt LimpHome.
We found some conflict ...
-1
votes
1
answer
985
views
CAPL Signal value assignment and read use physical or raw data?
I am new to CAPL and Canoe, my question is when assign value to signal in CAN message should you assign using physical signal like this:
MSG.Signal_A = raw_data * scale + offset;
Or just assign the ...
0
votes
0
answers
337
views
How to run adb shell commands through flutter app?
I am trying CAN communication using Debix i.MX8 SBC with Android 11 installed. Am running a flutter app in which I need to run CAN(Controller Area Network) commands using adb shell.
Commands I need to ...