Hello everyone.
I am trying to simplify the example to be able to see the string of characters sent to me by the camera, first for T2 and then for N2.
The program modified:
#include <Servo.h>
#define SERIAL Serial
#define INLEN 128
char instr[INLEN + 1];
void setup()
{
Serial.begin(115200);
Serial.setTimeout(1000000);
Serial.println("setpar serlog None");
Serial.println("setpar serout Hard");
}
void loop()
{
byte len = Serial.readBytesUntil('\n', instr, INLEN);
instr[len] = 0;
Serial.println(instr);
delay(50);
}
When I compile and load the program in the arduino UNO, the result in the Hyperterminal is the following:
setpar serlog None
setpar serout Hard
T2 61 -123
T2 61 -122
ERR Unsupported command [T2 61 -123]
T2 61 -122
ERR UnsupportT2 63 -122
ERR Unsupported command [ET2 63 -122
T2 63 -122
ERR UnsupportT2 63 -122
ERR Unsupported command [ET2 63 -122
T2 61 -122
ERR UnsupportT2 59 -122
ERR Unsupported command [ET2 58 -122
T2 58 -122
ERR UnsupportT2 59 -122
ERR Unsupported command [ET2 59 -122
T2 59 -122
ERR UnsupportT2 58 -122
ERR Unsupported command [ET2 58 -122
T2 58 -122
ERR UnsupportT2 58 -122
ERR Unsupported command [ET2 58 -122
T2 58 -122
ERR UnsupportT2 58 -122
ERR Unsupported command [ET2 59 -122
T2 58 -122
ERR UnsupportT2 59 -122
ERR Unsupported command [ET2 58 -122
T2 59 -122
ERR UnsupportT2 59 -122
ERR Unsupported command [ET2 59 -122
T2 59 -122
ERR UnsupportT2 59 -122
ERR Unsupported command [ET2 59 -122
T2 59 -122
ERR UnsupportT2 59 -122
ERR Unsupported command [ET2 61 -122
T2 59 -123
ERR UnsupportT2 59 -122
ERR Unsupported command [ET2 59 -123
T2 59 -123
ERR UnsupportT2 61 -123
ERR Unsupported command [ET2 61 -123
T2 61 -123
ERR UnsupportT2 61 -123
T2 61 -123
ERR UnsupporteT2 61 -123
T2 58 -123
T2 59 -123
ET2 56 -123
T2 52 -123
T2 48 -123
ERT2 50 -123
T2 48 -123
My question is this: Why is "ERR Unsupported command"?
Now I have included the line: "setpar serstyle Normal" in the file: initscript.cfg
setmapping2 YUYV 320 240 30.0 JeVois DemoArUco
setpar serout Hard
setpar serstyle Normal
streamon
And the result of running the program is as follows:
setpar serlog None
setpar serout Hard
2 -300 69 1075 925
N2 U2 -300 69 1075 925
OK
N2 U2 -300 69 1075 925
OK
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
rtedN2 U2 -300 69 1075 925
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
ERR N2 U2 -300 69 1075 925
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
ERR N2 U2 -300 69 1075 925
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
ERR N2 U2 -300 69 1075 925
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
ERR N2 U2 -300 69 1075 925
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
ERR N2 U2 -300 69 1075 925
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
ERR N2 U2 -300 69 1075 925
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
ERR N2 U2 -300 69 1075 925
N2 U2 -300 69 1075 925
ERR UnsuppoN2 U2 -300 69 1075 925
ERR N2 U2 -300 69 1075 925
N2 U2 -297 75 1081 938
ERR UnsuppoN2 U2 -297 78 1081 931
ERR N2 U2 -294 81 1088 938
N2 U2 -294 81 1088 938
ERR UnsuppoN2 U2 -294 84 1088 944
ERR N2 U2 -294 84 1088 944
N2 U2 -291 84 1081 944
ERR UnsuppoN2 U2 -291 84 1081 944
N2 UN2 U2 -291 84 1081 944
N2 U2 -291 84 1094 944
N2 U2 -294 N2 U2 -294 84 1088 944
ERR N2 U2 -291 84 1094 944
What should I do to correct this error?
Thank you!.