On 10/18/2010 01:46 PM, André Lochotzke wrote:
> Hello,
> 
> I want to set the bitrate of an EMS PCI card from an application and not
> use the ip tool.
> The reason is that I don't want to have to compile the newest version of
> ip and that way I would also be able to dynamically change the bittiming
> parameters from my application for testing purposes.
> 
> Is there code besides the ip tool that does that? I'm looking for a
> simple program or some documentation on the necessary ioctls.

The ioctls current version of socketcan doesn't support the ioctl
anymore, we not use netlink for this.

If you don't want to assemble the netlink messages by yourself, you can
use the LGPL'ed library libsocketcan:

http://www.pengutronix.de/software/libsocketcan/download/

You can use pengutronix's canutils if you want to set the bitrate from
the (shell) userspace.

use http://www.pengutronix.de/software/socket-can/download/canutils/v4.0/

cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to