Prosba o dokumentacje + inne sprawy

magx2
Posts: 249
Joined: Wed May 17, 2017 1:27 pm

Fri Aug 11, 2017 1:54 pm

W sensie wysyła za dużo na raz do ROWa? Jak to powinno być rozwiązane?
Java 4 Life :twisted: :twisted: :twisted:
User avatar
pzygmunt
Posts: 5747
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Fri Aug 11, 2017 1:55 pm

(header_size+_sdp->data_size+SUPLA_TAG_SIZE) == 30
spd->in.data_size == 25
magx2
Posts: 249
Joined: Wed May 17, 2017 1:27 pm

Fri Aug 11, 2017 1:57 pm

Czyli data size ma byc tez z tagiem SUPLA?
Java 4 Life :twisted: :twisted: :twisted:
User avatar
pzygmunt
Posts: 5747
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Fri Aug 11, 2017 1:58 pm

Nie. Wysyłasz mniej danych niż powinieneś.
User avatar
pzygmunt
Posts: 5747
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Fri Aug 11, 2017 1:59 pm

W data_size deklarujesz 7 bajtów, a wysyłasz 2
magx2
Posts: 249
Joined: Wed May 17, 2017 1:27 pm

Fri Aug 11, 2017 2:06 pm

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]
Java 4 Life :twisted: :twisted: :twisted:
User avatar
pzygmunt
Posts: 5747
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Fri Aug 11, 2017 2:13 pm

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
User avatar
pzygmunt
Posts: 5747
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Fri Aug 11, 2017 2:14 pm

Gubisz coś wcześniej
magx2
Posts: 249
Joined: Wed May 17, 2017 1:27 pm

Fri Aug 11, 2017 2:20 pm

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?
Java 4 Life :twisted: :twisted: :twisted:
Post Reply