Here is the manual for the product that I am trying to interface with. Page 21-27 gives all of the information on the RS422 Commands, I am just interested in Record and Stop functions but am having a little trouble deciphering how to properly do this. Here is the start of my code so you may be able to get an idea for what I am trying to achieve.
//BM Recorder V1.0
int recordSw = 7;
int stopSw = 6;
int ledPin = 13;
void setup() {
// put your setup code here, to run once:
pinMode (ledPin, OUTPUT);
pinMode (recordSw, INPUT_PULLUP);
pinMode (stopSw, INPUT_PULLUP);
Serial.begin (38400, SERIAL_8O1);
}
void loop() {
// put your main code here, to run repeatedly:
if (recordSw == LOW)
{if (Serial.available())
(Serial.print (0x200x01));
}
}
Arduino: 1.5.5-r2 (Windows 7), Board: "Arduino Uno"
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=155 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard C:\Users\jbmurray\AppData\Local\Temp\1\build2026306514269995541.tmp\sketch_apr14a.cpp -o C:\Users\jbmurray\AppData\Local\Temp\1\build2026306514269995541.tmp\sketch_apr14a.cpp.o
sketch_apr14a.ino:18:18: error: invalid suffix "x01" on integer constant