philrhinehart / pycanlibxl

Automatically exported from code.google.com/p/pycanlibxl
0 stars 1 forks source link

How ro use your package #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect my CANcaseXL
2. Set baudrate to 125000
3. Run cantest_receive.py

What is the expected output? What do you see instead?
I should reciived periodic frame from my cluster, but it didn't.
It tells me that "
  CHIP_STATE c=0, t=1056768, busStatus= PASSIVE, txErrCnt=0, rxErrCnt=128
  RX_MSG c=0, t=1081344, type=0000,  ERROR_FRAME tid=00
"

What version of the product are you using? On what operating system?
  the dll version maybe 8.0 or later(my vector CANoe version is 8.0)

Please provide any additional information below.

Original issue reported on code.google.com by pa...@foxmail.com on 3 Nov 2014 at 8:45

GoogleCodeExporter commented 9 years ago
Hello, it seems a problem with bus itself. The chip detects some receiving 
errors and goes therefore in the passive state. You can look if the baudrate of 
your application is really 125kB, otherwise you have to set it manually.
With version 8.0 of Canoe it should work, maybe you have a problem if Canoe and 
the python appl are running in parallel and are accessing the same bus.

Original comment by Schaeffk...@googlemail.com on 9 Nov 2014 at 11:29

GoogleCodeExporter commented 9 years ago
Helli, take a deeo looking into your source code, I found out the the issue 
lies in the default device value you set in API, see hwType in 
xlGetChannelMask, you set it to XL_HWTYPE_CANCARDXL, but my device is 
XL_HWTYPE_CANCASEXL.

Add a suggestion, why not you name it the same as vxlapi.h-->vxlapi.py, and 
hope you that could build a DL/TL/IL/PL layer for the all common services on 
CAN, maybe something like AUTOSAR COM and DCM. 

Maybe we could cooperate together. see my repository on github 
https://github.com/parai

Original comment by pa...@foxmail.com on 10 Nov 2014 at 1:44