com.pax.dal

Interface IDeviceInfo

    • Method Detail

      • getBatteryUsages

        java.util.List<BatterySippergetBatteryUsages()
        获取系统消耗电池数据情况
        Obtain the data situation of battery consumed by the system.
        Returns:
        消耗电池数据情况 BatterySipper
        Battery data consumption
        Since:
        V3.06.00
      • getFailCount

        long getFailCount(int module)
        获取设备被使用的失败总次数。收集磁条卡的刷卡失败次数和 接触式芯片卡与非接卡的Apdu exchange失败次数
        Get failed count for the device be used. collect swipe failed times for MagCard ,and Apdu exchange failed times for ICC and PICC.
        Parameters:
        module -
        设备类型类型 :1.磁条卡MODULE_MAG 2.接触式芯片卡MODULE_ICC 3.非接触式芯片卡 MODULE_PICC
        device type:1.MagCardMODULE_MAG 2.ICC MODULE_ICC 3.PICCMODULE_PICC
        Returns:
        • >0 返回失败次数
        • -1 表示系统不支持
        • -2 模块超出定义范围
        • >0 usage count
        • -1 device not support
        • -2 not support module
        Since:
        V2.00.01
      • getModuleSupported

        IDeviceInfo.ESupported getModuleSupported(int module)
        返回指定模块的支持情况
        get the module support or not
        Parameters:
        module -
        Returns:
        是否支持。如果module不在定义范围内,返回INVALID
        support or not .if module is out of defined,return INVALID
        Since:
        V2.00.01
      • getPrinterStatus

        int getPrinterStatus()
        获取打印状态
        get printer status
        Returns:
        • 0: 正常
        • 1: 打印机忙
        • 2: 打印机缺纸
        • 3: 打印数据包格式错
        • 4: 打印机故障
        • 8: 打印机过热
        • 9: 打印机电压过低
        • -16:打印未完成
        • -4:打印机未安装字库
        • -2:数据包过长
        • 0- Success
        • 1- Printer is busy
        • 2- Out of paper
        • 3- The format of print data packet error
        • 4- Printer malfunctions
        • 8- Printer over heats
        • 9- Printer voltage is too low
        • -16- Printing is unfinished
        • -4- The printer has not installed font library
        • -2- Data package is too long
        Since:
        V2.00.01
      • getTrafficOfEachApp

        java.util.Map<java.lang.String,java.lang.Long> getTrafficOfEachApp(int netType,
                                                                           long start,
                                                                           long end)
        获取所有APP在指定网络类型下流量的使用情况。
        get the usage of all APP traffic under the specified network type.
        Parameters:
        netType -
        1:表示 Wi-Fi; 2:表示移动网络; 6: 表示以太网;
        1: Wi-Fi; 2: mobile network; 6: LAN;
        start -
        开始时间,单位毫秒
        start time (ms)
        end -
        结束时间,单位毫秒
        end time (ms)
        Returns:
        map(结构:key:应用名; value:流量 )
        map(key:application name value:traffic)
        Since:
        V3.06.00
      • getTrafficTotal

        long getTrafficTotal(int netType,
                             long start,
                             long end)
        获取系统指定网络类型的总使用流量 。
        Gets the total usage traffic of the system specified network type.
        Parameters:
        netType -
        1:表示 Wi-Fi; 2:表示移动网络; 6: 表示以太网。
        1: Wi-Fi; 2: mobile network; 6: LAN.
        start -
        开始时间,单位毫秒
        start time (ms)
        end -
        结束时间,单位毫秒
        end time (ms)
        Returns:
        流量
        traffic
        Since:
        V3.06.00
      • getUsageCount

        long getUsageCount(int module)
        获取设备被使用的总次数。收集磁条卡的刷卡成功次数和 接触式芯片卡与非接卡的Apdu exchange成功次数
        Get total count for the device be used. collect swipe success times for MagCard ,and Apdu exchange success times for ICC and PICC.
        Parameters:
        module -
        设备类型类型 :1.磁条卡MODULE_MAG 2.接触式芯片卡MODULE_ICC 3.非接触式芯片卡 MODULE_PICC
        device type:1.MagCardMODULE_MAG 2.ICC MODULE_ICC 3.PICCMODULE_PICC
        Returns:
        • >0 返回使用次数
        • -1 表示系统不支持
        • -2 模块超出定义范围
        • >0 usage count
        • -1 device not support
        • -2 not support module
        Since:
        V2.00.01
      • getDeviceInfo

        DeviceInfo getDeviceInfo()
                          throws java.lang.Exception
        获取POS设备信息。
        Get POS device information.
        Returns:
        DeviceInfo
        Throws:
        java.lang.Exception
        Since:
        V3.17.00
      • isModuleEnable

        boolean isModuleEnable(int module)
                        throws java.lang.Exception
        模块是否被启用。
        Whether the module is enabled.
        Parameters:
        module -
        • 1:MODULE_MAG
        • 2:MODULE_ICC
        • 3:MODULE_PICC
        • 4:MODULE_PED
        • 5:MODULE_PRINTER
        • 6:MODULE_SCANNER
        • 1:MODULE_MAG
        • 2:MODULE_ICC
        • 3:MODULE_PICC
        • 4:MODULE_PED
        • 5:MODULE_PRINTER
        • 6:MODULE_SCANNER
        Returns:
        Throws:
        java.lang.Exception
        Since:
        V3.22.00
      • getBatteryCycleCount

        int getBatteryCycleCount()
                          throws java.lang.Exception
        获取电池的循环次数。
        Get the battery cycle count.
        Returns:
        电池的循环次数。
        Battery cycle count.
        Throws:
        java.lang.Exception - Exception
        Since:
        V3.22.00
      • resetBMSData

        void resetBMSData()
                   throws java.lang.Exception
        清除电池数据。注意:设备重启后生效。
        Clear battery data. Note: It will take effect after the device restarts.
        Throws:
        java.lang.Exception - Exception
        Since:
        V3.27.00
      • setBMSMode

        void setBMSMode(byte mode)
                 throws java.lang.Exception
        设置电池模式。注意:设备重启后生效。
        Set battery mode. Note: It will take effect after the device restarts.
        Parameters:
        mode -
        电池模式
        0:表示终端自动识别工作模式
        1:设定工作模式为移动模式
        2:设定工作模式为桌面模式
        Battery mode
        0: indicates that the device automatically recognizes the working mode
        1: Set the working mode to mobile mode
        2: Set the working mode to desktop mode
        Throws:
        java.lang.Exception - Exception
        Since:
        V3.28.00
      • getBMSMode

        byte getBMSMode()
                 throws java.lang.Exception
        设置电池模式。注意:设备重启后生效。
        Set battery mode. Note: It will take effect after the device restarts.
        Returns:
        电池模式
        0:表示终端自动识别工作模式
        1:设定工作模式为移动模式
        2:设定工作模式为桌面模式
        Battery mode
        0: indicates that the device automatically recognizes the working mode
        1: Set the working mode to mobile mode
        2: Set the working mode to desktop mode
        Throws:
        java.lang.Exception - Exception
        Since:
        V3.28.00
      • setTemporaryBMSMode

        void setTemporaryBMSMode(int mode)
                          throws java.lang.Exception
        切换临时移动模式。
        Switch temporary mobile mode.
        Parameters:
        mode -
        0:关闭临时移动模式 1:开启临时移动模式
        0: disable the temporary mobile mode. 1: enable the temporary mobile mode
        Throws:
        java.lang.Exception - Exception
        Since:
        V3.32.00
      • getPaperUsage

        float getPaperUsage()
                     throws java.lang.Exception
        获取累计打印纸张长度。
        注:调用该接口前需先调用ISys.setInfoCollect(boolean)打开终端信息收集功能。
        Gets the cumulative print paper length.
        Note: Before calling this interface, you need to call ISys.setInfoCollect(boolean) to enable the terminal information collection function.
        Returns:
        累计打印纸张长度,单位是公里
        The cumulative length of the printed paper, in kilometers
        Throws:
        java.lang.Exception - Exception
        Since:
        V3.33.00
      • getBatteryHealthState

        int getBatteryHealthState()
                           throws java.lang.Exception
        获取电池衰减之后的容量占新电池容量的百分比。
        Get the percentage of the capacity after battery decay to the new battery capacity.
        Returns:
        0-100,1表示1%,100表示100%。
        0-100, 1 means 1%, 100 means 100%.
        Throws:
        java.lang.Exception - Exception
        Since:
        V3.33.00
      • getEmmcLifeInfo

        EmmcInfo[] getEmmcLifeInfo()
                            throws java.lang.Exception
        获取emmc使用寿命信息。
        Get emmc life information.
        Returns:
        emmc使用寿命信息。array[0]:Type A(emmc SLC块) ;array[1]:Type B(emmc MLC块)。EmmcInfo
        emmc life information. array[0]:Type A (emmc SLC block); array[1]:Type B (emmc MLC block).EmmcInfo
        Throws:
        java.lang.Exception - Exception
        Since:
        V4.07.00
      • getFrontCameraOpenCount

        long getFrontCameraOpenCount()
                              throws java.lang.Exception
        获取前摄打开次数。
        Gets the number of proactive opens.
        Returns:
        前摄打开次数 。
        The number of proactive opens.
        Throws:
        java.lang.Exception - Exception
        Since:
        V4.08.00
      • getRearCameraOpenCount

        long getRearCameraOpenCount()
                             throws java.lang.Exception
        获取后摄打开次数。
        Gets the number of shots opened.
        Returns:
        后摄打开次数。
        Back shot open times.
        Throws:
        java.lang.Exception - Exception
        Since:
        V4.08.00
      • getAppNetworkStats

        AppNetworkStats getAppNetworkStats(java.lang.String packageName)
        获取应用的网络使用情况。
        Obtain the network usage of the application.
        Parameters:
        packageName -
        应用包名
        Application package name
        Returns:
        AppNetworkStats
        Since:
        V4.10.00
      • cleanAppCache

        void cleanAppCache(java.lang.String packageName,
                           IDeviceInfo.ResultCallback resultCallback)
                    throws java.lang.Exception
        清除应用缓存。
        Clear application cache.
        Parameters:
        packageName -
        应用包名
        Application package name
        {@link - ResultCallck}
        Throws:
        java.lang.Exception - Exception
        Since:
        V4.10.00
      • getProcessUsage

        void getProcessUsage(IDeviceInfo.ProcessUsageListener listener)
                      throws java.lang.Exception
        获取各个进程的系统资源使用情况。
        Gets the system resource usage of each process.
        Parameters:
        {@link - ProcessUsageListener}
        Throws:
        java.lang.Exception - Exception
        Since:
        V4.11.00
      • getEmmcCidInfo

        java.lang.String getEmmcCidInfo()
                                 throws java.lang.Exception
        获取EMMC CID值。
        Obtain the EMMC CID value.
        Returns:
        EMMC CID 。
        EMMC CID .
        Throws:
        java.lang.Exception - Exception
        Since:
        V4.11.00