update 'sn' to 'deviceid'