Error code: Difference between revisions

From wizarPOS
Line 9: Line 9:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Code !! Description
! Code(Hex)!!Code(Decimal) !! Description
|-
|-
| 1(0x01) || Operation not permitted
| 0x01 ||1 || Operation not permitted
|-         
| 0x02 ||2  || No such file or directory
|-         
| 0x03 ||3  || No such process
|-         
| 0x04 ||4  || Interrupted system call
|-         
| 0x05 || 5 ||I/O error
|-         
| 0x06 ||6  || No such device or address                                 
|-         
| 0x07 ||7  || Arg list too long
|-         
| 0x08 ||8  || Exec format error
|-         
| 0x09 ||9  || Bad file number
|-         
| 0x0A ||10 || No child processes
|-         
| 0x0B ||11 || Try again
|-
|-
| 2(0x02) || No such file or directory
| 0x0C ||12 || Out of memory
|-
|-
| 3(0x03) || No such process
| 0x0D|| 13 ||Permission denied
|-
|-
| 4(0x04) || Interrupted system call
| 0x0E ||14 || Bad address
|-
|-
| 5(0x05)|| I/O error
| 0x0F ||15 || Block device required
|-
|-
| 6(0x06) || No such device or address                                 
| 0x10 ||16 || Device or resource busy
|-
|-
| 7(0x07) || Arg list too long
| 0x11 ||17 || File exists
|-
|-
| 8(0x08) || Exec format error
| 0x12 ||18 || Cross-device link
|-
|-
| 9(0x09) || Bad file number
| 0x13 ||19 || No such device
|-
|-
| 10(0x0A) || No child processes
| 0x14 ||20 || Not a directory
|-
|-
| 11(0x0B) || Try again
| 0x15 ||21 || Is a directory
|-
|-
| 12(0x0C) || Out of memory
| 0x16 ||22 || Invalid argument
|-
|-
| 13(0x0D)|| Permission denied
| 0x17 ||23 || File table overflow
|-
|-
| 14(0x0E) || Bad address
| 0x18 ||24 || Too many open files
|-
|-
| 15(0x0F) || Block device required
| 0x19 ||25 || Not a typewriter
|-
|-
| 16(0x10) || Device or resource busy
| 0x1A ||26 || Text file busy
|-
|-
| 17(0x11) || File exists
| 0x1B ||27 ||  File too large
|-
|-
| 18(0x12) || Cross-device link
| 0x1C ||28 || No space left on device
|-
|-
| 19(0x13) || No such device
| 0x1D ||29 || Illegal seek
|-
|-
| 20(0x14) || Not a directory
| 0x1E ||30 || Read-only file system
|-
|-
| 21(0x15) || Is a directory
| 0x1F ||31 || Too many links
|-
|-
| 22(0x16) || Invalid argument
| 0x20 ||32 || Broken pipe
|-
|-
| 23(0x17) || File table overflow
| 0x21 ||33 || Math argument out of domain of func
|-
|-
| 24(0x18) || Too many open files
| 0x22 ||34 || Math result not representable
|-
|-
| 25(0x19) || Not a typewriter
| 0x23 ||35 || Resource deadlock would occur
|-
|-
| 26(0x1A) || Text file busy
| 0x24 ||36 || File name too long
|-
|-
| 27(0x1B) || File too large
| 0x25 ||37 || No record locks available
|-
|-
| 28(0x1C) || No space left on device
| 0x26 ||38 || Function not implemented
|-
|-
| 29(0x1D) || Illegal seek
| 0x27 ||39 || Directory not empty
|-
|-
| 30(0x1E) || Read-only file system
| 0x28 ||40 || Too many symbolic links encountered
|-
|-
| 31(0x1F) || Too many links
| 0x29 ||41 || Operation would block
|-
|-
| 32(0x20) || Broken pipe
| 0x2A ||42 || No message of desired type
|-
|-
| 33(0x21) || Math argument out of domain of func
| 0x2B ||43 || Identifier removed
|-
|-
| 34(0x22) || Math result not representable
| 0x2C ||44 || Channel number out of range
|-
|-
| 35(0x23) || Resource deadlock would occur
| 0x2D ||45 || Level 2 not synchronized
|-
|-
| 36(0x24) || File name too long
| 0x2E ||46 || Level 3 halted
|-
|-
| 37(0x25) || No record locks available
| 0x2F ||47 || Level 3 reset
|-
|-
| 38(0x26) || Function not implemented
| 0x30 ||48 || Link number out of range
|-
|-
| 39(0x27) || Directory not empty
| 0x31 ||49 || Protocol driver not attached
|-
|-
| 40(0x28) || Too many symbolic links encountered
| 0x32 ||50 || No CSI structure available
|-
|-
| 41(0x29) || Operation would block
| 0x33 ||51 || Level 2 halted
|-
|-
| 42(0x2A) || No message of desired type
| 0x34 ||52 || Invalid exchange
|-
|-
| 43(0x2B) || Identifier removed
| 0x35 ||53 || Invalid request descriptor
|-
|-
| 44(0x2C) || Channel number out of range
| 0x36 ||54 || Exchange full
|-
|-
| 45(0x2D) || Level 2 not synchronized
| 0x37 ||55 || No anode
|-
|-
| 46(0x2E) || Level 3 halted
| 0x38 ||56 || Invalid request code
|-
|-
| 47(0x2F) || Level 3 reset
| 0x39 ||57 || Invalid slot
|-
|-
| 48(0x30) || Link number out of range
| 0x3A ||58 || EDEADLK
|-
|-
| 49(0x31) || Protocol driver not attached
| 0x3B ||59 || Bad font file format
|-
|-
| 50(0x32) || No CSI structure available
| 0x3C ||60 || Device not a stream
|-
|-
| 51(0x33) || Level 2 halted
| 0x3D ||61 || No data available
|-
|-
| 52(0x34) || Invalid exchange
| 0x3E ||62 || Timer expired
|-
|-
| 53(0x35) || Invalid request descriptor
| 0x3F ||63 || Out of streams resources
|-
|-
| 54(0x36) || Exchange full
| 0x40 ||64 || Machine is not on the network
|-
|-
| 55(0x37) || No anode
| 0x41 ||65 || Package not installed
|-
|-
| 56(0x38) || Invalid request code
| 0x42 ||66 || Object is remote
|-
|-
| 57(0x39) || Invalid slot
| 0x43 ||67 || Link has been severed
|-
|-
| 58(0x3A) || EDEADLK
| 0x44 ||68 || Advertise error
|-
|-
| 59(0x3B) || Bad font file format
| 0x45 ||69 || Srmount error
|-
|-
| 60(0x3C) || Device not a stream
| 0x46 ||70 || Communication error on send
|-
|-
| 61(0x3D) || No data available
| 0x47 ||71 || Protocol error
|-
|-
| 62(0x3E) || Timer expired
| 0x48 ||72 || Multihop attempted
|-
|-
| 63(0x3F) || Out of streams resources
| 0x49 ||73 || RFS specific error
|-
|-
| 64(0x40) || Machine is not on the network
| 0x4A ||74 || Not a data message
|-
|-
| 65(0x41) || Package not installed
| 0x4B ||75 || Value too large for defined data type
|-
|-
| 66(0x42) || Object is remote
| 0x4C ||76 || Name not unique on network
|-
|-
| 67(0x43) || Link has been severed
| 0x4D ||77 || File descriptor in bad state
|-
|-
| 68(0x44) || Advertise error
| 0x4E ||78 || Remote address changed
|-
|-
| 69(0x45) || Srmount error
| 0x4F ||79 || Can not access a needed shared library
|-
|-
| 70(0x46) || Communication error on send
| 0x50 ||80 || Accessing a corrupted shared library
|-
|-
| 71(0x47) || Protocol error
| 0x51 ||81 || .lib section in a.out corrupted
|-
|-
| 72(0x48) || Multihop attempted
| 0x52 ||82 || Attempting to link in too many shared libraries
|-
|-
| 73(0x49) || RFS specific error
| 0x53 ||83 || Cannot exec a shared library directly
|-
|-
| 74(0x4A) || Not a data message
| 0x54 ||84 || Illegal byte sequence
|-
|-
| 75(0x4B) || Value too large for defined data type
| 0x55 ||85 || Interrupted system call should be restarted
|-
|-
| 76(0x4C) || Name not unique on network
| 0x56 ||86 || Streams pipe error
|-
|-
| 77(0x4D) || File descriptor in bad state
| 0x57 ||87 || Too many users
|-
|-
| 78(0x4E) || Remote address changed
| 0x58 ||88 || Socket operation on non-socket
|-
|-
| 79(0x4F) || Can not access a needed shared library
| 0x59 ||89 || Destination address required
|-
|-
| 80(0x50) || Accessing a corrupted shared library
| 0x5A ||90 || Message too long
|-
|-
| 81(0x51) || .lib section in a.out corrupted
| 0x5B ||91 || Protocol wrong type for socket
|-
|-
| 82(0x52) || Attempting to link in too many shared libraries
| 0x5C ||92 || Protocol not available
|-
|-
| 83(0x53) || Cannot exec a shared library directly
| 0x5D ||93 || Protocol not supported
|-
|-
| 84(0x54) || Illegal byte sequence
| 0x5E ||94 || Socket type not supported
|-
|-
| 85(0x55) || Interrupted system call should be restarted
| 0x5F ||95 || Operation not supported on transport endpoint
|-
|-
| 86(0x56) || Streams pipe error
| 0x60 ||96 || Protocol family not supported
|-
|-
| 87(0x57) || Too many users
| 0x61 ||97 || Address family not supported by protocol
|-
|-
| 88(0x58) || Socket operation on non-socket
| 0x62 ||98 || Address already in use
|-
|-
| 89(0x59) || Destination address required
| 0x63 ||99 || Cannot assign requested address
|-
|-
| 90(0x5A) || Message too long
| 0x64 ||100|| Network is down
|-
|-
| 91(0x5B) || Protocol wrong type for socket
| 0x65 ||101|| Network is unreachable
|-
|-
| 92(0x5C) || Protocol not available
| 0x66 ||102|| Network dropped connection because of reset
|-
|-
| 93(0x5D) || Protocol not supported
| 0x67 ||103|| Software caused connection abort
|-
|-
| 94(0x5E) || Socket type not supported
| 0x68 ||104|| Connection reset by peer
|-
|-
| 95(0x5F) || Operation not supported on transport endpoint
| 0x69 ||105|| No buffer space available
|-
|-
| 96(0x60) || Protocol family not supported
| 0x6A ||106|| Transport endpoint is already connected
|-
|-
| 97(0x61) || Address family not supported by protocol
| 0x6B ||107|| Transport endpoint is not connected
|-
|-
| 98(0x62) || Address already in use
| 0x6C ||108|| Cannot send after transport endpoint shutdown
|-
|-
| 99(0x63) || Cannot assign requested address
| 0x6D ||109|| Too many references: cannot splice
|-
|-
| 100(0x64) || Network is down
| 0x6E ||110|| Connection timed out
|-
|-
| 101(0x65) || Network is unreachable
| 0x6F ||111|| Connection refused
|-
|-
| 102(0x66) || Network dropped connection because of reset
| 0x70 ||112|| Host is down
|-
|-
| 103(0x67) || Software caused connection abort
| 0x71 ||113|| No route to host
|-
|-
| 104(0x68) || Connection reset by peer
| 0x72 ||114|| Operation already in progress
|-
|-
| 105(0x69) || No buffer space available
| 0x73 ||115|| Operation now in progress
|-
|-
| 106(0x6A) || Transport endpoint is already connected
| 0x74 ||116|| Stale NFS file handle
|-
|-
| 107(0x6B) || Transport endpoint is not connected
| 0x75 ||117|| Structure needs cleaning
|-
|-
| 108(0x6C) || Cannot send after transport endpoint shutdown
| 0x76 ||118|| Not a XENIX named type file
|-
|-
| 109(0x6D) || Too many references: cannot splice
| 0x77 ||119|| No XENIX semaphores available
|-
|-
| 110(0x6E) || Connection timed out
| 0x78 ||120|| Is a named type file
|-
|-
| 111(0x6F) || Connection refused
| 0x79 ||121|| Remote I/O error
|-
|-
| 112(0x70) || Host is down
| 0x7A ||122|| Quota exceeded
|-
|-
| 113(0x71) || No route to host
| 0x7B ||123|| No medium found
|-
|-
| 114(0x72) || Operation already in progress
| 0x7C ||124|| Wrong medium type
|-
| 115(0x73) || Operation now in progress
|-
| 116(0x74) || Stale NFS file handle
|-
| 117(0x75) || Structure needs cleaning
|-
| 118(0x76) || Not a XENIX named type file
|-
| 119(0x77) || No XENIX semaphores available
|-
| 120(0x78) || Is a named type file
|-
| 121(0x79) || Remote I/O error
|-
| 122(0x7A) || Quota exceeded
|-
| 123(0x7B) || No medium found
|-
| 124(0x7C) || Wrong medium type
|}
|}



