Why positive response is always plus 40 and negative response is 7F
In UDS the first byte of a positive response is always SID + 40 hex (SID = Service Identifier, the first byte of the request) and the first byte of a negative response is always 7F hex: