I'm wondering if anybody has any information on WE826 hardware, specifically GPIO ports and sensors (if any).
To be more specific:
- there are a few LEDs on the board - are they all software controlled? How can I access, for example, the "Internet" LED from the software, which GPIO line?
- does the board have a temperature sensor of any kind? If yes, how it can be accessed from the software?
WE826 GPIO, etc.
Forum rules
Use the SEARCH function for related topics PRIOR to posting a new topic on the same subject.
Use the SEARCH function for related topics PRIOR to posting a new topic on the same subject.
- JimHelms
- Site Admin
- Posts: 1366
- Joined: Tue Dec 19, 2017 8:59 pm
- Location: DFW Texas
- Has thanked: 79 times
- Been thanked: 199 times
- Contact:
Re: WE826 GPIO, etc.
I have asked the manufacturer for this information.jfrog wrote: Mon Jun 04, 2018 7:34 am I'm wondering if anybody has any information on WE826 hardware, specifically GPIO ports and sensors (if any).
- JimHelms
- Site Admin
- Posts: 1366
- Joined: Tue Dec 19, 2017 8:59 pm
- Location: DFW Texas
- Has thanked: 79 times
- Been thanked: 199 times
- Contact:
Re: WE826 GPIO, etc.
There is no temperature sensor on the PCB.
All LED lights are controlled by software.
This is the contents of a document sent by the manufacturer:
All LED lights are controlled by software.
This is the contents of a document sent by the manufacturer:
Code: Select all
RESTE¶ÔÓ¦ (GPIO#1)
WPS¶ÔÓ¦ (GPIO#2)
wireless ACT ¶ÔÓ¦(GPIO#72)
WAN Port ¶ÔÓ¦(GPIO#40)
LAN1 Port LED-LAN4 Port LED·Ö±ð¶ÔÓ¦(GPIO#41),(GPIO#42),(GPIO#43),(GPIO#44)
Re: WE826 GPIO, etc.
thank you, Jim
I'll try to work with GPIO#40
Numbering is weird... This is what I see on my system:
and here are the current assignments:
So, WAN and LAN port LEDs are not visible and I cannot guess which one is #40.
I'll try to work with GPIO#40
Numbering is weird... This is what I see on my system:
Code: Select all
# gpiodetect
gpiochip0 [10000600.gpio] (24 lines)
gpiochip1 [10000638.gpio] (16 lines)
gpiochip2 [10000688.gpio] (1 lines)
Code: Select all
# gpioinfo
gpiochip0 - 24 lines:
line 0: unnamed unused input active-high
line 1: unnamed "reset" input active-high [used]
line 2: unnamed unused input active-high
line 3: unnamed unused input active-high
line 4: unnamed unused input active-high
line 5: unnamed unused input active-high
line 6: unnamed unused input active-high
line 7: unnamed unused input active-high
line 8: unnamed unused input active-high
line 9: unnamed unused input active-high
line 10: unnamed unused input active-high
line 11: unnamed unused input active-high
line 12: unnamed unused input active-high
line 13: unnamed unused input active-high
line 14: unnamed unused input active-high
line 15: unnamed unused input active-high
line 16: unnamed unused input active-high
line 17: unnamed unused input active-high
line 18: unnamed unused input active-high
line 19: unnamed unused input active-high
line 20: unnamed unused input active-high
line 21: unnamed unused input active-high
line 22: unnamed unused input active-high
line 23: unnamed unused input active-high
gpiochip1 - 16 lines:
line 0: unnamed unused input active-high
line 1: unnamed unused input active-high
line 2: unnamed unused input active-high
line 3: unnamed unused input active-high
line 4: unnamed unused input active-high
line 5: unnamed unused input active-high
line 6: unnamed unused input active-high
line 7: unnamed unused input active-high
line 8: unnamed unused input active-high
line 9: unnamed unused input active-high
line 10: unnamed unused input active-high
line 11: unnamed unused input active-high
line 12: unnamed unused input active-high
line 13: unnamed unused input active-high
line 14: unnamed "zbt-we826:green:power" output active-high [used]
line 15: unnamed "zbt-we826:green:usb" output active-high [used]
gpiochip2 - 1 lines:
line 0: unnamed "zbt-we826:green:wifi" output active-low [used]
-
- Posts: 3
- Joined: Mon Oct 29, 2018 4:54 pm
- Has thanked: 0
- Been thanked: 0
Re: WE826 GPIO, etc.
jfrog, did you get the list of gpio lines by using this command?
echo N > /sys/class/gpio/export
I ordered a WE826 and should be receiving it soon. I was hoping to be able to power toggle the WE826's USB port, but reviewing the supported ROOter routers indicates the WE826 doesn't appear to support USB port power toggling. Based on jfrog's dump of the WE826's current assignments, line 15 of gpiochip1 appears to allow interaction with the USB LED, but what about the actual USB port?
Do the unnamed and unused lines have any control over other parts of the WE826's board? If there's control over the USB port, I'm hoping to use commands such as:
ON
root@OpenWrt:/# echo 1 >/sys/class/gpio/gpiochip1/15
OFF
root@OpenWrt:/# echo 0 >/sys/class/gpio/gpiochip1/15
echo N > /sys/class/gpio/export
I ordered a WE826 and should be receiving it soon. I was hoping to be able to power toggle the WE826's USB port, but reviewing the supported ROOter routers indicates the WE826 doesn't appear to support USB port power toggling. Based on jfrog's dump of the WE826's current assignments, line 15 of gpiochip1 appears to allow interaction with the USB LED, but what about the actual USB port?
Do the unnamed and unused lines have any control over other parts of the WE826's board? If there's control over the USB port, I'm hoping to use commands such as:
ON
root@OpenWrt:/# echo 1 >/sys/class/gpio/gpiochip1/15
OFF
root@OpenWrt:/# echo 0 >/sys/class/gpio/gpiochip1/15
Re: WE826 GPIO, etc.
This is the exact kind of info I have been searching for. Completely new to these routers and I am using the WG8526. Looking to try and get three of the LED's working for 2.4 and 5 Ghz wireless and the third one for 3g/4g to be on when the 7565 is connected.
This thread is the only info I have been able to find.
This thread is the only info I have been able to find.