Page 1 of 1

Phidget 22 and remote devices

Posted: Tue Nov 28, 2017 12:34 pm
by Lyndon Williams
With Phidgets 21 if I wanted to open a remote device with Python, I would say:

Code: Select all

motorControl.openRemoteIP("192.168.83.106", 5001, -1, "")
With Phidget 22, I can open a locally attached device easily enough:

Code: Select all

MyServoChannel = RCServo()
MyServoChannel.openWaitForAttachment(10000)
But I don't know how to open a remote device with Phidget 22.

Help

Re: Phidget 22 and remote devices

Posted: Tue Nov 28, 2017 3:23 pm
by mparadis
Before opening, use:

Code: Select all

Net.enableServerDiscovery(PhidgetServerType.PHIDGETSERVER_DEVICE);
MyServoChannel.setIsRemote(1)

Re: Phidget 22 and remote devices

Posted: Tue Dec 05, 2017 12:59 pm
by Lyndon Williams
Thank you mparadis.

Seems I had a number of issues that were causing me trouble.

The main one was that I had to update my SBC2.

It was not enough to update packages in the web based GUI. I had to turn on SSH server and log in through SSH to run

Code: Select all

sudo apt-get update
and

Code: Select all

sudo apt-get upgrade
as well as

Code: Select all

sudo apt-get dist-upgrade
before I had the new Network Server on the SBC rather than just the old Webservice.