/gsm-pdu

Primary LanguageJava

GSM PDU decoder


This is a GSM PDU decoder which implement by java.

Java实现的GSM PDU解码器

source from C sharp SmsDecoder implement. (https://gitee.com/DAOSR/SmsDecoder/tree/master)


Usage(使用方法)

    String pdu = "07911326040000F0040B911346610089F60000208062917314080CC8F71D14969741F977FD07";

    SmsInfo si =SmsPduDecode.decode(pdu);

    System.out.println(pdu);
    System.out.println("----------------------------------");
    System.out.println("message center:"+si.getSmscNumber());
    System.out.println("sender:"+si.getSenderNumber());
    System.out.println("send time:"+si.getTimeStamp());
    System.out.println("ems message id:"+si.getSplitId());
    System.out.println("message index and count:"+si.getSplitIndex()+"/"+si.getSplitCount());
    System.out.println("content:"+si.getContent());