8cH9azbsFifZ / moonboard

GNU General Public License v3.0
13 stars 11 forks source link

Mini protocol not supported #7

Closed ajfclark closed 3 years ago

ajfclark commented 3 years ago

When running the app with a mini layout selected, the BLE service application doesn't correctly recognise problems being sent from the app.

e.g.

$ sudo python3 moonboard_BLE_service.py --debug
Bluetooth adapter: /org/bluez/hci0
app path: /com/moonboard
setup adv
< HCI Command: ogf 0x08, ocf 0x000a, plen 1
  00 
> HCI Event: 0x0e plen 4
  01 0A 20 00 
< HCI Command: ogf 0x08, ocf 0x0008, plen 32
  18 02 01 06 02 0A 00 11 07 9E CA DC 24 0E E5 A9 E0 93 F3 A3 
  B5 01 00 40 6E 00 00 00 00 00 00 00 
> HCI Event: 0x0e plen 4
  01 08 20 00 
< HCI Command: ogf 0x08, ocf 0x0009, plen 14
  0D 0C 09 4D 6F 6F 6E 62 6F 61 72 64 20 41 
> HCI Event: 0x0e plen 4
  01 09 20 00 
< HCI Command: ogf 0x08, ocf 0x0006, plen 15
  80 02 C0 03 00 00 00 00 00 00 00 00 00 07 00 
> HCI Event: 0x0e plen 4
  01 06 20 00 
start adv
< HCI Command: ogf 0x08, ocf 0x000a, plen 1
  01 
> HCI Event: 0x0e plen 4
  01 0A 20 00 
GATT application registered
incoming bytes:~M*
New data 7e4d2a
incoming bytes:l#S90,S116,P81,P75,P
START
error: alredy started
New data 6c235339302c533131362c5038312c5037352c50
incoming bytes:103,E83#
STOP
error: not started
New data 3130332c45383323
ajfclark commented 3 years ago
$ sudo python3 moonboard_BLE_service.py --debug
Bluetooth adapter: /org/bluez/hci0
app path: /com/moonboard
setup adv
< HCI Command: ogf 0x08, ocf 0x000a, plen 1
  00 
> HCI Event: 0x0e plen 4
  01 0A 20 00 
< HCI Command: ogf 0x08, ocf 0x0008, plen 32
  18 02 01 06 02 0A 00 11 07 9E CA DC 24 0E E5 A9 E0 93 F3 A3 
  B5 01 00 40 6E 00 00 00 00 00 00 00 
> HCI Event: 0x0e plen 4
  01 08 20 00 
< HCI Command: ogf 0x08, ocf 0x0009, plen 14
  0D 0C 09 4D 6F 6F 6E 62 6F 61 72 64 20 41 
> HCI Event: 0x0e plen 4
  01 09 20 00 
< HCI Command: ogf 0x08, ocf 0x0006, plen 15
  80 02 C0 03 00 00 00 00 00 00 00 00 00 07 00 
> HCI Event: 0x0e plen 4
  01 06 20 00 
start adv
< HCI Command: ogf 0x08, ocf 0x000a, plen 1
  01 
> HCI Event: 0x0e plen 4
  01 0A 20 00 
GATT application registered
incoming bytes:~M*
MINI
New data 7e4d2a
incoming bytes:l#S75,P81,P103,E83,E
START
New data 6c235337352c5038312c503130332c4538332c45
incoming bytes:131#
STOP
Signal new problem: {"START": ["G4"], "MOVES": ["G10", "I8"], "TOP": ["G12", "K12"]}
start adv
< HCI Command: ogf 0x08, ocf 0x000a, plen 1
  01 
> HCI Event: 0x0e plen 4
  01 0A 20 0C 
New data 31333123