On 17.11.2011 07:49, Heinz-Jürgen Oertel wrote: > > On 15.11.2011 19:33, Oliver Hartkopp wrote: > >> I forgot to mention that you can also use the PCAN ioctl() interface on the >> PEAK chardevices or their pcanlib ... >> > > Danke Oliver, > > for now I decided to use something like > > system("echo \"i 0x4914 e\" > /dev/pcan0"); > > Unfortunately at the moment I have no idea how to determine if I'm just > talking to an Peak or an EMS interface to select the method of setting the > bit rate.
An idea is to write different udev rules due to the different USB Vendor IDs, that do the initialization in different manners. If you want to set the default bitrate for all PEAK devices, you can set the global default bitrate on the module commandline. Regards, Oliver _______________________________________________ Socketcan-users mailing list Socketcan-users@lists.berlios.de https://lists.berlios.de/mailman/listinfo/socketcan-users