Giter Club home page Giter Club logo

Comments (5)

Krolken avatar Krolken commented on August 22, 2024

Good catch!

The examples are missing a call to client.startup()

Also I see an error in the TCP transport class. It should initialize with an optional attribute for socket but seems like I have missed that and it is instead added to the class when you call connect. But if you call .startup() on the client before read or write it should work.

from iflag.

Rumors01 avatar Rumors01 commented on August 22, 2024

@Krolken Thank you so much for the feedback ! :)

As you mentioned above, when I tried to connect with the device now I got the below error. But the ip adress is working and I getting response from it.

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/iflag/transport.py", line 114, in connect
    self.socket.connect(self.address)
socket.timeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "gas.py", line 16, in <module>
    client.startup()
  File "/usr/local/lib/python3.6/dist-packages/iflag/client.py", line 216, in startup
    self.transport.connect()
  File "/usr/local/lib/python3.6/dist-packages/iflag/transport.py", line 116, in connect
    raise exceptions.CommunicationError from e
iflag.exceptions.CommunicationError

from iflag.

Krolken avatar Krolken commented on August 22, 2024

How do you know that the IP address is working? You get a connection timeout so there should be some problem access it.
What gas meter and modem are you using?

from iflag.

Rumors01 avatar Rumors01 commented on August 22, 2024

If you could send me the your e-mail, I will create a test environment and give you the IP and port. I tried last night with other tools also but no luck. I am using Itron Corus PTZ with RS232 serial to IP converter.

from iflag.

Krolken avatar Krolken commented on August 22, 2024

Hi. To do the troubleshooting would be part of our paid services. If that is interesting you can contact me at [email protected].

But I still think your IP-to-serial converter is the problem. You are not able to connect to the socket from you computer/server.

from iflag.

Related Issues (5)

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.