We are using the UbiSwitch and are having trouble with the CLI. We can use the commands such as vlan help and vlan show in the terminal, however, when we try to use a command to add vlan members or even check the temperature of a port, our terminal freezes.
Thanks for the report. I gather from our previous correspondence that this was working for you, so I have a few questions with that in mind.
- Can you tell me exactly what you did to help me replicate this? For example, did you previously set any vlan, port or LAG settings prior? Did you save any settings from previous power cycles with
vlan save
for example? - What does
vlan show
give you after booting? - If you perform
vlan clear
after power cycling and booting, can you set VLANs withvlan add port 1 vid 1
? - Are the results the same if you do
vlan clear
, power cycle, and then attempt the samevlan add port 1 vid 1
? - As a last resort check, does reflashing the software again show the same issue?
- What are the voltage/current settings powering the board?
Our automated test suite should pick stuff like this up so I’m very interested in investigating this further.
This is a brand new switch, so there were no prior settings on it. vlan show
gives the default empty vlan settings:
The issue persists after using vlan clear
and then trying vlan add port 1 vid 1
.
We prefer not to reflash the switch, as we want to avoid the risk of potentially damaging it. We’re unsure if this may have been the cause of issues with a previous switch.
The voltage and current are at 24V and 0.08A.
To clarify whether this is a specific issue with this command, or some other connection issue, can you try the vlan save
command multiple times and see if you get a freeze. Just want to iron out if it’s something on the serial side, unrelated to the command.
Then can you also try vlan add port 2 vid 1
to see if the issue is also happens with port 2?
Tried the vlan save
command multiple times and it does not cause a freeze, but vlan add port 2 vid 1
freezes the terminal. The same issue happens with the other ports as well.
It seems that the show, save, and clear commands function correctly, but everything else will cause a freeze.
We are wondering if the USB to UART is the problem. Here is the converter we are using.
Hm ok, your commands look correct, we haven’t seen it act like this before.
Normally when the CLI fails, it displays a message. Your converter looks fine. Give us a few days to see if we can replicate this and get back to you.
Is there anything connected to the ports?
Nothing is connected to the ports. We are only using the UART and power connections.
Ok, we’ll have to replicate this, we’ll get back to you shortly.
After testing this in the lab, we’ve been unable to replicate the issue you’re experiencing. We’ve set up our test Ubiswitch (rev B) with the same voltage settings and performed vlan add port 1 vid 1
, which returned successfully. We also confirmed that other commands like vlan clear
and vlan show
returned successfully.
However, I’ve published a new release of BloxOsLite for UbiSwitch, which enables much better logging and coredumps in case of a crash. This will help debug your issue (and any other problems) by providing more visibility into what each command is doing. Here is the link
To perform an app update, download the relevant board’s binaries and you can follow the upgrading instructions here. If you could try this latest version, that would be very helpful to debug this.
A separate debug question: are you using the MDIO pico-clasp header on the UbiSwitch baseboard, labeled J1
?
We have updated our switch, and it seems to have fixed our issue. It is functioning normally now, and we can access the CLI to modify the VLAN settings.
We have not used the MDIO header at all.