communication protocol device<=>server