Connman test in C#

2015-01-29 Thread techi eth
Hi All,



Do we have any sample test written in C# for testing connman ?



I am trying to integrate one of my C# application running on Linux with
connman.



Regards,

Techi
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Wi-Fi in Dual mode using connman

2015-01-22 Thread techi eth
Tether works!!! Many Thanks!!!

What is the way i can get list of client connected from AP.I couldn't get
anything out from connmanctl.

Regarding using both STA  AP point : I have only single Wi-Fi Card  i
could able to get both working by using Wpa_Supplicant (STA)  hostapd
(AP).I am not expert but just usability point of view  is their any issue
to have both in connman as well.It will add one more capability to connman.

On Thu, Jan 22, 2015 at 1:49 PM, Patrik Flykt patrik.fl...@linux.intel.com
wrote:

 On Thu, 2015-01-22 at 11:23 +0530, techi eth wrote:
  connmanctl tether wifi on
  Error enabling wifi tethering: Invalid arguments
 
  Please give me hint what is missing.

 Try with 'tether wifi on ssid passphrase' if neither has been set
 before.

  It will be help-full to me if I will get some hint why connman can't
  handle both the mode simultaneously (I already prove from above steps
  that it is working so it can't be Hardware)

 ConnMan was designed to be sensible and useful for the majority of use
 cases which usually have only a single WiFi card. Access point selection
 in a multi-WiFi card case will need some additional coding to get
 correct, as is the case when attempting to connect to the other card
 while tethering is enabled.

 Cheers,

 Patrik



 ___
 connman mailing list
 connman@connman.net
 https://lists.connman.net/mailman/listinfo/connman

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Wi-Fi in Dual mode using connman

2015-01-21 Thread techi eth
I am trying connman as suggested by Patrik,I am able to connect with AP but
getting below error when trying for tethering

connmanctl tether wifi on
Error enabling wifi tethering: Invalid arguments

Please give me hint what is missing.

It will be help-full to me if I will get some hint why connman can't handle
both the mode simultaneously (I already prove from above steps that it is
working so it can't be Hardware)

Thanks

On Tue, Jan 20, 2015 at 9:43 AM, techi eth techi...@gmail.com wrote:

 Hi,

 I am not sure if i have clearly explain my view.My comment against below
 point.

 But AP and STA modes are mutually exclusive as an AP needs to be
 available all the time.

 With below steps i could able to use both at same time.

 /*** Setting AP Mode*/
 #iw phy phy0 interface add wlan1 type managed
 #ifconfig wlan1 10.4.30.34 netmask 255.255.255.0 up
 #hostapd /etc/hostapd.conf 
 #udhcpd /etc/udhcpd.conf
 #iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE

 /***Setting STA mode/
 #ifconfig wlan0 up
 #wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B
 #udhcpc -R -b -p /var/run/udhcpc.wlan0.pid -i wlan0
 #echo 1  /proc/sys/net/ipv4/ip_forward

 Is this is possible with connman as well 

 Thanks

 -- Forwarded message --
 From: techi eth techi...@gmail.com
 Date: Fri, Jan 16, 2015 at 5:44 PM
 Subject: Re: Wi-Fi in Dual mode using connman
 To: connman@connman.net


 Thanks for answer.

 I have tried below steps (Part of TI Wiki). I could able to use both mode
 (AP+STA) at same time.

 /*** Setting AP Mode*/
 #iw phy phy0 interface add wlan1 type managed
 #ifconfig wlan1 10.4.30.34 netmask 255.255.255.0 up
 #hostapd /etc/hostapd.conf 
 #udhcpd /etc/udhcpd.conf
 #iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE

 /***Setting STA mode/
 #ifconfig wlan0 up
 #wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B
 #udhcpc -R -b -p /var/run/udhcpc.wlan0.pid -i wlan0
 #echo 1  /proc/sys/net/ipv4/ip_forward

 Is this is possible with connman as well 

 Thanks

 On Fri, Jan 2, 2015 at 1:20 PM, Patrik Flykt patrik.fl...@linux.intel.com
  wrote:

 On Tue, 2014-12-30 at 19:02 +0530, techi eth wrote:

  AP Requirement : I want any other STA will get connected to my Wi-Fi
 board
   i will serve the request without using internet.

 # connmanctl tether wifi

 No need to have an uplink Internet connection to make this work.

  STA Requirement : I want to connect through other AP (Ex : Wi-Fi router)
  for internet connection to send data outside.

 # connmanctl
 connmanctl scan wifi
 connmanctl agent on
 connmanctl connect wifi_X_Y

 But AP and STA modes are mutually exclusive as an AP needs to be
 available all the time.

 Cheers,

 Patrik
  Thanks
  ___
  connman mailing list
  connman@connman.net
  https://lists.connman.net/mailman/listinfo/connman


 ___
 connman mailing list
 connman@connman.net
 https://lists.connman.net/mailman/listinfo/connman




___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: wifi scan error

2015-01-21 Thread techi eth
Error got solved after after setting correct permission for
 dbus-daemon-launch-helper.

http://f7t.fr/blog/?p=165

Now connman is working fine on my setup.

Thanks




On Tue, Jan 20, 2015 at 12:52 PM, techi eth techi...@gmail.com wrote:

 Hi,


 When I try to wifi scan I am getting error.Please find below result of
 scan   technologies command.


 Please suggest me solution ?

 ---

 root@test-board:#connmanctl scan wifi

 Error /net/connman/technology/wifi: Not supported


 root@test-board:# connmanctl technologies

 /net/connman/technology/ethernet

   Name = Wired

   Type = ethernet

   Powered = True

   Connected = True

   Tethering = False

 /net/connman/technology/wifi

   Name = WiFi

   Type = wifi

   Powered = True

   Connected = False

   Tethering = False

 /net/connman/technology/bluetooth

   Name = Bluetooth

   Type = bluetooth

   Powered = True

   Connected = False

   Tethering = False

 ---


 connman version : 1.26

 

 Thanks



___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Fwd: Wi-Fi in Dual mode using connman

2015-01-19 Thread techi eth
Hi,

I am not sure if i have clearly explain my view.My comment against below
point.

But AP and STA modes are mutually exclusive as an AP needs to be
available all the time.

With below steps i could able to use both at same time.

/*** Setting AP Mode*/
#iw phy phy0 interface add wlan1 type managed
#ifconfig wlan1 10.4.30.34 netmask 255.255.255.0 up
#hostapd /etc/hostapd.conf 
#udhcpd /etc/udhcpd.conf
#iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE

/***Setting STA mode/
#ifconfig wlan0 up
#wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B
#udhcpc -R -b -p /var/run/udhcpc.wlan0.pid -i wlan0
#echo 1  /proc/sys/net/ipv4/ip_forward

Is this is possible with connman as well 

Thanks

-- Forwarded message --
From: techi eth techi...@gmail.com
Date: Fri, Jan 16, 2015 at 5:44 PM
Subject: Re: Wi-Fi in Dual mode using connman
To: connman@connman.net


Thanks for answer.

I have tried below steps (Part of TI Wiki). I could able to use both mode
(AP+STA) at same time.

/*** Setting AP Mode*/
#iw phy phy0 interface add wlan1 type managed
#ifconfig wlan1 10.4.30.34 netmask 255.255.255.0 up
#hostapd /etc/hostapd.conf 
#udhcpd /etc/udhcpd.conf
#iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE

/***Setting STA mode/
#ifconfig wlan0 up
#wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B
#udhcpc -R -b -p /var/run/udhcpc.wlan0.pid -i wlan0
#echo 1  /proc/sys/net/ipv4/ip_forward

Is this is possible with connman as well 

Thanks

On Fri, Jan 2, 2015 at 1:20 PM, Patrik Flykt patrik.fl...@linux.intel.com
wrote:

 On Tue, 2014-12-30 at 19:02 +0530, techi eth wrote:

  AP Requirement : I want any other STA will get connected to my Wi-Fi
 board
   i will serve the request without using internet.

 # connmanctl tether wifi

 No need to have an uplink Internet connection to make this work.

  STA Requirement : I want to connect through other AP (Ex : Wi-Fi router)
  for internet connection to send data outside.

 # connmanctl
 connmanctl scan wifi
 connmanctl agent on
 connmanctl connect wifi_X_Y

 But AP and STA modes are mutually exclusive as an AP needs to be
 available all the time.

 Cheers,

 Patrik
  Thanks
  ___
  connman mailing list
  connman@connman.net
  https://lists.connman.net/mailman/listinfo/connman


 ___
 connman mailing list
 connman@connman.net
 https://lists.connman.net/mailman/listinfo/connman

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


wifi scan error

2015-01-19 Thread techi eth
Hi,


When I try to wifi scan I am getting error.Please find below result of scan
  technologies command.


Please suggest me solution ?

---

root@test-board:#connmanctl scan wifi

Error /net/connman/technology/wifi: Not supported


root@test-board:# connmanctl technologies

/net/connman/technology/ethernet

  Name = Wired

  Type = ethernet

  Powered = True

  Connected = True

  Tethering = False

/net/connman/technology/wifi

  Name = WiFi

  Type = wifi

  Powered = True

  Connected = False

  Tethering = False

/net/connman/technology/bluetooth

  Name = Bluetooth

  Type = bluetooth

  Powered = True

  Connected = False

  Tethering = False

---


connman version : 1.26



Thanks
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Wi-Fi in Dual mode using connman

2015-01-16 Thread techi eth
Thanks for answer.

I have tried below steps (Part of TI Wiki). I could able to use both mode
(AP+STA) at same time.

### Setting AP Mode
iw phy phy0 interface add wlan1 type managed
ifconfig wlan1 10.4.30.34 netmask 255.255.255.0 up
hostapd /etc/hostapd.conf 
udhcpd /etc/udhcpd.conf
iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE

### Setting STA mode
ifconfig wlan0 up
wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B
udhcpc -R -b -p /var/run/udhcpc.wlan0.pid -i wlan0
echo 1  /proc/sys/net/ipv4/ip_forward

Is this is possible with connman as well 

Thanks

On Fri, Jan 2, 2015 at 1:20 PM, Patrik Flykt patrik.fl...@linux.intel.com
wrote:

 On Tue, 2014-12-30 at 19:02 +0530, techi eth wrote:

  AP Requirement : I want any other STA will get connected to my Wi-Fi
 board
   i will serve the request without using internet.

 # connmanctl tether wifi

 No need to have an uplink Internet connection to make this work.

  STA Requirement : I want to connect through other AP (Ex : Wi-Fi router)
  for internet connection to send data outside.

 # connmanctl
 connmanctl scan wifi
 connmanctl agent on
 connmanctl connect wifi_X_Y

 But AP and STA modes are mutually exclusive as an AP needs to be
 available all the time.

 Cheers,

 Patrik
  Thanks
  ___
  connman mailing list
  connman@connman.net
  https://lists.connman.net/mailman/listinfo/connman


 ___
 connman mailing list
 connman@connman.net
 https://lists.connman.net/mailman/listinfo/connman

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Wi-Fi in Dual mode using connman

2014-12-30 Thread techi eth
Hi,

Is it possible to configure Wi-Fi module as STA  AP using connman ?

AP Requirement : I want any other STA will get connected to my Wi-Fi board
 i will serve the request without using internet.

STA Requirement : I want to connect through other AP (Ex : Wi-Fi router)
for internet connection to send data outside.

Thanks
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman