On 10/21/2010 05:32 PM, Oliver Hartkopp wrote: >> Gerhard, do you have any reference, how a possible DLC values in RTR frames >> can be used? > > The BOSCH CAN Spec says about RTR frames: > > There is no DATA FIELD, independent of the values of the DATA LENGTH CODE
Does the controller send any data bits over the wire? My can network is remote, so I cannot hook up a scope. > which may be signed any value within the admissible range 0...8. The value is > the DATA LENGTH CODE of the corresponding DATA FRAME. > > So indeed this needs to by fixed in the sja1000: > > - always read CAN-identifier _and_ DLC ACK > - copy CAN data on behalf of the RTR bit What do you mean? I think when receiving an RTR message the data bytes can be ignored, thus we don't copy it in the driver. > Looks like this needs to be assured/fixed in each driver anyway. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
