
-----------------------------------
nobody
19 Oct 2018 21:18


-----------------------------------
Cand am zis lungime predefinita, m-am referit ca fiecare mesaj are o lungime cunoscuta, nu ca toate mesajele au aceeasi lungime fixa. De ex. comanda "V" are lungimea 1, tot timpul. Comenzile de slew au tot timpul lungimea de 8 caractere, din care ultimele doua sunt ... chr(0) & chr(0).

Daca vrei sa setezi sau sa citesti ora ... iar dai de 0x00, uite chiar acum o captura de pe portul serial (sunt si valorile in hexa):
Comanda:
h
68

Raspuns:
 Q  :  * <1><1><n> V <0> #
51 3A 2A 01 01 0A 56 00 23


Explicatia:
The format of the time commands is: QRSTUVWX, where:
Q is the hour (24 hour clock). 0 for Standard Time.
For example, to set the time to 3:26:00PM on April 6, 2005 in the Eastern time zone (-5 UTC: 256-5 = 251) you would send:
&#8220;H&#8221; & chr(15) & chr(26) & chr(0) & chr(4) & chr(6) & chr(5) & chr(251) & chr(1)

Vezi documentatia de la protocol, e plin de NULL sau valori care pot fi NULL (zero binar):
