Prosba o dokumentacje + inne sprawy

User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

SUPLA.... Nareszcie w domu.
magx2
Posts: 417
Joined: Wed May 17, 2017 1:27 pm
Has thanked: 1 time
Been thanked: 1 time

Post

W sensie wysyła za dużo na raz do ROWa? Jak to powinno być rozwiązane?
Supla ❤️ Open HAB - https://github.com/magx2/openhab-supla
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

(header_size+_sdp->data_size+SUPLA_TAG_SIZE) == 30
spd->in.data_size == 25
SUPLA.... Nareszcie w domu.
magx2
Posts: 417
Joined: Wed May 17, 2017 1:27 pm
Has thanked: 1 time
Been thanked: 1 time

Post

Czyli data size ma byc tez z tagiem SUPLA?
Supla ❤️ Open HAB - https://github.com/magx2/openhab-supla
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Nie. Wysyłasz mniej danych niż powinieneś.
SUPLA.... Nareszcie w domu.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

W data_size deklarujesz 7 bajtów, a wysyłasz 2
SUPLA.... Nareszcie w domu.
magx2
Posts: 417
Joined: Wed May 17, 2017 1:27 pm
Has thanked: 1 time
Been thanked: 1 time

Post

A jakie bajty wysłałem? Z tego co mi się wydaje to to powinno pójść: dataSize=7, data=[3, 0, 0, 0, 100, 5, 2]
Supla ❤️ Open HAB - https://github.com/magx2/openhab-supla
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Cała przesyłka:

DEBUG[1502460740.127908] 0x53
DEBUG[1502460740.128048] 0x55
DEBUG[1502460740.128057] 0x50
DEBUG[1502460740.128062] 0x4C
DEBUG[1502460740.128068] 0x41
DEBUG[1502460740.128073] 0x01
DEBUG[1502460740.128079] 0x01
DEBUG[1502460740.128085] 0x00
DEBUG[1502460740.128090] 0x00
DEBUG[1502460740.128095] 0x00
DEBUG[1502460740.128101] 0x46
DEBUG[1502460740.128106] 0x00
DEBUG[1502460740.128111] 0x00
DEBUG[1502460740.128116] 0x00
DEBUG[1502460740.128122] 0x07
DEBUG[1502460740.128127] 0x00
DEBUG[1502460740.128132] 0x00
DEBUG[1502460740.128138] 0x00
DEBUG[1502460740.128143] 0x03
DEBUG[1502460740.128148] 0x00
DEBUG[1502460740.128153] 0x00
DEBUG[1502460740.128159] 0x00
DEBUG[1502460740.128164] 0x64
DEBUG[1502460740.128169] 0x05
DEBUG[1502460740.128174] 0x02
SUPLA.... Nareszcie w domu.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Gubisz coś wcześniej
SUPLA.... Nareszcie w domu.
magx2
Posts: 417
Joined: Wed May 17, 2017 1:27 pm
Has thanked: 1 time
Been thanked: 1 time

Post

Wysyłam tak:
5 bajtów Supla tag
1 bajt unsigned char version
4 bajty unsigned _supla_int_t rr_id;
4 bajty unsigned _supla_int_t call_type;
4 bajty unsigned _supla_int_t data_size;
7 bajtów data
Suma: 25 bajtów.

Skąd ma być 30 bajtów?
Supla ❤️ Open HAB - https://github.com/magx2/openhab-supla

Return to “Zagadnienia ogólne”