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

info.connection is "true" while connection is down #64

Closed
git-kick opened this issue Jan 30, 2022 · 5 comments
Closed

info.connection is "true" while connection is down #64

git-kick opened this issue Jan 30, 2022 · 5 comments
Assignees
Labels
bug Something isn't working high prio Item is near top of backlog

Comments

@git-kick
Copy link
Owner

Describe the bug
It seems that e3dc-rscp.0.info.connection does not correctly reflect the connection status.
Reported by @timmerx, see https://forum.iobroker.net/topic/49217/test-adapter-e3dc-rscp-v0-0-x-github/282

To Reproduce
Steps to reproduce the behavior:

  1. Install adapter
  2. Do not set the connection parameters (E3/DC IP address etc.)
  3. Start adapter
  4. See that e3dc-rscp.0.info.connection is true

Expected behavior
e3dc-rscp.0.info.connection should be true only when the connection is up and running.

Screenshots & Logfiles
see https://forum.iobroker.net/topic/49217/test-adapter-e3dc-rscp-v0-0-x-github/282

Versions:

  • Adapter version: 1.0.0
  • JS-Controller version: unknown
  • Node version: unknown
  • Operating system: unknown

Additional context
E3/DC S10 (46163xxxxxxx0)

@git-kick git-kick added bug Something isn't working help wanted labels Jan 30, 2022
@git-kick
Copy link
Owner Author

Test 1: create adapter instance, set correct IP address, but no user/password
Result: info.connection is false (expected behavior)

Test 2: create adapter instance, set incorrect IP address, no user/password
Result: info.connection is false (expected behavior)

Test 3: create adapter instance, set correct IP address, correct portal user, but no password
Result: info.connection is false (expected behavior)

Test 4: create adapter instance, set correct IP address, correct portal user, correct portal password, but no RSCP password
Result: info.connection is false (expected behavior)

Test 5: create adapter instance, set correct IP address, correct portal user, correct portal password, correct RSCP password
Result: info.connection is true (expected behavior)

Test 6: create adapter instance, set correct IP address, correct portal user, correct portal password, wrong RSCP password
Result: info.connection is false (expected behavior)

Problem is not reproducible. Will ask @timmerx for steps to reproduce.

@git-kick git-kick self-assigned this Jan 31, 2022
@git-kick git-kick added waiting Waiting for external action or input invalid This doesn't seem right and removed help wanted labels Jan 31, 2022
@git-kick
Copy link
Owner Author

git-kick commented Feb 1, 2022

Not reproducible.
(Will reopen if @timmerx provides steps for reproducing.)

@git-kick git-kick closed this as completed Feb 1, 2022
@git-kick
Copy link
Owner Author

Timmerx
Timmerx
8 Feb 2022, 12:11

@ujok

Hi
teste das mal mit Port 502.

@git-kick git-kick reopened this Feb 14, 2022
@git-kick git-kick added high prio Item is near top of backlog and removed invalid This doesn't seem right waiting Waiting for external action or input labels Feb 14, 2022
@git-kick
Copy link
Owner Author

Test 7: create adapter instance, set correct IP address, correct portal user, correct portal password, correct RSCP password, Port = 502
Result: info.connection is true (NOT expected behavior, should be false)

Log shows several messages sent to E3/DC, but no response.
Seems like TCP connection is ok, but no processing on the other end.
Need to check AUTH response after a while (timer) and set info.connection accordingly.

@git-kick
Copy link
Owner Author

Fixed with v1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high prio Item is near top of backlog
Projects
None yet
Development

No branches or pull requests

1 participant