A method for compensating phase offset caused by a matching network and antenna of a near field communication communications device, the method comprising: generating a mapping that correlates phase offset with a characteristic parameter; measuring the characteristic parameter for the communications device; using the measured characteristic parameter and the mapping to determine a phase offset for the communications device; and using the determined phase offset to compensate for the phase offset caused by the matching network and antenna of the communications device, wherein the mapping that correlates phase offset with the characteristic parameter is stored as a mapping table, wherein the mapping that correlates phase offset with the characteristic parameter is generated by measuring or analyzing in simulation the phase offset by sweeping temperature of a component, a printed circuit board, and/or the antenna; wherein the characteristic parameter is associated with a signal that is either received or transmitted by the communications device; wherein the characteristic parameter is comprising a combination of at least two of the following features: a resonance peak frequency for the signal, an amplitude peak of the frequency response for the signal, an amplitude or a combination of amplitudes at specific frequencies for the signal, a notch of the frequency response for the signal, a bandwidth of the matching network and antenna, a specific shape of the frequency response for the signal. generating a mapping that correlates phase offset with a characteristic parameter; measuring the characteristic parameter for the communications device; using the measured characteristic parameter and the mapping to determine a phase offset for the communications device; and using the determined phase offset to compensate for the phase offset caused by the matching network and antenna of the communications device, wherein the mapping that correlates phase offset with the characteristic parameter is stored as a mapping table, wherein the mapping that correlates phase offset with the characteristic parameter is generated by measuring or analyzing in simulation the phase offset by sweeping temperature of a component, a printed circuit board, and/or the antenna; wherein the characteristic parameter is associated with a signal that is either received or transmitted by the communications device; wherein the characteristic parameter is comprising a combination of at least two of the following features: a resonance peak frequency for the signal, an amplitude peak of the frequency response for the signal, an amplitude or a combination of amplitudes at specific frequencies for the signal, a notch of the frequency response for the signal, a bandwidth of the matching network and antenna, a specific shape of the frequency response for the signal. a resonance peak frequency for the signal, an amplitude peak of the frequency response for the signal, an amplitude or a combination of amplitudes at specific frequencies for the signal, a notch of the frequency response for the signal, a bandwidth of the matching network and antenna, a specific shape of the frequency response for the signal.