# UbiSwitch LED matrix

**URL:** <https://forum.botblox.org/t/ubiswitch-led-matrix/30>\
**Category:** BotBlox Hardware\
**Tags:** ubiswitch\
**Created:** [August 1, 2023, 3:32pm UTC](https://forum.botblox.org/t/ubiswitch-led-matrix/30 "2023-08-01T15:32:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterMaes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/petermaes/32/231_2.png) [@PeterMaes](https://forum.botblox.org/u/PeterMaes)\
**Post date:** [August 1, 2023, 3:32pm UTC](https://forum.botblox.org/t/ubiswitch-led-matrix/30/1 "2023-08-01T15:32:01Z")

</div>

Can you give more details about the link/signal LEDs for the SFP ports ?  
As the schematic is not very clear in this.

 ![Screenshot 2023-08-01 at 17.27.24](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/cb1cb70a3c94d265533db3205f126f768529937c.png)

---

<div class="post-metadata">

**Author:** ![josh\_elijah](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/josh_elijah/32/568_2.png) [@josh\_elijah](https://forum.botblox.org/u/josh_elijah)\
**Post date:** [August 2, 2023, 2:03am UTC](https://forum.botblox.org/t/ubiswitch-led-matrix/30/2 "2023-08-02T02:03:22Z")

</div>

For the SFP ports on UbiSwitch are ports 0, ports 10 and ports 9, so we’re looking at five signals…

LED\_SEL is 1. Seperate Speed LED.

For the anodes…  
EE\_CLK\_C0\_LED\_P1\_LED0\_FLOW… (let’s shorten that to) **C0\_LED**  
EE\_DOUT\_C1\_LED\_P6\_LED0… (let’s shorten that to) **C1\_LED**  
C2\_LED\_P7\_LED0… (let’s shorten that to) **C2\_LED**  
C3\_LED\_P8\_LED0… (let’s shorten that to) **C3\_LED**

and a shared cathode  
R4\_LED\_P5\_LED0… (let’s shorten that to) **R4\_LED**

Now, on UbiSwitch to reduce pin count, these signals are multiplexed into a row and column arrangement.

In the case of the standard 1Gb ports, (ports 1 to 8), each port as two LEDs associated with it, LED0 and LED1.

The table below illustrates how the Row and Column signals associate with each LED signal.

| | C0\_LED | C1\_LED | C2\_LED | C3\_LED |
| --- | --- | --- | --- | --- |
| R0\_LED | Port 1, LED 0 | Port 1, LED 1 | Port 2, LED 0 | Port 2, LED 1 |
| R1\_LED | Port 3, LED 0 | Port 3, LED 1 | Port 4, LED 0 | Port 4, LED 1 |
| R2\_LED | Port 5, LED 0 | Port 5, LED 1 | Port 6, LED 0 | Port 6, LED 1 |
| R3\_LED | Port 7, LED 0 | Port 7, LED 1 | Port 8, LED 0 | Port 8, LED 1 |
| R4\_LED | Port 9, LED 0 | Port 9, LED 1 | Port 10, LED 0 | Port 10, LED 1 |

**Ports 1-8 are simple…**

| LED 0 | Off = No Link |
| --- | --- |
| | On = 1000BASE-T Link |
| | Blink = 1000BASE-T activity |

| LED 1 | Off = No Link |
| --- | --- |
| | On = 10/100 link |
| | Blink = 10/100 activity |

**Ports 0, 9 and 10 only have a single LED to show activity, and are a bit confusing.**

Port 9, LED 0 shows Port 0 Link/Activity (C0\_LED with R4\_LED)  
Port 9, LED 1 shows Port 10 Link/Activity (C1\_LED with R4\_LED)  
Port 10, LED 0 shows PTP Activity (C2\_LED with R4\_LED) (Unless you’re doing PTP, you won’t use this)  
Port 10, LED 1 shows Port 9 Link Activity (C3\_LED with R4\_LED)

Which means that, for the SFP ports, you should use…

~~An LED between C0\_LED and R4\_LED for Port 0 Link/Activity  
An LED between C1\_LED and R4\_LED for Port 10 Link/Activity  
An LED between C3\_LED and R4\_LED for Port 9 Link/Activity ~~

**PLEASE READ THE FORUM POST BELOW!**

I have no idea why the designers of the chip made this LED matrix so needlessly complicated, but if you follow the three rules above you should be good to go.

---

<div class="post-metadata">

**Author:** ![josh\_elijah](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/josh_elijah/32/568_2.png) [@josh\_elijah](https://forum.botblox.org/u/josh_elijah)\
**Post date:** [November 14, 2023, 4:28pm UTC](https://forum.botblox.org/t/ubiswitch-led-matrix/30/3 "2023-11-14T16:28:10Z")

</div>

Replying to this post, based on recent findings in [this](https://forum.botblox.org/t/led-indicator-query-for-ubiswitch-baseboard/105/2) forum post, it would appear that there is a mistake here.

Please follow the rules below instead.

An LED between C0\_LED and R4\_LED for Port 9 Link/Activity  
An LED between C2\_LED and R4\_LED for Port 10 Link/Activity  
An LED between C3\_LED and R4\_LED for Port 0 Link/Activity
