Open main menu

DAVE Developer's Wiki β

Changes

Opening the local web application
* The edge device is [[ORCA_SBC|Orca SBC]] instead of SBCSPG gateway.
* Fledge and Fledge GUI were not installed by using <code>apt</code>. They were built on the target instead, even though the Linux distribution is still [[ORCA-TN-001_—_Running_Armbian_Bullseye_(Debian_11)|Debian 11]]. This approach may be more suited to address different situations. For instance, think about the case in which you have to develop new functionalities or test custom north/south plugins. At large, this set-up allows to develop the code on a PC host running the ''same'' distribution, and to migrate to the target later on when it is already tested and debugged thoroughly.
* As the target platform features an HDMI port, Fledge GUI can be displayed locally, too. This solution can be convenient for building products that require a local display without having to implement a new graphics application. Interestingly, this HDMI port is provided by a LVDS/HDMI bridge that, in turn, is connected to the LVDS native port of the i.MX8M Plus SoC. The display used for this test is [http://www.magedok.com/product02.html?id=157 Magedok T080A 8-inch touchscreen monitor].
==Building and running Fledge and Fledge GUI==
Create the file <code>/lib/systemd/system/weston.service</code> with the following contents:
‎<syntaxhighlight>
[Unit]
Description=Weston wayland compositor
[Install]
WantedBy=graphical.target
‎</syntaxhighlight>
/lib/systemd/system/weston.Then execute these commands in order to run it as a service:
<pre class="workstation-terminal">
armbian@sbcorca-00a5:~$ sudo touch /etc/default/weston
armbian@sbcorca-00a5:~$ sudo mkdir /root/weston
Reading package lists... Done
...
</pre> Create the file <code>/lib/systemd/system/browser.service</code> with the following contents:<syntaxhighlight>
[Unit]
Description=Chromium browser service
[Install]
WantedBy=graphical.target
</syntaxhighlight>
Start it as a service:
 <pre class="workstation-terminal">
armbian@sbcorca-00a5:~$ sudo systemctl enable browser
Created symlink /etc/systemd/system/graphical.target.wants/browser.service → /lib/systemd/system/browser.service.
</pre>
TBDIf everything works as expected, you will see the home page of the DAVE Embedded Systems' website: [[File:ORCA-TN-003-4.png|center|thumb|600x600px]]   ===Opening the local web application===To open the local web application, just replace https://www.dave.eu with http://localhost:4200 in <code>/lib/systemd/system/browser.service</code>. To make the change effective, issue the following commands:<pre class="workstation-terminal">armbian@sbcorca-00a5:~$ sudo systemctl daemon-reloadarmbian@sbcorca-00a5:~$ sudo systemctl restart browser</pre>The home page of Fledge GUI will be displayed: [[File:ORCA-TN-003-5.png|center|thumb|600x600px]]
4,650
edits