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

Connection not working! #20

Closed
snipah opened this issue Dec 1, 2022 · 19 comments
Closed

Connection not working! #20

snipah opened this issue Dec 1, 2022 · 19 comments

Comments

@snipah
Copy link

snipah commented Dec 1, 2022

Check for credentials.dat
credentials.dat file exists -> pass the ask for credentials
Found ESP32 Board, using UART2 for LIN on GPIO 16(rx), 17(tx)
main-loop is running
INFO:mqtt_async:connecting wifi
lin-loop is running
INFO:mqtt_async:Connecting to ('192.168.1.21', 1883) id=b'0cb815cd8ff4' clean=1
INFO:mqtt_async:Connecting to ('192.168.1.21', 1883) id=b'0cb815cd8ff4' clean=0
Wifi connected
MQTT connected
set ha_autoconfig
publish energy_mix:gas
publish el_power_level:0
publish target_temp_water:0
publish target_temp_room:0
publish alive:OFF
publish heating_mode:off
publish operating_status:Off
publish current_temp_room:0
publish current_temp_water:0
publish alive:OFF
publish alive:OFF
publish alive:OFF

What could I check? I switched TX/RX from the ESP and also LIN/Ground. Does not seem to connect. Also did several resets on the CP+. No clue! Installed the latest unstable MicroPython and set up everything again... no dice!

What could I check next....? is it correct that the 12V-LED on the UART2LIN is lit?

@snipah
Copy link
Author

snipah commented Dec 1, 2022

IMG_0781
IMG_0782
IMG_0783
IMG_0784

@mc0110
Copy link
Owner

mc0110 commented Dec 1, 2022

The Python-Version is okay, with a older version it throws an error. The MQTT-Connection is fine.
Tx (17) has to be connected to RX(Lin-Interface). I think, this is wrong. You should use the LED-Debugger. In my car with my first tries (flying connections) I killed one LIN-UART and also one RPI pico (is running, but the tx-GPIO is quiet). After using the LED you see, if the Interface is sending anything or if it is dead.

@7wells
Copy link
Contributor

7wells commented Dec 1, 2022

Is the grounding correct?

@snipah
Copy link
Author

snipah commented Dec 1, 2022

Switched RX and TX. No dice! What do you mean with grouding?

@snipah
Copy link
Author

snipah commented Dec 1, 2022

Tx (17) has to be connected to RX(Lin-Interface). I think, this is wrong.

The readme says differently..

@7wells
Copy link
Contributor

7wells commented Dec 2, 2022

There's a note about the grounding in the README. Admittedly, it's a shot in the dark.

@snipah
Copy link
Author

snipah commented Dec 2, 2022

Ordered a replacement LIN-UART and will send the old one back, as I assume it was not working correctly out of the box. Also ordered an MPU6050. Lets see how this can nicely be integrated into Home Assistant. BTW: Thanks for your efforts ;)

@7wells
Copy link
Contributor

7wells commented Dec 2, 2022

I also ordered an MPU6050. If you're interested, there's a separate "issue" (#16) about MPU6050-related topics. 😉

@snipah
Copy link
Author

snipah commented Dec 2, 2022

I also ordered an MPU6050. If you're interested, there's a separate "issue" (#16) about MPU6050-related topics. 😉

...then lets work on something nice for home assistant. BTW: Ich bin "snipah" im Pösslforum. Du 3sine?

@mc0110
Copy link
Owner

mc0110 commented Dec 2, 2022

Hey snipah,
I am sorry that you were not successful. But you are not the first to have problems with the LIN-TTL module.
I'll think about more diagnostics in the future.

@mc0110
Copy link
Owner

mc0110 commented Dec 2, 2022

Lets see how this can nicely be integrated into Home Assistant.

There is an example for a HA-integration from Sönke (skebber) in our docs

@7wells
Copy link
Contributor

7wells commented Dec 2, 2022

@mc0110
Copy link
Owner

mc0110 commented Dec 5, 2022

Hey snipah, I would close this issue, if it is okay for you. Hopefully you see a connection with the new device - your comments will be welcome

@mc0110 mc0110 closed this as completed Dec 5, 2022
@snipah
Copy link
Author

snipah commented Dec 6, 2022

Solved and is was just my fault... and 7wells was totally right. I did not connect ground coming from the ESP and nobody noticed, even though the pictures above clearly show it. 7well's shot in the dark was absolutely right. Replacement LIN2UART arrived today and it did not work... so I looked at 7wells pictures in the RX/TX issue raised, and then I noticed that he had ground from the ESP connected to the adapter. Changed the wiring according and: BAM, worked immediately :)
I think, the documentation could be clearer ;)

@mc0110
Copy link
Owner

mc0110 commented Dec 6, 2022

So you are right, on your pictures is clear to see the missing grounding - sorry that I didn't give you this hint. I'll try to pick this up in the docs

@7wells
Copy link
Contributor

7wells commented Dec 17, 2022

Just saw today that you updated also the README with lots of useful information. Thank you so much, Magnus! :)

@mc0110
Copy link
Owner

mc0110 commented Feb 15, 2023

photo_2023-02-15 11 50 36

Here is another very clear connection diagram from a successful installation.

At Hannes Schleeh inetbox DIY you can find a very detailed manual, which is originally in German but should be understandable in other languages due to a translation function.

@tojo99
Copy link

tojo99 commented Dec 18, 2023

Hi, I want ask you about project inetbox. Is that right connection?
image
Between gnd and lin is still 1,5V (Uart Transceiver)? Thank you.

@mc0110
Copy link
Owner

mc0110 commented Dec 18, 2023

of course, but you should not use the gnd-connection. Better you use the supply ground

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

4 participants