No response on any serial ports. I tried with/without the initSer command, tried 115200 and 921600 baud rates. Tried with all ports turned off, WiFi, Bluetooth, CAN, GPS.
Also tried sending the AT commands to the ESP8266 WiFi module. Still nothing.
Looks like the serial port commands via Lua don't work with the RCTrack2.
Code: Select all
setTickRate(10) --TickRate is in Hz
initSer(0, 115200, 8, 0, 1)
initSer(1, 115200, 8, 0, 1)
initSer(2, 115200, 8, 0, 1)
initSer(3, 115200, 8, 0, 1)
initSer(4, 115200, 8, 0, 1)
initSer(5, 115200, 8, 0, 1)
initSer(6, 115200, 8, 0, 1)
function onTick()
port0 = readSer(0,100)
println("Port 0: " ..port0)
port1 = readSer(1,100)
println("Port 1: " ..port1)
port2 = readSer(2,100)
println("Port 2: " ..port2)
port3 = readSer(3,100)
println("Port 3: " ..port3)
port4 = readSer(4,100)
println("Port 4: " ..port4)
port5 = readSer(5,100)
println("Port 5: " ..port5)
port6 = readSer(6,100)
println("Port 6: " ..port6)
end
ESP8266 AT Instruction Set