Open munkito opened 6 years ago
I'm not sure of what you are trying to do. You said you have a device sending data to the RX of the NodeMCU (like a GPS or a bar scanner or something like that, right?). If that is the case then ESPurna is trying to identify known keywords in that data which it shouldn't since it probably does not know what to do with that data. But you should see errors messages in the telnet session (ERROR unknown command
).
Thanks for your answer. To be honest I don't know if what I'm trying to do is possible. The fact is I want to try to use the nodemcu as sniffer, let me explain: I have a Mitsubishi air conditioner, it doesn't have remote control it only has a wall control. I've bought, from Mitsubishi, an addon that permits control it from my smartphone. The problem is that I have more than one machine and if I want to control all of them with my smartphone I have to buy one addon for each one (100€ each one). The addon is connected to the machine through a propietary connector but I've found in internet some people that explain each pin. It has 2 pins used to TX and RX. What I was trying to do is read the data frame of each command to try to implement them on a ESP8266. The telnet console doesn't show any error messages about this, the only error messages I see are about NTP, I think they aren't related with TX RX, doesn't it?
I don't know if you can help me with this. I don't know a lot about electronic, maybe what I'm trying to do is not possible.
Thanks!
You will probably need a custom module to interface the API of the device. Do you have the documentation of the protocol? You can try to use the UART2MQTT module in ESPurna to forward messages from the RX line to your local MQTT broker.
But the proper way to do this will be to first use a development board with a simple serial forwarder from any two pins connected to your air conditioner machine using SoftwareSerial to the Hardware serial port of the board and connected to your computer.
I don't have any documentation about the protocol, I'm trying to follow this post https://www.esp8266.com/viewtopic.php?f=29&t=13207 where is explained how to use an ESP8266 with a library written in python to control the machine.
I'll try what you suggested.
Thanks.
It looks like there is already a library that implements the protocol (https://github.com/SwiCago/HeatPump). It should be straight forward to add support for it.
Ok, that's good news. How can it be done? Can I do myself? Is there any documentation about how to do it?
Thanks!
Was this implemented?
Was this implemented?
Not yet. See https://github.com/SwiCago/HeatPump examples and our specific modules, depending on what exactly needs to happen here e.g. mqtt payload to control things, some local logic, relay bound to a specific action or something else.
Hello,
I'm trying to read (and, in the future, write) the RX pin of a nodemcu and I can't read anything. I'm sorry but I don't know if there is some missing in my configuration. I can connect to the nodemcu via telnet and I can see all the mqtt messages it is sending (I have a temperature sensor) but I can't see anything in the telnet console.
In the RX pin I have connected a device wich is sending some data.
Please help.
Thanks!