matlab - How to make AT command to automatically return caller ID? -
so, i'm using @ commands matlab return caller id. work, have manually ask it. return caller id automatically whenever ring on phone.
here write before ring:
>> s = serial('com8'); >> fopen(s)
and type when phone rings:
>> fwrite(s, [65 84 43 67 82 67 61 49 13])
then ask returned value(the caller phone number):
>> s serial port object : serial-com8 communication settings port: com8 baudrate: 9600 terminator: 'lf' communication state status: open recordstatus: off read/write state transferstatus: idle bytesavailable: 47 valuesreceived: 0 valuessent: 18 >> fread(s, 47)
and returns me 47 ascii numbers this(note have deleted of returned code):
ans = 65 84 43 67 82 67 61 49 13
which translates following(changed number safety reasons):
+cring:voice +clip: "+359888888888",145at+crc=1ok
what want happen when phone rings send computer output of
>> fwrite(s, [65 84 43 67 82 67 61 49 13]) >> fread(s, 47)
Comments
Post a Comment