Wireless VINT hub5000 and No Network Phidgets Detected

Comments & issues
Supporting Windows 8 or newer
Post Reply
2four
Fresh meat
Posts: 2
Joined: Wed Feb 12, 2025 6:51 pm
Contact:

Wireless VINT hub5000 and No Network Phidgets Detected

Post by 2four »

Hi Folks,

I am currently running a hub5000 on WiFi, and accessing it through a Windows computer on Ethernet running Python 3.10.

I have no issues connecting and polling my hub5000 in Python. Here is my code:

Code: Select all

from Phidget22.Phidget import *
from Phidget22.Net import *
from Phidget22.Devices.Log import *
from Phidget22.LogLevel import *
from Phidget22.Devices.TemperatureSensor import *
import time

#Create your Phidget channels
Net.addServer("hub5000", "192.168.2.222", 5661, "", 0) #"servername", "ip", port, "password"
Log.enable(LogLevel.PHIDGET_LOG_INFO, "phidgetlog.log")

#Create your Phidget channels
t0 = TemperatureSensor()

#Set addressing parameters to specify which channel to open (if any)
t0.setDeviceSerialNumber(745542)
t0.setHubPort(5)
t0.setChannel(0)

try:
    t0.openWaitForAttachment(10000)
    for i in range(30):
        print("Temperature: %f" % t0.getTemperature())
        time.sleep(1)
except PhidgetException as e:
    print("Phidget Exception %i: %s" % (e.code, e.details))
    print("Connection Error, exiting....")
    readin = sys.stdin.read(1)
    exit(1)

t0.close()
All of this looks great and works perfectly. I can even get the Hub Control Panel working through my browser via the IP:

Image


HOWEVER, I cannot get Desktop Phidget Control Panel to show my Phidget. Even exiting and re-opening the application doesn't detect my Phidget.

Image

Any advice? I also cannot get enableServerDiscovery to detect any Phidgets, I have to manually enter an IP address every time...

Code: Select all

from Phidget22.Phidget import *
from Phidget22.Net import *
import time

def onServerAdded(self, server, kv):
	print("Server: " + str(server))
	print("Kv: " + str(kv))

net = Net()

# Register for event before calling open
net.setOnServerAddedHandler(onServerAdded)

Net.enableServerDiscovery(PhidgetServerType.PHIDGETSERVER_SBC)

while True:
	# Do work, wait for events, etc.
	time.sleep(1)
User avatar
Patrick
Lead Developer
Posts: 656
Joined: Mon Jun 20, 2005 8:46 am
Location: Calgary
Contact:

Re: Wireless VINT hub5000 and No Network Phidgets Detected

Post by Patrick »

Server discovery relies on Bonjour being installed and running. Can you confirm whether Bonjour is installed on your Windows machine and that the Bonjour service is running?

In the windows control panel, if you go to help->logs, are there any DNS-SD / mDNS related messages/errors?

-Patrick
2four
Fresh meat
Posts: 2
Joined: Wed Feb 12, 2025 6:51 pm
Contact:

Re: Wireless VINT hub5000 and No Network Phidgets Detected

Post by 2four »

Hi Patrick,

Thanks for the quick reply! I definitely appreciate it. I do have Bonjour service enabled and running, but no dice in the Control Panel:

Image

The following errors show up in the last two days in the category of DNS events:
Name resolution for the name 168.192.in-addr.arpa timed out after none of the configured DNS servers responded.
Name resolution for the name t-ring-fdv2.msedge.net timed out after none of the configured DNS servers responded.
User avatar
Patrick
Lead Developer
Posts: 656
Joined: Mon Jun 20, 2005 8:46 am
Location: Calgary
Contact:

Re: Wireless VINT hub5000 and No Network Phidgets Detected

Post by Patrick »

Hi,

You could have a look in the HUB5000 system and network server logs for any errors.

Is your network, or PC configured to block multicast mDNS packets? I'm not sure what else could be causing the issue.

-Patrick
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests