Abstract
Disclosed is a method of assigning and fixing a group number and a logical connection sequence number to each of cube devices when grouping the cube devices in constituting a modular robot by assembling a plurality of cube devices. More specifically, disclosed is a method of assigning and fixing a group number and a logical connection sequence number to a cube device through an app of a smart device when connecting the cube device mounted on the modular robot and the smart device via Bluetooth, and connecting and driving the cube device according to the group number and the logical connection sequence number designated in the cube device when connecting a grouped cube device configured in the modular robot and the smart device via Bluetooth again.