Public 成员函数 | |
| __init__ (self) | |
| MessengerGet (self, Any ptrComm, COMM_TYP commTyp, int maxInputMsgCapacity, bool usingDataPort) | |
| 建立一个频道,用于发送/接收管理讯息,并指定最大容量。 | |
| MessengerRelease (self) | |
| 释放讯息传输接口资源 | |
| MessengerSendMsg (self, str strCommand, str strContent) | |
| 向打印机发送管理指令和数据/内容。 | |
| MessengerReadNextMsg (self, strNextMsg) | |
| 读取已经从打印机异步接收的下一条消息。 | |
| MessengerSendMsgAndWaitForResponse (self, strCommand, strContent, maxWaitTimeSecs, strResponse) | |
| 将管理命令和数据/内容发送到打印机,并等待 maxWaitTimeSecs 秒的回应。 | |
| MessengerUnreadMsgCount (self) | |
| 获取未读消息的数量。 | |
| RfidMonitorConnection (self, lpAddress) | |
| 使用网络接口 (NET Interface) 连接打印机以启用 RFID 监控功能。 | |
| OdvMonitorConnection (self, lpAddress) | |
| 使用网络接口 (NET Interface) 连接打印机以启用 ODV 监控功能。 | |
| PrinterMonitorConnection (self, lpAddress, InfoTyp) | |
| 使用网络接口 (NET Interface) 连接打印机以启用打印机监控功能。 | |
| GetPrinterInfo (self, pPrtInfo, InfoTyp) | |
| 获取打印机功能的相关信息。 | |
| GetRfidReportListening (self) | |
| 獲取 RFID 報告監聽的標誌。 | |
| SetRfidReportListening (self, value) | |
| 设置 RFID 报告监听的标志。 | |
| GetOdvReportListening (self) | |
| 獲取 ODV 報告監聽的標誌。 | |
| SetOdvReportListening (self, value) | |
| 设置 ODV 报告监听的标志。 | |
| RfidMonitorDispose (self) | |
| 释放 RFID 监控资源。 | |
| OdvMonitorDispose (self) | |
| 释放 ODV 监控资源。 | |
| PrinterMonitorDispose (self, InfoTyp) | |
| 释放打印机监控资源。 | |
| SetRfidReportCallback (self, callback) | |
| 设置一个回调函数来获取 RFID 报告。 | |
| SetOdvReportCallback (self, callback) | |
| 设置一个回调函数来获取 ODV报告。 | |
| SetEngineStatusListening (self, value) | |
| 设置打印机报告监听引擎状态的标志。 | |
| SetDisplayStatusListening (self, value) | |
| 设置打印机报告监听屏幕状态的标志。 | |
| SetAlertStatusListening (self, value) | |
| 设置打印机报告监听警报状态的标志。 | |
| GetEngineStatusListening (self) | |
| 獲取引擎狀態監聽的標誌。 | |
| GetDisplayStatusListening (self) | |
| 獲取顯示狀態監聽的標誌。 | |
| GetAlertStatusListening (self) | |
| 獲取警報狀態監聽的標誌。 | |
| SetEngineStatusCallback (self, callback) | |
| 设置打印机报告监听警报状态的标志。 | |
| SetDisplayStatusCallback (self, callback) | |
| 设置打印机报告监听屏幕状态的标志。 | |
| SetAlertStatusCallback (self, callback) | |
| 设置打印机报告监听警报状态的标志。 | |
| GetPrinterAllValues (self, ptrComm, COMM_TYP commTyp, bool usingDataPort) | |
| 获取打印机的所有设置。 | |
| GetPrinterValue (self, ptrComm, COMM_TYP commTyp, bool usingDataPort, key) | |
| 获取打印机的单一设置。 | |
| GetPrinterValues (self, ptrComm, COMM_TYP commTyp, bool usingDataPort, keys) | |
| 获取打印机的多个设置。 | |
| SetPrinterValue (self, ptrComm, COMM_TYP commTyp, bool usingDataPort, key, value) | |
| 设置打印机的单一设置。 | |
| SetPrinterValues (self, ptrComm, COMM_TYP commTyp, bool usingDataPort, keysToSet) | |
| 设置打印机的多个设置。 | |
| GetPrinterProperties (self, ptrComm, COMM_TYP commTyp, bool usingDataPort, key) | |
| 获取打印机的单一属性。 | |
| GetPrinterPropertiesEx (self, ptrComm, COMM_TYP commTyp, bool usingDataPort, keys) | |
| 获取打印机的多个属性。 | |
| GetPrinterAllProperties (self, ptrComm, COMM_TYP commTyp, bool usingDataPort) | |
| 获取打印机的所有属性。 | |
| GetPrinterConfig (self, ptrComm, COMM_TYP commTyp, bool usingDataPort, CfgNumber) | |
| 获取打印机的单一组态设定。 | |
| SetPrinterConfig (self, ptrComm, COMM_TYP commTyp, bool usingDataPort, Config) | |
| 设置打印机的单一组态设定。 | |
| GetPrinterAllConfig (self, ptrComm, COMM_TYP commTyp, bool usingDataPort) | |
| 获取打印机的所有组态设定。 | |
Public 属性 | |
| AllMsg | |
| JsonSDK.JsonSDK.__init__ | ( | self | ) |
| JsonSDK.JsonSDK.GetAlertStatusListening | ( | self | ) |
獲取警報狀態監聽的標誌。
| JsonSDK.JsonSDK.GetDisplayStatusListening | ( | self | ) |
獲取顯示狀態監聽的標誌。
| JsonSDK.JsonSDK.GetEngineStatusListening | ( | self | ) |
獲取引擎狀態監聽的標誌。
| JsonSDK.JsonSDK.GetOdvReportListening | ( | self | ) |
獲取 ODV 報告監聽的標誌。
| JsonSDK.JsonSDK.GetPrinterAllConfig | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort ) |
获取打印机的所有组态设定。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| JsonSDK.JsonSDK.GetPrinterAllProperties | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort ) |
获取打印机的所有属性。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| JsonSDK.JsonSDK.GetPrinterAllValues | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort ) |
获取打印机的所有设置。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| JsonSDK.JsonSDK.GetPrinterConfig | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| CfgNumber ) |
获取打印机的单一组态设定。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| [in] | CfgNumber | : 组态设定索引值, 范围是 0~8 |
| JsonSDK.JsonSDK.GetPrinterInfo | ( | self, | |
| pPrtInfo, | |||
| InfoTyp ) |
获取打印机功能的相关信息。
| [out] | pPrtInfo | : 用来存储打印机信息的结构体 |
| [in] | InfoTyp | : 设置 RFID 或 ODV 信息的类型 |
| JsonSDK.JsonSDK.GetPrinterProperties | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| key ) |
获取打印机的单一属性。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| [in] | key | 打印机设置的一个键值 |
| JsonSDK.JsonSDK.GetPrinterPropertiesEx | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| keys ) |
获取打印机的多个属性。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| [in] | keys | 打印机设置的多个键值 |
| JsonSDK.JsonSDK.GetPrinterValue | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| key ) |
获取打印机的单一设置。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| [in] | key | 打印机设置的一个键值 |
| JsonSDK.JsonSDK.GetPrinterValues | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| keys ) |
获取打印机的多个设置。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| [in] | keys | 打印机设置的多个键值 |
| JsonSDK.JsonSDK.GetRfidReportListening | ( | self | ) |
獲取 RFID 報告監聽的標誌。
| JsonSDK.JsonSDK.MessengerGet | ( | self, | |
| Any | ptrComm, | ||
| COMM_TYP | commTyp, | ||
| int | maxInputMsgCapacity, | ||
| bool | usingDataPort ) |
建立一个频道,用于发送/接收管理讯息,并指定最大容量。
| [out] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | maxInputMsgCapacity | : 最大讯息输入容量, 默认 MAX_INPUT_MSG_CAPACITY(20) |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| JsonSDK.JsonSDK.MessengerReadNextMsg | ( | self, | |
| strNextMsg ) |
读取已经从打印机异步接收的下一条消息。
| [out] | strNextMsg | : 用来存储下一个返回消息的缓冲区 |
| JsonSDK.JsonSDK.MessengerRelease | ( | self | ) |
释放讯息传输接口资源
| JsonSDK.JsonSDK.MessengerSendMsg | ( | self, | |
| str | strCommand, | ||
| str | strContent ) |
向打印机发送管理指令和数据/内容。
| [in] | strCommand | : 管理指令字符串 |
| [in] | strContent | : 管理数据/内容字符串 |
| JsonSDK.JsonSDK.MessengerSendMsgAndWaitForResponse | ( | self, | |
| strCommand, | |||
| strContent, | |||
| maxWaitTimeSecs, | |||
| strResponse ) |
将管理命令和数据/内容发送到打印机,并等待 maxWaitTimeSecs 秒的回应。
| [in] | strCommand | : 一个管理命令字符串 |
| [in] | strContent | : 一个管理数据/内容字符串 |
| [in] | maxWaitTimeSecs | : 最大等待时间 |
| [out] | strResponse | : 用来存储 JSON 字符串回应的缓冲区 |
| JsonSDK.JsonSDK.MessengerUnreadMsgCount | ( | self | ) |
获取未读消息的数量。
| JsonSDK.JsonSDK.OdvMonitorConnection | ( | self, | |
| lpAddress ) |
使用网络接口 (NET Interface) 连接打印机以启用 ODV 监控功能。
| [in] | lpAddress | : IP 地址 |
| JsonSDK.JsonSDK.OdvMonitorDispose | ( | self | ) |
释放 ODV 监控资源。
| JsonSDK.JsonSDK.PrinterMonitorConnection | ( | self, | |
| lpAddress, | |||
| InfoTyp ) |
使用网络接口 (NET Interface) 连接打印机以启用打印机监控功能。
| [in] | lpAddress | : IP 地址 |
| JsonSDK.JsonSDK.PrinterMonitorDispose | ( | self, | |
| InfoTyp ) |
释放打印机监控资源。
| JsonSDK.JsonSDK.RfidMonitorConnection | ( | self, | |
| lpAddress ) |
使用网络接口 (NET Interface) 连接打印机以启用 RFID 监控功能。
| [in] | lpAddress | : IP 地址 |
| JsonSDK.JsonSDK.RfidMonitorDispose | ( | self | ) |
释放 RFID 监控资源。
| JsonSDK.JsonSDK.SetAlertStatusCallback | ( | self, | |
| callback ) |
设置打印机报告监听警报状态的标志。
| [in] | callback | :回调函数 |
| JsonSDK.JsonSDK.SetAlertStatusListening | ( | self, | |
| value ) |
设置打印机报告监听警报状态的标志。
| [in] | value | : 用来设置打印机报告监听的标志 |
| JsonSDK.JsonSDK.SetDisplayStatusCallback | ( | self, | |
| callback ) |
设置打印机报告监听屏幕状态的标志。
| [in] | callback | :回调函数 |
| JsonSDK.JsonSDK.SetDisplayStatusListening | ( | self, | |
| value ) |
设置打印机报告监听屏幕状态的标志。
| [in] | value | : 用来设置打印机报告监听的标志 |
| JsonSDK.JsonSDK.SetEngineStatusCallback | ( | self, | |
| callback ) |
设置打印机报告监听警报状态的标志。
| [in] | callback | :回调函数 |
| JsonSDK.JsonSDK.SetEngineStatusListening | ( | self, | |
| value ) |
设置打印机报告监听引擎状态的标志。
| [in] | value | : 用来设置打印机报告监听的标志 |
| JsonSDK.JsonSDK.SetOdvReportCallback | ( | self, | |
| callback ) |
设置一个回调函数来获取 ODV报告。
| [in] | callback | :回调函数 |
| JsonSDK.JsonSDK.SetOdvReportListening | ( | self, | |
| value ) |
设置 ODV 报告监听的标志。
| [in] | value | : 用来设置 ODV 报告监听的标志 |
| JsonSDK.JsonSDK.SetPrinterConfig | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| Config ) |
设置打印机的单一组态设定。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| [in] | Config | : 组态设定 |
| JsonSDK.JsonSDK.SetPrinterValue | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| key, | |||
| value ) |
设置打印机的单一设置。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| [in] | key | 打印机设置的一个键值 |
| [in] | value | 一個打印机设置值 |
| JsonSDK.JsonSDK.SetPrinterValues | ( | self, | |
| ptrComm, | |||
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| keysToSet ) |
设置打印机的多个设置。
| [in] | ptrComm | : 界面指针 |
| [in] | commTyp | : 接口种类 |
| [in] | usingDataPort | : 使用数据端口传输, 默认是 false |
| [in] | keysToSet | 打印机设置的多个键值 |
| JsonSDK.JsonSDK.SetRfidReportCallback | ( | self, | |
| callback ) |
设置一个回调函数来获取 RFID 报告。
| [in] | callback | :回调函数 |
| JsonSDK.JsonSDK.SetRfidReportListening | ( | self, | |
| value ) |
设置 RFID 报告监听的标志。
| [in] | value | : 用来设置 RFID 报告监听的标志 |
| JsonSDK.JsonSDK.AllMsg |