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

rpi python pyPlc.py E S not working #1

Closed
coollhc77 opened this issue May 19, 2023 · 6 comments
Closed

rpi python pyPlc.py E S not working #1

coollhc77 opened this issue May 19, 2023 · 6 comments

Comments

@coollhc77
Copy link

Hello

I'm trying to simulate a pyPlc.
python pyPlc.py P S works, but EVSE does not.
The logs are shown below.

Thanks to you, I was able to try slac using the AR7420.

pyplc

@uhi22
Copy link
Owner

uhi22 commented May 19, 2023

This may be caused by incomplete implementation of the simulation mode, it tries to use the real ethernet interface, but this seems to go wrong. Could you please test the following two cases: 1. Do you get the same error if a modem is physically connected to the ethernet port and powered? 2. Do you get the same error, if not using the simulation mode, but just sudo python pyPlc.py E?

@coollhc77
Copy link
Author

  1. Do you get the same error if a modem is physically connected to the ethernet port and powered?
    -> Yes
  2. Do you get the same error, if not using the simulation mode, but just sudo python pyPlc.py E?
    -> Yes

python_pyPlc py_E

plctool

Thank you for your response.

@uhi22
Copy link
Owner

uhi22 commented May 19, 2023

In pyPlcTcpSocket.py, could you add after the line
hostname=socket.gethostname()
a line
print("Your Computer Name is:"+hostname)
to find out the host name?

As temporary workaround, you could kick-out the complete paragraph:
image

@ArendJanKramer
Copy link
Contributor

I ran into the same issue. For me it was that there was no IPV6 address asssigned to the hostname.
Look in /etc/hosts

image

Add your hostname in the ::1 definition. For me that solved the issue

@uhi22
Copy link
Owner

uhi22 commented Jun 4, 2023

Next steps: Find out how content of /etc/hosts file under ::1 influences the behavior, and why it works on some devices from scratch. Add exception handling incl clear instruction how to solve.

@uhi22
Copy link
Owner

uhi22 commented Jun 21, 2023

Cannot reproduce the issue on my setup. Let's assume that configuring a host name as described above solves the topic. -> Close.

@uhi22 uhi22 closed this as completed Jun 21, 2023
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

3 participants