Example code for the XNET Automotive Ethernet Socket API from grpc-device.
- Install python
- Get Poetry
- Recommended: Set virtualenvs.in-project to true.
- Install NI-XNET driver.
- Download grpc-device server from latest builds, or from releases >=1.5
- In pre-release 1.5 builds add
"code_readiness": "nextrelease",
toserver_config.json
- In pre-release 1.5 builds add
- Run
ni_grpc_device_server.exe
git clone https://github.com/astarche/grpc-xnet-socket-examples
cd grpc-xnet-socket-examples
poetry install
poetry run python -m client.loopback -s localhost:31763
poetry run python -m client.udp -s localhost:31763