Revision as of 09:32, 29 December 2018

Error code in C interface

 Convert the unsigned result to three bytes as Byte1Byte2Byte3,Byte1 signifies the hardware code,Byte2 signifies the hardware error,Byte3 signifies the software error.
 If Byte2 != 0, it is a hardware error.
 If Byte2 ==0 and Byte3 != 0, it is a software error.
 For example, if one method of C interface return 196609, firstly changed it to hex value, it's 30001, 3 is byte1, 00 is byte2, 01 is byte3, 
 byte2 is 0 and byte3 is not 0, so it's a software error, 
 byte3 is 0x01, so find the error in the Software Error table, 1 means "Operation not permitted".

Software Error

Code(Hex) Code(Decimal) Description
0x01 1 Operation not permitted
0x02 2 No such file or directory
0x03 3 No such process
0x04 4 Interrupted system call
0x05 5 I/O error
0x06 6 No such device or address
0x07 7 Arg list too long
0x08 8 Exec format error
0x09 9 Bad file number
0x0A 10 No child processes
0x0B 11 Try again
0x0C 12 Out of memory
0x0D 13 Permission denied
0x0E 14 Bad address
0x0F 15 Block device required
0x10 16 Device or resource busy
0x11 17 File exists
0x12 18 Cross-device link
0x13 19 No such device
0x14 20 Not a directory
0x15 21 Is a directory
0x16 22 Invalid argument
0x17 23 File table overflow
0x18 24 Too many open files
0x19 25 Not a typewriter
0x1A 26 Text file busy
0x1B 27 File too large
0x1C 28 No space left on device
0x1D 29 Illegal seek
0x1E 30 Read-only file system
0x1F 31 Too many links
0x20 32 Broken pipe
0x21 33 Math argument out of domain of func
0x22 34 Math result not representable
0x23 35 Resource deadlock would occur
0x24 36 File name too long
0x25 37 No record locks available
0x26 38 Function not implemented
0x27 39 Directory not empty
0x28 40 Too many symbolic links encountered
0x29 41 Operation would block
0x2A 42 No message of desired type
0x2B 43 Identifier removed
0x2C 44 Channel number out of range
0x2D 45 Level 2 not synchronized
0x2E 46 Level 3 halted
0x2F 47 Level 3 reset
0x30 48 Link number out of range
0x31 49 Protocol driver not attached
0x32 50 No CSI structure available
0x33 51 Level 2 halted
0x34 52 Invalid exchange
0x35 53 Invalid request descriptor
0x36 54 Exchange full
0x37 55 No anode
0x38 56 Invalid request code
0x39 57 Invalid slot
0x3A 58 EDEADLK
0x3B 59 Bad font file format
0x3C 60 Device not a stream
0x3D 61 No data available
0x3E 62 Timer expired
0x3F 63 Out of streams resources
0x40 64 Machine is not on the network
0x41 65 Package not installed
0x42 66 Object is remote
0x43 67 Link has been severed
0x44 68 Advertise error
0x45 69 Srmount error
0x46 70 Communication error on send
0x47 71 Protocol error
0x48 72 Multihop attempted
0x49 73 RFS specific error
0x4A 74 Not a data message
0x4B 75 Value too large for defined data type
0x4C 76 Name not unique on network
0x4D 77 File descriptor in bad state
0x4E 78 Remote address changed
0x4F 79 Can not access a needed shared library
0x50 80 Accessing a corrupted shared library
0x51 81 .lib section in a.out corrupted
0x52 82 Attempting to link in too many shared libraries
0x53 83 Cannot exec a shared library directly
0x54 84 Illegal byte sequence
0x55 85 Interrupted system call should be restarted
0x56 86 Streams pipe error
0x57 87 Too many users
0x58 88 Socket operation on non-socket
0x59 89 Destination address required
0x5A 90 Message too long
0x5B 91 Protocol wrong type for socket
0x5C 92 Protocol not available
0x5D 93 Protocol not supported
0x5E 94 Socket type not supported
0x5F 95 Operation not supported on transport endpoint
0x60 96 Protocol family not supported
0x61 97 Address family not supported by protocol
0x62 98 Address already in use
0x63 99 Cannot assign requested address
0x64 100 Network is down
0x65 101 Network is unreachable
0x66 102 Network dropped connection because of reset
0x67 103 Software caused connection abort
0x68 104 Connection reset by peer
0x69 105 No buffer space available
0x6A 106 Transport endpoint is already connected
0x6B 107 Transport endpoint is not connected
0x6C 108 Cannot send after transport endpoint shutdown
0x6D 109 Too many references: cannot splice
0x6E 110 Connection timed out
0x6F 111 Connection refused
0x70 112 Host is down
0x71 113 No route to host
0x72 114 Operation already in progress
0x73 115 Operation now in progress
0x74 116 Stale NFS file handle
0x75 117 Structure needs cleaning
0x76 118 Not a XENIX named type file
0x77 119 No XENIX semaphores available
0x78 120 Is a named type file
0x79 121 Remote I/O error
0x7A 122 Quota exceeded
0x7B 123 No medium found
0x7C 124 Wrong medium type

