Code Monkey home page Code Monkey logo

Comments (3)

devcoons avatar devcoons commented on June 8, 2024

Thank you for taking time to check this project. Regarding the points you mentioned:

  1. According to ISO-15765-2 [section 6.5.4.2 at page 19 : The SN shall start with zero (0) for all segmented messages. The FF shall be assigned the value zero (0). It does not include an explicit SequenceNumber in the N_PCI field but shall be treated as the segment number zero (0). So, the first CF should be with SequenceNumber 1 (not 0)

  2. Yes, you are right!

from iso15765-canbus.

Jason0926Ni avatar Jason0926Ni commented on June 8, 2024

I think the SN is correct starting from 1, but when SN reaches 15, it should be 0.

According to ISO-15765-2 [section 9.6.4.3] SequenceNumber (SN) parameter definition
Last rule:

  • that when the SN reaches the value of 15, it shall wraparound and be set to zero for the next CF.

https://en.wikipedia.org/wiki/ISO_15765-2
The sequence number starts at 1 and increments with each frame sent (1, 2,..., 15, 0, 1,...), with which lost or discarded frames can be detected. ...
So the first set of CF(Consecutive frames) start from "1". There afterwards when it reaches "15", will be started from "0".

from iso15765-canbus.

devcoons avatar devcoons commented on June 8, 2024

Fixed! Thanks!

from iso15765-canbus.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.