这张图是领导提供的指令表,说这些功能安卓系统已经实现了,只需要通过程序来调用这些指令,来实现检测功能,网上查了很久,也没查出头绪,我是android新手,有没有高手给点详细的解答
http://blog.csdn.net/jumping_android/article/details/7397794
参考android 发送AT命令
发送
void Send(String file, String cmd){
RandomAccessFile localRandomAccessFile = new RandomAccessFile(file, "rw");
localRandomAccessFile.writeBytes(cmd + "\r\n");
localRandomAccessFile.close();
}
接收
void Receive(String file){
RandomAccessFile localRandomAccessFile = new RandomAccessFile(file, "r");
byte[] arrayOfByte = new byte[1024];
int readSize = 0;
while ((readSize = localRandomAccessFile.read(arrayOfByte)) == -1){
}
String response = new String(arrayOfByte).substring(0, readSize);
}
手机中有拨号模块,你可以通过发送AT指令,控制模块的动作