MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

[OCPP] info (Connection.cpp:54): Disconnected

Open d6e6t6a6l6e6s opened this issue 2 years ago • 3 comments

I flash MicroOcpp (main.cpp) to ESP-WROOM-32. ESP connects to Wi-Fi successfully but won't connect to my SteVe server at all. The "Etrel Inch Pro" charging station connects to the SteVe without any problems. What am I doing wrong? Here are my the configurations:

SteVe "main.properties":

# Jetty configuration
#
server.host = 192.168.77.28
server.gzip.enabled = true
# Jetty HTTP configuration
#
http.enabled = true
http.port = 6226

SteVe Run log:

Log file: /root/logs/steve.log
Starting.......... Done!
Hint: You can stop the application by pressing CTRL+C
Access the web interface using
- http://192.168.77.28:6226/steve/manager/home
SOAP endpoint for OCPP
- http://192.168.77.28:6226/steve/services/CentralSystemService
WebSocket/JSON endpoint for OCPP
- ws://192.168.77.28:6226/steve/websocket/CentralSystemService/(chargeBoxId)

main.cpp:

#define OCPP_HOST "occp-server"
#define OCPP_PORT 6226
#define OCPP_URL "ws://192.168.77.28/steve/websocket/CentralSystemService/espdemo"

ESP Serial Output:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
[main] Wait for WiFi: . connected!
[OCPP] info (MicroOcpp.cpp:387): Added ConnectorPluggedInput. Transaction-management is in auto mode now
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (Connection.cpp:54): Disconnected
[OCPP] info (RequestQueue.cpp:45): operation timeout: BootNotification
[OCPP] info (Connection.cpp:54): Disconnected

d6e6t6a6l6e6s avatar Oct 13 '23 09:10 d6e6t6a6l6e6s

You need to add port also in the OCPP_URL.

priya2212 avatar Oct 25 '23 06:10 priya2212

You mean that?

main.cpp:

#define OCPP_HOST "occp-server"
#define OCPP_PORT 6226
#define OCPP_URL "ws://192.168.77.28:6226/steve/websocket/CentralSystemService/espdemo"

I am getting the same error..

d6e6t6a6l6e6s avatar Nov 17 '23 18:11 d6e6t6a6l6e6s

Hey! How you doing? I'm facing the same problem. Have you solved? What should I do? Thanks already!

rafaelcf03 avatar Mar 15 '24 14:03 rafaelcf03