公開方法(Public Methods) | |
__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) | |
獲取印表機的所有組態設定。 | |
公開屬性 | |
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 |