write device id to login msg and on SD-Card (fat partition)