RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
No Format |
---|
# IMPORTANT: Modify Device.LocalAgent.Controller.1.MTP.1.WebSocket.Host with the IP address of your CDRouter Device.LocalAgent.Controller.1.EndpointID "proto::controller-id" Device.LocalAgent.EndpointID "proto::agent-id" Device.LocalAgent.Controller.1.MTP.1.Protocol "WebSocket" Device.LocalAgent.Controller.1.MTP.1.WebSocket.Host "192.168.100.128" Device.LocalAgent.Controller.1.MTP.1.WebSocket.Port "80" Device.LocalAgent.Controller.1.MTP.1.WebSocket.Path "/controller-path" Device.LocalAgent.Controller.1.MTP.1.WebSocket.EnableEncryption "false" Device.LocalAgent.Controller.1.MTP.1.WebSocket.KeepAliveInterval "2000" Device.LocalAgent.Controller.1.MTP.1.WebSocket.SessionRetryMinimumWaitInterval "5" Device.LocalAgent.Controller.1.MTP.1.WebSocket.SessionRetryIntervalMultiplier "2000" Device.LocalAgent.Controller.1.MTP.1.Enable "true" Device.LocalAgent.MTP.1.Enable "true" Device.LocalAgent.MTP.1.Protocol "WebSocket" Device.LocalAgent.MTP.1.WebSocket.Port "80" Device.LocalAgent.MTP.1.WebSocket.Path "/agent-path" Device.LocalAgent.MTP.1.WebSocket.EnableEncryption "false" Device.LocalAgent.MTP.1.WebSocket.KeepAliveInterval "2000" Device.LocalAgent.Controller.1.Alias "cpe-1" Device.LocalAgent.Controller.1.Enable "true" Device.LocalAgent.Controller.1.AssignedRole "Device.LocalAgent.ControllerTrust.Role.1" Device.LocalAgent.Controller.1.PeriodicNotifInterval "600" Device.LocalAgent.Controller.1.PeriodicNotifTime "0001-01-01T00:00:00Z" Device.LocalAgent.Controller.1.USPNotifRetryMinimumWaitInterval "5" Device.LocalAgent.Controller.1.USPNotifRetryIntervalMultiplier "2000" Device.LocalAgent.Controller.1.ControllerCode "" Internal.Reboot.Cause "LocalFactoryReset" |
The following instructions are for configuring CDRouter for testing with a RPi running RDK-B. Some tweaking may be necessary with other devices.
First add a new You will need to add a configuration using the CDRouter Web GUI, then replace the "USP Add-On" section in the configuration with the text below.
Then you will need to create a test package containing the tests to run. For example the tests from the USP -> usp.tcl groupmodify the following testvars:
No Format |
---|
testvar wanIspIp 192.168.100.1
testvar wanIspMask 255.255.255.240 |
If you don't connect CDRouter's designated LAN port to RPi using an ethernet to USB dongle, then you must connect a network switch to CDRouter's designated LAN port instead and set the lanMode testvar to 'static':
No Format |
---|
testvar lanMode static |
Replace the "USP Add-On" section in the configuration with the text below.
If you are testing using a different MTP than STOMP, modify the testvar uspControllerMTP appropriately.
No Format |
---|
SECTION "CDRouter USP Add-On" { testvar supportsUSP yes SECTION "Basic Controller Configuration" { # testvar uspControllerID proto::controller-id # testvar uspControllerInterface wan # testvar uspControllerIpMode ipv4-only testvar uspControllerIpv4 192.168.100.128 # testvar uspControllerIpv6 6000::2 # testvar uspControllerPort auto # testvar uspControllerPath /controller-path testvar uspControllerUseNonPayloadProtection no testvar uspControllerUseSessionContext no testvar uspControllerMTP stomp testvar uspControllerMTPEncryption no # testvar uspControllerUSPEncryption no # testvar uspControllerDomain controller.cdroutertest.com # testvar uspSegmentationEnable no # testvar uspSegmentationSize auto testvar uspControllerMTPCertPath /usr/cdrouter/tests/cdroutertest.pem # testvar uspControllerMTPCaCertPath /usr/cdrouter/tests/eco_agent_root.crt # testvar uspControllerUSPCaCertPath /usr/cdrouter/tests/wildcard.cdroutertest.com-ca.pem # testvar uspControllerUSPCertPath /usr/cdrouter/tests/wildcard.cdroutertest.com.pem # testvar uspControllerSenderCertPath /usr/cdrouter/tests/wildcard.cdroutertest.com.pem testvar uspControllerVerifyRecordIntegrity no # testvar uspControllerHost any # testvar uspControllerUsername qacafe # testvar uspControllerPassword qacafe123 } SECTION "Basic Agent Configuration" { # testvar uspAgentID proto::agent-id # testvar uspAgentIpv4 auto # testvar uspAgentIpv6 auto # testvar uspAgentPort auto # testvar uspAgentPath /agent-path # testvar uspMessageTimeout 30 } SECTION "USP Scenarios" { # testvar uspScenarioPath /home/dev/myUSPScenario.usp # testvar uspScenarioSingleMode no # testvar uspScenarioBootstrap /home/dev/myBootstrapScenario.usp } SECTION "Data Model" { # testvar uspSkipParameters empty # testvar uspModifyParameters empty # testvar uspSupportedDataModel all SECTION "Custom USP Data Model" { IGNORE testvar_group usp_profile_1 { # testvar uspProfileName myVendorParameters # testvar uspProfilePath /home/dev/myVendorParameters.xml } } } SECTION "USP Agent Data Model Configuration" { testvar uspParameterPath1 Device.DeviceInfo.ManufacturerOUI testvar uspParameterPath2 Device.IP.Interface.1.Name testvar uspMissingParameterPath Device.DeviceInfo.DeviceCategory testvar uspExternallyChangeableParam Device.LocalAgent.Controller.1.MTP.1.CoAP.Host # testvar uspNotificationParamManualChange yes # testvar uspNotificationParamNewValue myCustomParameterValue testvar uspObject1 Device.Bridging.Bridge. testvar uspObject2 Device.RouterAdvertisement.InterfaceSetting. testvar uspValidSearchPath {Device.IP.Interface.[Name=="brlan0"].} testvar uspValidSearchPathResultParam Alias testvar uspValidSearchPathResultValue "Primary LAN" testvar uspFirmwareImage /home/qacafe/imageC.txt testvar uspOriginalFirmwareImage /home/qacafe/imageA.txt testvar uspInactiveFirmwareSlot Device.DeviceInfo.FirmwareImage.2 } } |
Finally you will need to create a test package containing the tests to run. For example the tests from the USP -> usp.tcl group.