On 05/18/2011 03:43 PM, Mark Slicker wrote: > On Wed, May 18, 2011 at 10:24 AM, Marc Kleine-Budde <[email protected]> > wrote: >> On 05/18/2011 02:59 PM, Mark Slicker wrote: >>> Marc, >>> >>> Thanks for your quick response. I reverted to my old kernel/file >>> system and did a simple test just to make sure there are no hardware >>> problems, everything seems ok, and the single packet is received. But >>> with the new configuration, no packet is received. I did the following >>> command to set up the can: >>> >>> /sbin/ip link set can0 type can bitrate 500000 >> >> you have to use "ifconfig can0 up" afterwords... :) >> > > Thanks, that solves one problem for me, I can see the message now. It > seems silly but interface changed at lot here since I last used > SocketCAN.
Hmmm...I don't remember a time that ifconfig up wasn't necessary. >>> And then I run my application, which listens for a message, and on my >>> pc I send a single packet. Actually in ifconfig now it shows no >>> packets received or transmitted and no errors, not sure what caused >>> the errors before, but I can be certain that it is a software problem >>> now. >> >> What happens if you send a single CAN frame on the at91? Are you >> properly switching on any transceivers in you board file? >> > > I'm just using the default board setup for sam9263-ek which I think > does this correctly. > > I ran the other program again, this one uses libsocketcan for > configuration, and I see the errors again, I didn't write this code so > I have look into this issue more. Changing the bitrate is only possible if the interface is down. Hence you need to bring it up again, after changing the bitrate. regards, 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 |
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
