I have connected a phone to the computer by serial port and I am using matlab to control it(the phone).
s = serial('COM8');
s.BytesAvailable %this returns 0
after using some fwrite
AT command s.BytesAvailable
returns number bigger than 0 (in my case it returns 54, but the number is irrelevant here).
So can I reset the s.BytesAvailable to get it to 0 again? I tried fopen(s)
, but nothing (seems to have) happened.