Hey Robert, please use the linux-can mailinglist (Cc'ed). Don't post HTML mails there. On 11/20/2012 02:05 PM, Robert wrote: > Hi, > > I try use libsocketcan in my android application to work with CANbus > (ti_HECC ) in HMI device TH-1535 based on ARM3517 Sitara . > > OS Android IceCream Linux kernel 2.6.37 > > > > Add libsocketcan.c to my jni folder and build library > libsocketcan.so use ndk-build (all ok no errors) > > > > If use *can_set_bitrate**(“can0”, 125000),*function*send_mod_request > return -1 (errno = 1, err->error = 2).* If the libsocketcan isn't buggy here, and errno equals 1, you should have a look at the errno definition[1]. An errno of 1 means "Operation not permitted". In non Android Linux systems you need to be the root user to set the bitrate. [1] http://lxr.free-electrons.com/source/include/asm-generic/errno-base.h#L4 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 |