• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multiple netrepns
#3
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        */
  Reply


Messages In This Thread
multiple netrepns - by royazriel - July-18th-2021, 01:03 PM
RE: multiple netrepns - by Armin@netPI - July-18th-2021, 02:54 PM
RE: multiple netrepns - by royazriel - July-20th-2021, 01:00 PM
RE: multiple netrepns - by Armin@netPI - July-20th-2021, 01:14 PM
RE: multiple netrepns - by royazriel - July-20th-2021, 01:19 PM
RE: multiple netrepns - by Armin@netPI - July-20th-2021, 02:34 PM
RE: multiple netrepns - by Armin@netPI - July-20th-2021, 03:00 PM
RE: multiple netrepns - by royazriel - July-20th-2021, 03:21 PM
RE: multiple netrepns - by Armin@netPI - July-21st-2021, 06:48 AM
RE: multiple netrepns - by royazriel - July-21st-2021, 07:47 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)