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
Switch to CBV2G from OpenV2G for DIN, ISO-2, PnC and SAP #563
base: main
Are you sure you want to change the base?
Switch to CBV2G from OpenV2G for DIN, ISO-2, PnC and SAP #563
Conversation
f2c8c5e
to
6ccfc8b
Compare
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.
For now, the PR looks really good. I have just successfully started and finished a DIN session in the SIL. Now the code has to be tested a lot in the SIL and on real cars. I'll be doing that over the next few weeks
ba9982d
to
63a6b24
Compare
63a6b24
to
3378b16
Compare
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.
I found a few little things
I was able to successfully test DIN and ISO-2 AC & DC EIM with the SIL. Only with PnC there seems to be a problem with the authorization. I'll have a look at that soon. Once this has been resolved, I would also test this PR on a few cars. Please update/rebase your branch to eversest-core main. Then there should be no more conflict with the dependencies.yaml. |
I had a few errors building with main, which is why this was rebased to the release initially (probaly had to checkout different dependencies, but am not aware of an easy way to do that. So I didn't 😐 ). I didn't think it was going to cause merge conflicts in the actual module code.
|
You can also just clone everest-core and during cmake I totally agree with |
I will try again then when I get home. Last time I tried to build master as is it didn't like my effort. |
You have two options: Or you can clone only the repos you work on. For me it is usually:
First, edm checks whether all necessary repos are stored locally in the same folder as everest-core. If not, then edm download the missing repos in the $CPM_SOURCE_CACHE folder or build folder. The second option should be somewhere in our documentation 😅 |
3378b16
to
25e7afb
Compare
Question: does it make sense to enforce the requirement of unused variables in the SignedInfo type? |
Yes, add that 👍 |
I activated the pr actions (A maintainer have to approve this for forks 🤷)
This Docker image is also used here in the actions. This ensures that the same clang-format version is used. |
The command has some issues. The quote isn't even closed and when I do add it docker can't find the image. I did the clang check manually with git-clang-format HEAD~4. I fixed it in one of the commits. |
a82aeb4
to
f434789
Compare
modules/EvseV2G/iso_server.cpp
Outdated
bitstream_t stream = {MAX_EXI_SIZE, buf, &buffer_pos, 0, 8 /* Set to 8 for send and 0 for recv */}; | ||
const struct iso2_ReferenceType* req_ref = &sig->SignedInfo.Reference.array[0]; | ||
exi_bitstream_t stream; | ||
exi_bitstream_init(&stream, buf, MAX_EXI_SIZE, 8, NULL); |
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.
Please change the 8 to a zero. That is the reason why PnC don't work. The Exi fragment is encoded with an 8 byte offset, so of course the digest value is no longer correct.
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.
Well. That's embarrassing.
I didn't even copy paste that. I actually typed 8 for some reason.
Now PnC works also in the SIL. All that's left now are the tests with real cars. |
Sorry about the incorrect clang-format cmd. I always use podman, so my cmd is slightly different. That should work here:
Docker should find the image, I was able to pull it normally with podman earlier. |
f434789
to
ea7591f
Compare
The 8 has be turned into a 0 🤦 Docker is still complaining with docker: invalid reference format. The eventual command was: docker run --user "1000:100" --volume "$(pwd):/source" ghcr.io/everest/everest-clang-format:latest -r /source --extensions "hpp,cpp" -e "/source/cache" -e "/source/build" -e "/source/build-cross" -e "/source/build-clang" -i |
ea7591f
to
b3a57db
Compare
|
b3a57db
to
f338f36
Compare
Will tag as post-release, I think we need a lot more testing and it should be merged after the march stable release |
Signed-off-by: Siebren <siebren.w@gmail.com>
Signed-off-by: Siebren <siebren.w@gmail.com> remove unnecessary '-1' Signed-off-by: Siebren Weertman <siebren.weertman@heliox-energy.com> fix PnC offset
Signed-off-by: Siebren Weertman <siebren.w@gmail.com>
f338f36
to
2755cfe
Compare
This is the initial work to switch from OpenV2G to CBV2G in the EvseV2g module.
Currently The following is done: