Code Monkey home page Code Monkey logo

Comments (7)

bantu avatar bantu commented on June 27, 2024

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.

bdevia avatar bdevia commented on June 27, 2024

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):

image

On the other hand, when the client and server are on the same machine, the connection is made without problems...

from java-oca-ocpp.

bantu avatar bantu commented on June 27, 2024

@bdevia Sounds like you have network problems in general.

from java-oca-ocpp.

bdevia avatar bdevia commented on June 27, 2024

@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:
image

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.

bantu avatar bantu commented on June 27, 2024

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.

bdevia avatar bdevia commented on June 27, 2024

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:
image

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.

bdevia avatar bdevia commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.