How to send AT command in android?

I want to send the At command to my modem application. Can someone please let me know how to send the AT command to my application?

Do we need a Phone object to send an AT command?

The class ATResponseParseranalyzes part of the AT command syntax used to communicate with mobile radio equipment in a mobile phone. This is essentially a command syntax very similar to the AT command syntax used by modems, the standard described in 3GPP document document number TS 27.007 and related specifications.

I want to send below AT command to mode. 6.5Hangup call +CHUP

Table 13a: + CHUP Action Command Syntax

Team

Possible answer (s)

+CHUP


+CHUP=?

Please help me.

+3
source share
2

Android SDK , AT- .

API.

+5

, adb

su

echo -e "AT\r" > /dev/smd0

cat /dev/smd0

samsung mini, cooper, s + .

htc ( htc ), adb shell "radiooptions 13 AT", "logcat -b radio"

echo to/dev/smd0

* sdk java, Runtime.exec(require su)

example: echo -e "ATD123456789;\r" > /dev/smd0 ---- > ( 123456789)

+2

Source: https://habr.com/ru/post/1739752/


All Articles