Comments (2)
I'm looking at the xcp_skel.py script in the main branch but how and what would I send to pull data off of a daq?
from pyxcp.
Considering that you have a Raspberry Pi enabled as an XCP slave device, you can use the Master interface. To my knowledge, pyXCP uses an abstract factory design pattern where you can do the following to use the ethernet transport layer via UDP:
from pyxcp.master import Master
xcp = Master("eth", {"HOST": "<slave_ip_address>", "PORT": <slave_port>, "PROTOCOL": "UDP"})
From there you can use the XCP commands as documented in: Vector's reference manual
The library already has support for: connect, disconnect short download and download (For writing values), and short upload and upload (For reading values).
Note: These commands are for polling data only (CTO messages), this will not retrieve anything from DAQ (DTO messages), perhaps @christoph2 has more input on this.
To further understand the library you can review Vector's documentation and take a look into the Master and Eth transport layers.
from pyxcp.
Related Issues (20)
- How to use HOT 12
- SLAVE_ID vs MASTER_ID HOT 3
- Transport ETH socket bind HOT 1
- SeedAndKey DLL returned: ERR_COULD_NOT_LOAD_DLL HOT 1
- python can filter is not correct HOT 7
- XcpResponseError [ERR_ACCESS_LOCKED] - Seed and Key unlock process error HOT 6
- No more queues! HOT 1
- How to collect and save the XCP data ? HOT 15
- REINIT_DAQ HOT 7
- [Question] Retrieve timestamp from frame HOT 1
- How to get daq data?
- ERR_CMD_UNKNOWN HOT 1
- Python 3.12 wheels HOT 2
- XCP-Download command problem HOT 13
- Read error HOT 11
- ERROR:pyxcp.errorhandler:XcpTimeoutError [Response timed out [block_receive].] HOT 7
- How to get DAQ data. HOT 3
- CAN-FD transport MAX_DLC_REQUIRED HOT 4
- Concurrent pyxcp method calls with asyncio HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyxcp.