https://redmine.graphics-muse.org/https://redmine.graphics-muse.org/favicon.ico?16278048512019-05-21T01:28:49ZGraphics Muse Issue TrackerXeon - Feature #708: Need network config apphttps://redmine.graphics-muse.org/issues/708?journal_id=25352019-05-21T01:28:49ZHammelmjhammel@graphics-muse.org
<ul><li><strong>File</strong> <a href="/attachments/130">network-config.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/130/network-config.png">network-config.png</a> added</li><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>10</i></li></ul><p><img src="network-config.php" alt="" /></p>
<p>This is the imwww interface. I just need a GTK+ interface for the upper half, with an additional field for current IP address.</p> Xeon - Feature #708: Need network config apphttps://redmine.graphics-muse.org/issues/708?journal_id=25362019-05-23T18:06:29ZHammelmjhammel@graphics-muse.org
<ul></ul><p>The initial UI is ready. It has a builtin keyboard that was suprisingly easy to write, mostly because of the way I originally wrote the launcher to handle icon touch points. With the keyboard, each touch point is just that much smaller. However, it's only been tested on the desktop. I need to tear down the hardware and add a keyboard so I can get wifi config information to be able to test it on real hardware.</p>
<p>Anyway, the next step should be fairly simple. I need to gather the fields (which is already done in submit()) and pass them to piboxd. The way to do this can be seen in Ironman's imwww/php/settings-write.php:saveWireless(). It looks like this:<br /><pre>
$header = 0x00000903; // MT_NET, MA_SETWIRELESS
$size = strlen($msg);
socket_write($socket, pack("I", $header), 4);
socket_write($socket, pack("I", $size), 4);
socket_write($socket, $msg, strlen($msg));
</pre></p>
<p>where msg is a colon seperated set of values, as in:</p>
<pre><code>$msg = $ssid . ":" . $security . ":" . $pw;</code></pre>
<p>The security field can be sent as ordinary text - the backend pnc library handles that.</p> Xeon - Feature #708: Need network config apphttps://redmine.graphics-muse.org/issues/708?journal_id=25372019-05-23T21:36:19ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>10</i> to <i>40</i></li></ul><p>Actually, I already have an API for this in libpibox: piboxMsg(). There is an example in picam:</p>
<pre><code>piboxMsgSend(MT_STREAM, MA_START, 0, tag, strlen("webcam"), "webcam", NULL, 0);</code></pre>
<p>However, this is for a custom function in picam. The libpibox API is simpler. For xeonnc it would look like this:</p>
<pre>
(fill buf with colon delimited fields)
piboxMsg(MT_NET, MA_SETWIRELESS, 0, buf, strlen(buf), &returnBuf);
</pre>
<p>where returnBuf is a pointer to a buffer to hold the returned data. For setting the wireless there is no return data. But we'll also need</p>
<ul>
<li>getWireless - to fill in the fields initially</li>
<li>getIP - to get the IP address of the wifi interface</li>
</ul> Xeon - Feature #708: Need network config apphttps://redmine.graphics-muse.org/issues/708?journal_id=34812023-05-18T18:06:54ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Target version</strong> changed from <i>v0.1</i> to <i>Xeon 1.0 - Asimov</i></li><li><strong>% Done</strong> changed from <i>40</i> to <i>20</i></li></ul><p>Update after migration from custom hardware to PinePhone Pro.</p>
<p>This issue can easily be handled via the PiNet app. PiNet just needs to be ported (if any porting is required) to Xeon.</p>