Hardware Error

MSR

Code Description
0x00 success
0x01 General error
0x40 Mismatch in the field of STX
0x41 Mismatch in the field of class
0x42 Mismatch in the field of function
0x43 Mismatch in the field of length
0x44 Mismatch in the field of ETX
0x45 Mismatch in the field of LRC
0x46 Mismatch in the field of MODE
0x51 Preamble error in card read data
0x52 Postamble error in card read data
0x53 LRC error in card read data
0x54 Parity error in card read data
0x55 Blank track
0x61 STX/ETX error in command communication
0x62 Class/Function un-recognizable in command
0x63 BCC error in command communication
0x64 Length error in command communication
0x65 No data available to re-read
0x71 No more space available for OPT write
0x72 OTP write try without data
0x73 CRC error in read data from OTP
0x74 No data stored in OTP

SmartCard Reader

Code Description
0x00 success
0x01 CMD_FAILED
0x10 AU9540_MSG_TYPE_NOT_MATCH
0x11 AU9540_MSG_SLOT_NOT_MATCH
0x12 AU9540_MSG_SEQ_NOT_MATCH
0x13 AU9540_MSG_NEED_MORE_WAIT_TIME
0xF4 PROCEDURE_BYTE_CONFLICT
0xF6 ICC_PROTOCOL_NOT_SUPPORTED
0xF7 BAD_ATR_TCK
0xF8 BAD_ATR_TS
0xFB An all inclusive hardware error occurred
0xFD Parity error while talking to the ICC
0xFE timed out while talking to the ICC
0xFF Host aborted the current activity

PINPAD

Code Description
0x00 success
0x11 access denied
0x12 wrong command id
0x13 wrong package length
0x14 user cancel
0x15 wrong length of field
0x20 no key in this sector
0x21 out of range of pin length
0x22 failed in authentication
0x23 wrong length of key
0x24 wrong check value of session key
0x25 failed in writing flash
0x26 failed in reading flash
0x27 no key in this field
0x28 input is out legal range
0x29 failed in checking integrity
0x2A failed in encrypting using aes key text
0x2B failed in decrypting using aes key
0x2C break rules about data sensitivity
0x2D failed in the process of calculating mac
0x2E data length is not aligned