using rs232 cog 2 to talk back and forth from 2 mini propellers then cog 1 as main display
Hello all ,
I have 2 mini props wired together and cant seem to get them to talk to each other . I am able to get one to sent a string out but can't seem to get the other to read it and then transfer it to my buffer/ array i call corebuss input string.
I am writing in c/c++ . I am using the fdserial object. Can't seem to find the command that says read the string and put it here. Saw rx.char. do i have to use that and receive 1 byte at a time and put it into my array or is there a command that receives the entire string sent and puts it in my buffer ie array.
Shorely there code written that does this .Where can i find it?
I am also looking to use 1 cog 2 as a port for conversation with other mini . The at the same time use cog 1 to talk with the main display port set up in the programmer believe is pin 31,32
I would like both these ports to be dumped into this array i mention earlier so i could print on main display on one mini and have it show up in the second mini.
Could anyone please help??