Open main menu

DAVE Developer's Wiki β

Changes

XELK-AN-005: Qt5 application remoted using VNC server

211 bytes added, 15:27, 5 November 2020
no edit summary
{{InfoBoxTop}}
{{AppliesToAxelLite}}
{{AppliesToAXEL Lite AN}}
{{AppliesToSMARX AN}}
{{InfoBoxBottom}}
== History ==
==VNC==
Starting from original Yocto based root file system provided [http://mirror.dave.eu/axel/xelk-3.0.1/xelk-3.0.1_dave-image-devel.tar.bz2 here], more packages need to be added for using the well known [https://www.realvnc.com/en/connect/download/viewer/ VNC] remote desktop (screen sharing) application.
We assume that network interface has been already configured for Internet access. In any case, simple configuration can be done directly on serial console with the following commands:
==Connection ==
On a Windows PC, it is possible to start a the VNC viewer, like [http://www.uvnc.com/downloads/ultravnc.html UltraVNC Viewer], and selecting the SBCX board's IP address:
[[File:Ultravnc-viewer.png|thumb|center|400px|UltraVNC Viewer running on Windows PC]]
On the target, the VNC server shows the remote connection is accepted:
<pre class="board-terminal">
14/02/2018 0609:4451:58 29 Got connection from client 192.168.0.2114/02/2018 0609:4451:58 29 other clients:14/02/2018 0609:4451:58 29 Normal socket connection14/02/2018 0609:4451:58 29 incr accepted_client=1 for 192.168.0.21:60116 62093 sock=914/02/2018 0609:4451:58 29 Client Protocol Version 3.814/02/2018 0609:4451:58 29 Protocol version sent 3.8, using 3.814/02/2018 0609:4451:58 29 rfbProcessClientSecurityType: executing handler for type 1214/02/2018 09:51:33 client useCopyRect: 192.168.0.21 014/02/2018 0609:4451:58 rfbProcessClientSecurityType33 client_set_net: returning securityResult for client rfb version >= 3192.168.0.21 0.8031014/02/2018 0609:4451:58 33 Pixel format for client 192.168.0.21:14/02/2018 0609:4451:58 33 16 bpp, depth 16, little endian14/02/2018 0609:4451:58 33 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 014/02/2018 0609:4451:58 33 no translation needed14/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000A)14/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex14/02/2018 0609:4451:58 33 Using compression level 6 for client 192.168.0.2114/02/2018 0609:4451:58 33 Enabling full-color cursor updates for client 192.168.0.2114/02/2018 0609:4451:58 33 Enabling cursor position updates for client 192.168.0.2114/02/2018 0609:4451:58 33 Using image quality level 6 for client 192.168.0.2114/02/2018 0609:4451:58 33 Using JPEG subsampling 0, Q79 for client 192.168.0.2114/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable14/02/2018 0609:4451:58 33 Enabling LastRect protocol extension for client 192.168.0.2114/02/2018 0609:4451:58 33 Enabling NewFBSize protocol extension for client 192.168.0.2114/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type cacheEnable14/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)14/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)14/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)14/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8003)14/02/2018 0609:4451:58 33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)14/02/2018 0609:4451:58 33 Using ZRLE encoding for client 192.168.0.2114/02/2018 0609:4451:58 34 Pixel format for client 192.168.0.21:14/02/2018 0609:4451:58 34 16 bpp, depth 16, little endian14/02/2018 0609:4451:58 34 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 014/02/2018 0609:4451:58 34 no translation needed14/02/2018 0609:4451:58 34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000A)14/02/2018 0609:4451:58 34 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex14/02/2018 0609:4451:58 34 Using compression level 6 for client 192.168.0.2114/02/2018 0609:4451:58 34 Enabling full-color cursor updates for client 192.168.0.2114/02/2018 0609:4451:58 34 Enabling cursor position updates for client 192.168.0.2114/02/2018 0609:4451:58 34 Using image quality level 6 for client 192.168.0.2114/02/2018 0609:4451:58 34 Using JPEG subsampling 0, Q79 for client 192.168.0.2114/02/2018 0609:4451:58 34 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable14/02/2018 0609:4451:58 34 Enabling LastRect protocol extension for client 192.168.0.2114/02/2018 0609:4451:58 34 Enabling NewFBSize protocol extension for client 192.168.0.2114/02/2018 0609:4451:58 34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)14/02/2018 0609:4451:58 34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)14/02/2018 0609:4451:58 34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)14/02/2018 0609:4451:58 34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8003)14/02/2018 0609:4451:58 34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)14/02/2018 0609:4451:58 34 Switching from ZRLE to hextile Encoding for client 192.168.0.2114/02/2018 0609:51:34 client 1 network rate 196.5 KB/sec (6073.7 eff KB/sec)14/02/2018 09:4451:58 34 client useCopyRect1 latency: 1.5 ms14/02/2018 09:51:34 dt1: 1920.1680669, dt2: 0.0605 dt3: 0.21 0015 bytes: 2486614/02/2018 09:51:34 link_rate: LR_UNKNOWN -1ms, 196 KB/s</pre>
</pre>
==Demo on youtube==
{| class="wikitable" | width="100%"
| {{#ev:youtube|xxxxxxomZ7_xW2Ikc|500|center|Qt5 application with VNC server running on i.MX6 |frame}}
|}
8,204
edits