Skip to content

Commit 0383a5f

Browse files
author
Luca Piccirillo
committed
Bump to version 0.7.6
README updated and includes HTTPS Fiddelr proxy run example
1 parent e2ff669 commit 0383a5f

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ To run this simulator,<br>
1313

1414
<b>To run:</b><br>
1515
<div class="highlight"><pre>
16-
java -jar target/tr069-0.7.5-SNAPSHOT.jar server simulator.yml<br>
16+
java -jar target/tr069-x.y.z-SNAPSHOT.jar server simulator.yml<br>
1717
</pre></div>
1818
Or simply doubleclick the batch launcher (for Windows).
19-
<b>Note:</b> Java must be available in your system.
19+
<b>Note:</b> Java 8 must be available in your system.
2020

2121
### agent.csv Configuration
2222

@@ -27,13 +27,16 @@ Or simply doubleclick the batch launcher (for Windows).
2727
- The simulator reports a ConnectionRequestURL constructed from the IP address, port, and the path configured in agent.csv
2828
- The Dump Location is a relative path to the folder containing the device configuration data
2929
- User name, password, and authentication type are used to authenticate the device with ACS
30+
- User agent for CPE SOAP HTTP requests
31+
- SOAP XML format processors to adapt flaky ACS implementations
32+
- The CPE serial number or a template to be auto incremented over the IP range
3033

3134
Some examples:<br>
3235
<div class="highlight"><pre>
3336
<span class="c1">startip, endip, acs_url, conn_req_url, http_port, periodic_inform, dump_location, username, password, authtype, useragent, xmlformat, sn_format, sn_numeric</span>
3437
<span class="kd">192.168.1.11, 192.168.1.11, http://tr069.me/tr069/ws?wsdl&probe=257ebf, /wsdl, 8035, 300, /dump/microcell/, user1, passwd1, basic, TR069 Simulator, normal, CPE_A</span>
35-
<span class="kd">192.168.1.51, 192.168.1.120, http://tr069.me/tr069/ws?wsdl&probe=257ebf, /wsdl, 8035, 300, /dump/microcell/, nouser, nopass, none, TR069 Simulator, stripdec, CPE%00d, 51</span>
36-
<span class="kd">192.168.2.211, 192.168.2.220, http://tr069.me/tr069/ws?wsdl&probe=257ebf, /wsdl, 8035, 300, /dump/microcell/, user1, passwd1, digest, , stripdec+faketypes</span>
38+
<span class="kd">192.168.1.51, 192.168.1.120, http://tr069.me/tr069/ws?wsdl&probe=257ebf, /wsdl, 8035, 300, /dump/microcell/, nouser, nopass, none, TR069 Simulator, stripdec, CPE_%00d, 51</span>
39+
<span class="kd">192.168.2.211, 192.168.2.220, http://tr069.me/tr069/ws?wsdl&probe=257ebf, /wsdl, 8035, 300, /dump/microcell/, user1, passwd1, digest, "MySIM, CWMP/1.0", stripdec+faketypes</span>
3740
</pre></div>
3841
First CPE IP Address <br>
3942
Last CPE IP Address<br>
@@ -46,23 +49,22 @@ ACS Management Server Username<br>
4649
ACS Management Server Password<br>
4750
ACS Management Server HTTP Auth Type (basic, digest, none)<br>
4851
CPE HTTP User Agent<br>
49-
XML Formatter Options<br>
50-
Serial Number Format (fixed or printf style to accomodate numeric)<br>
52+
XML Formatter Options (normal, stripdec, faketypes)<br>
53+
Serial Number Format (fixed or printf style to accomodate numeric auto-increment)<br>
5154
Serial Number Numeric (integer, incremented for each agent in IP interval)<br>
5255

5356
You can modify these parameters according to your requirements. To simulate multiple CPE devices, provide the start and<br>
5457
end ipaddress. Periodic Inform Interval is in seconds. Simulator will send Inform request based on this parameter.<br><br>
5558

56-
Dump Location Path is the directory path where simulator will read and load the CPE data. <br>
59+
Dump Location Path is the directory path where simulator will read and load the CPE data model template.<br>
5760
Simulator will check for two set of files.<br>
58-
<b>1. getvalues.txt</b><br>
59-
<b>2. getnames.txt</b><br>
61+
- getvalues.txt
62+
- getnames.txt
6063

6164
getvalues.txt contains Name/Value data as XML Nodes. Simulator will respond to the ACS Server based on this Name/Value Pair.<br>
6265
getnames.txt contains ParameterInfoStruct XML Nodes. Access detail about the parameters are retrieved from this file.
6366
<br>
64-
Currently, Femtocell device dump is being bundled with the JAR. If users wish to simulate a different CPE, either they need to <br>
65-
create these two XML files manually, or they need to take a dump from the real CPE device by reading the GetParameterValuesResponse
67+
Currently, microcell device data model dump is being included with this repo and bundled in the JAR. If you wish to simulate a different CPE, either they need to create these two XML files manually, or they need to take a dump from the real CPE device by reading the GetParameterValuesResponse
6668
and GetParameterNamesResponse for root node (e.g. InternetGatewayDevice, Device, ...).<br>
6769

6870
If the ACS Server supports HTTP Authentication, provide the username, password and authentication type. basic and digest
@@ -76,7 +78,7 @@ methods are currently supported. If authentication is not supported, leave auth
7678

7779
### SDK Requirements
7880

79-
- JDK >=1.7
81+
- JDK 1.8, newer JDK do not include necessary JIBX libriaries and tooling
8082

8183
<br>
8284

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>tr069</groupId>
99
<artifactId>tr069-simulator</artifactId>
10-
<version>0.7.5-SNAPSHOT</version>
10+
<version>0.7.6-SNAPSHOT</version>
1111
<name>TR069 Simulator</name>
1212
<repositories>
1313
<repository>

run.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
cd "%~dp0"
2-
java -jar target/tr069-simulator-0.7.5-SNAPSHOT.jar server simulator.yml
2+
java -jar target/tr069-simulator-0.7.6-SNAPSHOT.jar server simulator.yml

run_with_fiddler.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cd "%~dp0"
2+
java -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888 -Djavax.net.ssl.trustStore=FiddlerKeystore -Djavax.net.ssl.trustStorePassword=fiddler -jar target/tr069-simulator-0.7.6-SNAPSHOT.jar server simulator.yml
3+
4+
rem "jre1.8.0_231\bin\keytool.exe" -import -file FiddlerRoot.cer -J-Duser.language=en -keystore FiddlerKeystore -alias Fiddler

run_with_proxy.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
cd "%~dp0"
2-
java -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888 -jar target/tr069-0.7.0-SNAPSHOT.jar server simulator.yml
2+
java -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888 -jar target/tr069-simulator-0.7.6-SNAPSHOT.jar server simulator.yml

0 commit comments

Comments
 (0)