2008-12-19 04:32:11     CAN Acceptance Mask

Document created by Aaronwu Employee on Aug 9, 2013
Version 1Show Document
  • View in full screen mode

2008-12-19 04:32:11     CAN Acceptance Mask

ivan ucles (GERMANY)

Message: 66945   

 

Hi, i try to change the CAN acceptance mask in the bf 537.

 

I do:

 

        Config_par_t  cfg;

        volatile Command_par_t cmd;

 

 

            cmd.cmd = CMD_STOP;

            ioctl(fd, CAN_IOCTL_COMMAND, &cmd);

 

            cfg.target = CONF_ACCM;

            cfg.val1   = mask;

            ioctl(fd, CAN_IOCTL_CONFIG, &cfg);

 

            cmd.cmd = CMD_START;

            ioctl(fd, CAN_IOCTL_COMMAND, &cmd);

            return 0;

 

 

 

According to the documentation if i set mask=0x1FFF all ids should be received.

 

However, once i set the mask i stop receiving any messages.

 

Any ideas?

 

Thanks for the help

Attachments

    Outcomes