On 11/03/13 16:03, Jukka Rissanen wrote:
On 11.03.2013 17:53, Jack Mitchell wrote:
On 11/03/13 15:38, Jukka Rissanen wrote:
Hi Jack,
On 11.03.2013 17:06, Jack Mitchell wrote:
I am attempting to use Ethernet provisioning to fulfil my use case,
and
I'm struggling.
My setup is as follows:
Headless device (embedded)
- Ethernet
- Serial
1) Firmware is flashed with ethernet provisioning to 192.168.0.180
(default 'factory' settings)
[global]
Name = Wired
Description = Wired network configuration
[service_ethernet]
Type = ethernet
IPv4 = 192.168.0.180/255.255.255.0/192.168.0.1
2) User sets IP address (manual or dhcp), application sets through
connman via dbus
3) On reboot last configuration is used
What actually happens is this:
1) Firmware is flashed, ethernet provisioning works
2) IP can be set to either DHCP or Manual, however this creates a new
service for the Ethernet adapter, e.g.
Provisioned IP: 192.168.0.180
user sets to dhcp, new IP is 192.168.0.47; device can now be
accessed at
either .180 OR .47
The device has two IP address'
3) Reboots, IP provisioning returns, DHCP settings are lost.
Is this a valid use case?
Cheers,
Jack.
If you use the .config file to provision ethernet service, then end
user should not be able to change the IP address as the ethernet
service should become immutable.
So are you just speculating above or are you able to change the
ethernet IP address afterwards? If latter, then you found a bug.
Cheers,
Jukka
Hi Jukka,
Yes I can change the IP address with ethernet provisioning enabled. If I
Ok, there is a bug then in connman :(
wanted to come out of provisioning and into user configured how would I
do that? Remove the provisioning file and then make setting changes?
Yes
Is it valid to manipulate the .config live? I see changing the IP
address works (instantly) but is it allowed...?
Cheers,
Jack.
Cheers,
Jukka
--
Jack Mitchell ([email protected])
Embedded Systems Engineer
http://www.embed.me.uk
--
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman