Martin Henne wrote:
> On Thursday, Okt. 15th, 4:09:30pm, you wrote
>>> $ cansend can0 201#11.22.33.44.55.66.77.88
>>> socket: Address family not supported by protocol
>> Is the module raw.ko loaded?
> 
> Yes it is. (According to lsmod).


Is this the correct raw.ko?

On my machine it looks like this:

$ lsmod | grep can
can_raw                 4139  0
can                    19503  1 can_raw
vcan                    1194  0

You can probably copy the file

   socketcan/trunk/etc/llcf

to your /etc/modprobe.d directory.

The llcf file contains

# protocol family PF_CAN
alias net-pf-29 can

# protocols in PF_CAN
alias can-proto-1 can-raw
alias can-proto-2 can-bcm
alias can-proto-3 can-tp16
alias can-proto-4 can-tp20
alias can-proto-5 can-mcnet
alias can-proto-6 can-isotp
alias can-proto-7 can-bap

that makes that module autoload on some machines :-)


> Oh, I didn't know that the problem with "socket: Address family not supported 
> by protocol" is related to the character device interface. 


Indeed your driver is compiled with netdev support:

*------------ PEAK-Systems CAN interfaces (www.peak-system.com) -------------
*--------------------------  Release_20090626_n  ----------------------------
*------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] [net] --------------
*--------------------- 1 interfaces @ major 249 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32    usb can0 ffffffff 255 0x001c 00000000 00000001 000001c0 00000000 0x0000

The ndev for your USB adaptor is can0 and runs at 500kbit/s

To ask for the "Address family not supported" problem here is quite ok :-)

It's not a PEAK problem.

Regards,
Oliver
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to