EasyCwmp - easycwmp
View Issue Details
0000019easycwmp[All Projects] Helppublic2014-10-21 05:082014-10-28 14:03
0000019: Run the easycwmp support RPC method [AddOject] problem from OpenACS
The Default script as below:

logger("=======>increase node AddOject<=======");
cpe.AddObject ('InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.PortMapping.','');
cpe.AddObject ('InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.','');
The output from jboss :

INFO: Request is Inform
INFO: oui=FFFFFF sn=FFFFFF123456 oui=FFFFFF, sn=FFFFFF123456, URL=, [^] hw=v0.153, sw=v1.553, cfg=null, ProvisioningCode=
INFO: FFFFFF:FFFFFF123456 Configurator::run
INFO: FFFFFF:FFFFFF123456 Backup cwmp tree
INFO: FFFFFF:FFFFFF123456 Configurator::CheckParameters
INFO: oui=FFFFFF sn=FFFFFF123456 Request is GetParameterValuesResponse
INFO: =======>increase node AddOject<=======
INFO: oui=FFFFFF sn=FFFFFF123456 Request is Fault
SEVERE: FFFFFF:FFFFFF123456 Run exception: [object Object] line: 0 column: 0
11:04:53,549 INFO [STDOUT] Received: null
11:04:53,550 INFO [STDOUT] End of processing
No tags attached.
jpg ADDobject-CWMPvaluestree.jpg (164,894) 2014-10-23 05:20

jpg cwmp values tree_LanDev.JPG (63,750) 2014-10-24 11:29

jpg cwmp values tree.JPG (53,581) 2014-10-24 11:29
Issue History
2014-10-21 05:08janmusNew Issue
2014-10-22 15:10AnisNote Added: 0000080
2014-10-23 05:20janmusNote Added: 0000082
2014-10-23 05:20janmusFile Added: ADDobject-CWMPvaluestree.jpg
2014-10-23 08:10janmusNote Edited: 0000082bug_revision_view_page.php?bugnote_id=82#r79
2014-10-24 09:37janmusNote Edited: 0000082bug_revision_view_page.php?bugnote_id=82#r82
2014-10-24 09:42janmusNote Edited: 0000082bug_revision_view_page.php?bugnote_id=82#r83
2014-10-24 10:12AnisNote Added: 0000085
2014-10-24 10:13AnisNote Edited: 0000085bug_revision_view_page.php?bugnote_id=85#r85
2014-10-24 10:14AnisNote Edited: 0000085bug_revision_view_page.php?bugnote_id=85#r86
2014-10-24 10:15AnisNote Edited: 0000085bug_revision_view_page.php?bugnote_id=85#r87
2014-10-24 10:16AnisNote Edited: 0000085bug_revision_view_page.php?bugnote_id=85#r88
2014-10-24 11:28AnisNote Added: 0000086
2014-10-24 11:29AnisFile Added: cwmp values tree_LanDev.JPG
2014-10-24 11:29AnisFile Added: cwmp values tree.JPG
2014-10-24 11:45janmusNote Added: 0000087
2014-10-24 11:56janmusNote Edited: 0000087bug_revision_view_page.php?bugnote_id=87#r90
2014-10-24 11:57janmusNote Edited: 0000087bug_revision_view_page.php?bugnote_id=87#r91
2014-10-27 11:37AnisNote Added: 0000089
2014-10-27 13:53janmusNote Added: 0000090
2014-10-28 04:25janmusNote Edited: 0000090bug_revision_view_page.php?bugnote_id=90#r101
2014-10-28 04:47janmusNote Edited: 0000090bug_revision_view_page.php?bugnote_id=90#r102
2014-10-28 14:03AnisStatusnew => resolved
2014-10-28 14:03AnisResolutionopen => fixed
2014-10-28 14:03AnisAssigned To => Anis

2014-10-22 15:10   
Please check the permission flag of the object. Because you can add an object instance for only the object with attribute "writable" equal to 1.

check this with the following cmd:
root@OpenWrt:~# easycwmp --json get name "" 0

{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.", "fault_code": "", "writable": "0" }

try with this object :
logger("=======>increase node AddOject<=======");
cpe.AddObject ('InternetGatewayDevice.LANDevice.1.WLANConfiguration.', '');
2014-10-23 05:20   
(edited on: 2014-10-24 09:42)
I try the test that the result is OK,
But, I can not see the object be added to "CWMP values tree",
Please see the attached file (ADDobject-CWMPvaluestree.jpg).

Then,I try an another test as below:
cpe.AddObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.', '');
The result is fail,
Error messages seem to be almost as big as the previous.

2014-10-24 10:12   
(edited on: 2014-10-24 10:16)
when you add object you should not add the instance number.
cpe.AddObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.', '');

this done by the cpe.

2014-10-24 11:28   
I use OpenACS, and all object of "InternetGatewayDevice." exist in "CWMP values tree" section.

see attached file
2014-10-24 11:45   
(edited on: 2014-10-24 11:57)
Yes, I see . Thank you !
I use the OpenACS at my Virtual machine,
But mine testing result different from you.

Could you send me your OpenACS IP for testing

MY e-mail : janmus.chan@gmail.com

Thank you very mush !

2014-10-27 11:37   
I use OpenACS installed on my pc.
Currently, we don't have an ACS server for public access.

Thank you
2014-10-27 13:53   
(edited on: 2014-10-28 04:47)
OK, Thank you.

One thing I later found,
my source server may not be the OpenACS,But LibreACS(the fork of OpenACS)
I don't clear, What is the difference between OpenACS and LibreACS.

In addition to ,I can not find OpenACS images from internet release, but LibreACS.
Do you have a virtual machine version of OpenACS, available for download ?