-
Notifications
You must be signed in to change notification settings - Fork 3
Added the protocol #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: everest/charge_som
Are you sure you want to change the base?
Added the protocol #49
Conversation
@@ -0,0 +1,362 @@ | |||
ChargeState1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the confluence page there was a change to drop the confusing number from ChargeState and ChargeControl.
But based on dbc we should keep it to distinct between the different messages (ChargeState1 & ChargeState2)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets keep the postfix for now ... we can also change that later
|
||
**Senders**: Safety Controller | ||
|
||
.. list-table:: Signals in ChargeState1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to make those a regular table instead of a "list table", which makes reviewing more easier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output should be good .. I dont know if it makes sense to make a generated file mor readable. And this way it is much easire to implement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The advantage of a normal table is that you don't need sphinx-build to read and compare patches to the rst file.
added firmware version and git hash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I look at the rendered output, I recommend to change:
- The values in the 'start' table colum does not yet makes sense. I don't know at which side of the 8 byte packet the counting starts since it is not described. If I assume it starts "left", then CC_TargetDutyCycle starts at 1 with length 10, but CC_PWM_Active starts at 7 so it looks like it overlaps.
- I recommend for signals without unit, do not use "-" in plain text source since it renders to a bullet point, just leave this cell empty.
- I also recommend leave the cell "ByteOrder" empty for signals with 8 bits or less.
- PTx_Temperature signals have length of 14 bits. Why is 0x1fff used to indicate that the sensor is not used, this are only 13 bits? I'd assume that you mean 0x3fff ?
- In the documentation of the Inquiry packet, the first byte is named "PacketId" and in the description it is refered to "ID" of the message. Above we use "COM Values" - I recommend to clarify somehow to make it more clear.
- a Git hash is 160 bit (SHA-1), that are 20 byte, not 64 byte as documented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this as-is once the chargebyte CbChargeSOM driver is updated and uses the new protocol.
I think we can merge this after chargebyte/everest-chargebyte#27 is merged. |
For a first review ... the first 3 messages are documented