pfSense Support Subscription

Author Topic: Netgate SG-3100 LEDs  (Read 452 times)

0 Members and 1 Guest are viewing this topic.

Offline mhartwick

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Netgate SG-3100 LEDs
« on: November 03, 2017, 04:29:09 pm »
What do the LEDs mean by default and how do you configure them? As far as I can see there is NO documentation on this at Netgate beyond the mention that they are configurable. Sure, I bet you can rewrite it in the firmware and MAKE the LEDs do what I want but that's way more effort than it needs to be.


  • Guest
Re: Netgate SG-3100 LEDs
« Reply #1 on: November 04, 2017, 04:04:52 am »
What do you expect from that LEDs? In normal this LEDs are blinking green at start up and then green
for a good connection and red for a failure or disconnection, that's it in short. Or something in that matter
will be also all other LEDs blinking such as the ALIX or APU boards from PC Engines will do it.   

Offline cparkervt

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Netgate SG-3100 LEDs
« Reply #2 on: November 08, 2017, 02:38:02 pm »
I have the same question. My SG-3100 only has a throbbing / breathing blue LED under the black diamond at idle. Netgate has zero documentation on them, and there doesn't appear to be any package in the repo for configuring them.

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11885
  • Karma: +461/-15
    • View Profile
Re: Netgate SG-3100 LEDs
« Reply #3 on: November 08, 2017, 03:26:50 pm »
Right now they illuminate in sequence during the different stages of boot process, circle, square, diamond, with a fast blue flash.
When booting is complete the diamond flashes blue with a slow flash.
If the system sees an update is available the square flashes orange with a slow flash.

As you say they can be configured to flash any colour at any speed. Suggestions always welcome.  :)

They can be configured from user space so via a shellcmd for example. There are two places to do that.

Via the gpioctl command:
Code: [Select]
[2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: gpioctl 6 duty 100
That sets led 6 to maximum brightness. 6 is the red led in the circle. Each LED is tri-colour device with 3 LEDs in it for red green and blue:
Front IndicatorRedGreenBlue

The flashing frequency and duration is controlled by a set of sysctls:
Code: [Select]
[2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: sysctl dev.gpio.0
dev.gpio.0.led.2.T2: 0
dev.gpio.0.led.2.DT: 0
dev.gpio.0.led.2.T1-T3: 520
dev.gpio.0.led.2.pwm: 1
dev.gpio.0.led.1.T2: 0
dev.gpio.0.led.1.DT: 0
dev.gpio.0.led.1.T1-T3: 1040
dev.gpio.0.led.1.pwm: 0
dev.gpio.0.led.0.T2: 520
dev.gpio.0.led.0.DT: 0
dev.gpio.0.led.0.T1-T3: 1040
dev.gpio.0.led.0.pwm: 0 0 0 0 0 0 0 0 0 3640 0 3640 0 3640 0 0 0 0 0
dev.gpio.0.%parent: iicbus0
dev.gpio.0.%pnpinfo: name=is31fl3199 compat=issi,is31fl3199
dev.gpio.0.%location: addr=0xce
dev.gpio.0.%driver: gpio
dev.gpio.0.%desc: ISSI IS31FL3199 9 channel light effect LED driver

The exact settings of which I have not had time to investigate yet.  ;)
But for example you can switch led 1 (square) to pwm mode where it is not controlled by the led controller directly but stays on permanently at whatever settings you have set using gpioctl:
Code: [Select]
[2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: sysctl dev.gpio.0.led.1.pwm=1
dev.gpio.0.led.1.pwm: 0 -> 1

More information on those settings can be found in the datasheet:

We hope to have something more comprehensible than that documented soon though.

« Last Edit: November 08, 2017, 03:34:08 pm by stephenw10 »