Patent attributes
An active stylus calibration method includes establishing, by an electronic device having a touchscreen, a network connection to an active stylus, detecting a function signal from the active stylus, determining a distance between the active stylus and the touchscreen based on a parameter value, obtained through detection, corresponding to the function signal, where a smaller parameter value indicates a larger distance, and when a timing is started when the distance is at a first threshold, the timing duration reaches a specified duration and the distance is at a second threshold, sending, through a network, a force calibration instruction to the active stylus to calibrate a force sensor based on the force calibration instruction.