Info

This question is closed. Reopen it to edit or answer.

About serial communication and it correction

1 view (last 30 days)
mohammad
mohammad on 16 Feb 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
**At sending side****
s = serial('COM1');
set(s,'BaudRate',9600,'DataBits',8);
fopen(s);
fwrite(s,'we love you')
fclose(s)
**at receiving side****
s = serial('COM1');
set(s,'BaudRate',9600,'DataBits',8);
fopen(s);
x=fgets(s)
fclose(s)
*but at receiving only we is coming *
can you help me to get complete data at receiving side plz reply fast

Answers (1)

Walter Roberson
Walter Roberson on 16 Feb 2013
Change to
fprintf(s,'we love you\n')
  9 Comments
Walter Roberson
Walter Roberson on 17 Feb 2013
I seem to be having difficulty finding the specifications for that device.
I am finding discussions suggesting that at least some nRF2401 use TTL level communications; if that is what is being used you would have difficulty.
mohammad
mohammad on 18 Feb 2013
ok thanks i will further try and then tell you

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!