Skip to content
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

Enable the SyncEV chargepoint to work. #49

Closed
wants to merge 1 commit into from

Conversation

art103
Copy link

@art103 art103 commented May 6, 2023

I had to make a small change to allow this plugin to work with a SyncEV CP (EVCP-7KW-SIPH32A).
The data received from the WS was being treated as a Buffer and the parsing in ocpp-server.js was failing.

console.log(msgId) before:
<Buffer 5b 32 2c 22 78 2b 39 43 69 43 74 70 6b 6d 54 6d 32 52 67 4c 37 4b 57 6f 53 6a 55 39 47 74 38 59 35 34 5a 41 6c 32 53 71 22 2c 22 48 65 61 72 74 62 65 ... 7 more bytes>

after:
[2,"x+9CiCtpkmTm2RgL7KWoSjU9Gt8Y54ZAl2Sq","Heartbeat",{}]

cs.log before:
5/6/2023, 11:31:20 AM node: CS type: undefined data:
after:
5/6/2023, 11:33:20 AM node: CS type: received data: [2,"x+9CiCtpkmTm2RgL7KWoSjU9Gt8Y54ZAl2Sq","Heartbeat",{}]

The data is treated as a Buffer otherwise.

console.log(msgId) before:
<Buffer 5b 32 2c 22 78 2b 39 43 69 43 74 70 6b 6d 54 6d 32 52 67 4c 37 4b 57 6f 53 6a 55 39 47 74 38 59 35 34 5a 41 6c 32 53 71 22 2c 22 48 65 61 72 74 62 65 ... 7 more bytes>

after:
[2,"x+9CiCtpkmTm2RgL7KWoSjU9Gt8Y54ZAl2Sq","Heartbeat",{}]

cs.log before:
5/6/2023, 11:31:20 AM    node: CS        type: undefined         data: <no data>
after:
5/6/2023, 11:33:20 AM    node: CS        type: received          data: [2,"x+9CiCtpkmTm2RgL7KWoSjU9Gt8Y54ZAl2Sq","Heartbeat",{}]
@bnystrom
Copy link
Collaborator

Thanks.
Changes edited into v1.3.5.

It was easier for me to add your changes to the modified upcoming code release.

@bnystrom bnystrom closed this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants