Code: Select all
ch0 = DigitalInput()
ch1 = DigitalInput()
ch2 = DigitalInput()
Code: Select all
ch0.setDeviceSerialNumber(81128)
ch0.setChannel(0)
ch1.setDeviceSerialNumber(81128)
ch1.setChannel(1)
ch2.setDeviceSerialNumber(81128)
ch2.setChannel(2)
Code: Select all
Net.enableServerDiscovery(PhidgetServerType.PHIDGETSERVER_DEVICEREMOTE);
ch0.setIsRemote(1)
Code: Select all
Net.enableServerDiscovery(PhidgetServerType.PHIDGETSERVER_DEVICEREMOTE)
Code: Select all
phidget{
enabled: true
pidfile: '/var/run/phidget22networkserver.pid'
feature {
control {
enabled: true
}
stats {
enabled: true
}
dictionary {
enabled: true
directory: '/etc/phidgets/dictionary.d'
}
}
logging {
level: info
file: '/var/log/phidgetsnetworkserver.log'
maxfiles: 4
maxsize: 1048576
network {
enabled: true
port: 5771
}
source {
phidget22net {
level: info
}
_phidget22usb {
level: info
}
_phidget22match {
level: error
}
_phidget22channel {
level: error
}
_phidget22bridge {
level: error
}
_phidget22disp {
level: error
}
}
}
network {
keepalive: 30000
ipv4 {
address: localhost
port: 5661
}
datagram {
enabled: true
}
publish {
enabled: true
name: 'Phidget22 Server'
}
resolveaddrs: false
}
}
Code: Select all
INFO [phidget22][2018-01-21T16:44:08]:******************** Logging enabled ********************
INFO [netsrv][2018-01-21T16:44:08 server.c+167 enableLogging()]: logging: _phidget22bridge=error
INFO [netsrv][2018-01-21T16:44:08 server.c+167 enableLogging()]: logging: _phidget22channel=error
INFO [netsrv][2018-01-21T16:44:08 server.c+167 enableLogging()]: logging: _phidget22disp=error
INFO [netsrv][2018-01-21T16:44:08 server.c+167 enableLogging()]: logging: _phidget22match=error
INFO [netsrv][2018-01-21T16:44:08 server.c+167 enableLogging()]: logging: _phidget22usb=info
INFO [netsrv][2018-01-21T16:44:08 server.c+167 enableLogging()]: logging: phidget22net=info
INFO [netsrv][2018-01-21T16:44:08 phidgetserver.c+109 startPhidgetServer()]: Changed network keepalive to 30000
INFO [phidget22net][2018-01-21T16:44:08 servers.c+1444 setAllowClients()]: Client network connections allowed by default
INFO [_phidget22usb][2018-01-21T16:44:08]:Initializing libusb
INFO [phidget22net][2018-01-21T16:44:08 network.c+102 PhidgetNet_start()]: Starting Networking
INFO [_phidget22usb][2018-01-21T16:44:08]:New Phidget found in PhidgetUSBBuildList: 1/4
INFO [phidget22net][2018-01-21T16:44:09 servers.c+1049 startServer()]: Published '_phidget22server._tcp' on port 5661 for discovery
INFO [netsrv][2018-01-21T16:44:09 phidgetserver.c+131 startPhidgetServer()]: Started Phidget Server Phidget22 Server localhost:5661
Code: Select all
phidget{
enabled: true
feature {
control {
enabled: true
}
stats {
enabled: true
}
dictionary {
enabled: true
directory: '/etc/phidgets/dictionary.d'
}
}
network {
keepalive: 30000
ipv4 {
address: localhost
port: 5661
}
datagram {
enabled: true
}
publish {
enabled: true
name: 'Phidget22 Server'
}
resolveaddrs: false
}
logging {
level: info
file: '/var/log/phidgetsnetworkserver.log'
maxfiles: 4
maxsize: 1048576
source {
phidget22net {
level: info
}
_phidget22usb {
level: info
}
_phidget22match {
level: error
}
_phidget22channel {
level: error
}
_phidget22bridge {
level: error
}
_phidget22disp {
level: error
}
}
}
}
Users browsing this forum: No registered users and 1 guest