GithubHelp home page GithubHelp logo

Comments (8)

Dawalnk avatar Dawalnk commented on September 22, 2024

Is there any chance the signal value will not set because the multiple data bases available. ? Do I need to mention the data base name along with the message?

from py_canoe.

Dawalnk avatar Dawalnk commented on September 22, 2024

Also I tried adding the single data base file as well,

The following code not setting the signal value to 7

from py_canoe import CANoe
from time import sleep as wait

canoe_init = CANoe()
************canoe open
************start measurement
sig_val = canoe_init.set_signal_value('CAN', 1,'ABC_1234', 'setValue',7)
print(sig_val)

Log:
2023-07-06 21:28:57,754 [CANOE_LOG] [INFO ] signal(CAN1.ABC_1234.setValue) value set to 7.
None

Please guide

from py_canoe.

chaitu-ycr avatar chaitu-ycr commented on September 22, 2024

CAN message should be accessible via CANoe network IL layer.
If the message is sent via CAPL or IG block then it is not possible to set the signal same via py_canoe.
It is a restriction from CANoe COM layer.
You can refer the example configuration available in this git repo for more info regarding simulation node.
Please post the sample configuration which you are facing failure. I will check and let u know the exact reason.

from py_canoe.

Dawalnk avatar Dawalnk commented on September 22, 2024

Hello @chaitu-ycr

Thank you for your response.

  1. Do I need to make any special setting for CAN IL?
  2. Is it possible to send the can messages with specific time frames? ex, 20ms,100ms , Cyclicmessage period 50ms etc...

from py_canoe.

Dawalnk avatar Dawalnk commented on September 22, 2024

Hello @chaitu-ycr

With reference to the attached image snap, I could able to see the engine ECU node and Light ECU node are"Canoe IL ...", While other nodes are "Prog..."

With modifications are your code I am able to send the diag requests and got responses also.
While unable to set the signal values. is it because the ECU node which I created is not "CANoe IL... " configured ?

How to change the prog node to Canoe IL... node?, Please guide how to create the CANoe IL ... node.
Using py_canoe the messages can be sent to real ECU's?

image

Thank you in-advance.

from py_canoe.

raghavinti avatar raghavinti commented on September 22, 2024

I am facing a similar issue, can you please guide on how to send can signal using Canoe IL Layer please ?

from py_canoe.

chaitu-ycr avatar chaitu-ycr commented on September 22, 2024

hi @Dawalnk and @raghavinti
step 1 is to make sure your dbc network ecu's support IL. for this please open your DBC and check below screenshot for reference.
image

step 2 is to check whether the node inserted in CANoe is using IL. check below screenshot for reference.
image
image

if your DBC network ECU not configured for IL, then you can set those values by yourself. check below screenshot for reference.
image

*Note: controlling messages via vector CANoe COM port is not possible. there is no CANoe COM function readily available from vector. sending message has to be always configured in CANoe config.
in future vector CANoe releases if vector provides option to control messages, i will update py_canoe package accordingly.

from py_canoe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.