Barney,
from your pictures:
This is my educated guess:
from left to right, the first cable, 9 wires with the white unused, is the standard 9-pin motor cable.
Its 9 pins are:
3 phase wires: large yellow green blue with 3.9mm bullet crimps
5-pin female JST connector are the hall wires
the...