NortekSupport/nucleus_driver

No connection could be made because the target machine actively refused it

Closed this issue · 2 comments

Trying to connect via TCP connection not ablet to execute the driver.connect() command.

TCP_HOST = '192.168.1.7'

driver.set_tcp_configuration(host=TCP_HOST)

driver.connect(connection_type='tcp')

getting the error:

EXCEPTION: Failed to connect through TCP: [WinError 10061] No connection could be made because the target machine actively refused it WARNING: Failed to establish connection to device

I have also attached the picture of the IP address of the nortek nucleus hardware.

image

Hello @zaid13,

based on the error you're seeing, it seems like the problem is network or device related, rather than the problem being the code itself.

Here's a couple of steps you can do to troubleshoot the issue:

  • Are you connecting the Nucleus directly to the PC? Try connecting through a switch instead
  • Are you able to ping the device? If you can't ping it, the nucleus_driver will not be able to connect to it
  • Have you tried connecting through TCP using the Nucleus software? whether this works would give an indication of whether the nucleus_driver is the problem or not
  • If you connect to the device using serial, can you confirm that the ethernet settings on the device are as expected? that is the information returned by GETETH and READIP.

I believe that you also put in a ticket with our support department. Let us continue solving this problem there until we potentially confirm that the issue is with the nucleus_driver itself. That way you will receive better support for general issues you might have with the device. Any information you receive from the troubleshooting you can post under that support ticket.

I'll keep this issue open until we have resolved the issue.

Best regards
Martin

Hi @martinbj-nortek ,

Thank you for following up! I was able to get assistance from support. They suggested testing the connection with the Nortek software to verify if my hardware was connecting correctly. Initially, I couldn't connect, so I used a serial connection to reset the connection settings to their default values.

After doing this, I was able to connect successfully with the Nortek software. Once I confirmed the hardware connection was established, I ran the same code again using the correct default IP address, and it worked as expected.

Thanks again for your help, everyone!