njsPC no Data From EasyTouch #870
Replies: 5 comments 2 replies
-
I'm not sure what the error But I would first start off by making sure the Elfin is connected to the EasyTouch correctly. You can try to connect directly to the Elfin with a TCP serial port monitor and see if you are getting the right data coming through as shown in the rs485 details page. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reading my issue and for this suggestion! I grabbed a copy of Realterm and (I think) managed to make a connection to the Elfin. All I see for traffic is the "FF" characters repeated. Could it be indicating that the RS485 channel is open, but there's just no communication happening back and forth? This is a screenshot of my Realterm. I added in the config info for the "Display" and "Port" sessions in case I've got it set up wrong. |
Beta Was this translation helpful? Give feedback.
-
OK, some updates. Since my last post I:
Then I:
So now I am starting to suspect the RS-485 side of the Elfin? Network connectivity to it is fine; it just doesn't want to talk RS485 beyond 'FF' Now I am trying to bypass Home Assistant completely, and just see if my Win10 PC with njsPC on it (via npm) can talk to the OCP via the wired converter. If yes, then it all points back to the Elfin. I've hit a snag though, leading me to my next Question: What is the syntax I need to use, in the DashPanel, to reference my USB/RS485 converter from my Win10 PC? The RS485 Documentation references a syntax of "dev/ttyUSB0". That doesn't seem to work. I've also tried things like "dev/ttyUSB3", "dev/COM3" and just "COM3", but the DashPanel just gives me an error? (See second screenshot below) |
Beta Was this translation helpful? Give feedback.
-
So I answered my own question on the com port configuration above. It is simply "COM3" minus the quotes. For some reason, at first the DP would give me an error when I entered COM3, but after a reboot it took it. So with the wired RS485/USB converter operational, I fired up a standalone instance of njsPC on my PC, and off it went. I can see all my data from the OCP as before. So clearly my problem is with the Elfin. I'm not sure what went wrong there, as it gives no indication of anything being wrong. I will either have to get the original Elfin working or get a replacement, as there's no great way to get a wired connection from my OCP to my HA PC, so I need to go wireless. I'm going to try factory resetting the Elfin and see if that fixes anything. Out of the box, the only thing I had to do originally to get it working was program an IP address via its software interface (IOTService). It may start working again, or maybe I got a lemon. It's only a couple months old. Here's a side question, realizing that this is not a Home Assistant forum, but I will ask anyway. In HA, does anyone know a way to hard-code the settings for the njsPC controller comms, when njsPC is run as an Add-On. That is, the settings that are normally configured in the DashPanel via Settings -> Controller -> Comms. Right now, if I restart HA, it forgets the settings, so I have to go in via the DashPanel and manually set up the 10.0.0.105 IP address of the Elfin every time. |
Beta Was this translation helpful? Give feedback.
-
So just to close the loop on this - I am back up and running on my original Elfin. I'll write the final steps down to help anyone who might read this later with a similar problem. TLDR; Seemed to be a baud rate issue in the end. I unhooked the Elfin and then wired it directly to my Waveshare USB RS485 converter. So I now had two RS485 converters directly wired to each other. Then I opened two Realterm sessions on my PC. For Realterm #1, I connected to the Waveshare, which was connected to my PC via USB (COM3). For Realterm #2, I connected to the Elfin via an Ethernet connection (i.e. port in Realterm was 10.0.0.105:8899). I would then type some characters into the one window, and see what I saw in the other. I did some hex values going back and forth, but they did not seem to jive. For example, if I pressed the Enter key in Realterm #1, I would see a couple characters show up in Realterm #2. But if I pressed the Enter key in Realterm #2, I would see different characters show up in Realterm #1. So it was not symmetrical. I looked in the settings of the Elfin, and it said the baud rate was set to 115200. I had set Realterm to 9600, so I was wondering if this was a thing. I changed the baud rate to 115200 in both Realterm #1 and #2, and after that I started seeing normal values. For example, if I pressed the 'a' key, I would see a 61 in Hex. This worked in both directions (#1 --> #2 and #2 --> 1). So I went in to the settings of the Elfin and set it down to 9600, reconnected to my OCP, fired up njsPC, and everything worked perfectly! I'm not sure what to make of the whole baud rate thing. During the initial install, I don't remember changing the Elfin's baud rate from its factory default of 115200 (via the IOTService software). I sort of thought the devices auto-negotiated lower baudrates anyway. Guess not? Whatever I did, it was working at the start... Still not clear how I got to the broken state - if I DID set it down to 9600 during the initial install, I don't know how it got set back up to 115200. I may have fat-fingered the settings without realizing or something like that. I guess my lesson learned here it to take better notes during the installation phase. My second learning is that it always pays to have two RS485 adapters on hand to troubshoot. Thanks @tagyoureit for your troubleshooting advice! |
Beta Was this translation helpful? Give feedback.
-
Hi Guys,
Just bought a new house a few months ago - my first with a pool. It's got a Pentair EasyTouch 4, so I've been tinkering with njsPC to get it talking to Home Assistant. I actually had it working for a while, but now it has stopped, and I've been bashing my head against the wall for days trying to sort it out. Before I dive in to the problem, here's a quick system rundown:
System Stuff
Config Stuff
Problem Description:
Ok, so on to the actual problem. As mentioned, it was working for a while. I could see data in HA Dashboards, remotely start/stop the pump etc. What happens now, is it seems like njsPC isn't interrogating the Pentair; almost like it's waiting. No data comes in to Home Assistant, and if bypass that via the DashPanel instead, I see what appears to be a sort of default config. (I think I read a comment somewhere from rstrouse or tagyoureit that you get that default until the first successful communication, then it queries the controller for the actual detail. Anyway, that's not happening at the moment.)
Here's what I've done so far:
So that's where I am now. I've rebooted everything multiple times, tried to ensure I have the latest versions of everything, etc. I'm really scratching my head here. It feels like I'm just missing one tiny setting or something to kick off the communication, then everything will fall in place. I just can't figure out what it is! Would be very appreciative if anyone has insights - thanks!
Beta Was this translation helpful? Give feedback.
All reactions