examples not working for me #100
Unanswered
SpieringsAE
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This is a legacy script and indeed not working (I've just removed it). As a starting point you should use: python xcphello.py -c conf_eth.toml There are various example configurations in .json and .toml format. Here you find the configuration documentation. For A2L action in general use pya2ldb. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to use this library to read information from a running program via xcp.
And as there is not a lot of documentation yet i thought let's try some of the examples and see what happens.
However they don't seem to be working for me, most give this error: TRANSPORT must be specified in config!
Which comes from config.py, but all of the other conf files seem to contain TRANSPORT fields that have entries in them.
and when i run xcptest.py it complains about the entries of the Eth() method:
`
Exception has occurred: TypeError
init() got an unexpected keyword argument 'port'
File "/etc/pyxcptest.py", line 92, in cstest
tr = transport.Eth("localhost", port=5555, protocol="UDP", loglevel="WARN") # "DEBUG"
File "/etc/pyxcptest.py", line 590, in
cstest()
`
I think I would like to use the Ethernet protocol, as the program I'm monitoring is running locally on the same controller as the python script I'm trying to make.
But i also have a general question, I'm used to having to load an A2L file to use xcp, but i haven't seen anything related to reading one in the examples. Does the library get that information some other way somehow?
I must admit that I am quite new to stuff this indepth in python.
Beta Was this translation helpful? Give feedback.
All reactions