You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@christoph2 Hi pyxcp_conf.py how to config the vector device serial? I try to set " c.Transport.Vector.serial = serial" or "c.Transport.Can.serial = serial", but is also NOK, can you help me sure?
The text was updated successfully, but these errors were encountered:
@XuHaobang
Yes, in your case c.Transport.Can.Vector.serial is the right one -- c.Transport.Can.Serial is a driver for some cheap CAN interfaces.
Note 1: The configuration parameter names are case sensitive!
Note 2: pyXCP uses PythonCAN parameter names unaltered, and in most cases these names correspondend to the resp. APIs.
In case of VectorCAN you may lookup here
Note 3: You may convert an existing TOML configuration with
pyxcp_conf.py is the default name for pyXCP configuration files; when used, the -c option to scripts can be ommited, e.g.:
python .\xcphello.py -c pyxcp_conf.py
becomes
python .\xcphello.py
Tip: One can use xcp-profile create to create new configurations, but the tool could also be used to lookup parameters, if you run xcp-profile.exe create | less
For instance, we can now grep for Serial
## Serial number of the hardware to be used.# If set, the channel parameter refers to the channels ONLY on the specified hardware.# If set, the `app_name` does not have to be previously defined in# *Vector Hardware Config*.# Type: an int# Default: None# c.Transport.Can.Vector.serial = None
@christoph2 Hi pyxcp_conf.py how to config the vector device serial? I try to set " c.Transport.Vector.serial = serial" or "c.Transport.Can.serial = serial", but is also NOK, can you help me sure?
The text was updated successfully, but these errors were encountered: