July-20th-2021, 01:00 PM
Hi Armin,
Thanks for the support.
it seems the example already takes care of this bit(see below 1). and I was not able to configure a second netPi with the tool.
I tried to change the name of the device, was hoping it will do the job (see below 2) with no success.
any idea what else shoud I try ?
Regards,
Roy
1)
ptSetConfig->ulSystemFlags = PNS_IF_SYSTEM_START_AUTO_START |
PNS_IF_SYSTEM_STACK_HANDLE_I_M_ENABLED |
PNS_IF_SYSTEM_ARDY_WOUT_APPL_REG_ENABLED |
PNS_IF_SYSTEM_NAME_IP_HANDLING_BY_STACK_ENABLED; /* Flags to use are defined in this file */
ptSetConfig->ulWdgTime = 1000; /* Watchdog time (in milliseconds) */
ptSetConfig->ulVendorId = 0x011E; /* Vendor ID */
ptSetConfig->ulMaxAr = 0; /* Currently not used */
ptSetConfig->ulCompleteInputSize = sizeof(APP_OUTPUT_DATA_T); /* Maximum amount of allowed input(received) data */
ptSetConfig->ulCompleteOutputSize = sizeof(APP_INPUT_DATA_T); /* Maximum amount of allowed output(sent) data */
2)
memcpy( ptSetConfig->abNameOfStation, "netx51repns1", sizeof( "netx51repns1" ) ); /* The NameOfStation as ASCII char-array */
ptSetConfig->ulNameOfStationLen = sizeof( "netx51repns1" ) - 1; /* Length of NameOfStation */
memcpy( ptSetConfig->abTypeOfStation, "NETX 51 RE/PNS", sizeof( "NETX 51 RE/PNS" ) );
/* The TypeOfStation as ASCII char-array */
ptSetConfig->ulTypeOfStationLen = sizeof( "NETX 51 RE/PNS" ) - 1; /* Length of TypeOfStation */
memcpy( ptSetConfig->abDeviceType, "NETX 51 RE/PNS", sizeof( "NETX 51 RE/PNS" ) - 1 );
/* The DeviceType as ASCII char-array */
memcpy( ptSetConfig->abOrderId, "2231.000", sizeof( "2231.000" ) - 1 ); /* The OrderId as ASCII char-array */
Thanks for the support.
it seems the example already takes care of this bit(see below 1). and I was not able to configure a second netPi with the tool.
I tried to change the name of the device, was hoping it will do the job (see below 2) with no success.
any idea what else shoud I try ?
Regards,
Roy
1)
ptSetConfig->ulSystemFlags = PNS_IF_SYSTEM_START_AUTO_START |
PNS_IF_SYSTEM_STACK_HANDLE_I_M_ENABLED |
PNS_IF_SYSTEM_ARDY_WOUT_APPL_REG_ENABLED |
PNS_IF_SYSTEM_NAME_IP_HANDLING_BY_STACK_ENABLED; /* Flags to use are defined in this file */
ptSetConfig->ulWdgTime = 1000; /* Watchdog time (in milliseconds) */
ptSetConfig->ulVendorId = 0x011E; /* Vendor ID */
ptSetConfig->ulMaxAr = 0; /* Currently not used */
ptSetConfig->ulCompleteInputSize = sizeof(APP_OUTPUT_DATA_T); /* Maximum amount of allowed input(received) data */
ptSetConfig->ulCompleteOutputSize = sizeof(APP_INPUT_DATA_T); /* Maximum amount of allowed output(sent) data */
2)
memcpy( ptSetConfig->abNameOfStation, "netx51repns1", sizeof( "netx51repns1" ) ); /* The NameOfStation as ASCII char-array */
ptSetConfig->ulNameOfStationLen = sizeof( "netx51repns1" ) - 1; /* Length of NameOfStation */
memcpy( ptSetConfig->abTypeOfStation, "NETX 51 RE/PNS", sizeof( "NETX 51 RE/PNS" ) );
/* The TypeOfStation as ASCII char-array */
ptSetConfig->ulTypeOfStationLen = sizeof( "NETX 51 RE/PNS" ) - 1; /* Length of TypeOfStation */
memcpy( ptSetConfig->abDeviceType, "NETX 51 RE/PNS", sizeof( "NETX 51 RE/PNS" ) - 1 );
/* The DeviceType as ASCII char-array */
memcpy( ptSetConfig->abOrderId, "2231.000", sizeof( "2231.000" ) - 1 ); /* The OrderId as ASCII char-array */