Comments (7)
You need to implement your own logic where the template code you copied from the wiki says " // ... handle event" and "return null".
from java-oca-ocpp.
hi @bantu, thanks for the answer.
I am doubting if that is really the problem, since the handle event logic that you mention, I understand that it is at the OCPP (application protocol) level, however, looking at the network traffic with wireshark, the handshake at the TCP (transport layer) is not carried out. In this way, the connection to the websocket cannot be made.
I have done more tests. Start a client on another machine with the same library and the result is the same. The client generates TCP requests to establish a connection with the server, but the server does not respond to the TCP requests (the TCP handshake does not take place):
On the other hand, when the client and server are on the same machine, the connection is made without problems...
from java-oca-ocpp.
@bdevia Sounds like you have network problems in general.
from java-oca-ocpp.
@bantu the truth is that I don't think it's a network problem, since with the library https://github.com/mobilityhouse/ocpp, the connection works perfectly:
Have you performed tests between client and server on different machines? I'm thinking that it may be a problem with my own equipment (architecture for example) that causes the library to not work at the network level.
from java-oca-ocpp.
the truth is that I don't think it's a network problem
it looks like your two tests are on two different ip networks (172.15.200.0/24 vs. 192.168.41.0/24)
Have you performed tests between client and server on different machines?
yes, in the past
from java-oca-ocpp.
it looks like your two tests are on two different ip networks (172.15.200.0/24 vs. 192.168.41.0/24)
Yes, I have two different networks:
172.15.200.0/24 internal test network.
192.168.41.0/24 production network.
I have been carrying out tests on both networks, making sure that both client and server are on the same network to rule out firewall problems.
I have changed the server to the computer with IP 172.15.200.104 (to rule out that the problem is with my machine), while the client (simulated with the library) is 172.15.200.101, however the connection does not work either:
Have you performed tests between client and server on different machines?
It is possible that the library is currently failing, so it would be helpful if someone can replicate the examples from the wiki, to see if the problem is with the library.
from java-oca-ocpp.
I have already found the problem, when it set the host as "localhost", the server does not enable the service for the IP of the private network as in other services. In this way, it is advisable to change the host directly to the IP instead of "localhost".
from java-oca-ocpp.
Related Issues (20)
- charging pile code HOT 4
- How to audit all OCPP-J messages?
- Can't handle handleDataTransferRequest and handleMeterValuesRequest HOT 4
- Validation crash in setIdTag in StopTransaction HOT 1
- authenticateSession always receives a null byte array password
- How configure the certificate when the octt (OCPP Compliancy Testing Tool) as the central_system?
- Renaming namespace for ocpp2 classes to allow usage of both Clients in the same project HOT 2
- Information about percentage of charging for current car HOT 1
- How to use authenticateSession? HOT 4
- MeterValueRequest validation not checking that metervalues and sampled values have at least 1 element HOT 1
- Decide on build system (Gradle vs Maven)
- I want to delete the queue when the response times out.
- No main manifest attribute HOT 2
- How to obtain raw data reported by a charge point? HOT 1
- Basic auth not working - sending null byte array for password field HOT 2
- OCPP server and client doesn't include all atributes (GARO EVCS example) HOT 3
- Authorizekey allows too few characters HOT 2
- Is there any documentation for OCPP-2.0.1 HOT 4
- how to implement ReserveNowRequest with OCPP v1.6J HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-oca-ocpp.