Hi Patrik, 

The .config file should be correct as I can connect without having to introduce 
the credentials.
This is what I do:
Clear all wifi_xxxx_ directories.
Remove the .config file.
Restart the machine.
After boot, I list the services with connmanctl and found the hidden network.
Created the .config file.
Restart the machine.
After boot the connection is not automatically established.
I do a wifi disable + wifi enable And the connection is established correctly 
automatically.

Now every time I reboot the connection is automatically established.

Probably, tomorrow it will not and I'd had to do a wifi enable + disable in 
order to get connected, which is not acceptable for our customer :)

I start to suspect that it maybe has to do with the wlan controller 
configuration, but the customer says other devices do not have this problem.

Cheers.

-----Mensaje original-----
De: connman [mailto:[email protected]] En nombre de Patrik Flykt
Enviado el: miércoles, 08 de abril de 2015 20:22
Para: [email protected]
Asunto: Re: Provisioning hidden AP


        Hi,

On Wed, 2015-04-08 at 18:26 +0200, Pedro Erencia wrote:

> I created a .config with all the info (included the Hidden=true flag).
> I do a connmanctl, agent on and connect. I ask the questions and get 
> connected, but , let’s say the next day after having powering down, 
> the connection is not restablished automatically and when I try to 
> connect all the agent questions are asked again.

Did you specify a correct passphrase in the .config file? And your .config file 
follows the documentation in doc/config-format.txt, right? It must be mostly 
correct as you were able to connect, I'm just wondering if your passphrase is 
correct if it is asked via connmanctl.

> Update: I’ve done a little test after looking the debug logs. I copied 
> the wifi_xxx_123456 folder (123456 being the SSID of the hidden AP
> representation) as wifi_xxxx_hidden_xx (exactly as it is shown in the 
> connmanctl services command). It seems to work. So, do I need a file 
> like that in order to associate an SSID to a hidden network so the 
> provisioning file associated to that SSID could be used ? It does not 
> seems a good way, but I can’t find any documentation wrt.

These files obey a different syntax as the .config files and are internal to 
ConnMan. So it is very advisable not to touch /var/lib/connman/*/settings files 
at all. Just use the format and location from doc/config-format.txt and you 
have full support from the project.

Cheers,

        Patrik

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to