Server code update: new command format & serial support