[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
8devices Community
https://www.8devices.com/community/

usb2can: Linux driver
https://www.8devices.com/community/viewtopic.php?f=16&t=241
Page 1 of 3

Author:  krumboeck [ 28 Oct 2012, 09:17 ]
Post subject:  usb2can: Linux driver

Hi!

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

regards,
Bernd

Author:  gedass [ 29 Oct 2012, 08:19 ]
Post subject:  Re: usb2can: Linux driver

I can provide canal dll and kernel driver for windows source codes

Author:  krumboeck [ 29 Oct 2012, 09:46 ]
Post subject:  Re: usb2can: Linux driver

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

Author:  krumboeck [ 05 Nov 2012, 16:54 ]
Post subject:  Re: usb2can: Linux driver

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

Author:  krumboeck [ 09 Nov 2012, 17:04 ]
Post subject:  Re: usb2can: Linux driver

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

Author:  NaYthan [ 13 Nov 2012, 09:27 ]
Post subject:  Re: usb2can: Linux driver

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 :/

Author:  Gerd [ 17 Nov 2012, 17:16 ]
Post subject:  Re: usb2can: Linux driver

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

Author:  krumboeck [ 20 Nov 2012, 08:32 ]
Post subject:  Re: usb2can: Linux driver

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

Author:  NaYthan [ 21 Nov 2012, 11:56 ]
Post subject:  Re: usb2can: Linux driver


Author:  krumboeck [ 22 Nov 2012, 09:36 ]
Post subject:  Re: usb2can: Linux driver

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

Page 1 of 3 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/