com.pax.dal
Interface IDeviceInfo
-
public interface IDeviceInfo
- Since:
- V2.00.01
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classIDeviceInfo.ESupported模块支持定义module supportstatic interfaceIDeviceInfo.ProcessUsageListenerstatic interfaceIDeviceInfo.ResultCallback
-
Field Summary
Fields Modifier and Type Field and Description static intMODULE_BT蓝牙模块Bluetooth modulestatic intMODULE_CASH_BOX钱箱模块cash box modulestatic intMODULE_CUSTOMER_DISPLAY客显模块customer displaystatic intMODULE_ETHERNET以太网模块Ethernet modulestatic intMODULE_FINGERPRINT_READER指纹识别模块fingerprint reader modulestatic intMODULE_FRONT_PICC正面非接模块(非接模块分为正面非接和背面非接)Front PICC(The PICC module is divided into front PICC and back PICC)static intMODULE_G_SENSOR重力感应模块GSensor modulestatic intMODULE_HDMIHDMI模块HDMI modulestatic intMODULE_ICCICC模块icc modulestatic intMODULE_ID_CARD_READER身份证读卡器模块ID card reader modulestatic intMODULE_KEYBOARD物理键盘模块keyboard modulestatic intMODULE_MAG磁条卡模块mag modulestatic intMODULE_MODEMModem模块Modem modulestatic intMODULE_PEDPED模块ped modulestatic intMODULE_PICCPICC模块picc modulestatic intMODULE_PRINTER打印机模块printer modulestatic intMODULE_SCANNER_HW硬扫码ScannerHwstatic intMODULE_SD_CARD_SLOTSD卡槽SD card slotstatic intMODULE_SIM_CARD_SLOTSIM卡槽SIM card slotstatic intMODULE_SM国密模块SM modulestatic intMODULE_WIFIWi-Fi模块。Wi-Fi module.static intMODULE_WIFI5GWi-Fi5GWi-Fi5G
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidcleanAppCache(java.lang.String packageName, IDeviceInfo.ResultCallback resultCallback)清除应用缓存。Clear application cache.AppNetworkStatsgetAppNetworkStats(java.lang.String packageName)获取应用的网络使用情况。Obtain the network usage of the application.intgetBatteryCycleCount()获取电池的循环次数。Get the battery cycle count.intgetBatteryHealthState()获取电池衰减之后的容量占新电池容量的百分比。Get the percentage of the capacity after battery decay to the new battery capacity.java.util.List<BatterySipper>getBatteryUsages()获取系统消耗电池数据情况Obtain the data situation of battery consumed by the system.bytegetBMSMode()设置电池模式。注意:设备重启后生效。Set battery mode.DeviceInfogetDeviceInfo()获取POS设备信息。Get POS device information.java.lang.StringgetEmmcCidInfo()获取EMMC CID值。Obtain the EMMC CID value.EmmcInfo[]getEmmcLifeInfo()获取emmc使用寿命信息。Get emmc life information.longgetFailCount(int module)获取设备被使用的失败总次数。收集磁条卡的刷卡失败次数和 接触式芯片卡与非接卡的Apdu exchange失败次数Get failed count for the device be used.longgetFrontCameraOpenCount()获取前摄打开次数。Gets the number of proactive opens.java.util.Map<java.lang.Integer,IDeviceInfo.ESupported>getModuleSupported()获取所有模块支持情况get every module support or notIDeviceInfo.ESupportedgetModuleSupported(int module)返回指定模块的支持情况get the module support or notfloatgetPaperUsage()获取累计打印纸张长度。
注:调用该接口前需先调用ISys.setInfoCollect(boolean)打开终端信息收集功能。Gets the cumulative print paper length.
Note: Before calling this interface, you need to callISys.setInfoCollect(boolean)to enable the terminal information collection function.intgetPrinterStatus()获取打印状态get printer statusvoidgetProcessUsage(IDeviceInfo.ProcessUsageListener listener)获取各个进程的系统资源使用情况。Gets the system resource usage of each process.longgetRearCameraOpenCount()获取后摄打开次数。Gets the number of shots opened.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.longgetTrafficTotal(int netType, long start, long end)获取系统指定网络类型的总使用流量 。Gets the total usage traffic of the system specified network type.longgetUsageCount(int module)获取设备被使用的总次数。收集磁条卡的刷卡成功次数和 接触式芯片卡与非接卡的Apdu exchange成功次数Get total count for the device be used.booleanisModuleEnable(int module)模块是否被启用。Whether the module is enabled.voidresetBMSData()清除电池数据。注意:设备重启后生效。Clear battery data.voidsetBMSMode(byte mode)设置电池模式。注意:设备重启后生效。Set battery mode.voidsetTemporaryBMSMode(int mode)切换临时移动模式。Switch temporary mobile mode.
-
-
-
Field Detail
-
MODULE_MAG
static final int MODULE_MAG
磁条卡模块mag module- See Also:
- Constant Field Values
-
MODULE_ICC
static final int MODULE_ICC
ICC模块icc module- See Also:
- Constant Field Values
-
MODULE_PICC
static final int MODULE_PICC
PICC模块picc module- See Also:
- Constant Field Values
-
MODULE_PED
static final int MODULE_PED
PED模块ped module- See Also:
- Constant Field Values
-
MODULE_KEYBOARD
static final int MODULE_KEYBOARD
物理键盘模块keyboard module- See Also:
- Constant Field Values
-
MODULE_PRINTER
static final int MODULE_PRINTER
打印机模块printer module- See Also:
- Constant Field Values
-
MODULE_BT
static final int MODULE_BT
蓝牙模块Bluetooth module- See Also:
- Constant Field Values
-
MODULE_CASH_BOX
static final int MODULE_CASH_BOX
钱箱模块cash box module- See Also:
- Constant Field Values
-
MODULE_CUSTOMER_DISPLAY
static final int MODULE_CUSTOMER_DISPLAY
客显模块customer display- See Also:
- Constant Field Values
-
MODULE_ETHERNET
static final int MODULE_ETHERNET
以太网模块Ethernet module- See Also:
- Constant Field Values
-
MODULE_FINGERPRINT_READER
static final int MODULE_FINGERPRINT_READER
指纹识别模块fingerprint reader module- See Also:
- Constant Field Values
-
MODULE_G_SENSOR
static final int MODULE_G_SENSOR
重力感应模块GSensor module- See Also:
- Constant Field Values
-
MODULE_HDMI
static final int MODULE_HDMI
HDMI模块HDMI module- See Also:
- Constant Field Values
-
MODULE_ID_CARD_READER
static final int MODULE_ID_CARD_READER
身份证读卡器模块ID card reader module- See Also:
- Constant Field Values
-
MODULE_SM
static final int MODULE_SM
国密模块SM module- See Also:
- Constant Field Values
-
MODULE_MODEM
static final int MODULE_MODEM
Modem模块Modem module- See Also:
- Constant Field Values
-
MODULE_SCANNER_HW
static final int MODULE_SCANNER_HW
硬扫码ScannerHw- See Also:
- Constant Field Values
-
MODULE_WIFI
static final int MODULE_WIFI
Wi-Fi模块。Wi-Fi module.- See Also:
- Constant Field Values
-
MODULE_WIFI5G
static final int MODULE_WIFI5G
Wi-Fi5GWi-Fi5G- See Also:
- Constant Field Values
-
MODULE_FRONT_PICC
static final int MODULE_FRONT_PICC
正面非接模块(非接模块分为正面非接和背面非接)Front PICC(The PICC module is divided into front PICC and back PICC)- See Also:
- Constant Field Values
-
MODULE_SD_CARD_SLOT
static final int MODULE_SD_CARD_SLOT
SD卡槽SD card slot- See Also:
- Constant Field Values
-
MODULE_SIM_CARD_SLOT
static final int MODULE_SIM_CARD_SLOT
SIM卡槽SIM card slot- See Also:
- Constant Field Values
-
-
Method Detail
-
getBatteryUsages
java.util.List<BatterySipper> getBatteryUsages()
获取系统消耗电池数据情况Obtain the data situation of battery consumed by the system.- Returns:
- 消耗电池数据情况
BatterySipperBattery 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-- Returns:
- >0 返回失败次数
- -1 表示系统不支持
- -2 模块超出定义范围
- >0 usage count
- -1 device not support
- -2 not support module
- Since:
- V2.00.01
-
getModuleSupported
java.util.Map<java.lang.Integer,IDeviceInfo.ESupported> getModuleSupported()
获取所有模块支持情况get every module support or not- Returns:
- Since:
- V2.00.01
-
getModuleSupported
IDeviceInfo.ESupported getModuleSupported(int module)
返回指定模块的支持情况get the module support or not- Parameters:
module-- Returns:
- 是否支持。如果module不在定义范围内,返回INVALIDsupport 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-- 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 callISys.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.
-
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
-
-