
Originally Posted by
jvvh5897
I took apart a few files for the hero box and others to look for the format of the serial comms to the dongle. Seems there was a major format change around 2011 or a little earlier, but not sure of the number for the dongle as I don't own kbox receiver or any dongle. Looks like the older style dongle used 19200 baud where the newer does 115200 baud. Older dongle uses sync byte of 0x2f then 0x77 0x2. Newer dongle you see:0xca 0x62 0x1 sequence at start of "KandJ_SendCmd". cmd bytes are rather different between the two too.
In the hero file k1plus_170_20090109 you find:
cmd/res cmd (* indicates baud rate 19.2k)
*38/32 or 3c
*f1/f3
*f2/f4
*24/2e
*25/2f
*60/6a
*35/36
*f5/f6
*30/a0 then a1, a2, a3, a4, a5
*65/6f
*64/6e
*62/6c
*63/6d
*76/77
*31/32
*0/a7 or 1
*74/75
*20
*21
*54/5e
*50/5a
*10
*11
*12
*13
*14
*52/5c
*53/5d
But in the plus file PSplus_103_20110303_nopassword
cmd/resp cmd
76/77
80/81
82/83
85/86
87/88
35/36
30/a1 then a2, a3, a4, 6a, aa, a6
76/77 version query
0/a7
50
10
11
12
13
14/a7 or a8
ee/ef
55/56
58/59 connect
40
Most commands have no extra bytes sent besides the first three, cmd byte and single byte XOR sum. But some cmds do exchange more. By and large, for all commands sent the box expects an acknowledge of similar start sequence and xor sum (but you will note a few in the above lists do not show an obvious response). Without a capture of the serial comms, I'm not all that sure of what commands do what, so if any want to explore doing sv style dongle emulation then somone will have to build an rs232 "spy" cable and run a line to a PC to capture box/dongle exchanges.