I went back to my previous backup to see what I had done differently, and that was a lot...

So now I used this:
Code: Select all
wget -qO- http://www.phidgets.com/gpgkey/pubring.gpg | sudo apt-key add - && sudo bash -c "echo 'deb http://www.phidgets.com/debian stretch main' > /etc/apt/sources.list.d/phidgets.list"
sudo apt-get update
sudo apt-get install libphidget22
npm install node-red-contrib-phidget22
sudo apt-get install phidget22networkserver -y
sudo apt-get install phidget22admin -y
sudo mousepad /lib/systemd/system/phidgetsserver.service
sudo chmod 644 /lib/systemd/system/phidgetsserver.service
sudo systemctl enable /lib/systemd/system/phidgetsserver.service
It got me further, but not all the way. Is it possible that the respositorys aren't updatede and I need to do something manually?
Edit: It's alive! (Picture me as Gene Wilder's "Fronkensteen" shouting...) I have the Hello world example working, it says "Hello to Device PhidgetInterfaceKit 0/16/16, Serial Number: 15593" 32 times, which is one per input and one per output!

So now I have hope again. If I could only get the server working, so I can use it by Node-RED I would be a happy camper!
I get this string on restart of Node-RED (after a reboot and an attempt to open port 2, which gave me "Unsupported message topic")
Code: Select all
Attempting to Connect to Server (127.0.0.1:5661)
Attempting to Open DigitalOutput (SN:15593, Ch:2)
Connect Success (127.0.0.1:5661)
DigitalOutput Opened (SN:15593, Ch:2)
setLEDForwardVoltage (in onAttach) not supported
setLEDCurrentLimit (in onAttach) not supported
Open failed:PhidgetError: Open timed out
This is when using the Node-RED node, and injecting into a Digital Output node, with the values:
LED Forward Voltage: volts_1_7
LED Current Limit: 0.02
Channel: 2 (I assume this is the port to open, but I'm not sure)
Serial #: 15593
Using a VINT Port in DigitalOutput mode? Tried both on and off
Also, I can't get to phidget22admin on the Pi. If I use "sudo phidget22admin -s" it says "bash: could not find command phidget22admin" (well, that's translated from Norweigan, so it may not be word for word what it would say in English). Is there something I have forgotten to install? I know the server runs, since I can connect to it.