• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
netPI profinet device name
#1
Hello.
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 0.0.0.0. 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.
  Reply
#2
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 0.0.0.0 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.

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

  Reply
#3
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.
Walter.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Profinet to Siemens PLC j.langlois 4 3,503 January-26th-2021, 06:11 PM
Last Post: j.langlois
  missing the menu items from IO Device Configurator tad 5 3,220 November-20th-2020, 07:41 AM
Last Post: Armin@netPI
  Profinet name lost after reboot Dipro 7 4,803 November-16th-2020, 01:07 PM
Last Post: Armin@netPI
  Profinet stopped working (spidev spi0.0: SPI transfer timed out) Schranz 7 5,016 November-2nd-2020, 04:20 PM
Last Post: Armin@netPI
  Accessing a modbus device connected to RTE port from Node-RED tad 10 7,907 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 5,571 March-16th-2020, 10:21 AM
Last Post: Armin@netPI
  PROFINET IO startup compilation arpan.patel@slscorp.com 3 2,806 February-24th-2020, 12:47 PM
Last Post: Armin@netPI
  Profinet Startup Time Schranz 3 3,396 November-18th-2019, 03:22 PM
Last Post: Armin@netPI
  Codesys RTE profinet echteler 2 3,363 September-25th-2019, 09:56 AM
Last Post: Armin@netPI
  normal ethernet port using for Profinet MGharat 4 4,637 August-7th-2019, 10:39 AM
Last Post: hannes

Forum Jump:


Users browsing this thread: 1 Guest(s)