Hi,

I would like to know how to set the filter masks in order to receive can frames.
In my current code I'm using only standard frames with 11 bits. The three 
possible
situations for me are:

- Read frames from only an identifier: Then I set :
  can_id = 0x1A4
  can_mask = 0x00

- Read all the frames from a service. For instance, to receive all frames from 
NMT
  I set:
  can_id = 0x700
  can_mask = 0x7F

  then I get 11 bit address like this : 111 0xxx xxxx

- Read all the frames from a node. The I set:
  can_id = 0x24
  can_mask = 0x780

  then I get 11 bit address like this : xxx x010 0100

How can I recreate this situation using the socketcan filters?

Regards,
Jorge


________________________________
Este mensaje se dirige exclusivamente a su destinatario y puede contener 
información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario indicado, 
queda notificado de que la utilización, divulgación y/o copia sin autorización 
está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje 
por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y 
proceda a su destrucción.

This message is intended exclusively for its addressee and may contain 
information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any 
dissemination, copy or disclosure of this communication is strictly prohibited 
by law. If this message has been received in error, please immediately notify 
us via e-mail and delete it.
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to