|
本帖最后由 recover 于 2016-1-1 10:27 编辑
SendHexData("HF-A11ASSISTHREAD");
public void sendDataATQ()
throws IOException, InterruptedException
{
this.sBuffer = "AT+Q\n".getBytes(this.currentSCodes);
System.out.println("@@@@@@@@@@@@@@@@----" + "AT+Q\n" + "---@@@@@@@@@@@@@@@@@");
this.sPacket = new DatagramPacket(this.sBuffer, this.sBuffer.length, InetAddress.getByName(this.remoteIp), 48899);
this.sUdp.send(this.sPacket);
}
public void sendDataATZ()
throws IOException, InterruptedException
{
this.sBuffer = "AT+Z\n".getBytes(this.currentSCodes);
this.sPacket = new DatagramPacket(this.sBuffer, this.sBuffer.length, InetAddress.getByName(this.remoteIp), 48899);
System.out.println("@@@@@@@@@@@@@@@@----AT+Z---@@@@@@@@@@@@@@@@@");
this.sUdp.send(this.sPacket);
}
public void sendDataChuanKou()
throws IOException
{
this.sBuffer = "AT+EPHY=off\n".getBytes(this.currentSCodes);
this.sPacket = new DatagramPacket(this.sBuffer, this.sBuffer.length, InetAddress.getByName(this.remoteIp), 48899);
System.out.println("@@@@@@@@@@@@@@@@----AT+EPHY=off---@@@@@@@@@@@@@@@@@");
this.sUdp.send(this.sPacket);
}
public void sendDataHf()
throws IOException, InterruptedException
{
if (this.sUdp == null) {
this.sUdp = new DatagramSocket();
}
this.sBuffer = "HF-A11ASSISTHREAD".getBytes(this.currentSCodes);
this.sPacket = new DatagramPacket(this.sBuffer, this.sBuffer.length, InetAddress.getByName(this.remoteIp), 48899);
int i = 0;
for (;;)
{
if (i >= 5) {
return;
}
System.out.println("@@@@@@@@@@@@@@@@----" + "HF-A11ASSISTHREAD" + "---@@@@@@@@@@@@@@@@@");
Thread.sleep(100L);
this.sUdp.send(this.sPacket);
i += 1;
}
}
public void sendDataHfAllShow()
throws IOException, InterruptedException
{
this.sBuffer = "AT+FAPSTA=on\n".getBytes(this.currentSCodes);
this.sPacket = new DatagramPacket(this.sBuffer, this.sBuffer.length, InetAddress.getByName(this.remoteIp), 48899);
System.out.println("@@@@@@@@@@@@@@@@----AT+FAPSTA---@@@@@@@@@@@@@@@@@");
this.sUdp.send(this.sPacket);
}
public void sendDataOk()
throws IOException
{
this.sBuffer = "+ok".getBytes(this.currentSCodes);
this.sPacket = new DatagramPacket(this.sBuffer, this.sBuffer.length, InetAddress.getByName(this.remoteIp), 48899);
System.out.println("@@@@@@@@@@@@@@@@----" + "+ok" + "---@@@@@@@@@@@@@@@@@");
this.sUdp.send(this.sPacket);
}
public void sendDataWmodeApSta()
throws IOException, InterruptedException
.........................保密 ..............
|
|