android - Python not reading COM port of my mobile -
i have below code reads 'imsi' connected mobile in pc using @ command. working fine 1 of samsung s5 mobile. same code not reading samsung s5 (meanwhile can done using 'putty').
using putty, manually can read command output. python not working in same case.
anybody has idea on this?
`$` import serial com ="com3" read_val="tet" phone = serial.serial(com,9600, timeout=2) serialcmd ="at+cimi\r\n" phone.write(serialcmd) read_val = str(phone.read(size=100)) print read_val phone.close() `$`
Comments
Post a Comment