[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4694: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4695: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4696: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
8devices Community - View topic - usb2can: Linux driver
www.8devices.com
View unanswered posts | View active topics It is currently 24 Apr 2024, 19:33



Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next
 usb2can: Linux driver 
Author Message

Joined: 28 Oct 2012, 09:11
Posts: 25
Hi!

When will a Linux driver be available?
Is it possible to get the protocol?

regards,
Bernd


28 Oct 2012, 09:17
Profile

Joined: 07 Dec 2011, 16:01
Posts: 525
Location: Lithuania
I can provide canal dll and kernel driver for windows source codes


29 Oct 2012, 08:19
Profile

Joined: 28 Oct 2012, 09:11
Posts: 25
I never developed a linux driver, but I'll give it a try. I think SocketCan or an ioctl controlled character device will be the right way to do this.

Please send the source code to my mail address (krumboeck<at>universalnet<dot>at) or tell me an address where I can download.

regards,
Bernd


29 Oct 2012, 09:46
Profile

Joined: 28 Oct 2012, 09:11
Posts: 25
Searching for testers!


I've created a repository on github:
https://github.com/krumboeck/usb2can

The driver is very experimental.
It comes WITHOUT ANY WARRANTY!!!
It can destroy parts of you software and hardware. --> that's not a joke

Compilation was only tested on linux 3.2.0 x86-64.
Hardware was only tested in loopback mode, because I don't have any CAN hardware (except this adapter).


USB port sniffing:
mount -t debugfs none_debugs /sys/kernel/debug
modprobe usbmon
wireshark

http://biot.com/blog/usb-sniffing-on-linux


Build socketcan utils:
mkdir socketcan
cd socketcan
svn checkout svn://svn.berlios.de/socketcan/trunk
cd trunk/can-utils
make


Play around with socketcan utils:
Dump can socket on a console:
./candump can0

Send can frame on another console:
./cansend can0 500#1E.10.10


05 Nov 2012, 16:54
Profile

Joined: 28 Oct 2012, 09:11
Posts: 25
STILL LOOKING FOR TESTERS!!

Please don't fear. Many fixes and improvements were implemented since my last post.
Sadly I have no second can device, so I can only play with the adapter itself.

What should work:
* bittiming (up to 1MBps)
* sending and receiving data
* error detection
* error counter
* loopback mode
* silent mode
* 11bit and 29bit IDs

regards,
Bernd


09 Nov 2012, 17:04
Profile

Joined: 14 May 2012, 15:48
Posts: 196
I don't think people are afraid to test your driver... I'd suspect people would be happy to help you out with it. But I for one don't have any CAN hardware laying around, so I can't help you out. And I suspect that most people around here don't have any CAN hardware either.
Sadly this is still a rather small community :/


13 Nov 2012, 09:27
Profile

Joined: 04 May 2012, 08:55
Posts: 61
Hi Bernd,

many thanks for your work on the Linux USB2CAN driver. I've tested your code: Loopback is working :-)

But normal mode not:
I have a LPC1768 testboard with testcode sending 1Mbps CAN-Frames - I only get two Error Frames
after the transmission was started. The test setup was used many times before and is verified to work.

Is the setup code missing ? I didn' dive into the code yet ...


Regards

Gerd


17 Nov 2012, 17:16
Profile

Joined: 28 Oct 2012, 09:11
Posts: 25
Hi Gerd!

Sorry for the delay, but I didn't get a notification mail about your post. Many thanks for your test.
I will try to help you, but we shouldn't spam this forum with this task.

Please send a mail to "krumboeck<at>universalnet<dot>at".

regards,
Bernd


20 Nov 2012, 08:32
Profile

Joined: 14 May 2012, 15:48
Posts: 196


21 Nov 2012, 11:56
Profile

Joined: 28 Oct 2012, 09:11
Posts: 25
Sorry, but I don't think a forum is the right place for handling driver issues.

Issues should be reported to the bugtracker on:
https://github.com/krumboeck/usb2can/

Some issues need a long conversation about tests, speculations, possible solutions, ...
I appreciate your patience and will post a solution when we fixed this issue.

If someone know the answer to any of the following questions, it would be helpfull:
* APB_CLK frequency?
* Settings for BRP, SJW, TSEG1, TSEG2 for 1MBps?
* Default setting for DAR flag?

regards,
Bernd


22 Nov 2012, 09:36
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.