October-7th-2020, 09:29 AM
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.
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.