Complete the serial structure and add the SD status checking function