<p><a href="https://gerrit.osmocom.org/10687">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/10687/1//COMMIT_MSG">Commit Message:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10687/1//COMMIT_MSG@11">Patch Set #1, Line 11:</a> <code style="font-family:monospace,monospace">* Should modems==0 be allowed to be set?</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">It should be allowed for sure. You are not actually using a "modem" resource yet anyway, since afaiu the modems are still started manually at this current status.<br>Even when you start the several mobile applications with virtphy you may still run them without being allocated as "resources" since there may not be something unique you want to reserve (like a piece of HW).<br>It may be the case that you need a different IP addr for each mobile (which means a lot of IP addr). In that case, since some time ago I have been willing to implement "dynamic resources", that is resources which are automatically generated and don't require to be specified in resources.conf.</p><p style="white-space: pre-wrap; word-wrap: break-word;">In the case of IP addresses, that would be for instance an IP addr pool which would dynamically provide with IP addresses and assign it it a given interface (eg lo or eth depending on needs).</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10687/1//COMMIT_MSG@12">Patch Set #1, Line 12:</a> <code style="font-family:monospace,monospace">* I should compile/package the mobile and virtphy as well</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">And osmo-bts-virtual in contrib/jenkins-build-osmo-bts.sh.</p><p style="white-space: pre-wrap; word-wrap: break-word;">iirc virtphy and mobile are both in osmocom-bb.git. You can add them in contrib/jenkins-build-osmocom-bb.sh.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10687/1//COMMIT_MSG@13">Patch Set #1, Line 13:</a> <code style="font-family:monospace,monospace">* When executing suites shall we have a way to select only the</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">The only difference I foresee is basically making sure we match the type of interface we use to communicate between objects, that is: if we take real modems talking over the air, then we need a BTS which talks over the air. If modems selected go through virtphy, then BTS selected has to be through virtphy.</p><p style="white-space: pre-wrap; word-wrap: break-word;">This can be done through scenario files, not need to create a new suite for each virtual/non-virtual. See example/default-suites.conf to see different stuff we run nightly. For instance:<br>voice:nanobts+band-900+mod-bts0-ts-tchh+cfg-codec-hr3</p><p style="white-space: pre-wrap; word-wrap: break-word;">We take the voice suite (suites/voice/suite.conf), which requires 1 BTS and 2 modem. Then through scenarios we specify several stuff: </p><ul><li>Select first BTS to be of type nanobts (scenarios/nanobts.conf)</li><li>Select first BTS to support at least band GSM-900 (and-900.conf)</li><li>Modify the first BTS to use TCH/H timeslots (mod-bts0-ts-tchh.conf)</li><li>Configure all BSC with "codec-list hr3" (cfg-codec-hr3.conf).</li></ul><p style="white-space: pre-wrap; word-wrap: break-word;">So we can do something similar by:</p><ul><li>resources.conf: Add a BTS-virtual with type:osmo-bts-virtual (class not implemented yet).</li><li>Then create a new band called virtphy: "band:virtphy"</li><li>If you want to reuse existing tests with mobile+virtphy, apart from implementing the ModemOsmoMobile class, then add a bands list to modem resource to speicify which bands supports.</li></ul><p style="white-space: pre-wrap; word-wrap: break-word;">Then, to run the voice test with virtphy, you create scenarios something like:<br>voice:nanobts+band-virtphy+modem-band-virtphy.</p><p style="white-space: pre-wrap; word-wrap: break-word;">BTW, Regarding the ARFCN resources you see in resources.conf, they are not still used correctly, as proper algorithm to select them is needed: https://osmocom.org/issues/2230</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/10687">change 10687</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10687"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I5be2a6b4d3d21bf48625624b9e2cccb33765fe39 </div>
<div style="display:none"> Gerrit-Change-Number: 10687 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Holger Freyther <holger@freyther.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 29 Aug 2018 12:03:47 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>