On 05.08.2011 16:07, Padma Chavala wrote: > Hi > I want ot test whether CAN is working or not on my board. > I enabled the driver and I'm able to check till > ifconfig can0 up > after that I want to use can utilities like cansend,candump,canecho .. and > check the data transfer.. > I want to download socket CAN utilities and integrate in my code. > Can anyone tell me where to download from.
Hi, just check out the latest SocketCAN SVN tree: http://developer.berlios.de/svn/?group_id=6475 in socketcan/trunk/can-utils is all you need. With 'make' the tools compile and with 'make install' (as root) they are simply copied to /usr/local/bin > 2) > I wrote an application to test loopback on CAN > I'm creating a socket using socketcan information but when execute I get > "Protocol not Supported" > > socket(PF_CAN, SOCK_RAW, CAN_BCM); > is failing to create socket descriptor. As expected :-) CAN_BCM is not a SOCK_RAW socket type. See http://lxr.linux.no/#linux+v3.0.1/Documentation/networking/can.txt#L245 Additional to that read-worthy doscumentation you can also get some ideas when looking at the files in socketcan/trunk/test or socketcan/trunk/can-utils Regards, Oliver _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
