-
Notifications
You must be signed in to change notification settings - Fork 34
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
ESP8266 - PIC connection issue #65
Comments
Hi You have already debugged a lot. It sounds like a connection problem. What version of the pcb do you have? If it's a version 2.x then you have jumpers you need to set correctly so that the pic and the NodeMCU are connected. Please let me know your findings, Robert |
The PCB V2.0. I have changed TxP/RxP jumpers for ESP/LAN as per instruction (so they are closer to ESP8266 Antena).The green LED (one of 4 LEDs connected to the PIC is flashing). I bought the gateway in April 2021 and now trying to make it running. I wanted to connect to Renovent Brink HR (Ventilation) which uses Opentherm protocol (I am in touch with a person who managed to do it). But I have the base issue with connection:-( . PCB looks OK not sure if it might be something on the board? if I can check any pcb connections? Or contact nodo shop for hints? |
That's very strange. What do you get when you connect to the NodeMCU via the web interface? |
@raf1000 when you goto the debug port (telnet to 23) then you should see live messages being decoded, as well as some debug information like sending MQTT messages. If you do not see anything there, then I agree with @tjfsteele it strange. The green led blinking from the PIC is what you expect. So if you do not see any commands being parsed, and the serial port OTmonitor port, does not respond either. That's why I suggested to check the jumpers, could you share a picture of how you have setup your jumpers at this point? On the discord there are more people that could think along with you figuring out what the problem is. And yes, if nothing else works, you can also just contact Nodoshop. He is always very helpful getting hardware running. |
Should not be the same output for 1 and 2? When I log in to the otgw.local and click Device Info, I have the following: |
Connected with telnet (I am not using MQTT here): ---===[ Debug Help Menu ]===---
[19:04:51][ 11352| 9896] handleDebug ( 74): MyDEBUG =true |
@raf1000 From the logs you have shared here I can say that there is no OT msg see at all. Log 1&2 are the same, the status message is a fake decoding I think. From the NodeMCU dev info I can see that the OTGW PIC does not see the boiler nor thermostat. You could try to connect the wires again. Just to see if that makes any difference. As far as I can see it's a "not connected" to the OT bus, you should see an average of 2 msg per second. |
The strange thing is that it seems to work when using the FTDI serial cable. |
@tjfsteele it seems he can program the PIC, but I have not seen any data in either log from the boiler or thermostat. So either the jumpers are not connected correctly, or, the wires to the PCB from the boiler and thermostat are not connected correctly. If both are good, then I am thinking a problem with this PCB all together. What about you? |
In his original post he says
Could be relevant? Tim |
Yes, at the moment I do not have connected boiler nor termostat. However my understanding of the gateway is that it shall resposne on the command I am sending, confirming that gateway received the request. Hence whileusing serial I have confirmation as follows: And when using NodeMCU there is no confirmation that Gateway received a command: Also the information in the OTGW firmware: led me to conclusion that there is no/full communication between PIC and NodeMcu. But there is "some" communication as the green LED start to flash in both cases when GW=1? |
"OTGW PIC Firmware VersionNo version found There is room for improvement in UI and software tests. The firmware "no version" happens with some versions of firmware more often. I have found resetting it multiple times this sometimes resolves it. The PIC connection false should be improved based on your feedback. It is used to let Home Assisant know about the status of the OTGW as a whole. So the name is deceptive. Even when everything is offline you can still talk to the PIC. I think you describe the way to test it. Using the REST API you can easily test the command sending. It even validates the return commands for you. Just check the wiki on how to use the REST API. Sorry, for the confusion the UI causes. |
RxP and TxP are not directly connected to Rx and Tx on the NodeMCU, they go via level converters as the PIC works at 5V and the ESP works at 3.3V. The photo you posted isn't very clear unfortunately when zoomed it, it's difficult to take a sharp macro photo so I don't blame you at all. As far as I can see there isn't a problem with the level converters which are the two transistors on the left. I took a picture with my macro camera to show what it should look like. The transistor markings should all be the same. The two transistors on the left are the level converters for the RX/TX lines. Each circuit consists of a BSS138 FET and 10K pull ups on the input and the output as described here https://cdn-shop.adafruit.com/datasheets/an97055.pdf. |
Okay, so this has turned out to be a hardware issue. Please do contact nodoshop. I will close the issue know, as it's not a software related issue 😉 Please let us know when it gets resolved by Nodoshop. |
Bingo! |
That's excellent news, thank you for letting me know! |
Great news. Thanks @tjfsteele for helping out. |
@tjfsteele do you think the documentation needs to be clearified? |
The problem is that a user like me (bougth the OTGW and the NodeMCU at nodo-shop) has to first find out what the real problem is. With some searching after I got the packege today I found the wonderful landing page https://github.com/rvdbreemen/OTGW-firmware/wiki/ where all steps are described really well. Only the small step changing the jumpers on the OTGW is not there. And because the NodeMCU just shows "no verison found" I automatically expect, that the firmware on the OTGW is missing and not, that the communication with the OTGW was not working. So I was searching for instructions how to flash the firmware with NodeMCU (and tried the PIC firmware page without success). |
@bmaehr that clarifies where additional hints can be added. I think you just mean that when you get the message “no version found” there should be instructions to check the jumper setting. To clarify one more thing: |
I'm wondering if this is a conflict between the v2.3 manual and an older
board?
Hopefully the manuals in the shop will be labelled more clearly soon.
Tim
…On Sat, 20 Nov 2021, 08:22 Robert van den Breemen, ***@***.***> wrote:
@bmaehr <https://github.com/bmaehr> that clarifies where additional hints
can be added.
I think you just mean that when you get the message “no version found”
there should be instructions to check the jumper setting.
Did you use the install pdf from the nodo shop site at all?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN3CV4EG7GOEIEFWN2SRT7TUM5LFVANCNFSM5CGPDYAA>
.
|
That is my suggestion.
In fact I did look at all documents from them (they where also hard to find, because on the english product page is no link to the download section for the manuals just links to other pages with other information and in the Netherlands version the link is called "construction manual") and not one was really helpfull. I didn't need a document how to solder the board (didn't see there something about jumper either), I didn't have a Ethernet and didn't use a USB interface (even don't have a USB interface on the OTGW and didn't bought an Ethernet module) and additionaly the OTGW did look different than the one I got and also the NodeMCU look different and has an other name now (I have, as far as I can see, the versions form the picture above). |
When I look at the picture you shared earlier, I think the issue is caused by the fact that we the manual at the nodoshop site is currently for PCB version 2.3. After talking to Tim (hardware designer of the current nodoshop PCB) we decided to publish the hardware manual for the older hardware. The jumpers are in the pre-v2.3 designs of the hardware. We hope this solves the problem if anyone else encounters this, plus that the manuals stay available that way. Plus we have notificed Remco (owner of Nodoshop) about this. Asked him if he would be so kind to publish older versions of the manual, so people can find it when needed. |
1 similar comment
When I look at the picture you shared earlier, I think the issue is caused by the fact that we the manual at the nodoshop site is currently for PCB version 2.3. After talking to Tim (hardware designer of the current nodoshop PCB) we decided to publish the hardware manual for the older hardware. The jumpers are in the pre-v2.3 designs of the hardware. We hope this solves the problem if anyone else encounters this, plus that the manuals stay available that way. Plus we have notificed Remco (owner of Nodoshop) about this. Asked him if he would be so kind to publish older versions of the manual, so people can find it when needed. |
Closing issue, as the documentation is now published in Discord #Hardware channel. I am considering adding additional hint in the wiki as well. |
Hello
I have managed to compile files and uploaded ESP8266 using Arduino IDE.
I can login into otgw.local. When I click PIC firmware nothing is displayed, and info “ No version found” at the bottom
When I click Device Info I can see data among which “Pic connected = false”
Hence I have uploaded PIC with getway.hex using otmonitor connected to OTGW gateway via FDDI/USB.
I have performed TEST#1(diagnoze.hex) with 4 LEDs connected to the PIC and they are flashing. I do not have boiler nor thermostat so can not do more tests,
I can connect from otmonitor to OTGW gateway via FDDI and send a command like AA=70 , I can see response.
However while otmonitor is connected to OTGW gateway via TCP/IP (port 25238), when send command AA=70, no response.
Seems like ESP8266 is not connected with PIC☹. Any hints on how/what to check would be welcome.
PS. I am able to connect to OTGW monitor via telnet as well but not sure what to debug?
The text was updated successfully, but these errors were encountered: