Enable/disable Wi-Fi tethering when Wi-Fi dongle is not plugged in

2015-10-14 Thread Craig McQueen
I am working on a system where a USB dongle is used for Wi-Fi functionality. The Wi-Fi can be used in client or access point mode, configurable. However, it seems it's not possible to enable/disable tethering mode while the USB Wi-Fi device is not currently plugged in. E.g.: # connmanctl

Re: service state transition to failure

2015-10-14 Thread Patrik Flykt
On Tue, 2015-10-13 at 14:42 -0700, Naveen Singh wrote: > There is nothing that application knows that connman does not know. > In fact application gets to know through connman that connection did > not go through. The way application gets connected back is to initiate > a scan and hoping that one

connmanctl quitting before multiple return functions called

2015-10-14 Thread Craig McQueen
I've been looking into extending connmanctl's functionality with configuration for the net.connman.Clock API. I've been developing a command that can set clock properties, similar to the existing "config" command. I've noticed that when multiple parameters are set, then the 'return' function

Re: service state transition to failure

2015-10-14 Thread Grant Erickson
On Oct 13, 2015, at 11:01 PM, Patrik Flykt wrote: > On Tue, 2015-10-13 at 14:42 -0700, Naveen Singh wrote: > >> There is nothing that application knows that connman does not know. >> In fact application gets to know through connman that connection did >> not go

Re: How to provide DHCP on a technology

2015-10-14 Thread John Ernberg
Hi Patrik, On 10/13/2015 11:32 AM, Patrik Flykt wrote: > Hi, > > On Tue, 2015-10-13 at 08:49 +, John Ernberg wrote: > >> ConnMan runs on the embedded system, which is the USB host side. >> And when an USB gadget connects, I want to start a DHCP server on the >> interface provided by

RE: Timezone doesn't update when /etc/localtime symlink changes

2015-10-14 Thread Craig McQueen
> I've noticed that on ConnMan 1.30, net.connman.Clock property Timezone > isn't updating when /etc/localtime gets changed. > > I found this old message which sounds similar -- "[PATCH] timezone: Fix > timezone can't auto update, file localtime permission issue": >

Re: service state transition to failure

2015-10-14 Thread Patrik Flykt
Hi, On Tue, 2015-10-13 at 23:24 -0700, Grant Erickson wrote: > Due to these constraints, the application knows best when to scan and > does so at its discretion. Neither connman nor wpa_s autoscan > infrastructure scan at the application-desired times. When they do > scan automatically,

Re: Enable/disable Wi-Fi tethering when Wi-Fi dongle is not plugged in

2015-10-14 Thread Patrik Flykt
On Wed, 2015-10-14 at 17:53 +1100, Craig McQueen wrote: > I am working on a system where a USB dongle is used for Wi-Fi > functionality. The Wi-Fi can be used in client or access point mode, > configurable. However, it seems it's not possible to enable/disable > tethering mode while the USB Wi-Fi

Re: How to provide DHCP on a technology

2015-10-14 Thread Patrik Flykt
On Wed, 2015-10-14 at 06:40 +, John Ernberg wrote: > I made a ramdisk out of /var/ when I made the file system read only. > Nothing is however preserved after a reboot, and that has not been > problem for me yet. That's actually a problem, as /var (especially /var/lib) is the only location

Re: Timezone doesn't update when /etc/localtime symlink changes

2015-10-14 Thread Patrik Flykt
Hi, On Wed, 2015-10-14 at 17:42 +1100, Craig McQueen wrote: > > In my target system, /etc/localtime is a symlink into the > appropriate file > > under /usr/share/zoneinfo. > > I've tried making /etc/localtime an ordinary file, rather than a > symlink. But still ConnMan doesn't notice

Re: connmanctl quitting before multiple return functions called

2015-10-14 Thread Patrik Flykt
Hi, On Wed, 2015-10-14 at 17:49 +1100, Craig McQueen wrote: > I've been looking into extending connmanctl's functionality with > configuration for the net.connman.Clock API. I've been developing a > command that can set clock properties, similar to the existing > "config" command. > >

RE: Timezone doesn't update when /etc/localtime symlink changes

2015-10-14 Thread Craig McQueen
Patrik wrote: > > > I've noticed that on ConnMan 1.30, net.connman.Clock property Timezone > > > isn't updating when /etc/localtime gets changed. > > > > > > I found this old message which sounds similar -- "[PATCH] timezone: > > > Fix timezone can't auto update, file localtime permission issue":

[PATCH] connmanctl: Implement clock API with new clock commands

2015-10-14 Thread Craig McQueen
--- I'm not sure if you would like this use of commands. I'm interested not only in _setting_ clock settings, but also in reading them conveniently. The precedent in connmanctl is that there is one command to configure a service ('config'), and a separate command to see its properties

RE: connmanctl quitting before multiple return functions called

2015-10-14 Thread Craig McQueen
Patrik write: > On Wed, 2015-10-14 at 17:49 +1100, Craig McQueen wrote: > > I've been looking into extending connmanctl's functionality with > > configuration for the net.connman.Clock API. I've been developing a > > command that can set clock properties, similar to the existing > > "config"

Re: How to provide DHCP on a technology

2015-10-14 Thread John Ernberg
Hi Patrik On 10/14/2015 10:21 AM, Patrik Flykt wrote: > On Wed, 2015-10-14 at 06:40 +, John Ernberg wrote: > >> I made a ramdisk out of /var/ when I made the file system read only. >> Nothing is however preserved after a reboot, and that has not been >> problem for me yet. > That's actually

Re: How to provide DHCP on a technology

2015-10-14 Thread Patrik Flykt
Hi, On Wed, 2015-10-14 at 13:09 +, John Ernberg wrote: > All I know is that cdc_ether interfaces shows up as usb0, the eth0 > ethernet is a real ethernet port. When looking in /sys/class/net/usb0 > it indeed shows up as a gadget in the uevent file. This now looks like you are

RE: Enable/disable Wi-Fi tethering when Wi-Fi dongle is not plugged in

2015-10-14 Thread Craig McQueen
Patrik wrote: > On Wed, 2015-10-14 at 17:53 +1100, Craig McQueen wrote: > > I am working on a system where a USB dongle is used for Wi-Fi > > functionality. The Wi-Fi can be used in client or access point mode, > > configurable. However, it seems it's not possible to enable/disable > > tethering

Mailing list e-mails not received

2015-10-14 Thread Craig McQueen
Since about 24 hours ago (approx. 1 am 14-Oct-2015 UTC), I'm not getting any e-mails from the mailing list. I had to go on the list archive page to see messages. I realise it could be a problem with my local e-mail system. But other e-mails are coming through. And I tried to subscribe with my