Assuming Midi can only control 128 devices, it's because it's only using 7 addressing bits (a single byte, less 1 bit) - by increasing the addressing to use two bytes you then get 65,000 odd addressable devices. Bear in mind, for your purposes it doesn't have to be as fast as Midi - so increasing the packet size won't be a problem!.