Read and save IMEI from serial port

yes, but in my case I need only once send AT+GSN and only once parse response.