Discover and configure PROFINET devices with the PROFINET Discovery and basic Configuration Protocol (DCP) protocol.
Project description
PROFI-DCP
A simple Python library to send and receive messages with the Profinet Discovery and basic Configuration Protocol (DCP) protocol. It can send requests and parse the corresponding responses to identify devices over the network, get and set their parameters or reset them to factory settings. Documentation can be found here and in the examples directory.
This is a fork from pnio_dcp.
Installation
Release
The latest release is available in the public PyPi repo. Install via pip:
pip install profi-dcp
From git repo
You can also install directly from the git repo.
- Clone the repository
git clone <git-url> <destination>
- Change into the clone directory
cd <destination>
- Install via pip
pip install .
Windows
To use this library on Windows, Npcap (or WinPcap) is required. Npcap can be downloaded from here: https://nmap.org/npcap/
Linux
On Linux, no additional installations are required since raw sockets are used instead. However, this requires running it with root permission.
Other Operating Systems
PNIO-DCP has not been tested on any other operating systems besides Windows and Linux.
CLI
profi-dcp
is the main entry point to the CLI.
It supports various subcommands which execute some basic functions.
For more information use the help flag (profi-dcp -h
).
Subcommands
identify
is a subcommand to identify devices.set-ip
is a subcommand to set a new ip address for a device.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file profi_dcp-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: profi_dcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70ea3d45424cb901dd99b916cf9252e6d91e2355e980443fe2700e643d4181c2 |
|
MD5 | bfc512211a00388a2b8a2ef10a5f1473 |
|
BLAKE2b-256 | 77a672e1bc669ef39207f7211846b2ea9333a2dcc239e1267ddbb22f070ba189 |