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

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -