Servo Control sample for gopigo giving inappropriate ioctl for device



throws error termios error 25, ‘inappropriate ioctl for device’
model - gopigo3
raspbian being used
what could possibly be going wrong?
please help


(Not DI Here, some thoughts till they pop in - Please make sure you have a backup copy of your card image before trying any update scripts.)

======= check OS version ====== (I’m pretty sure you need to be on Stretch.)
cat /etc/os-release

PRETTY_NAME=“Raspbian GNU/Linux 9 (stretch)”
NAME=“Raspbian GNU/Linux”
VERSION=“9 (stretch)”

How to Check Versions of GoPiGo3 Hardware and Software

=== Check version of GoPiGo3 Firmware
sudo ~/Dexter/GoPiGo3/Troubleshooting/

=== Check version of Python GoPiGo3 package

pip freeze | grep gopigo3

=== Check version of Python DI Sensors package

pip freeze | grep DI-Sensors

=== Check version of Raspbian for Robots
You said “raspbian” - Are you on “Raspian” or “Raspian For Robots”?

cd ~/di_update/Raspbian_For_Robots directory on your Raspberry Pi

git rev-parse HEAD
gives the hash code for the last commit.

Once you get that hash code, you can use it in this URL format:<>

Put it in your browser and that will take you to the version you have in GitHub.
You can check the dates and see how far behind your version is from the latest one.

WARNING WARNING WARNING - These change your image.
=== Update GoPiGo3 software to latest:

curl -kL | bash

=== Update DI Sensors

curl -kL | bash


In addition to what @cyclicalobsessive said, the instructions necessary to set up a Raspbian For Robots image are here: