alfredkrohmer / profinet

Minimal Profinet implementation in Python
132 stars 63 forks source link

Profinet Documentation #1

Open cholletisaik777 opened 8 years ago

cholletisaik777 commented 8 years ago

Hi

I came across your repository while searching for profinet implementation on Sitara TI micro controller.I went through your code.

I am able to understand individual parts of the code,but as a whole I could not understand the flow of the program.

I could not find proper documentation to implement profinet on Sitara. Could you please suggest me some good resources to implement profinet protocol.

alfredkrohmer commented 8 years ago

Hi,

I learned a bit about and did some practical work with profinet at university and I just googled/asked the tutors for most, but that was almost a year ago; so I won't be of much help here I suppose :)

For the program itself: it basically contains a command line interface (main.py) and a web GUI (server.py) that can be used independently; you should be able to run the web server with python server.py -i eth0 (or whatever NIC you are using). protocol.py contains the description of the different profinet packet types; dcp.py and rpc.py contain the implementation for the DCP and RPC privimites, respectively. I think you need to consult the profinet documentation to find out what exactly they are used for.

hsch0 commented 8 years ago

is this repository to create a PROFINET Slave or Master?

alfredkrohmer commented 8 years ago

Neither, it's mainly for discovery of Profinet devices on the network and for reading and writing some basic information about them via RPC.

bovi commented 7 years ago

@devkid may I ask what kind of license you put your code under? I can't see any standard license description in the documentation.

alfredkrohmer commented 7 years ago

Assume this one.

bovi commented 7 years ago

@devkid thanks for the fast reply! Interesting License, didn't even know it exist (-;

go1312223 commented 6 years ago

@devkid Excuse me,I don't know much about it how to start this program.I try to type python server.py -i eth0 and it sends a packet,but I don't know next step what to do.Should I use main.py to let the web be changed? Could you please suggest me some example commands or step to use this program?I want to use wireshark to observe the behavior and frames.Please teach me if you have time.Thanks a lot.Orz

alfredkrohmer commented 6 years ago

@go1312223 I summed up the general usage in this comment. Note that this is not a full "program", but a merely a dump of some scripts. Please don't try to use the code "as-is" but at most as examples on how to get going.

I do not intent to put more work into documenting this.

ezditto-dio commented 6 years ago

@devkid can you help a bit more with the usage? I'm trying to figure out how to create a test mode using a virtual machine

shrutifiske commented 5 years ago

@devkid Can you please add documentation.

Nemos commented 2 years ago

@alfredkrohmer Can you please add documentation