Skip to end of banner
Go to start of banner

Ethercat.xml file cannot be downloaded ?

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Hilscher firmwares usually take .NXD (Hilscher database) files for configuration, which are automatically downloaed during driver startup.

EtherCAT Slave firmwares make an exception here and are able to use Beckhoff's XML configuration file, which must be named ethercat.xml.

These XML files are not downloaded per default, so either the configuration must be manually done by the application using xChannelDownload() command and execute a CHANNEL_INIT afterwards,
or patch the driver source by adding another file type being downloaded (see following excerpt):

BeforeAfter
USER_LINUX.c
uint32_t USER_GetConfigurationFileCount(...)
{
...
  if(0 == strncasecmp(szExt, HIL_FILE_EXTENSION_DATABASE, 4))
...
}

int USER_GetConfigurationFile(...)
{
...
  if(0 == strncasecmp(szExt, HIL_FILE_EXTENSION_DATABASE, 4))
...
}
USER_LINUX.c
uint32_t USER_GetConfigurationFileCount(...)
{
...
  if( (0 == strncasecmp(szExt, HIL_FILE_EXTENSION_DATABASE, 4)) ||
      (0 == strncasecmp(szExt, ".xml", 4)) )
...
}

int USER_GetConfigurationFile(...)
{
...
  if( (0 == strncasecmp(szExt, HIL_FILE_EXTENSION_DATABASE, 4)) ||
      (0 == strncasecmp(szExt, ".xml", 4)) )
...
}
netX based Virtual Ethernet Interface
  • No labels