Send a proper CALL #731
Unanswered
gconceicao
asked this question in
Q&A
Replies: 1 comment
-
Problem Solved, It just change the Super() on Start task to wait the answer fisrt.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to sending a CALL function to charge point but I'm facing some issues to receive the answers of the CP.
Follow the code to suport the solution.
class CentralSystem:
def init(self):
self.connections = {} # Dicionário de conexões ativas
self.connection_events = {}
self.last_activity = {}
self.logger = Logger.Logger()
self.server = None # Adiciona referência ao servidor
With this code, I then call the send_command_to_chargepoint function that checks which command I should send to the CP (Charge Point).
The problem is that this response from self.call never arrives, it always hits the timeout. I'm using a charging station simulator software that's already certified and 100% functional. In this software, I receive the information from the CS (Central System), and it also shows the response being sent almost instantly.
Request recieved : [2,"7a0f84f9-fdc9-4c7c-b0bb-6da4602a8483","UnlockConnector",{"connectorId":1}]
18/06/25 13:35:02:945 : 001 :
Sending response : [3,"7a0f84f9-fdc9-4c7c-b0bb-6da4602a8483",{"status":"UnlockFailed"}]
Beta Was this translation helpful? Give feedback.
All reactions