Talking to modem with AT commands on android -


i'm trying talk samsung galaxy s2 plus , huawei p1 xl (u9200) modem sending @ commands, can't result. i'm sending commands using adb shell , view logs logcat.

in samsung when execute cat /proc/tty/drivers following:

/dev/tty             /dev/tty        5       0 system:/dev/tty /dev/console         /dev/console    5       1 system:console /dev/ptmx            /dev/ptmx       5       2 system /dev/vc/0            /dev/vc/0       4       0 system:vtmaster  rfcomm               /dev/rfcomm   216 0-255 serial g_serial             /dev/ttygs    237 0-3 serial serial               /dev/ttys       4 64-67 serial pty_slave            /dev/pts      136 0-1048575 pty:slave pty_master           /dev/ptm      128 0-1048575 pty:master unknown              /dev/tty        4 1-63 console 

looks should send commands /dev/ttygs0, doesn't reply. i've tried following commands:

echo "at\r" > /dev/ttygs0 echo "atd12345678900;\r" > /dev/ttygs0 

but nothing happens. actually, i'm not sure have send commands file, others don't reply too. i've read article on xda-developers, didn't help.

with huawei know file should use, can't make data call. can make regular voice call, can't execute at+csns=4. doesn't work. have lg p765, based on similar chipset , on lg can make data call. can tell me should do?

all devices rooted.

i suggest try send @ command using atinout program, e.g. instead of redirecting output modem device run

echo "atd12345678900;" | atinout - /dev/ttygs0 - 

i guessing, echo command in adb shell not interpret \r special (that @ least explain no response whatsoever). using atinout guarantied @ command lines terminated \r , capturing should simpler , work more reliably.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -