buf.skipBytes(2); // header
int type = buf.readUnsignedByte();
buf.readUnsignedShort(); // length
// Pseudo IP address
String id = String.valueOf(buf.readUnsignedInt());
if (type == PACKET_POSITION_DATA ||
type == PACKET_ROLLCALL_RESPONSE ||
type == PACKET_ALARM_DATA ||
type == PACKET_BLIND_AREA) {