From 0ecd4a0ec8c4c5585cbd8975d7786c5618814381 Mon Sep 17 00:00:00 2001 From: Junjie <DELL@qq.com> Date: 星期三, 03 十二月 2025 08:28:59 +0800 Subject: [PATCH] # --- MvImport/MvErrorDefine_const.py | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/MvImport/MvErrorDefine_const.py b/MvImport/MvErrorDefine_const.py new file mode 100644 index 0000000..0de69be --- /dev/null +++ b/MvImport/MvErrorDefine_const.py @@ -0,0 +1,73 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +MV_OK = 0x00000000 ## @~chinese 鎴愬姛锛屾棤閿欒 @~english Successed, no error + +## @~chinese 閫氱敤閿欒鐮佸畾涔�:鑼冨洿0x80000000-0x800000FF +MV_E_HANDLE = 0x80000000 ## @~chinese 閿欒鎴栨棤鏁堢殑鍙ユ焺 @~english Error or invalid handle +MV_E_SUPPORT = 0x80000001 ## @~chinese 涓嶆敮鎸佺殑鍔熻兘 @~english Not supported function +MV_E_BUFOVER = 0x80000002 ## @~chinese 缂撳瓨宸叉弧 @~english Buffer overflow +MV_E_CALLORDER = 0x80000003 ## @~chinese 鍑芥暟璋冪敤椤哄簭閿欒 @~english Function calling order error +MV_E_PARAMETER = 0x80000004 ## @~chinese 閿欒鐨勫弬鏁� @~english Incorrect parameter +MV_E_RESOURCE = 0x80000006 ## @~chinese 璧勬簮鐢宠澶辫触 @~english Applying resource failed +MV_E_NODATA = 0x80000007 ## @~chinese 鏃犳暟鎹� @~english No data +MV_E_PRECONDITION = 0x80000008 ## @~chinese 鍓嶇疆鏉′欢鏈夎锛屾垨杩愯鐜宸插彂鐢熷彉鍖� @~english Precondition error, or running environment changed +MV_E_VERSION = 0x80000009 ## @~chinese 鐗堟湰涓嶅尮閰� @~english Version mismatches +MV_E_NOENOUGH_BUF = 0x8000000A ## @~chinese 浼犲叆鐨勫唴瀛樼┖闂翠笉瓒� @~english Insufficient memory +MV_E_ABNORMAL_IMAGE = 0x8000000B ## @~chinese 寮傚父鍥惧儚锛屽彲鑳芥槸涓㈠寘瀵艰嚧鍥惧儚涓嶅畬鏁� @~english Abnormal image, maybe incomplete image because of lost packet +MV_E_LOAD_LIBRARY = 0x8000000C ## @~chinese 鍔ㄦ�佸鍏LL澶辫触 @~english Load library failed +MV_E_NOOUTBUF = 0x8000000D ## @~chinese 娌℃湁鍙緭鍑虹殑缂撳瓨 @~english No Avaliable Buffer +MV_E_ENCRYPT = 0x8000000E ## @~chinese 鍔犲瘑閿欒 @~english Encryption error +MV_E_OPENFILE = 0x8000000F ## @~chinese 鎵撳紑鏂囦欢鍑虹幇閿欒 @~english open file error +MV_E_BUF_IN_USE = 0x80000010 ## @~chinese 缂撳瓨鍦板潃宸蹭娇鐢� @~english Buffer already in use +MV_E_BUF_INVALID = 0x80000011 ## @~chinese 鏃犳晥鐨勭紦瀛樺湴鍧� @~english Buffer address invalid +MV_E_NOALIGN_BUF = 0x80000012 ## @~chinese 缂撳瓨瀵归綈寮傚父 @~english Buffer alignmenterror error +MV_E_NOENOUGH_BUF_NUM = 0x80000013 ## @~chinese 缂撳瓨涓暟涓嶈冻 @~english Insufficient cache count +MV_E_PORT_IN_USE = 0x80000014 ## @~chinese 涓插彛琚崰鐢� @~english Port is in use +MV_E_IMAGE_DECODEC = 0x80000015 ## @~chinese 瑙g爜閿欒(SDK鏍¢獙鍥惧儚寮傚父)@~english Decoding error (SDK verification image exception) +MV_E_UINT32_LIMIT = 0x80000016 ## @~chinese 鍥惧儚澶у皬瓒呰繃unsigned int杩斿洖锛屾帴鍙d笉鏀寔 @~english Image size exceeds unsigned int range - interface unsupported +MV_E_IMAGE_HEIGHT = 0x80000017 ## @~chinese 鍥惧儚楂樺害寮傚父锛堟畫甯т涪寮冿級 @~english image height anomaly (discard incomplete images) +MV_E_NOENOUGH_DDR = 0x80000018 ## @~chinese DDR缂撳瓨涓嶈冻 @~english The DDR cache is Insufficient +MV_E_NOENOUGH_STREAM = 0x80000019 ## @~chinese 娴侀�氶亾涓嶈冻 @~english The stream channel is Insufficient +MV_E_NORESPONSE = 0x8000001A ## @~chinese 璁惧鏃犲搷搴� @~english No response from device +MV_E_UNKNOW = 0x800000FF ## @~chinese 鏈煡鐨勯敊璇� @~english Unknown error + +## @~chinese GenICam绯诲垪閿欒:鑼冨洿0x80000100-0x800001FF +MV_E_GC_GENERIC = 0x80000100 ## @~chinese 閫氱敤閿欒 @~english General error +MV_E_GC_ARGUMENT = 0x80000101 ## @~chinese 鍙傛暟闈炴硶 @~english Illegal parameters +MV_E_GC_RANGE = 0x80000102 ## @~chinese 鍊艰秴鍑鸿寖鍥� @~english The value is out of range +MV_E_GC_PROPERTY = 0x80000103 ## @~chinese 灞炴�� @~english Property +MV_E_GC_RUNTIME = 0x80000104 ## @~chinese 杩愯鐜鏈夐棶棰� @~english Running environment error +MV_E_GC_LOGICAL = 0x80000105 ## @~chinese 閫昏緫閿欒 @~english Logical error +MV_E_GC_ACCESS = 0x80000106 ## @~chinese 鑺傜偣璁块棶鏉′欢鏈夎 @~english Node accessing condition error +MV_E_GC_TIMEOUT = 0x80000107 ## @~chinese 瓒呮椂 @~english Timeout +MV_E_GC_DYNAMICCAST = 0x80000108 ## @~chinese 杞崲寮傚父 @~english Transformation exception +MV_E_GC_UNKNOW = 0x800001FF ## @~chinese GenICam鏈煡閿欒 @~english GenICam unknown error + +## @~chinese GigE_STATUS瀵瑰簲鐨勯敊璇爜:鑼冨洿0x80000200-0x800002FF +MV_E_NOT_IMPLEMENTED = 0x80000200 ## @~chinese 鍛戒护涓嶈璁惧鏀寔 @~english The command is not supported by device +MV_E_INVALID_ADDRESS = 0x80000201 ## @~chinese 璁块棶鐨勭洰鏍囧湴鍧�涓嶅瓨鍦� @~english The target address being accessed does not exist +MV_E_WRITE_PROTECT = 0x80000202 ## @~chinese 鐩爣鍦板潃涓嶅彲鍐� @~english The target address is not writable +MV_E_ACCESS_DENIED = 0x80000203 ## @~chinese 璁惧鏃犺闂潈闄� @~english No permission +MV_E_BUSY = 0x80000204 ## @~chinese 璁惧蹇欙紝鎴栫綉缁滄柇寮� @~english Device is busy, or network disconnected +MV_E_PACKET = 0x80000205 ## @~chinese 缃戠粶鍖呮暟鎹敊璇� @~english Network data packet error +MV_E_NETER = 0x80000206 ## @~chinese 缃戠粶鐩稿叧閿欒 @~english Network error +MV_E_SUPPORT_MODIFY_DEVICE_IP = 0x8000020E # < 鍦ㄥ浐瀹欼P妯″紡涓嬩笉鏀寔淇敼璁惧IP妯″紡 @~english Current Mode Not Support Modify Ip +MV_E_KEY_VERIFICATION = 0x8000020F ## @~chinese 绉橀挜鏍¢獙閿欒 @~english SwitchKey error +MV_E_IP_CONFLICT = 0x80000221 ## @~chinese 璁惧IP鍐茬獊 @~english Device IP conflict + +## @~chinese USB_STATUS瀵瑰簲鐨勯敊璇爜:鑼冨洿0x80000300-0x800003FF +MV_E_USB_READ = 0x80000300 ## @~chinese 璇籾sb鍑洪敊 @~english Reading USB error +MV_E_USB_WRITE = 0x80000301 ## @~chinese 鍐檜sb鍑洪敊 @~english Writing USB error +MV_E_USB_DEVICE = 0x80000302 ## @~chinese 璁惧寮傚父 @~english Device exception +MV_E_USB_GENICAM = 0x80000303 ## @~chinese GenICam鐩稿叧閿欒 @~english GenICam error +MV_E_USB_BANDWIDTH = 0x80000304 ## @~chinese 甯﹀涓嶈冻 @~english Insufficient bandwidth +MV_E_USB_DRIVER = 0x80000305 ## @~chinese 椹卞姩涓嶅尮閰嶆垨鑰呮湭瑁呴┍鍔� @~english Driver mismatch or unmounted drive +MV_E_USB_UNKNOW = 0x800003FF ## @~chinese USB鏈煡鐨勯敊璇� @~english USB unknown error + +## @~chinese 鍗囩骇鏃跺搴旂殑閿欒鐮�:鑼冨洿0x80000400-0x800004FF +MV_E_UPG_FILE_MISMATCH = 0x80000400 ## @~chinese 鍗囩骇鍥轰欢涓嶅尮閰� @~english Firmware mismatches +MV_E_UPG_LANGUSGE_MISMATCH = 0x80000401 ## @~chinese 鍗囩骇鍥轰欢璇█涓嶅尮閰� @~english Firmware language mismatches +MV_E_UPG_CONFLICT = 0x80000402 ## @~chinese 鍗囩骇鍐茬獊锛堣澶囧凡缁忓湪鍗囩骇浜嗗啀娆¤姹傚崌绾у嵆杩斿洖姝ら敊璇級 @~english Upgrading conflicted (repeated upgrading requests during device upgrade) +MV_E_UPG_INNER_ERR = 0x80000403 ## @~chinese 鍗囩骇鏃惰澶囧唴閮ㄥ嚭鐜伴敊璇� @~english Camera internal error during upgrade +MV_E_UPG_UNKNOW = 0x800004FF ## @~chinese 鍗囩骇鏃舵湭鐭ラ敊璇� @~english Unknown error during upgrade -- Gitblit v1.9.1