Phidget 22 and remote devices

Supporting 2.7 and 3.2+
Post Reply
Lyndon Williams
Phidgetsian
Posts: 9
Joined: Tue Nov 27, 2012 7:25 am
Contact:

Phidget 22 and remote devices

Post 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
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Phidget 22 and remote devices

Post by mparadis »

Before opening, use:

Code: Select all

Net.enableServerDiscovery(PhidgetServerType.PHIDGETSERVER_DEVICE);
MyServoChannel.setIsRemote(1)
Lyndon Williams
Phidgetsian
Posts: 9
Joined: Tue Nov 27, 2012 7:25 am
Contact:

Re: Phidget 22 and remote devices

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest