Looking at the logo, it's from RTRobot.
Current Linux software - including manual and Raspberry Pi code - seems to live here:
http://www.rtrobot.org/software/
You want
Servo Controller X64 for Linux. It's a big/slow download, and there are some precompiled things in there that might not be the best things to run.
Slightly more easy to get manual:
https://www.scribd.com/document/4421260 ... h-V2-6-pdf
There's a tiny C example for Raspberry Pi:
Code: Select all
/*
* test.c:
* Copyright (c) 2014-2020 Rtrobot. <admin@rtrobot.org>
* <http://rtrobot.org>
***********************************************************************
* 1.Inatall wiringPi at <http://wiringpi.com/>
* 2. Connect to board via usb
* 3.build:
* gcc -o test test.c -lwiringPi
* 4.run to test:
* ./test
***********************************************************************
*/
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <wiringPi.h>
#include <wiringSerial.h>
void wait_serial_return_ok(int fd)
{
int num=0;
while(1)
{
char c[16];
c[num]=serialGetchar(fd);
if(c[num-1]=='O'&&c[num]=='K')
break;
num++;
if(num>=15)
num=0;
}
}
int main(int argc, char *argv[])
{
int fd;
if ((fd = serialOpen("/dev/ttyACM0", 115200)) < 0)
{
fprintf(stderr, "Unable to open serial device: %s\n", strerror(errno));
return 1 ;
}
serialPuts(fd, "#1P2000T1000D100\r\n");
//Waiting to return OK
wait_serial_return_ok(fd);
serialPuts(fd, "#1P1000#2P666T1000D2333\r\n");
wait_serial_return_ok(fd);
//Test for send wrong instruction
serialPuts(fd, "#3P2500T9000D9000\r\n");
//Stop wrong instruction
serialPuts(fd, "~ST");
//Change right instruction
serialPuts(fd, "#2P2500T9000D9000\r\n");
wait_serial_return_ok(fd);
//Test for action groups,Group 1 run 3 times
serialPuts(fd, "G1F3\r\n");
wait_serial_return_ok(fd);
//Close serial
serialClose(fd);
return 0;
}
What leaps out at me from that code is:
- All commands end with "\r\n".
- The test program waits for OK to be returned from the serial port
Possibly older user manual here:
https://web.archive.org/web/20161213082 ... Manual.pdf
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him