# USB Hub Map: Hub Power Switch and Sort by USB Port

> For AI tools: this is the Markdown copy of https://xproxy.io/document/usb-hub-map. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

Open the USB hub map to see every modem on its port, switch hub power on, off or cycle it with a Smart Life switch, and sort modems by USB port.

See every USB hub of your box as a picture, with a colour for each modem. Switch a hub's power on and off from the panel without walking to the rack, and give every USB port its own fixed position.

**You need:** the hub map and sorting by USB port need nothing extra. To switch power you also need a Smart Life switch (plug, power strip or relay) on the same network as the box, with the hub plugged into it. The map came with XProxy 21.3.50, sorting by USB port with 21.3.2. Update first with [Update XProxy](https://xproxy.io/document/update-xproxy).

In short

**See where each modem is**

Each port shows its position, its status and its modem. You find a dongle in the rack by its row in the list.

**Restart a hub from your chair**

Cut the power of a hung hub, or power cycle it. Every step asks first and tells you how many proxies it touches.

**Positions that stay**

With USB port sorting, a position belongs to a port. Swap a dead dongle and the new one gets the same position and proxy port.

## Use the hub map

**Step 1: Sort the modems by USB port**

Open **Proxy Management**. Next to **Sorting modems**, click **USB port**. The panel asks you to confirm and restarts the application. Connections drop for a moment.

From now on every position belongs to a USB port, not to a modem. Swap a dongle and the new one takes the position and the proxy port of the old one. Each row shows where its modem sits, for example **Hub 1 · 1**. Click it to see that port on the map.

Click **Hub map** to open the map.

![Proxy Management with Sorting modems set to USB port, the Hub map button, and the Port line of the first row reading Hub 1 · 1 (demo)](https://media1.xproxy.io/docs/nov-sync/usb-hub-map/1-sorting-port.webp)

> The map works with any sorting mode. The mode **USB port** is the one that gives each hub its own block of positions.

**Step 2: Open the hub map**

The map draws every USB hub of your box as a case with its ports. A colour on a port tells what is in it: **Working**, **Changing IP**, **Has a problem**, **Disconnected**, **Starting** (a modem just plugged in), **Not in the list** or **Empty port**.

Each hub has a card. The top gives its name, how many ports are in use and, with USB port sorting, its block of positions, for example **Slots 1-20**. The case shows the ports. **Arrange** changes the order and names.

The map updates by itself every 2 seconds while it is open. Plug a modem in and its port lights up.

![The USB hub map with the colour legend, the Arrange button and three hub cards, Hub 1 with 12 of 32 ports in use (demo)](https://media1.xproxy.io/docs/nov-sync/usb-hub-map/2-hub-map.webp)

> Below the hubs, **Plugged into the box directly** lists devices that are not on a hub. Click a port with a modem and the panel jumps to that row and blinks it.

**Step 3: Read a hub**

The big number in a coloured port is the **position** (slot) of the modem. The small number next to it is the printed number of the port on the case. A red port is a modem that is disconnected. A dark port is empty.

A port with an orange outline holds a modem that sits above the block of its hub. The card says so, for example **Port 25 is outside the 20 ports kept for this hub**. Click **Keep 25 ports** to grow the block. Hold the pointer on a port to read its slot, status, label, IMEI and USB name.

![Hub 1 card: ports 1 to 16 and 17 to 32 with the position number in each port, a red disconnected port, an empty port and port 25 outlined in orange with the message that it is outside the block](https://media1.xproxy.io/docs/nov-sync/usb-hub-map/3-read-ports.webp)

> Only the XProxy 32-port hub is drawn with its printed numbers. Any other hub appears as one block, with the ports numbered in USB order, and the note **New hub type: port numbers follow the USB order**.

**Step 4: Name and order your hubs**

Click **Arrange**, then:

1. Type a **Name** for each hub, for example the shelf it sits on.
2. Use **Move left** and **Move right** to match your rack. With USB port sorting the proxy list follows this order.
3. Set **Ports used**: how many ports of that hub keep a position of their own. A 32-port hub with 20 modems can keep 20. The range it gives shows beside it, for example **Slots 1-20**.

The bar shows how many positions all the hubs need against how many your box has, for example **77 of 90 slots**. Click **Save**.

If a save moves modems to new positions, the panel lists them first: **Slot 5 → 3**. Their proxy ports change and the application restarts, so connections drop for about a minute. Click **Save and restart** to accept.

![Arrange mode: the slots bar 77 of 90, a Name field, the Ports used counter, Move left and Move right for each hub, and Cancel and Save](https://media1.xproxy.io/docs/nov-sync/usb-hub-map/4-arrange.webp)

> A hub that needs more positions than the box has is refused: **Hubs need 95 slots, this box has 90**. Lower **Ports used**. Your plan sets how many modem positions the box has.

**Step 5: Add your Smart Life switches**

To switch a hub off and on from the panel, the hub must get its power through a smart switch from the **Smart Life** app: a plug, a power strip or a relay on the same network as the box. Add them in **Power switches**, at the bottom of the map.

1. Click **Add Smart Life devices**.
2. Type your **User code**. In Smart Life: **Me**, **Settings**, **Account and Security**, **User Code**. Click **Show QR code**.
3. In Smart Life tap the scan icon at the top right, scan the code and confirm. The panel waits, then lists what it found.

Each switch shows its name, its address, **Reachable** or **Not reachable**, and a switch for each outlet. **Use for hubs** decides whether the box may use it for hubs, and **Identify** blinks its light for a few seconds without cutting power, so you know which one it is.

![Power switches section: the Link to hubs and Add Smart Life devices buttons, and a Wi-Fi power strip with Reachable status, Use for hubs, Identify and five outlets, some already linked to hubs](https://media1.xproxy.io/docs/nov-sync/usb-hub-map/5-power-switches.webp)

> Switches the box cannot reach are listed under **Not found on this network** and cannot be used. Check that they are plugged in and on the same network as the box. Today the panel supports Smart Life switches.

**Step 6: Link each hub to its switch**

The box has to know which outlet feeds which hub. Click **Link to hubs**, or **Find automatically** at the end of the previous step. Two ways:

- **Find automatically**: tick the outlets to test and click **Start test**. The box turns each outlet off for about 8 seconds, one at a time, and watches which hub ports lose their modems. It then links that outlet to the hub. Outlets that are on are ticked for you.
- **Choose myself**: for every hub, or every side of a hub, pick the switch and the outlet that feeds it. Click **Save**.

The result says what it found for each outlet: **Linked to Hub 1 · Left · 12 ports dropped**, or **No hub port lost its device**. A hub then shows a **Power** menu and a switch where it showed **Link**.

![Link power switches to hubs, tab Find automatically: the outlets to test with the ones that are on ticked, the warning not to test an outlet that powers the box, and Start test](https://media1.xproxy.io/docs/nov-sync/usb-hub-map/7-link-auto.webp)

> **Never test an outlet that powers the box itself.** It would switch the box off. Only outlets that are on are tested, and the outlet comes back on by itself even if the box hangs.

**Step 7: Switch a hub on, off or cycle it**

On a linked hub, click the small arrow next to **L** or **R** (a 32-port hub has one for each side), or **Power** on a hub with one input. The menu has **Power cycle**, **Turn on**, **Turn off**, **Change link** and **Unlink**. The ports of that side get an outline while the menu is open. The round switch next to it turns the power on or off.

Before it cuts power, the panel asks, and tells you how many proxies lose their connection: **Power cycle Hub 1 · Left? 11 proxies lose their connection. Power comes back after about 15 seconds.** Click **Power cycle** or **Turn off**. Turning power on does not ask.

![Hub 1 card with the power switches of the left and right side, and the open menu: Power cycle, Turn on, Turn off, Change link and Unlink](https://media1.xproxy.io/docs/nov-sync/usb-hub-map/8-power-menu.webp)

> When a firmware flash is running, the panel refuses to cut power: **A firmware flash is running. Try again when it has finished.** Cutting a modem's power in the middle of a flash can ruin it. Turning power on is always allowed.

**Step 8: Bring a hub back**

A hub whose power is off disappears from USB. The map does not lose it. It stays as a card with **Not connected** and when it was last seen, and its switch shows off. A hub keeps its number and its block of positions while it is away.

Turn the switch on. The card says **Turning on… the hub comes back in a few seconds**. When the hub shows up on USB, its ports fill in again. The modems on it need up to about a minute to start and get their positions back (**Starting**).

A hub you removed for good shows a red **Forget** link while it is not connected. Click it and the box drops its number, name and power links. If you plug it in again, it is a new hub.

![A remembered Hub 2 that is not connected: seen 43 min ago, the Forget link, and the right power switch turned off](https://media1.xproxy.io/docs/nov-sync/usb-hub-map/9-hub-off.webp)

> Power cycle does both in one go. The switch itself counts the seconds, so the power comes back even if the box restarts in between.

**What's next?**

Plan your dongles and hubs: [Installing dongles](https://xproxy.io/document/installing-dongles).

Port clashes after you change positions or ports: [Ports in use](https://xproxy.io/document/ports-in-use).

## When to switch a hub's power

- A hub stops answering: its modems are all **Disconnected** at once. A power cycle restarts the hub and every modem on it.
- You manage a rack in another room or another site and cannot press the button yourself.
- You want to take one hub offline for the night, or to move modems, without cutting the others.

It cuts power to the whole hub, or to the whole side of a 32-port hub, not to one modem.

## What it can and cannot do

| Topic | What to know |
| --- | --- |
| Who can use it | Any plan. The hub map, the power menu and USB port sorting have no plan check. The positions you can give out follow the number of modems your plan allows. |
| Which switches | Smart Life switches that the box finds on its own network. Switches that are not on the network of the box show as not found. |
| Which hubs | Any hub. The XProxy 32-port hub has two power sides, Left (ports 1-16) and Right (17-32), each with its own link. Every other hub has one power input, one link. |
| What a power cut does | Every modem on that hub or side loses power. The panel tells you how many proxies it is before you confirm. |
| What a power cycle does | Off, then on after about 15 seconds. The switch counts the seconds itself when it can. |
| When it is refused | No switch is linked to that hub side, the switch cannot be reached, or a firmware flash is running (off and cycle only). |
| How fresh the state is | The map checks the hubs every 2 seconds and the switches about every 10 seconds, only while the map is open. |

## Sorting by USB port

The other modes follow the modem: **Manual** freezes today's positions, **Label** sorts by the label on the dongle, **IMEI** by IMEI. **USB port** follows the socket.

- Every hub gets a block of consecutive positions, in the order of the hubs on the map. A port gets **block start + printed port number - 1**. Hub 1 with **Ports used** 20 takes positions 1 to 20. Hub 2 starts at 21.
- Every port of a block keeps its position, even when it is empty. A modem you plug in later takes the position of its port at once, with no restart.
- A modem that is on a port above its hub's block, on a USB port that is not on a hub, or not on USB, comes after all the blocks. Use **Keep N ports** to bring a port into its block.
- Saving a new order or new **Ports used** can move modems to other positions. The panel lists the moves, and the application restarts when you accept.

Positions decide proxy ports, so a fixed position gives a fixed port: see [Proxy settings](https://xproxy.io/document/proxy-settings) for the starting port.

## Something not working?

| You see | What to do |
| --- | --- |
| The **Hub map** shows no hub: **No USB hub found yet** | Plug a hub into the box, or turn its power on in **Power switches** if it is a hub you linked before. |
| A modem sits on a port but has no number | It shows **Starting** for up to about a minute while it boots and gets its position. If it stays, look at the slots bar in **Arrange**: the box may have no position left for it. |
| **Hubs need N slots, this box has M** | Lower **Ports used** of one or more hubs in **Arrange** until the bar fits. |
| A switch is under **Not found on this network** | Plug it in, check its Wi-Fi, and put it on the same network as the box. The list refreshes by itself. |
| **Not reachable** next to a switch | The box found it earlier but cannot talk to it now. Check its power and Wi-Fi. |
| Find automatically says **No hub port lost its device** | That outlet does not feed a hub with modems in it. Test the next outlet, or link it yourself with **Choose myself**. |
| **More than one hub side lost power, not linked** | Two hub sides hang on one outlet. Link them by hand with **Choose myself**. |
| The power menu says **No power switch is linked to this part of the hub yet** | Click **Link** on the hub and pick its outlet. |
| Hub numbers or positions look wrong after a move | Hub numbers follow the order you set in **Arrange**. A hub keeps its number even when it is away, until you click **Forget**. |

---

Source: https://xproxy.io/document/usb-hub-map
