Baud rate is set at 9600 across the board. I have the aux TX pin going into the TX pin on the arduino (pin 1) and the RX into RX (pin 0)
Is there anything I'm missing on this? I tried switching the TX and RX but with that, nothing showed up.
Racecapture Pro Mk2 script
Code: Select all
tickRate = 25
ser_baud = 9600
ser_port = 4
ser_bits = 8
ser_par = 0
ser_sbit = 1
ser_start_char = '<'
ser_end_char = '>'
function sendDataToDis()
local oilTemp = 123
local coolTemp = 789
local mes = ser_start_char .. oilTemp .. "|" .. coolTemp .. ser_end_char
writeSer(ser_port, mes)
end
function onTick()
sendDataToDis()
end
setTickRate(tickRate)
initSer(ser_port, ser_baud, ser_bits, ser_par, ser_sbit)
Code: Select all
void setup() {
Serial.begin(19200);
Serial.println("<Arduino is ready>");
}
void loop() {
recvWithStartEndMarkers();
}
void recvWithStartEndMarkers() {
char startMarker = '<';
char endMarker = '>';
char rc;
while (Serial.available() > 0) {
rc = Serial.read();
Serial.println(rc);
}
}