Re: [OpenWrt-Devel] AR9344 Openwrt - LAN and WAN interface link issue

2015-10-28 Thread Afkar Rafique
Hi Jow, Thank you so much for the reply. Below is my /etc/config/network file config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option ifname 'eth0.1 eth1' option type 'bridge' option proto 'static'

Re: [OpenWrt-Devel] AR9344 Openwrt - LAN and WAN interface link issue

2015-10-28 Thread Afkar Rafique
Hi Jow, Thanks a lot for the reply. I have tried the switch command but getting failed response as below: root@openwrt:/# swconfig dev switch0 port 1 get link failed root@openwrt:/# swconfig dev switch0 port 2 get link failed root@openwrt:/# swconfig dev switch0 port 3 get link failed

[OpenWrt-Devel] AR9344 Openwrt - LAN and WAN interface link issue

2015-10-28 Thread Afkar Rafique
Hi, When I connect only LAN cable and check below command on console "cat /sys/class/net/eth0.1/carrier" will get "1" its correct but when we check "cat /sys/class/net/eth0.2/carrier" even the only LAN cable is connected it returns "1" but i didn't connect the WAN cable. The same thing if we

[OpenWrt-Devel] AR9344 Openwrt + check Multiple condition /etc/config/system

2015-10-21 Thread Afkar Rafique
I am working on AR9344 Openwrt. I have configured the status led based on eth0.2 trigger in /etc/config/system config led 'Status_led' option name 'Status_led' option interval '50' option sysfs 'db120:green:status' option default '0' option trigger 'netdev'

Re: [OpenWrt-Devel] How to config GPIO and read the GPIO value in OpenWRT

2015-10-18 Thread Afkar Rafique
itch only it works i mean to say suppose now slide switch in low state means Status LED is OFF then if i do reset the device then also the Status LED becomes ON. On Sun, Oct 18, 2015 at 6:07 AM, Hartmut Knaack <knaac...@gmx.de> wrote: > Afkar Rafique schrieb am 16.10.2015 um 03:47: &

Re: [OpenWrt-Devel] How to config GPIO and read the GPIO value in OpenWRT

2015-10-15 Thread Afkar Rafique
the time during runtime. During start of this script its working, but not getting how to make it work run time. Could you please explain how i can do it in gpio-button. On Fri, Oct 16, 2015 at 3:38 AM, Hartmut Knaack <knaac...@gmx.de> wrote: > Afkar Rafique schrieb am 15.10.2015 um 04:07:

[OpenWrt-Devel] How to config GPIO and read the GPIO value in OpenWRT

2015-10-14 Thread Afkar Rafique
Hi, I am working on AR9344 Openwrt. I need to configure the GPIO16 and read the status of GPIO. Based on GPIO read value, has to ON/OFF the status LED. Could anyone please explain how i can configure and read GPIO value. Regards, ___ openwrt-devel

Re: [OpenWrt-Devel] How to config GPIO and read the GPIO value in OpenWRT

2015-10-14 Thread Afkar Rafique
ting OFF even if GPIO16 value is "0". Can anyone please help on this On Thu, Oct 15, 2015 at 12:37 AM, Martin Blumenstingl < martin.blumensti...@googlemail.com> wrote: > On Wed, Oct 14, 2015 at 12:19 PM, Afkar Rafique <afkar...@gmail.com> > wrote: > > Could anyone

[OpenWrt-Devel] AR9344 OpenWRT LED Handling

2015-09-15 Thread Afkar Rafique
Hi Everyone, I have configured the /etc/config/system file as below: config led 'led_status' option name 'STATUS' option interval '50' option sysfs 'db120:green:status' option default '0' option trigger 'netdev' option mode 'link' option dev 'eth0.2' so It is working fine whenever i connect

[OpenWrt-Devel] Separate Default SSID for 2.4GHz and 5GHz

2015-08-06 Thread Afkar Rafique
Hi Everyone, I am working on AR93XX openWrt project. I have to configure the wifi0 as 2.4GHz and 5Ghz as per the selection of user. Mainly I have to add selection in the GUI to switch between 2.4GHz and 5GHz. I have to keep two separate default SSID for 2.4GHz and 5GHz. Could anyone can help me