Rufiorocks
Newbie level 5
its working fine with the hyper-terminal.i can send msg and get "ok" command when i type "at" at hyper terminal.
but in matlab:-
s = serial('COM12');
set(s,'BaudRate',9600);
fopen(s);
tx='AT';
fprintf(s,'%s',tx);
out = fscanf(s)
fclose(s)
as suggested by one of the members in previous posts i tried the above code
it is not working
either i get 'out= AT'
or ' out = " ' (i.e. Warning: A timeout occurred before the Terminator was reached. )
what should i do plz guide me
i also tried with tx='AT\n' even this doesnot work
but in matlab:-
s = serial('COM12');
set(s,'BaudRate',9600);
fopen(s);
tx='AT';
fprintf(s,'%s',tx);
out = fscanf(s)
fclose(s)
as suggested by one of the members in previous posts i tried the above code
it is not working
either i get 'out= AT'
or ' out = " ' (i.e. Warning: A timeout occurred before the Terminator was reached. )
what should i do plz guide me
i also tried with tx='AT\n' even this doesnot work