nodejs-poolController icon indicating copy to clipboard operation
nodejs-poolController copied to clipboard

[BUG] v8.0.1 - reverts to Nixie controller when a log capture started

Open antamy opened this issue 1 year ago • 4 comments

nodejs-poolController Version/commit

8.0.1 / master 67b0641

nodejs-poolController-dashPanel Version/commit

8.0.0 / master cb05840

relayEquipmentManager Version/commit

No response

Node Version

No response

Platform

raspberry pi / debian

RS485 Adapter

No response

Are you using Docker?

  • [ ] Yes.

OCP

Intellitouch i5+3

Pump(s)

No response

Chlorinator(s)

IC40

What steps will reproduce the bug?

I upgraded to v8.0.1 using git pull / npm i / npm start

I run it from the cli using npm run start:cached

dashPanel connects and things look fine, except the Chemistry section is empty. I try to initiate a packet capture with the reload option set. The reload starts and the system reverts to a Nixie system!

What happens?

Here is the output

$ npm run start:cached

[email protected] start:cached node dist/app.js

Init state for Pool Controller sendRS485PortStats set to false RESETTING DATA -- Controller type changed from nixie to unknown RESETTING DATA -- Controller type changed from unknown to intellitouch Pentair IntelliTouch System Detected! [21/04/2023, 12:16:16] warn: dt:Fri Apr 21 2023 12:16:01 GMT-0400 (Eastern Daylight Time) lat:undefined lon:undefined Not enough information to calculate Heliotrope. See https://github.com/tagyoureit/nodejs-poolController/issues/245 [21/04/2023, 12:16:16] warn: dt:Fri Apr 21 2023 12:16:01 GMT-0400 (Eastern Daylight Time) lat:undefined lon:undefined Not enough information to calculate Heliotrope. See https://github.com/tagyoureit/nodejs-poolController/issues/245 RS485 Stats:{ "bytesReceived": 1009 "success": 36, "failed": 1, "bytesSent": 385, "collisions": 0, "failureRate": 2.70% } RS485 Stats:{ "bytesReceived": 1968 "success": 74, "failed": 2, "bytesSent": 817, "collisions": 0, "failureRate": 2.63% } RS485 Stats:{ "bytesReceived": 2666 "success": 100, "failed": 3, "bytesSent": 1141, "collisions": 0, "failureRate": 2.91% } RS485 Stats:{ "bytesReceived": 2917 "success": 109, "failed": 4, "bytesSent": 1249, "collisions": 0, "failureRate": 3.54% } RS485 Stats:{ "bytesReceived": 3316 "success": 125, "failed": 5, "bytesSent": 1441, "collisions": 0, "failureRate": 3.85% } RS485 Stats:{ "bytesReceived": 3409 "success": 131, "failed": 6, "bytesSent": 1453, "collisions": 1, "failureRate": 4.38% } [21/04/2023, 12:17:01] warn: dt:Fri Apr 21 2023 12:16:01 GMT-0400 (Eastern Daylight Time) lat:undefined lon:undefined Not enough information to calculate Heliotrope. See https://github.com/tagyoureit/nodejs-poolController/issues/245 [21/04/2023, 12:17:01] warn: dt:Fri Apr 21 2023 12:16:01 GMT-0400 (Eastern Daylight Time) lat:undefined lon:undefined Not enough information to calculate Heliotrope. See https://github.com/tagyoureit/nodejs-poolController/issues/245

+++ at this point I have just initiated the packet capture +++

RESETTING DATA -- Controller type changed from intellitouch to unknown [21/04/2023, 12:17:22] info: New socket client connected F7_svDDxP25yttkvAAAE -- 10.10.20.50 [21/04/2023, 12:17:22] info: [12:17:22] 10.10.20.50 GET /state/all?null {} sendRS485PortStats set to false RESETTING DATA -- Controller type changed from unknown to nixie [21/04/2023, 12:17:26] info: Initializing Nixie Control Panel for Nixie Single Body [21/04/2023, 12:17:26] info: Initializing Intake/Return valves [21/04/2023, 12:17:26] info: Initializing Nixie Controller [21/04/2023, 12:17:26] info: Initializing Nixie body Pool [21/04/2023, 12:17:26] info: Initializing Filter Filter [21/04/2023, 12:17:26] info: Nixie Controller Initialized [21/04/2023, 12:17:26] info: Nixie Single Body control board initialized [21/04/2023, 12:17:26] silly: MQTT send: topic: nixie-singlebody/state/temps/air message: {"temp":null} opts:{"retain":true,"qos":0} [21/04/2023, 12:17:26] silly: MQTT send: topic: nixie-singlebody/state/temps/units message: {"units":{"val":0,"name":"F","desc":"Fahrenheit"}} opts:{"retain":true,"qos":0} [21/04/2023, 12:17:26] silly: MQTT send: topic: nixie-singlebody/state/temps/bodies/1/pool message: {"id":1,"isOn":"off"} opts:{"retain":true,"qos":0} [21/04/2023, 12:17:26] silly: MQTT send: topic: nixie-singlebody/state/temps/bodies/1/pool/heatMode message: {"heatMode":{"val":0,"name":"off","desc":"Off"}} opts:{"retain":true,"qos":0} [21/04/2023, 12:17:26] silly: MQTT send:

What should have happened?

Should have reloaded and detected the correct panel!

If I run od -x < /dev/ttyUSB1, I see data flowing

Additional information

No response

antamy avatar Apr 21 '23 16:04 antamy