Using pyxcp to communicate via a xcp and asap2/cdf #172
Replies: 12 comments 12 replies
-
Yes, this could be basically done with As a starting point (after installation), please refer to discussion #165 for some useful information -- documentation is hopefully coming soon. |
Beta Was this translation helpful? Give feedback.
-
I'm pretty sure your |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm sorry to bother you. I'm trying to run xcphello.py file. TRANSPORT = "ETH" and I created a pyxcp_conf.py from it. C:\Dev\hot_upgrade\fw_update_atp>python xcphello.py |
Beta Was this translation helpful? Give feedback.
-
One thing looks really odd: XCP slaves are usually listening on port 5555 per default, while 22 is reserved for SSH... |
Beta Was this translation helpful? Give feedback.
-
OK, if the communication between Matlab and your target is working, then the packet sniffer Wireshark would be a great help to see whats going on. |
Beta Was this translation helpful? Give feedback.
-
Hello Christophe, |
Beta Was this translation helpful? Give feedback.
-
Yes, the neccessary raw commands for measurement and calibration stuff are of cause available. But you don't need to start on this level -- on multiple requests I added some high-level functions for DAQ list recording; I any case, please also have a look a this discussion, which I'll re-use for documentation purposes. The high-level calibaration functions are partly available as part of asamint, basically missing is a common internal representation for the various calibration data formats (CDFX, DAMOS, CVX, ...), but I'm currently working hard on this issue. And the script xcp_info.py should be much more useful than |
Beta Was this translation helpful? Give feedback.
-
While there is also the possibility to do live processing (callback based), in case of daq_parser = DaqRecorder(DAQ_LISTS, "run_daq", 2) # Record to ".xmraw" file. i.e. the result file is Then there are five further example files (starting with |
Beta Was this translation helpful? Give feedback.
-
OK, then you need to trace the XCP traffic -- use command line parameter |
Beta Was this translation helpful? Give feedback.
-
OK, looks good at the first sight -- the only really strange thing seems to be an immediate shutdown after starting the DAQ lists,
would never be reached... |
Beta Was this translation helpful? Give feedback.
-
In DAQ-list mode, the measurements are send periodically from slave to master. The thing is: the setup procedure seems to run without any problems (otherwise there where Python exceptions), daq_parser.start() # Start DAQ lists.
time.sleep(15.0 * 60.0) # Run for 15 minutes.
print("Stop DAQ....") but pyXCP seems to terminate immediately (cleanly) for no reason, which is really strange ... |
Beta Was this translation helpful? Give feedback.
-
Maybe, just try a few minutes. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to use pyxcp to communicate with an embedded HW running an application generated via matlab Simulink Embedded Coder. By default matlab support communication via xcp and asap2/cdf protocol. Is the pyxcp the right choice? Matlab provides 2 "calibration files": ASAP2 and CDF format. Is there a simple example to see how I could use them?
thanks
Michele
Beta Was this translation helpful? Give feedback.
All reactions