now i get messages like this
Code: Select all
x x 0x00000000 4 0x00 0x00 0x00 0x08 155466769 065
the massage rate is also very slow as weel.
...sorry for bothering that much
cheers
Matteo
Code: Select all
x x 0x00000000 4 0x00 0x00 0x00 0x08 155466769 065
Code: Select all
#define CAN_ERR_BUSHEAVY 0x0008 // bus error, errorcounter limit reached
Code: Select all
// MSGTYPE bits of element MSGTYPE in structure TPCANMsg
#define MSGTYPE_STATUS 0x80 // used to mark a status TPCANMsg
#define MSGTYPE_EXTENDED 0x02 // declares a extended frame
#define MSGTYPE_RTR 0x01 // marks a remote frame
#define MSGTYPE_STANDARD 0x00 // marks a standard frame
Code: Select all
x x 0x00000000 4 0x00 0x00 0x00 0x08 155466769 065
Code: Select all
cat /dev/pcan32
Code: Select all
x x 0x00000000 4 0x00 0x00 0x00 0x08
Code: Select all
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
0 pci can2 f7d00000 209 0x001c 00000000 00000000 00000000 00000000 0x0000
Code: Select all
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
0 pci can2 f7d00000 209 0x001c 00000000 00000000 00000000 00000000 0x0000
cat /proc/pcan
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20140723_n (7.12.0) Aug 13 2014 18:20:29 --------------
*---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] -----------------
*--------------------- 1 interfaces @ major 250 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 255 0x001c 00000000 00000000 0000010c 00000000 0x0000
This post all incomming messages to your console - if there are only errors - you see the errors (see my last post) - if there are nothing - you see nothing.cat /dev/pcan32
So far so good.Could you please go step by step...
you have a PCAN-USB - right?
you have installed as CharDev - right?
you have compiled also the samples - right?
if you have all this done - it look s like this when you typecat /proc/pcanthis shows you that the ChgarDev driver is installed and one PCAN-USB is detected.Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) ------------- *------------- Release_20140723_n (7.12.0) Aug 13 2014 18:20:29 -------------- *---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] ----------------- *--------------------- 1 interfaces @ major 250 found ----------------------- *n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status 32 usb -NA- ffffffff 255 0x001c 00000000 00000000 0000010c 00000000 0x0000
It does not show you any CAN Messages - its the list of the instlled devices and which driver type is used.
when i do that I receiveNow you could see if on the CAN Bus are any messages by typingThis post all incomming messages to your console - if there are only errors - you see the errors (see my last post) - if there are nothing - you see nothing.cat /dev/pcan32
Code: Select all
x x 0x00000000 4 0x00 0x00 0x00 0x08 155466769 065
you are definitely right but i want just to understand which problem i have..and this interpretation depends on your productTry to use the receivetest which comes with the samples and study the source code, but up in front try to understand how the CAN-Bus work, what a CAN Message looks like, etc. This forum is for CAN users - the Linux driver for Linux users. We are not able to make basic support for beginners- sorry - you need to read manuals.
Code: Select all
m s 0x000002d0 6 0x01 0x01 0x00 0x01 0x00 0x00 516492425 570