• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
netPI profinet device name
I try to connect NHST-T100-EN/PNM V3 with NIOT-E-NPI3-51-EN-RE over profinet.

On the NIOT I've installed netpi-netx-programming-examples container.
There a /home/pi/PNS_simpleConfig was started (with sudo). At the first start all necessary drivers were installed. Now the application works well (as I understand). Every second it shows a string: "netX watchdog is alive: nnnn"

NHST device was not able to communicate with it.
I plugged NIOT Profinet port to PC and made a scan with "Ethernet device setup" tool. As expected, IP was And device name was empty.
When I set up device name to "netx51repns" manually by this tool, all errors gone. Now everything looks good.
But now I wonder why device name was not setup. I use your pre-built exmaple "PNS_Simpleconfig". I did not compile it by myself, just run binary.

At the othe hand, I did some debug an found, that device name is set up correctly in SetConfigParams function:

memcpy( ptSetConfig->abNameOfStation, "netx51repns", sizeof( "netx51repns" ) );

I've set a breakpoint to this line and device reached it.
Do you have ideas how to make example working without manual device name setup?
Thank you.
Something went wrong in your post. You should correct it to get it to a better readable state.

First of all I never tried to set the device name from the application side myself. It might be that it is not possible at all to set it. It is possible that the configuration structure "abNameOfStation" for the name is just there cause of compatibility reasons with older firmware version.

Today I can tell you that the PROFINET standard prescribes that a fresh PROFINET is not allowed any more to have a default name. The reason is quite easy to understand. If you connect mutliple devices to a PROFINET network at the same time and they all have the same name then the PROFINET controller has no chance to indentify the different devices. This is why the PROFINET standard defines to have an extra separate PROFINET networking tool that configures all the devices having by default no name and the IP address of manually with.

I will check out if it is possible to change the name from application side or if it is no longer supported cause of the PROFINET standard.

You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

Thank you Armin!
There is no need to check from application. If this is outside of specification, I don`t want this feature.
Now everything is clear for me, 
thanx again.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Profinet to Siemens PLC j.langlois 4 4,214 January-26th-2021, 06:11 PM
Last Post: j.langlois
  missing the menu items from IO Device Configurator tad 5 3,803 November-20th-2020, 07:41 AM
Last Post: Armin@netPI
  Profinet name lost after reboot Dipro 7 5,597 November-16th-2020, 01:07 PM
Last Post: Armin@netPI
  Profinet stopped working (spidev spi0.0: SPI transfer timed out) Schranz 7 5,821 November-2nd-2020, 04:20 PM
Last Post: Armin@netPI
  Accessing a modbus device connected to RTE port from Node-RED tad 10 8,952 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  how to pick up PROFINET data and store them to OPC UA server on Node-RED/netPI. tad 7 6,440 March-16th-2020, 10:21 AM
Last Post: Armin@netPI
  PROFINET IO startup compilation arpan.patel@slscorp.com 3 3,276 February-24th-2020, 12:47 PM
Last Post: Armin@netPI
  Profinet Startup Time Schranz 3 3,926 November-18th-2019, 03:22 PM
Last Post: Armin@netPI
  Codesys RTE profinet echteler 2 3,752 September-25th-2019, 09:56 AM
Last Post: Armin@netPI
  normal ethernet port using for Profinet MGharat 4 5,209 August-7th-2019, 10:39 AM
Last Post: hannes

Forum Jump:

Users browsing this thread: 1 Guest(s)