Full Duplex Serial comunication help
dar
Posts: 15
Hi i'm working now to make a full duplex serial comunication with a gprs module.
I'm working with the object "FullDuplexSerial".
how can i to make carryreturn to go to new line?
thanks
I'm working with the object "FullDuplexSerial".
how can i to make carryreturn to go to new line?
thanks
Comments
Then you simply send it byte-wise, or you add it to the end of the string:
fds.tx( 13 )
or
fds.str( string( "gprs_command",13 ) )
Sometimes devices expect a carriage-return plus a linefeed. This would then be 10, 13. Just call another tx or add the 10 to the string.
And do you know how i can do the communication with two pins (2 and 3) and watch what i'm send and read in the parallax terminal?
In the loop in which you read gprs you can immediately send the value to debug. Wherever you send something to gprs, you'd simply do the same call with debug.
If you run out of COGs you can switch to the serial object which allows to have 4 serial connections using one COG. (The duplication of FullDuplexSerial of course need one COG per instance.)