-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wolfgang Grandegger schrieb: > Matthias Fuchs wrote: >> Hi, >> >> I am wondering what is the best way to provide >> some product information for a CAN interface device (hardware version, >> serialno, firmware version)? My favour way is to generate some files >> in sysfs as it is typically (but limited) done for USB devices. >> >> Would /sys/class/net/can*/version be suitable? > > I just understood from Oliver, that your are speaking about device > specific properties (and not common one). Then just use > device_create_file(), which will create entries in /sys/devices/... > (the symbolic link /sys/class/net/can*/device). We are talking about common properties (e.g. manufacturer, serial number, ...) and specific properties (e.g. enable +5V output).
Imagine a GUI application which displays all available CAN channels. How does the user differ between 2 or 3 connected devices or just think about the 4 channel CPC-PCI board. How does the user know which can* device is which channel? In our proprietary products we have a similiar situation as in Socket CAN. In Socket CAN you have abstract can* network interface to access the actual physical channel. In our library CPC-LIB you have CHAN*, these logical channels (CHAN*) must be configured using device information (e.g. CHAN00 is CPC-PCI board #1, channel #2, CHAN02 is CPC-USB with serial #1923). If the candev system would provide a common to get this information, a GUI display or even a terminal application can display additional information about each channel, so the user can decide which channel he wants to actually use. Sebastian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkrvxOUACgkQpqRB8PJG7XzVGgCdHZBbIHeON4SSJhLTAcKhfB7r gKcAn2uhzJmBoaPjsYqX4v3INufvcTIx =4pfH -----END PGP SIGNATURE----- -- EMS Dr. Thomas Wuensche e.K. Sonnenhang 3 85304 Ilmmuenster HRA Neuburg a.d. Donau, HR-Nr. 70.106 Phone: +49-8441-490260 Fax : +49-8441-81860 http://www.ems-wuensche.com _______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
