FullDuplex - two UARTS on two cogs?
Leon
Posts: 7,620
I'm trying to get FullDuplex working on two cogs, as I need two UARTS, but I'm only getting output from one. Here is my test code:
The start function in FullDuplex should start a new cog, but I'm only getting output from the camera port.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
OBJ PC : "FullDuplex" camera : "FullDuplex" PUB go PC.start(31, 30, 9600) '' Rx pin 31, Tx pin 30 camera.start(14, 15, 19200) '' Rx pin 14, Tx pin 15 repeat camera.tx("u") PC.tx("u") while true
The start function in FullDuplex should start a new cog, but I'm only getting output from the camera port.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Comments
The 4 receivers where Infra-Red channels. One of the transmitters was a "collated channel" of the Infra-Red signals, the final port was used for debugging (actually a copy of SerialMirror, but it's very similar to FullDuplexSerial).
I've had no problems.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle