Comments (3)
Thank you for taking time to check this project. Regarding the points you mentioned:
-
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) -
Yes, you are right!
from iso15765-canbus.
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.
Fixed! Thanks!
from iso15765-canbus.
Related Issues (10)
- Multi-node communication HOT 1
- Error in operator precedence in n_pdu_unpack() HOT 3
- The function send_N_PCI_T_FC calls send_frame with wrong parameters HOT 1
- N_UNE_PDU return value in process_in_cf() HOT 2
- From which document can I find the rules for N_AI mapping to 11bit CAN ID? HOT 1
- [Question] How interact with hardware HOT 10
- Implementation in STM32HAL HOT 1
- I think this is written incorrectly HOT 2
- Flow Control Management? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iso15765-canbus.