I am developing a remote monitoring device using a Raspberry Pi. In order to provide me with alerts it has 3G dongle in it. However, due to power supply instability the dongle will sometimes change device number. So, for instance, when it boots the 3G dongle might show as (using lsusb):
Bus 001 Device 005: ID 12d1:1464 Huawei Technologies Co., Ltd
But after a number of hours have passed the device number will increase to, say:
Bus 001 Device 007: ID 12d1:1464 Huawei Technologies Co., Ltd
So my question is what is the limit on the device number? Can it keep increasing to 999 or even beyond or is there a lower limit, such as 256 or 128? With this information I can code in a check on the device number and force a reboot if it gets close to the limit.