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

Showing default status Preparing (Without gunconnect) and rejects RemoteStartTransaction #363

Open
demirschmid61 opened this issue Aug 27, 2024 · 1 comment

Comments

@demirschmid61
Copy link

Hello @matth-x,

I did 146 ocpp transactions for 147th transaction the RemoteStartTransaction gets rejected and the connector status shows Preparing without a gun connection. Please have a look at the logs

/----------------------LOGS with connector problem and Reject remote requst----------------------------/

[MO] Send: [2,"1000000","BootNotification",{"chargePointModel":"AC","chargePointSerialNumber":"ABCD","chargePointVendor":"ABCD","firmwareVersion":"0.0.7"}]
[MO] Recv: WS pong
[MO] Recv: [3,"1000000",{"currentTime":"2024-08-27T09:19:32.876446300Z","interval":900,"status":"Accepted"}]
[MO] info (BootNotification.cpp:91): request has been Accepted
[MO] info (StatusNotification.cpp:52): New status: Available (connectorId 0)
[MO] info (StatusNotification.cpp:52): New status: Preparing (connectorId 1)
[MO] Send: [2,"1000001","StatusNotification",{"connectorId":0,"errorCode":"NoError","status":"Available","timestamp":"2024-08-27T09:19:32.887Z"}]
[MO] Recv: [3,"1000001",{}]
[MO] Send: [2,"1000002","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"Preparing","timestamp":"2024-08-27T09:19:32.888Z"}]
[MO] Recv: [3,"1000002",{}]
[MO] Recv: [2,"1954ecad-cc47-46f3-9336-af2e59128563","RemoteStartTransaction",{"connectorId":1,"idTag":"BAEDFCDE"}]
[MO] info (RemoteStartTransaction.cpp:114): No connector to start transaction
[MO] Send: [3,"1954ecad-cc47-46f3-9336-af2e59128563",{"status":"Rejected"}]

/---------------------- ----------------- ----------------------------/

Also, sharing the JSON file data of the following files available in ESP32

- /bootstats.jsn {"bootNr":170,"lastSuccess":169}

- /client-state.jsn {"head":{"content-type":"ocpp_config_file","version":"2.0"},"configurations":[{"type":"bool","key":"Cst_AVAIL_CONN_0","value":true},{"type":"bool","key":"Cst_AVAIL_CONN_1","value":true},{"type":"string","key":"MicroOcppVersion","value":"1.1.0"}]}

- /ocpp-config.jsn {"head":{"content-type":"ocpp_config_file","version":"2.0"},"configurations":[{"type":"bool","key":"Cst_PreBootTransactions","value":false},{"type":"int","key":"ConnectionTimeOut","value":30},{"type":"int","key":"MinimumStatusDuration","value":0},{"type":"bool","key":"StopTransactionOnInvalidId","value":true},{"type":"bool","key":"StopTransactionOnEVSideDisconnect","value":true},{"type":"bool","key":"LocalPreAuthorize","value":false},{"type":"bool","key":"LocalAuthorizeOffline","value":true},{"type":"bool","key":"AllowOfflineTxForUnknownId","value":false},{"type":"bool","key":"Cst_SilentOfflineTransactions","value":false},{"type":"int","key":"Cst_AuthorizationTimeout","value":20},{"type":"bool","key":"Cst_FreeVendActive","value":false},{"type":"string","key":"Cst_FreeVendIdTag","value":""},{"type":"bool","key":"Cst_TxStartOnPowerPathClosed","value":false},{"type":"int","key":"HeartbeatInterval","value":900},{"type":"bool","key":"LocalAuthListEnabled","value":true},{"type":"int","key":"ResetRetries","value":2},{"type":"string","key":"MeterValuesSampledData","value":"Voltage,Current.Import,Energy.Active.Import.Register,Power.Active.Import,Temperature"},{"type":"int","key":"MeterValueSampleInterval","value":15},{"type":"string","key":"StopTxnSampledData","value":""},{"type":"string","key":"MeterValuesAlignedData","value":"Energy.Active.Import.Register,Power.Active.Import"},{"type":"string","key":"StopTxnAlignedData","value":""},{"type":"int","key":"Cst_MeterValueCacheSize","value":1},{"type":"int","key":"ClockAlignedDataInterval","value":0},{"type":"bool","key":"Cst_MeterValuesInTxOnly","value":true},{"type":"bool","key":"Cst_StopTxnDataCapturePeriodic","value":false}]}

- /opstore.jsn {"head":{"content-type":"ocpp_config_file","version":"2.0"},"configurations":[{"type":"int","key":"Cst_opBegin","value":294}]}

- /reservations.jsn {"head":{"content-type":"ocpp_config_file","version":"2.0"},"configurations":[{"type":"int","key":"cid_0","value":-1},{"type":"string","key":"expdt_0","value":""},{"type":"string","key":"idt_0","value":""},{"type":"int","key":"rsvid_0","value":-1},{"type":"string","key":"pidt_0","value":""}]}

- /txstore.jsn {"head":{"content-type":"ocpp_config_file","version":"2.0"},"configurations":[{"type":"int","key":"txBegin_0","value":0},{"type":"int","key":"txEnd_0","value":0},{"type":"int","key":"txBegin_1","value":144},{"type":"int","key":"txEnd_1","value":148}]}

I reset the charger many times, even if it shows preparing and rejects the remoteStartTransaction request.

Can you please tell me where it went wrong, or is there anything I need to set or reset?

@demirschmid61
Copy link
Author

demirschmid61 commented Sep 3, 2024

@matth-x There is a little update on this problem

I followed the process to crosscheck

  1. Took esp32 which is giving the above problem
  2. All the configurations were the same
  3. Uploaded firmware which has matth-x/MicroOcpp@^1.0.0 version
  4. Checked the status (Issue resolved)

Please have a look at the logs

/----------------------LOGS ----------------------------/
[MO] info (main.cpp:3450): OCPP Connected to url: /ABCD
[MO] Send: [2,"1000000","BootNotification",{"chargePointModel":"AC","chargePointSerialNumber":"ABCD","chargePointVendor":"ABCD","firmwareVersion":"0.0.7"}]

[MO] Recv: WS pong
[MO] Recv: [3,"1000000",{"currentTime":"2024-09-03T06:25:55.195996200Z","interval":900,"status":"Accepted"}]
[MO] info (BootNotification.cpp:83): request has been Accepted
[MO] info (StatusNotification.cpp:50): New status: Available (connectorId 0)
[MO] info (StatusNotification.cpp:50): New status: Available (connectorId 1)
[MO] Send: [2,"1000001","StatusNotification",{"connectorId":0,"errorCode":"NoError","status":"Available","timestamp":"2024-09-03T06:25:55.199Z"}]
[MO] Recv: [3,"1000001",{}]
[MO] Send: [2,"1000002","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"Available","timestamp":"2024-09-03T06:25:55.409Z"}]
[MO] Recv: [3,"1000002",{}]

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

No branches or pull requests

1 participant