Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Restoring Function #431

Open
XPAWAN opened this issue Jul 29, 2019 · 3 comments
Open

How to use Restoring Function #431

XPAWAN opened this issue Jul 29, 2019 · 3 comments

Comments

@XPAWAN
Copy link
Contributor

XPAWAN commented Jul 29, 2019

I have started wpantund and add prefix to the network.
After wpantund restart I can see restoring logs "Restoring interface/user originated address/prefix/route entries on NCP" but the prefix is not restored.
How to use this feature correctly?

@abtink
Copy link
Member

abtink commented Jul 29, 2019

Hi,
Can you please help provide more details about the commands you used to add the prefix?
Thanks

@XPAWAN
Copy link
Contributor Author

XPAWAN commented Aug 5, 2019

Hi,
I was using following commands

	wpanctl leave
	sleep 1

	wpanctl reset
	sleep 2

	wpanctl setprop Network:Key --data "00112233445566778899AABBCCDDEEFF"
	wpanctl setprop Network:PANID 0xABCD
	wpanctl setprop Network:XPANID DEAD00BEEF00CAFE
	wpanctl setprop NCP:Channel 11
	wpanctl setprop Network:Name NordicOpenThread
	wpanctl setprop Network:PSKc E00F739803E92CB42DAA7CCE1D2A394D
	wpanctl attach

When switching to "associated" state I was adding a new prefix with command:

	wpanctl config-gateway -d fd11:22::

When this operation is done I am restarting wpantund and expecting that after seeing log
"Restoring interface/user originated address/prefix/route entries on NCP" this prefix is restored, but its not.

@abtink
Copy link
Member

abtink commented Aug 5, 2019

Thanks @XPAWAN

How are you restating wpantund? Note that wpantund does use RAM variable to save prefixes/addresses/routes, etc... and not a non-volatile memory. If you restart the wpantund process itself, it starts fresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants