LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2011, 10:22 AM   #1
zawii87
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Rep: Reputation: Disabled
CAN Communication using " can4linux.h"


Hello Members,

I am working on Embedded linux based coldfire microprocessor. I need to do some CAN communication and I am using "can4linux" driver which contain can4linux.h header file to to do CAN controller initialization and communication. you can find the exact file here.

http://www.port.de/pages/misc/can4li...8h_source.html

but I really dont know how to use this to initialoize my controller.

I need to initialize my CAN controller with some specific

baud rate
BitTiming SJW:2
TSEG1 : 60%
TSEG2 : 40%
sample ponits 1

and then after initialization I need to send some data to my CAN recieving device device from my target board.

Can any body who have some experience regarding CAN communication can provide me some help in this case

Thanks
 
Old 09-16-2011, 01:24 AM   #2
skogsjanne
LQ Newbie
 
Registered: Feb 2010
Location: Norrköping, Sweden
Distribution: Debian
Posts: 9

Rep: Reputation: 1
Hi,

First I have to admit that I have no experience with can4linux.

Maybe you can get some clues here:
http://www.port.de/pages/misc/can4li.../ioctl_8c.html

Ioctl is often used for doing odd things with devices.

Then I assume you handle the CAN controller just as any device (file).

Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
drivers for linux for "Communication controller: PLX Technology, Inc. PCI " pankajd Linux - Hardware 1 10-23-2009 07:19 AM
"ailed to open the Communication Library (COMM.so)" reallynewbie2009 Linux - Newbie 2 09-17-2009 06:02 AM
Gnome/CUPS communication errors - PIXMA ip1700 stops @ "processing" kirbybrown Linux - Hardware 3 08-18-2009 10:55 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
KHotKeys won't start - "Communication Problem" Riddick Linux - Software 0 09-07-2005 12:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration