add devices sn code