shmups.system11.org

Shmups Forum
 
* FAQ    * Search
 * Register  * Login 
It is currently Sat Dec 07, 2019 2:11 am View unanswered posts
View active topics



Post new topic Reply to topic  [ 2583 posts ]  Go to page Previous  1 ... 81, 82, 83, 84, 85, 86, 87  Next
Author Message
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Tue Nov 12, 2019 1:55 pm 



Joined: 08 Mar 2017
Posts: 1145
Syntax:
My format detection needs to cope with not knowing whether a bad signal is due to using weak / noisy (CVBS) sync, or whether it is odd timing.
When it's borderline, your method may have nudged it to the correct decision.
Would be great if you tested it again some time, see what it does these days :)


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 13, 2019 1:54 am 


User avatar

Joined: 07 May 2018
Posts: 430
Location: Escondido, CA, USA
@Syntax - this is what I use for CPS1/2 settings on OSSC. Looks as good as the CPS2 HDMI kit.

320×240 adv timing
LPF and Sync Off
V. synclen 3
V. backporch 16
V. active 240
H. samplerate 512
H. synclen 31
H. Backporch 65
H. active 384
Set sampling phase to whatever gets pixels to stop dancing and bleed to go away.

Maybe there's something unique about your monitor, though.

Hope this helps...and not to detract from the GBS, because I'm using that exclusively currently for capturing CPS1 runs. :)


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 13, 2019 3:26 am 


User avatar

Joined: 09 Aug 2017
Posts: 1287
Location: Australia
Oh im sure once the OSSC is dialed in itll look good but the GBS just works without any of that fuss.

Thanks for the detailed settings, Ill keep them handy. :)

Right now im using the console to try figure out why MiSTer will not sync up with GBS.

If i use a VGA cable GBS sees vsync and freaks out so im using a custom VGA to scart.

The picture also rolls on my crt. Yet to try tune vhold as I feel its a MiSTer issue.

Code:
<reset>
Scanning inputs for sources ...
Activity detected, input: RGB

.***
no signal
h: 511 v: 436 PLL:00 A:7b7b7b S:02.08.00 I:00 D:0060 m:0 ht:   0 vt:   0 hpw:   0 u: 96 s:13 TF:0000 W:-65
****************
no signal
h: 511 v:   2 PLL:00 A:7b7b7b S:02.08.00 I:00 D:0060 m:0 ht:   0 vt:   0 hpw:   0 u:384 s: 5 TF:0000 W:-63
*****************


**EDIT**

Seems I was editing the MiSTer.ini but it was named wrong.

Sometime ago I think an update included MiSTer_Example.ini. Renamed it to MiSTer.ini edited the output to use csync on hsync pin and GBS works sweet with it.
Which means I now have to open my CRT and tune V.Hold..


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 13, 2019 6:39 pm 



Joined: 18 Oct 2015
Posts: 756
rama, any chance you could maybe darken scanlines a little, and maybe add a second option for thicker scanlines in 1280x720?
Maybe something like this:

1280x720 (cropped to 4:3) with default 1px scanlines:
Image

1280x720 (cropped to 4:3) with darker 2px scanlines:
Image

Not sure if you agree, but personally I think the scanlines in the second image look a lot better and resemble the scanlines you'd get on a PVM, and with a bit of gamma/brightness/contrast adjustment, you don't lose any brightness.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 13, 2019 7:18 pm 



Joined: 08 Mar 2017
Posts: 1145
Scanlines aren't a super customizable addition. They're a hack where the hardware weaves an empty data field with the regular image.
As such, we can only change some mixing parameters, nothing more.

On the plus side, the alignment is always as good as possible.
These scanlines perfectly emulate where a CRT would place them.

Anyway, check out the source file to tweak some parameters:
https://github.com/ramapcsx2/gbs-contro ... .ino#L4407
VDS_WLEV_GAIN, MADPT_VIIR_COEF and MADPT_Y_MI_OFFSET affect the mixing.
If you tweak these right, you even get a little CRT glow/blur effect from these. The default mixing achives this a little.


(It may be my display being different from yours, but I find the first picture much nicer :))


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 13, 2019 9:29 pm 



Joined: 18 Oct 2015
Posts: 756
rama wrote:
Scanlines aren't a super customizable addition. They're a hack where the hardware weaves an empty data field with the regular image.
As such, we can only change some mixing parameters, nothing more.

On the plus side, the alignment is always as good as possible.
These scanlines perfectly emulate where a CRT would place them.

Anyway, check out the source file to tweak some parameters:
https://github.com/ramapcsx2/gbs-contro ... .ino#L4407
VDS_WLEV_GAIN, MADPT_VIIR_COEF and MADPT_Y_MI_OFFSET affect the mixing.
If you tweak these right, you even get a little CRT glow/blur effect from these. The default mixing achives this a little.


(It may be my display being different from yours, but I find the first picture much nicer :))


I know what you mean when you mention the CRT glow/blur effect, because I noticed the same thing too.
Messing with those parameters might produce better/more realistic results, although I imagine it would take a lot of trial and error, and having to compile/upload after every tweak is probably very time consuming. For me, it's probably a lot less work to apply a scanline filter in OBS and call it a day.

As for the screenshots. I prefer the second one because i'm used to my BVM which has very thick scanlines, and I also prefer full black scanlines as they look more realistic, as opposed to the faint/transparent scanlines in the first screenshot.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 12:21 am 



Joined: 27 Jan 2019
Posts: 31
rama wrote:
Great.
I also tried a few more HDMI sinks that I could find, and even the HDMI to AV converter box has no trouble with active FTL now :D

Glad to hear it's working on more devices! :)

rama wrote:
ESP8266 is a little pin-starved but gbscontrol doesn't require too many of them.
If "D4" is a free GPIO on your board, then it's fine to use.
I don't currently have plans to use any more GPIO :)

Cheers, just checking!

I've attached a little tweak I've made to my version of the webui.html below. It allows you to hold certain buttons in the UI and they will auto-repeat, which I've found useful for the positioning and scaling buttons as repeatedly tapping on them on my phone gets interpreted as a zoom or text selection operation rather than a click. The buttons to repeat are given a "repeating" class and the makeButtonsRepeatable() function (called at the end of content2(), for example) changes the onclick event handler into the required onmousedown/onmouseup ones.

Spoiler: show
Code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset='utf-8'/>
        <link rel='icon' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGklEQVR42mPsSDI9w0ABYBw1YNSAUQOGiwEAE54ewU+zbsAAAAAASUVORK5CYII='>
        <!-- Design by Szymon Pluta -->
        <title>GBS User Interface</title>
        <style>
            @font-face {
                /* Iceberg font by Victor Kharyk for Cyreal (www.cyreal.org) SIL Open Font License, Version 1.1 */
                src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAEDMABAAAAAAg4AAAQACAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAABAsAAAABwAAAAcapK7gkdERUYAAECQAAAAHQAAAB4AJwDiT1MvMgAAAeQAAABUAAAAYFdc%2F8NjbWFwAAAEKAAAAXsAAAHK0o3BBmN2dCAAAAmUAAAAIQAAACYDGQytZnBnbQAABaQAAAOeAAAKUQ208mdnYXNwAABAiAAAAAgAAAAIAAAAEGdseWYAAAt0AAAx0gAAakw%2F8i2%2BaGVhZAAAAWwAAAA2AAAANvkV6WRoaGVhAAABpAAAACAAAAAkBxMDfWhtdHgAAAI4AAAB8AAAA3CiojR5bG9jYQAACbgAAAG6AAABuqFRiVZtYXhwAAABxAAAACAAAAAgA0AGRm5hbWUAAD1IAAABoAAAAxsGt%2BIjcG9zdAAAPugAAAGeAAACJVGcJOFwcmVwAAAJRAAAAE0AAABNDvvInwABAAAAAQCDTiahq18PPPUAHwPoAAAAAMs831QAAAAAyz3GHP%2B2%2FuQDsgOoAAAACAACAAAAAAAAeJxjYGRgYF7x7wkDAwvv%2F23%2F1zNvYgCKoIA7AKkqB5UAAQAAANwAqQAGACAABAACAHwAiwAwAAABqgTvAAMAAXicY2BmfMs4gYGVgYFpD1MXAwNDP4RmPMpgxMgMFGVgYYCABgYGZSDlDOUy%2BDo6BzE4MPAqCTGv%2BPeEgYF5BaMMUJgRJMfEzrQZSCkwMAIAjqwMbHicbZG%2Fa1NRFMe%2F9z6hWCNPCBSFYEV4SEiWgIVMjxQC4pOUOj0NbxACHRyMk4uQIZODf4CLnQQnwUlEujoIgjhk61IQLIVslSqCz889eZaqffDhvHvuuefH90TvdUV%2FvleSW9PIzTTyU130hdLonjK%2Fqdw18A81htQ%2FUN%2FN1XLr%2BAeq25tJuY8vg25Fp7LZCX9qNHQHetW5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h556HIUEsxcRuVGwMzveEAtTZWuq6ioaKkoMeG84a1xx%2Bc1IyNmzt1aY1beMCrRxinVFK5cZsbvABgW5ULn2dTKTtqVg6jf78nhQqtkJjtVVQWp46DQWbcnq9xO5UQZpe%2FUtRwVcyvHyY2S7dNUXSmdtSn4ew34GbgeM9zSRcIZTFR2O0sIP33%2F5zqmi9%2F68Y9dxLLv1bZj6XuInb2%2FO7x0EcNdrfdOUjGgckR9XCpt8mIu%2B0EUDVYVjle9ecXjL4%2F1X7c8BTFCDsPq%2BjSUjBmuUa%2F47TLkSR%2FhnEXWlnEYmlTnpTWByZ2d8GJ0jg9deY5HeJxtzFdsDQAARuHvVmlV7b33pmrvUXvvvev2ti6lddtrz9iEEAlPxHoh9o4YD4i9YgsSb%2FbmFdFXJznJn5zkF%2BMfv9sp53%2B8%2BGtAjHxi5VdAnHgFJSgkUWFFFFVMcSWUVEppZZT9%2B1NeBRVVUlkVVVVTXQ011VJbHXXVU18DDTXSWJImkjXVTHMttNRKa2201U57HXTUSWddpOiqm%2B566KmX3vroq5%2F%2BBhhokMGGGGqY4UYYaZTRxhhrnPEmmGiSyVIdsMcKK5231RurbLTedvvsDcRY57nltvjmuw22WeOSV77aYb%2Bffvhlt4Ouu%2BqQKYI2SXNTyDU33HXLbXe8le6Be%2B47LMMXmz320CNTvffRWtOETTdDppl2yjJLtogcUblmm%2BOdueabZ4FFFjpjlyUWW2qZDz4564kjjnrqtZeeOea4U0677ISTrljtgovOBfIFYn0O5A8UCMQF4uOiM8PJySndE9OzopGcaHYoEs6KxPaIRrISMiKps0NJwdScUEJqMJqbN4sGw5FgdEZ6ZmhuXsoNZ6blpT8t5HuBAAAAAQAB%2F%2F8AD3icY2BkYGDgAWIxIGZiYATC20DMAuYxAAANBwEKAAAAAAAAAQAAAADUGBYRAAAAAMs831QAAAAAyz3GHA%3D%3D);
                font-family: 'Iceberg';
            }

            html {
                background-color: #333;
                color: #bbbbbb;
                font-family: 'Iceberg', cursive;
                font-weight: 400;
            }

            .btn-h {
                width: 12.6vw;
                max-width: 12%;
                min-width: max-content;
                min-width: -moz-max-content;
                min-width: -webkit-max-content;
                height: 8vh;
                max-height: 220px;
                background-color: #26C6DA;
                border-radius: 500px;
                border: none;
                margin: 0.66vh 0.5vw;
                -webkit-transition-duration: 0.1s;
                transition-duration: 0.1s;
                font-family: 'Iceberg', cursive;
                font-size: calc(13px + 0.8vw);
                color: #333;
            }

            .div1 {
                /* navi */
                text-align: center;
                margin-bottom: 4%;
            }

            .div2 {
                /* content */
                text-align: center;
            }

            .div3 {
                /* terminal */
                text-align: center;
                resize: none;
            }

            .btn-h:hover {
                background-color: #006064;
                color: #bbb;
            }

            .btn-h:focus {
                background-color: #006064;
                color: #bbb;
                outline: 0;
            }

            .btn-h:active {
                background-color: #004548;
            }

            h1 {
                margin: auto;
                padding: 4px;
                background: linear-gradient(#e6bc8b, #886235);
            }

            h1:before,h1:after {
                position: absolute;
                left: 0;
                bottom: -6px;
                border-top: 6px solid #555;
                border-left: 6px solid transparent;
            }

            p {
                margin: 1px;
            }

            .button {
                background-color: #26A69A;
                border: none;
                border-radius: 500px;
                color: #333;
                text-align: center;
                text-decoration: none;
                display: inline-block;
                margin: 1.5vh 1vw;
                font-family: 'Iceberg', cursive;
                -webkit-transition-duration: 0.1s;
                transition-duration: 0.1s;
                width: 16vw;
                max-width: 12%;
                min-width: max-content;
                min-width: -moz-max-content;
                min-width: -webkit-max-content;
                height: 8vh;
                max-height: 220px;
                font-size: calc(11px + 0.8vw);
            }

            .button.preset, .button.slot, .button.option {
                background-color: #26A69A;
            }

            .button.preset.active, .button.slot.active, .button.option.active {
                background-color: #004D40;
                color: #bbb;
            }

            .button:hover {
                background-color: #004D40;
                color: #bbb;
            }

            .button:active {
                background-color: #001f10;
            }

            .button:focus {
                outline: 0;
            }

            textarea {
                width: 80vw;
                max-width: 920px;
                height: 50vh;
                max-height: 400px;
                margin: 20px;
                resize: none;
                color: #26C6DA;
                background: #333;
                border-radius: 10px;
                border: solid thin #555;
            }

            br {
                clear: left;
            }

            h2 {
                clear: left;
            }
        </style>
        <script>
            function content1() {
                document.getElementById("display").innerHTML =
                '<p>Choose an output resolution from these presets. Your selection will also be used for startup.</p>' +
                '<p>1280x960 is recommended for NTSC sources, 1280x1024 for PAL.</p>' +
                '<p>If either of these presets is selected, the best one for the source will be used. This can be changed in the Preferences tab.</p>' +
                '<button class="button preset" type="button" id="1" onclick="loadUser(\'f\')">1280x960</button>' +
                '<button class="button preset" type="button" id="2" onclick="loadUser(\'p\')">1280x1024</button>' +
                '<button class="button preset" type="button" id="3" onclick="loadUser(\'g\')">1280x720</button>' +
                '<button class="button preset" type="button" id="5" onclick="loadUser(\'s\')">1920x1080</button>' +
                '<button class="button preset" type="button" id="4" onclick="loadUser(\'h\')">640x480</button>' +
                '<button class="button preset" type="button" id="8" onclick="loadDoc(\'K\')">Source Pass-through</button>' +
                '<br><br><br>' +
                '<p>If you want to save your customizations, first select a slot for your new preset, then save to or load from that slot.</p>' +
                '<p>Selecting a slot also makes it the new startup preset.</p>' +
                '<button class="button slot" type="button" id="11" onclick="loadUser(\'b\')">Slot 1</button>' +
                '<button class="button slot" type="button" id="12" onclick="loadUser(\'c\')">Slot 2</button>' +
                '<button class="button slot" type="button" id="13" onclick="loadUser(\'d\')">Slot 3</button>' +
                '<button class="button slot" type="button" id="14" onclick="loadUser(\'j\')">Slot 4</button>' +
                '<button class="button slot" type="button" id="15" onclick="loadUser(\'k\')">Slot 5</button>' +
                '<br>' +
                '<button class="button preset" type="button" id="9" onclick="loadUser(\'3\')">Load Custom Preset</button>' +
                '<button class="button" type="button" onclick="loadUser(\'4\')">Save Custom Preset</button>';
            }
            function content2() {
                document.getElementById("display").innerHTML =
                '<h2>Move Picture</h2>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'*\')">Picture Up</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'/\')">Picture Down</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'7\')">Picture Left</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'6\')">Picture Right</button>' +
                '<h2>Scaling</h2>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'z\')">Horizontal +</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'h\')">Horizontal -</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'4\')">Vertical +</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'5\')">Vertical -</button>' +
                '<h2>Border Masking</h2>' +
                '<button class="button repeating" type="button" onclick="loadUser(\'A\')">Horizontal +</button>' +
                '<button class="button repeating" type="button" onclick="loadUser(\'B\')">Horizontal -</button>' +
                '<button class="button repeating" type="button" onclick="loadUser(\'C\')">Vertical +</button>' +
                '<button class="button repeating" type="button" onclick="loadUser(\'D\')">Vertical -</button>' + '<br>' +
                '<h2>ADC Gain (brightness)</h2>' +
                '<p>Gain +/- adjusts the gain for the currently loaded preset.</p>' +
                '<button class="button" type="button" onclick="loadUser(\'n\')">Gain +</button>' +
                '<button class="button" type="button" onclick="loadUser(\'o\')">Gain -</button>' +
                '<button class="button option adcAutoGain" type="button" onclick="loadDoc(\'T\')">Auto Gain Adjust Toggle</button>';
                makeButtonsRepeatable();
            }
            function content3() {
                document.getElementById("display").innerHTML =
                '<p>The Line Filter and Peaking options are recommended, the others are optional.</p>' +
                '<p>Scanlines only work with 240p sources at this time.</p>' +
                '<p>The 6-Tap LPF output filter should be enabled, unless you notice jailbar effects.</p>' +
                '<p>The Step Response filter sharpens color edges. It works best with 256px and 320px wide sources.</p>' +
                '<button class="button option scanlines" type="button" onclick="loadUser(\'7\')">Scanlines</button>' +
                '<button class="button option vdsLineFilter" type="button" onclick="loadUser(\'m\')">Line Filter</button>' +
                '<button class="button option peaking" type="button" onclick="loadDoc(\'f\')">Peaking</button>' +
                '<button class="button option step" type="button" onclick="loadDoc(\'V\')">Step Response</button>' +
                '<button class="button option tap6" type="button" onclick="loadUser(\'t\')">6-Tap LPF</button>';
            }
            function content5() {
                document.getElementById("display").innerHTML =
                '<h2>Matched Preset for Source Format</h2>' +
                '<p>If enabled, default to 1280x960 for NTSC 60 and 1280x1024 for PAL 50 (does not apply for 720p / 1080p presets).</p>' +
                '<button class="button option matched" type="button" onclick="loadDoc(\'Z\')">Matched Presets</button>' +
                '<h2>Prefer Full Height</h2>' +
                '<p>Some presets default to not using the entire vertical output resolution, leaving some lines black.</p>' +
                '<p>With Full Height enabled, these presets will instead scale to fill more of the screen height.</p>' +
                '<p>(This currently only affects 1920 x 1080)</p>' +
                '<button class="button option fullHeight" type="button" onclick="loadUser(\'v\')">Full Height</button>' +
                '<h2>Low Resolution VGA input: Pass-through or Upscale</h2>' +
                '<p>Low resolution sources can be either passed on directly or get upscaled.</p>' +
                '<p>Upscaling may have some border / scaling issues, but is more compatible with displays.</p>' +
                '<p>Also, refresh rates other than 60Hz are not well supported yet.</p>' +
                '<p>"Low resolution" is currently set at below or equal to 640x480 (525 active lines).</p>' +
                '<button class="button option preferScalingRgbhv" type="button" onclick="loadUser(\'x\')">Low Res: Use Upscaling</button>' +
                '<h2>Output Format: RGBHV (regular) / YPbPr (Component Video)</h2>' +
                '<p>The default output mode is RGBHV, suitable for use with VGA cables or HDMI converters.</p>' +
                '<p>An experimental YPbPr mode can also be selected. Compatibility is still spotty.</p>' +
                '<button class="button option wantOutputComponent" type="button" onclick="loadDoc(\'L\')">RGBHV/Component Toggle</button>' +
                '<h2>Output Frame Rate: Force PAL 50Hz to 60Hz</h2>' +
                '<p>If your TV does not support 50Hz sources (displaying unknown format, no matter the preset), try this option.</p>' +
                '<p>The frame rate will not be as smooth. Reboot required.</p>' +
                '<button class="button option palForce60" type="button" onclick="loadUser(\'0\')">Force PAL 60Hz</button>' +
                '<h2>ADC auto offset calibration</h2>' +
                '<p>Gbscontrol calibrates the ADC offsets on startup.</p>' +
                '<p>In case of color shift problems, try disabling this function.</p>' +
                '<button class="button option enableCalibrationADC" type="button" onclick="loadUser(\'w\')">ADC calibration</button>' +
                '<h2>Active FrameTime Lock (not compatible with all displays)</h2>' +
                '<p>This option keeps the input and output timings aligned, fixing the horizontal tear line that can appear sometimes.</p>' +
                '<p>Two methods are available. Try switching methods if your display goes blank.</p>' +
                '<button class="button option frameTimeLock" type="button" onclick="loadUser(\'5\')">FrameTime Lock</button>' +
                '<button class="button" type="button" onclick="loadUser(\'i\')">Switch Lock Method</button>' +
                '<h2>Deinterlace Method</h2>' +
                '<p>Gbscontrol detects interlaced content and automatically toggles deinterlacing. <br>' +
                '- Bob Method: essentially no deinterlacing, no added lag but flickers <br>' +
                '- Motion Adaptive: removes flicker, adds 1 frame of lag and shows some artefacts in moving details<br>' +
                'If possible, configure the source for progressive output. Otherwise, using Motion Adaptive is recommended.</p>' +
                '<button class="button option motionAdaptive" type="button" onclick="loadUser(\'r\')">Use Motion Adaptive</button>' +
                '<button class="button option bob" type="button" onclick="loadUser(\'q\')">Use Bob</button>';
            }
            function content6() {
                document.getElementById("display").innerHTML =
                '<p>Options that aid in development of gbscontrol. Users normally don\'t need to adjust these.</p>' +
                '<h2>Move Picture (memory blank, HS)</h2>' +
                '<button class="button" type="button" onclick="loadDoc(\'-\')">Left</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'+\')">Right</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'1\')">HS Left</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'0\')">HS Right</button>' +
                '<h2>Information</h2>' +
                '<button class="button" type="button" onclick="loadDoc(\'i\')">Print Infos</button>' +
                '<button class="button" type="button" onclick="loadDoc(\',\')">Get Video Timings</button>' +
                '<h2>Commands</h2>' +
                '<button class="button" type="button" onclick="loadUser(\'l\')">Cycle SDRAM clock speed</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'q\')">Reset Chip</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'8\')">Invert Sync</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'n\')">PLL divider++</button>' +
                '<br>' +
                '<button class="button" type="button" onclick="loadDoc(\'D\')">Debug View</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'F\')">ADC Filter</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'o\')">Oversampling</button>' +
                '<button class="button" type="button" onclick="loadUser(\'F\')">Freeze Capture</button>' +
                '<br>' +
                '<button class="button" type="button" onclick="loadDoc(\'a\')">HTotal++</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'A\')">HTotal--</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'.\')">Resynchronize HTotal</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'l\')">Reset SyncProcessor</button>' +
                '<br>' +
                '<button class="button" type="button" onclick="loadDoc(\'S\')">Snap to 60/50Hz for HDMI</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'m\')">SyncWatcher</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'c\')">Enable OTA Updates</button>' +
                '<button class="button" type="button" onclick="loadUser(\'E\')">IF Auto Offset</button>' +
                '<br>' +
                '<button class="button" type="button" onclick="loadUser(\'z\')">SOG Level--</button>';
            }
            function content7() {
                document.getElementById("display").innerHTML =
                '<button class="button" type="button" onclick="javascript:location.href=\'/wifi.htm\'">Connect to WiFi Network</button>' +
                '<button class="button" type="button" onclick="loadUser(\'a\')">Restart</button>' +
                '<button class="button" type="button" onclick="loadUser(\'e\')">List Options</button>' +
                '<button class="button" type="button" onclick="loadUser(\'1\')">Reset Defaults + Restart</button>';
            }
            window.addEventListener('load', function(event) {
                content1();
                theTerminal = document.getElementById('outputTextArea');
                ws = null;
                createWebSocket();
                wsCheckTimer = setInterval(checkWs, 500);
            });
            window.addEventListener('unload', function(event) {
                clearInterval(wsCheckTimer);
                if (ws) {
                    if (ws.readyState == 0 || ws.readyState == 1) {
                        ws.close();
                    }
                }
                console.log('unload');
            });
            var eventsQueued = 0;
            var theTerminal;
            var ws = null;
            var isWsActive = 0;
            var wsTimeout;
            var wsCheckTimer;
            var wsConnectCounter = 0;
            var wsNoSuccessConnectingCounter = 0;
            var queuedText = '';
            function loadDoc(link) {
                var xhttp = new XMLHttpRequest();
                xhttp.open('GET', 'sc?' + link + '&nocache=' + new Date().getTime(), true);
                xhttp.send();
            }
            function loadUser(link) {
                var xhttp = new XMLHttpRequest();
                xhttp.open('GET', 'uc?' + link + '&nocache=' + new Date().getTime(), true);
                xhttp.send();
                if (link == 'a' || link == '1') {
                    isWsActive = 0;
                    theTerminal.value += ' Restart';
                    theTerminal.value += '\n';
                    theTerminal.scrollTop = theTerminal.scrollHeight;
                }
            }
            var repeatTimeout = null;
            var repeatInterval = null;
            function repeatStart(fn, link) {
                repeatStop();
                fn(link);
                repeatTimeout = setTimeout(function() {
                    repeatInterval = setInterval(function() {
                        fn(link);
                    }, 200);
                }, 750);
            }
            function repeatStop() {
                if (repeatTimeout) {
                    clearTimeout(repeatTimeout);
                    repeatTimeout = null;
                }
                if (repeatInterval) {
                    clearInterval(repeatInterval);
                    repeatInterval = null;
                }
            }
            function makeButtonsRepeatable() {
                var buttons = document.getElementById('display').getElementsByTagName('button');
                for (var i = 0; i < buttons.length; ++i) {
                    var button = buttons[i];
                    if (/(^|\s)repeating(\s|$)/.test(button.className)) {
                        var onClick = /(load(User|Doc))\(\'(.+)\'\)/.exec(button.onclick);
                        if (onClick) {
                            var fn = onClick[1];
                            var link = onClick[3];
                            if (typeof window[fn] == 'function') {
                                fn = window[fn];
                                (function(fn, link) {
                                    button.onclick = null;
                                    button.onmousedown = function() { repeatStart(fn, link); };
                                    button.onmouseup = repeatStop;
                                    button.onmouseleave = repeatStop;
                                })(fn, link);
                            }
                        }
                    }
                }
            }
            function checkWs() {
                if (isWsActive === 0) {
                    if (ws) {
                        /*
                        0     CONNECTING
                        1     OPEN
                        2     CLOSING
                        3     CLOSED
                        */
                        if (ws.readyState == 3) {
                            ws = null;
                        }
                        else if (ws.readyState == 2) {
                            /* console.log('ws CLOSING > repeat ws.close()'); */
                            ws.close();
                        }
                        else if (ws.readyState == 1) {
                            ws.close();
                        }
                        /* createWebSocket deals with 0 */
                    }
                    createWebSocket();
                }
            }
            function timeOutWs() {
                console.log('timeOutWs');
                if (ws) {
                    ws.close();
                }
                isWsActive = 0;
            }
            function createWebSocket() {
                if (ws) {
                    if (ws.readyState == 2) {
                        wsNoSuccessConnectingCounter++;
                        /* console.log(wsNoSuccessConnectingCounter); */
                        if (wsNoSuccessConnectingCounter >= 7) {
                            console.log('ws still closing, force close');
                            ws = null;
                            wsNoSuccessConnectingCounter = 0;
                            /* fall through */
                        }
                        else {
                            return;
                        }
                    }
                    else if (ws.readyState == 0) {
                        wsNoSuccessConnectingCounter++;
                        /*console.log(wsNoSuccessConnectingCounter); */
                        if (wsNoSuccessConnectingCounter >= 14) {
                            console.log('ws still connecting, retry');
                            ws.close();
                            wsNoSuccessConnectingCounter = 0;
                        }
                        return;
                    }
                    else {
                        return;
                    }
                }
               
                wsNoSuccessConnectingCounter = 0;
                ws = new WebSocket('ws://' + location.hostname + ':81/',['arduino']);
                           
                ws.onopen = function() {
                    wsConnectCounter++;
                    console.log('ws onopen');
                    isWsActive = 1;
                    wsTimeout = setTimeout(timeOutWs, 6000);
                    wsNoSuccessConnectingCounter = 0;
                    /*theTerminal.value += 'ws' + wsConnectCounter + ' connected\n';
                    theTerminal.scrollTop = theTerminal.scrollHeight;*/
                }
                ;
                ws.onclose = function(event) {
                    console.log('ws.onclose');
                    clearTimeout(wsTimeout);
                    isWsActive = 0;
                }
                ;
                ws.onmessage = function(e) {
                    clearTimeout(wsTimeout);
                    wsTimeout = setTimeout(timeOutWs, 2700);
                    isWsActive = 1;
                    if (e.data[0] != '#') {
                        queuedText += e.data;
                        eventsQueued++;
                        if (eventsQueued >= 2000) {
                            theTerminal.value = '';
                            eventsQueued = 0;
                        }
                        requestAnimationFrame(function() {
                            theTerminal.value += queuedText;
                            queuedText = '';
                            theTerminal.scrollTop = theTerminal.scrollHeight;
                        });
                    } else {
                        var presetId = e.data[1];
                        var activePresetButton = document.getElementById(presetId);
                        if (activePresetButton) {
                            var presetButtonList = document.getElementsByClassName('button preset');
                            [].forEach.call(presetButtonList, function(button) {
                                if (button !== activePresetButton) {
                                    button.classList.remove('active');
                                } else {
                                    button.classList.add('active');
                                }
                            });
                        }

                        var slotId = '1' + e.data[2];
                        var activeSlotButton = document.getElementById(slotId);
                        if (activeSlotButton) {
                            var slotButtonList = document.getElementsByClassName('button slot');
                            [].forEach.call(slotButtonList, function(button) {
                                if (button !== activeSlotButton) {
                                    button.classList.remove('active');
                                } else {
                                    button.classList.add('active');
                                }
                            });
                        }

                        if (e.data[3] && e.data[4] && e.data[5]) {
                            var optionByte0 = e.data[3].charCodeAt(0);
                            var optionByte1 = e.data[4].charCodeAt(0);
                            var optionByte2 = e.data[5].charCodeAt(0);
                            var optionButtonList = document.getElementsByClassName('button option');
                            [].forEach.call(optionButtonList, function(button) {
                                /* optionByte0 */
                                if (button.classList.contains('adcAutoGain')) {
                                    if ((optionByte0 & 0x01) == 0x01) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('scanlines')) {
                                    if ((optionByte0 & 0x02) == 0x02) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('vdsLineFilter')) {
                                    if ((optionByte0 & 0x04) == 0x04) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('peaking')) {
                                    if ((optionByte0 & 0x08) == 0x08) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('palForce60')) {
                                    if ((optionByte0 & 0x10) == 0x10) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('wantOutputComponent')) {
                                    if ((optionByte0 & 0x20) == 0x20) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                /* optionByte1 */
                                if (button.classList.contains('matched')) {
                                    if ((optionByte1 & 0x01) == 0x01) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('frameTimeLock')) {
                                    if ((optionByte1 & 0x02) == 0x02) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('motionAdaptive')) {
                                    if ((optionByte1 & 0x04) == 0x04) {
                                        button.classList.remove('active');
                                    } else {
                                        button.classList.add('active');
                                    }
                                }
                                /* inverse of motionAdaptive, 1=bob*/
                                if (button.classList.contains('bob')) {
                                    if ((optionByte1 & 0x04) == 0x04) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('tap6')) {
                                    if ((optionByte1 & 0x08) == 0x08) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('step')) {
                                    if ((optionByte1 & 0x10) == 0x10) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('fullHeight')) {
                                    if ((optionByte1 & 0x20) == 0x20) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                /* optionByte2 */
                                if (button.classList.contains('enableCalibrationADC')) {
                                    if ((optionByte2 & 0x01) == 0x01) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('preferScalingRgbhv')) {
                                    if ((optionByte2 & 0x02) == 0x02) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                            });
                        }
                    }
                }
                ;
            }
        </script>
    </head>
    <body>
        <div class="div1">
            <button class="btn-h" onclick="content1()">Presets</button>
            <button class="btn-h" onclick="content2()">Picture Control</button>
            <button class="btn-h" onclick="content3()">Enhancements</button>
            <button class="btn-h" onclick="content5()">Preferences</button>
            <button class="btn-h" onclick="content6()">Development</button>
            <button class="btn-h" onclick="content7()">System</button>
        </div>
        <div class="div2" id="display"></div>
        <div class="div3" id="terminal">
            <form>
                <textarea id='outputTextArea' readonly></textarea>
            </form>
        </div>
    </body>
</html>


(The code also differs from the base as I've changed "for (let foo of bar) {}" into "[].forEach.call(bar, function(foo) { });" for compatibility with Internet Explorer and also changed the spelling of "boarder" to "border").


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 12:52 am 



Joined: 08 Mar 2017
Posts: 1145
Awesome, this makes it easy for me to "give in" and support IE.
Thanks :)

On the desktop, I'm used to clicking an adjust button to mark it, then keep holding down enter for a very fast continuous adjustment.
The browser would simply spam the button then.
Is it possible to support both methods? Right now mine doesn't work anymore.
Click and hold works fine on the desktop, but the update rate is comparatively slow.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 3:12 am 



Joined: 27 Jan 2019
Posts: 31
Haha, sorry about uglying up the code for the benefit of ancient browsers. :(

Sorry for breaking keyboard support when the buttons are focussed, I had disabled the default onclick handler as this fires after onmousedown/onmouseup and so resulted in a strange extra adjustment after releasing the buttons. I've restored keyboard support by manually checking for the Enter key in an onkeypress handler after removing the onclick handler:

Code:
button.onkeypress = function(e) { if (e.keyCode == 13) fn(link); };


I wasn't sure how quickly I could hammer away at the web service but it looks like you can do so a lot faster than I tried if it works well when holding Enter! The speed is set in the repeatStart function, repeatInterval is set to repeat every 200ms and repeatTimeout has an initial delay of 750ms if you feel these should be tweaked.

Full webui.html code pasted below.

Spoiler: show
Code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset='utf-8'/>
        <link rel='icon' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGklEQVR42mPsSDI9w0ABYBw1YNSAUQOGiwEAE54ewU+zbsAAAAAASUVORK5CYII='>
        <!-- Design by Szymon Pluta -->
        <title>GBS User Interface</title>
        <style>
            @font-face {
                /* Iceberg font by Victor Kharyk for Cyreal (www.cyreal.org) SIL Open Font License, Version 1.1 */
                src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAEDMABAAAAAAg4AAAQACAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAABAsAAAABwAAAAcapK7gkdERUYAAECQAAAAHQAAAB4AJwDiT1MvMgAAAeQAAABUAAAAYFdc%2F8NjbWFwAAAEKAAAAXsAAAHK0o3BBmN2dCAAAAmUAAAAIQAAACYDGQytZnBnbQAABaQAAAOeAAAKUQ208mdnYXNwAABAiAAAAAgAAAAIAAAAEGdseWYAAAt0AAAx0gAAakw%2F8i2%2BaGVhZAAAAWwAAAA2AAAANvkV6WRoaGVhAAABpAAAACAAAAAkBxMDfWhtdHgAAAI4AAAB8AAAA3CiojR5bG9jYQAACbgAAAG6AAABuqFRiVZtYXhwAAABxAAAACAAAAAgA0AGRm5hbWUAAD1IAAABoAAAAxsGt%2BIjcG9zdAAAPugAAAGeAAACJVGcJOFwcmVwAAAJRAAAAE0AAABNDvvInwABAAAAAQCDTiahq18PPPUAHwPoAAAAAMs831QAAAAAyz3GHP%2B2%2FuQDsgOoAAAACAACAAAAAAAAeJxjYGRgYF7x7wkDAwvv%2F23%2F1zNvYgCKoIA7AKkqB5UAAQAAANwAqQAGACAABAACAHwAiwAwAAABqgTvAAMAAXicY2BmfMs4gYGVgYFpD1MXAwNDP4RmPMpgxMgMFGVgYYCABgYGZSDlDOUy%2BDo6BzE4MPAqCTGv%2BPeEgYF5BaMMUJgRJMfEzrQZSCkwMAIAjqwMbHicbZG%2Fa1NRFMe%2F9z6hWCNPCBSFYEV4SEiWgIVMjxQC4pOUOj0NbxACHRyMk4uQIZODf4CLnQQnwUlEujoIgjhk61IQLIVslSqCz889eZaqffDhvHvuuefH90TvdUV%2FvleSW9PIzTTyU130hdLonjK%2Fqdw18A81htQ%2FUN%2FN1XLr%2BAeq25tJuY8vg25Fp7LZCX9qNHQHetW5ZXamTrRN3bEKnyv3bbhP%2Fjns8h98j6jTJEbqcDfyCfyCl1BwfwuKijY9PpMsX1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inVFK5cZsbvABgW5ULn2dTKTtqVg6jf78nhQqtkJjtVVQWp46DQWbcnq9xO5UQZpe%2FUtRwVcyvHyY2S7dNUXSmdtSn4ew34GbgeM9zSRcIZTFR2O0sIP33%2F5zqmi9%2F68Y9dxLLv1bZj6XuInb2%2FO7x0EcNdrfdOUjGgckR9XCpt8mIu%2B0EUDVYVjle9ecXjL4%2F1X7c8BTFCDsPq%2BjSUjBmuUa%2F47TLkSR%2FhnEXWlnEYmlTnpTWByZ2d8GJ0jg9deY5HeJxtzFdsDQAARuHvVmlV7b33pmrvUXvvvev2ti6lddtrz9iEEAlPxHoh9o4YD4i9YgsSb%2FbmFdFXJznJn5zkF%2BMfv9sp53%2B8%2BGtAjHxi5VdAnHgFJSgkUWFFFFVMcSWUVEppZZT9%2B1NeBRVVUlkVVVVTXQ011VJbHXXVU18DDTXSWJImkjXVTHMttNRKa2201U57HXTUSWddpOiqm%2B566KmX3vroq5%2F%2BBhhokMGGGGqY4UYYaZTRxhhrnPEmmGiSyVIdsMcKK5231RurbLTedvvsDcRY57nltvjmuw22WeOSV77aYb%2Bffvhlt4Ouu%2BqQKYI2SXNTyDU33HXLbXe8le6Be%2B47LMMXmz320CNTvffRWtOETTdDppl2yjJLtogcUblmm%2BOdueabZ4FFFjpjlyUWW2qZDz4564kjjnrqtZeeOea4U0677ISTrljtgovOBfIFYn0O5A8UCMQF4uOiM8PJySndE9OzopGcaHYoEs6KxPaIRrISMiKps0NJwdScUEJqMJqbN4sGw5FgdEZ6ZmhuXsoNZ6blpT8t5HuBAAAAAQAB%2F%2F8AD3icY2BkYGDgAWIxIGZiYATC20DMAuYxAAANBwEKAAAAAAAAAQAAAADUGBYRAAAAAMs831QAAAAAyz3GHA%3D%3D);
                font-family: 'Iceberg';
            }

            html {
                background-color: #333;
                color: #bbbbbb;
                font-family: 'Iceberg', cursive;
                font-weight: 400;
            }

            .btn-h {
                width: 12.6vw;
                max-width: 12%;
                min-width: max-content;
                min-width: -moz-max-content;
                min-width: -webkit-max-content;
                height: 8vh;
                max-height: 220px;
                background-color: #26C6DA;
                border-radius: 500px;
                border: none;
                margin: 0.66vh 0.5vw;
                -webkit-transition-duration: 0.1s;
                transition-duration: 0.1s;
                font-family: 'Iceberg', cursive;
                font-size: calc(13px + 0.8vw);
                color: #333;
            }

            .div1 {
                /* navi */
                text-align: center;
                margin-bottom: 4%;
            }

            .div2 {
                /* content */
                text-align: center;
            }

            .div3 {
                /* terminal */
                text-align: center;
                resize: none;
            }

            .btn-h:hover {
                background-color: #006064;
                color: #bbb;
            }

            .btn-h:focus {
                background-color: #006064;
                color: #bbb;
                outline: 0;
            }

            .btn-h:active {
                background-color: #004548;
            }

            h1 {
                margin: auto;
                padding: 4px;
                background: linear-gradient(#e6bc8b, #886235);
            }

            h1:before,h1:after {
                position: absolute;
                left: 0;
                bottom: -6px;
                border-top: 6px solid #555;
                border-left: 6px solid transparent;
            }

            p {
                margin: 1px;
            }

            .button {
                background-color: #26A69A;
                border: none;
                border-radius: 500px;
                color: #333;
                text-align: center;
                text-decoration: none;
                display: inline-block;
                margin: 1.5vh 1vw;
                font-family: 'Iceberg', cursive;
                -webkit-transition-duration: 0.1s;
                transition-duration: 0.1s;
                width: 16vw;
                max-width: 12%;
                min-width: max-content;
                min-width: -moz-max-content;
                min-width: -webkit-max-content;
                height: 8vh;
                max-height: 220px;
                font-size: calc(11px + 0.8vw);
            }

            .button.preset, .button.slot, .button.option {
                background-color: #26A69A;
            }

            .button.preset.active, .button.slot.active, .button.option.active {
                background-color: #004D40;
                color: #bbb;
            }

            .button:hover {
                background-color: #004D40;
                color: #bbb;
            }

            .button:active {
                background-color: #001f10;
            }

            .button:focus {
                outline: 0;
            }

            textarea {
                width: 80vw;
                max-width: 920px;
                height: 50vh;
                max-height: 400px;
                margin: 20px;
                resize: none;
                color: #26C6DA;
                background: #333;
                border-radius: 10px;
                border: solid thin #555;
            }

            br {
                clear: left;
            }

            h2 {
                clear: left;
            }
        </style>
        <script>
            function content1() {
                document.getElementById("display").innerHTML =
                '<p>Choose an output resolution from these presets. Your selection will also be used for startup.</p>' +
                '<p>1280x960 is recommended for NTSC sources, 1280x1024 for PAL.</p>' +
                '<p>If either of these presets is selected, the best one for the source will be used. This can be changed in the Preferences tab.</p>' +
                '<button class="button preset" type="button" id="1" onclick="loadUser(\'f\')">1280x960</button>' +
                '<button class="button preset" type="button" id="2" onclick="loadUser(\'p\')">1280x1024</button>' +
                '<button class="button preset" type="button" id="3" onclick="loadUser(\'g\')">1280x720</button>' +
                '<button class="button preset" type="button" id="5" onclick="loadUser(\'s\')">1920x1080</button>' +
                '<button class="button preset" type="button" id="4" onclick="loadUser(\'h\')">640x480</button>' +
                '<button class="button preset" type="button" id="8" onclick="loadDoc(\'K\')">Source Pass-through</button>' +
                '<br><br><br>' +
                '<p>If you want to save your customizations, first select a slot for your new preset, then save to or load from that slot.</p>' +
                '<p>Selecting a slot also makes it the new startup preset.</p>' +
                '<button class="button slot" type="button" id="11" onclick="loadUser(\'b\')">Slot 1</button>' +
                '<button class="button slot" type="button" id="12" onclick="loadUser(\'c\')">Slot 2</button>' +
                '<button class="button slot" type="button" id="13" onclick="loadUser(\'d\')">Slot 3</button>' +
                '<button class="button slot" type="button" id="14" onclick="loadUser(\'j\')">Slot 4</button>' +
                '<button class="button slot" type="button" id="15" onclick="loadUser(\'k\')">Slot 5</button>' +
                '<br>' +
                '<button class="button preset" type="button" id="9" onclick="loadUser(\'3\')">Load Custom Preset</button>' +
                '<button class="button" type="button" onclick="loadUser(\'4\')">Save Custom Preset</button>';
            }
            function content2() {
                document.getElementById("display").innerHTML =
                '<h2>Move Picture</h2>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'*\')">Picture Up</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'/\')">Picture Down</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'7\')">Picture Left</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'6\')">Picture Right</button>' +
                '<h2>Scaling</h2>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'z\')">Horizontal +</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'h\')">Horizontal -</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'4\')">Vertical +</button>' +
                '<button class="button repeating" type="button" onclick="loadDoc(\'5\')">Vertical -</button>' +
                '<h2>Border Masking</h2>' +
                '<button class="button repeating" type="button" onclick="loadUser(\'A\')">Horizontal +</button>' +
                '<button class="button repeating" type="button" onclick="loadUser(\'B\')">Horizontal -</button>' +
                '<button class="button repeating" type="button" onclick="loadUser(\'C\')">Vertical +</button>' +
                '<button class="button repeating" type="button" onclick="loadUser(\'D\')">Vertical -</button>' + '<br>' +
                '<h2>ADC Gain (brightness)</h2>' +
                '<p>Gain +/- adjusts the gain for the currently loaded preset.</p>' +
                '<button class="button" type="button" onclick="loadUser(\'n\')">Gain +</button>' +
                '<button class="button" type="button" onclick="loadUser(\'o\')">Gain -</button>' +
                '<button class="button option adcAutoGain" type="button" onclick="loadDoc(\'T\')">Auto Gain Adjust Toggle</button>';
                makeButtonsRepeatable();
            }
            function content3() {
                document.getElementById("display").innerHTML =
                '<p>The Line Filter and Peaking options are recommended, the others are optional.</p>' +
                '<p>Scanlines only work with 240p sources at this time.</p>' +
                '<p>The 6-Tap LPF output filter should be enabled, unless you notice jailbar effects.</p>' +
                '<p>The Step Response filter sharpens color edges. It works best with 256px and 320px wide sources.</p>' +
                '<button class="button option scanlines" type="button" onclick="loadUser(\'7\')">Scanlines</button>' +
                '<button class="button option vdsLineFilter" type="button" onclick="loadUser(\'m\')">Line Filter</button>' +
                '<button class="button option peaking" type="button" onclick="loadDoc(\'f\')">Peaking</button>' +
                '<button class="button option step" type="button" onclick="loadDoc(\'V\')">Step Response</button>' +
                '<button class="button option tap6" type="button" onclick="loadUser(\'t\')">6-Tap LPF</button>';
            }
            function content5() {
                document.getElementById("display").innerHTML =
                '<h2>Matched Preset for Source Format</h2>' +
                '<p>If enabled, default to 1280x960 for NTSC 60 and 1280x1024 for PAL 50 (does not apply for 720p / 1080p presets).</p>' +
                '<button class="button option matched" type="button" onclick="loadDoc(\'Z\')">Matched Presets</button>' +
                '<h2>Prefer Full Height</h2>' +
                '<p>Some presets default to not using the entire vertical output resolution, leaving some lines black.</p>' +
                '<p>With Full Height enabled, these presets will instead scale to fill more of the screen height.</p>' +
                '<p>(This currently only affects 1920 x 1080)</p>' +
                '<button class="button option fullHeight" type="button" onclick="loadUser(\'v\')">Full Height</button>' +
                '<h2>Low Resolution VGA input: Pass-through or Upscale</h2>' +
                '<p>Low resolution sources can be either passed on directly or get upscaled.</p>' +
                '<p>Upscaling may have some border / scaling issues, but is more compatible with displays.</p>' +
                '<p>Also, refresh rates other than 60Hz are not well supported yet.</p>' +
                '<p>"Low resolution" is currently set at below or equal to 640x480 (525 active lines).</p>' +
                '<button class="button option preferScalingRgbhv" type="button" onclick="loadUser(\'x\')">Low Res: Use Upscaling</button>' +
                '<h2>Output Format: RGBHV (regular) / YPbPr (Component Video)</h2>' +
                '<p>The default output mode is RGBHV, suitable for use with VGA cables or HDMI converters.</p>' +
                '<p>An experimental YPbPr mode can also be selected. Compatibility is still spotty.</p>' +
                '<button class="button option wantOutputComponent" type="button" onclick="loadDoc(\'L\')">RGBHV/Component Toggle</button>' +
                '<h2>Output Frame Rate: Force PAL 50Hz to 60Hz</h2>' +
                '<p>If your TV does not support 50Hz sources (displaying unknown format, no matter the preset), try this option.</p>' +
                '<p>The frame rate will not be as smooth. Reboot required.</p>' +
                '<button class="button option palForce60" type="button" onclick="loadUser(\'0\')">Force PAL 60Hz</button>' +
                '<h2>ADC auto offset calibration</h2>' +
                '<p>Gbscontrol calibrates the ADC offsets on startup.</p>' +
                '<p>In case of color shift problems, try disabling this function.</p>' +
                '<button class="button option enableCalibrationADC" type="button" onclick="loadUser(\'w\')">ADC calibration</button>' +
                '<h2>Active FrameTime Lock (not compatible with all displays)</h2>' +
                '<p>This option keeps the input and output timings aligned, fixing the horizontal tear line that can appear sometimes.</p>' +
                '<p>Two methods are available. Try switching methods if your display goes blank.</p>' +
                '<button class="button option frameTimeLock" type="button" onclick="loadUser(\'5\')">FrameTime Lock</button>' +
                '<button class="button" type="button" onclick="loadUser(\'i\')">Switch Lock Method</button>' +
                '<h2>Deinterlace Method</h2>' +
                '<p>Gbscontrol detects interlaced content and automatically toggles deinterlacing. <br>' +
                '- Bob Method: essentially no deinterlacing, no added lag but flickers <br>' +
                '- Motion Adaptive: removes flicker, adds 1 frame of lag and shows some artefacts in moving details<br>' +
                'If possible, configure the source for progressive output. Otherwise, using Motion Adaptive is recommended.</p>' +
                '<button class="button option motionAdaptive" type="button" onclick="loadUser(\'r\')">Use Motion Adaptive</button>' +
                '<button class="button option bob" type="button" onclick="loadUser(\'q\')">Use Bob</button>';
            }
            function content6() {
                document.getElementById("display").innerHTML =
                '<p>Options that aid in development of gbscontrol. Users normally don\'t need to adjust these.</p>' +
                '<h2>Move Picture (memory blank, HS)</h2>' +
                '<button class="button" type="button" onclick="loadDoc(\'-\')">Left</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'+\')">Right</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'1\')">HS Left</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'0\')">HS Right</button>' +
                '<h2>Information</h2>' +
                '<button class="button" type="button" onclick="loadDoc(\'i\')">Print Infos</button>' +
                '<button class="button" type="button" onclick="loadDoc(\',\')">Get Video Timings</button>' +
                '<h2>Commands</h2>' +
                '<button class="button" type="button" onclick="loadUser(\'l\')">Cycle SDRAM clock speed</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'q\')">Reset Chip</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'8\')">Invert Sync</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'n\')">PLL divider++</button>' +
                '<br>' +
                '<button class="button" type="button" onclick="loadDoc(\'D\')">Debug View</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'F\')">ADC Filter</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'o\')">Oversampling</button>' +
                '<button class="button" type="button" onclick="loadUser(\'F\')">Freeze Capture</button>' +
                '<br>' +
                '<button class="button" type="button" onclick="loadDoc(\'a\')">HTotal++</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'A\')">HTotal--</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'.\')">Resynchronize HTotal</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'l\')">Reset SyncProcessor</button>' +
                '<br>' +
                '<button class="button" type="button" onclick="loadDoc(\'S\')">Snap to 60/50Hz for HDMI</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'m\')">SyncWatcher</button>' +
                '<button class="button" type="button" onclick="loadDoc(\'c\')">Enable OTA Updates</button>' +
                '<button class="button" type="button" onclick="loadUser(\'E\')">IF Auto Offset</button>' +
                '<br>' +
                '<button class="button" type="button" onclick="loadUser(\'z\')">SOG Level--</button>';
            }
            function content7() {
                document.getElementById("display").innerHTML =
                '<button class="button" type="button" onclick="javascript:location.href=\'/wifi.htm\'">Connect to WiFi Network</button>' +
                '<button class="button" type="button" onclick="loadUser(\'a\')">Restart</button>' +
                '<button class="button" type="button" onclick="loadUser(\'e\')">List Options</button>' +
                '<button class="button" type="button" onclick="loadUser(\'1\')">Reset Defaults + Restart</button>';
            }
            window.addEventListener('load', function(event) {
                content1();
                theTerminal = document.getElementById('outputTextArea');
                ws = null;
                createWebSocket();
                wsCheckTimer = setInterval(checkWs, 500);
            });
            window.addEventListener('unload', function(event) {
                clearInterval(wsCheckTimer);
                if (ws) {
                    if (ws.readyState == 0 || ws.readyState == 1) {
                        ws.close();
                    }
                }
                console.log('unload');
            });
            var eventsQueued = 0;
            var theTerminal;
            var ws = null;
            var isWsActive = 0;
            var wsTimeout;
            var wsCheckTimer;
            var wsConnectCounter = 0;
            var wsNoSuccessConnectingCounter = 0;
            var queuedText = '';
            function loadDoc(link) {
                var xhttp = new XMLHttpRequest();
                xhttp.open('GET', 'sc?' + link + '&nocache=' + new Date().getTime(), true);
                xhttp.send();
            }
            function loadUser(link) {
                var xhttp = new XMLHttpRequest();
                xhttp.open('GET', 'uc?' + link + '&nocache=' + new Date().getTime(), true);
                xhttp.send();
                if (link == 'a' || link == '1') {
                    isWsActive = 0;
                    theTerminal.value += ' Restart';
                    theTerminal.value += '\n';
                    theTerminal.scrollTop = theTerminal.scrollHeight;
                }
            }
            var repeatTimeout = null;
            var repeatInterval = null;
            function repeatStart(fn, link) {
                repeatStop();
                fn(link);
                repeatTimeout = setTimeout(function() {
                    repeatInterval = setInterval(function() {
                        fn(link);
                    }, 200);
                }, 750);
            }
            function repeatStop() {
                if (repeatTimeout) {
                    clearTimeout(repeatTimeout);
                    repeatTimeout = null;
                }
                if (repeatInterval) {
                    clearInterval(repeatInterval);
                    repeatInterval = null;
                }
            }
            function makeButtonsRepeatable() {
                var buttons = document.getElementById('display').getElementsByTagName('button');
                for (var i = 0; i < buttons.length; ++i) {
                    var button = buttons[i];
                    if (/(^|\s)repeating(\s|$)/.test(button.className)) {
                        var onClick = /(load(User|Doc))\(\'(.+)\'\)/.exec(button.onclick);
                        if (onClick) {
                            var fn = onClick[1];
                            var link = onClick[3];
                            if (typeof window[fn] == 'function') {
                                fn = window[fn];
                                (function(fn, link) {
                                    button.onclick = null;
                                    button.onmousedown = function() { repeatStart(fn, link); };
                                    button.onmouseup = repeatStop;
                                    button.onmouseleave = repeatStop;
                                    button.onkeypress = function(e) { if (e.keyCode == 13) fn(link); };
                                })(fn, link);
                            }
                        }
                    }
                }
            }
            function checkWs() {
                if (isWsActive === 0) {
                    if (ws) {
                        /*
                        0     CONNECTING
                        1     OPEN
                        2     CLOSING
                        3     CLOSED
                        */
                        if (ws.readyState == 3) {
                            ws = null;
                        }
                        else if (ws.readyState == 2) {
                            /* console.log('ws CLOSING > repeat ws.close()'); */
                            ws.close();
                        }
                        else if (ws.readyState == 1) {
                            ws.close();
                        }
                        /* createWebSocket deals with 0 */
                    }
                    createWebSocket();
                }
            }
            function timeOutWs() {
                console.log('timeOutWs');
                if (ws) {
                    ws.close();
                }
                isWsActive = 0;
            }
            function createWebSocket() {
                if (ws) {
                    if (ws.readyState == 2) {
                        wsNoSuccessConnectingCounter++;
                        /* console.log(wsNoSuccessConnectingCounter); */
                        if (wsNoSuccessConnectingCounter >= 7) {
                            console.log('ws still closing, force close');
                            ws = null;
                            wsNoSuccessConnectingCounter = 0;
                            /* fall through */
                        }
                        else {
                            return;
                        }
                    }
                    else if (ws.readyState == 0) {
                        wsNoSuccessConnectingCounter++;
                        /*console.log(wsNoSuccessConnectingCounter); */
                        if (wsNoSuccessConnectingCounter >= 14) {
                            console.log('ws still connecting, retry');
                            ws.close();
                            wsNoSuccessConnectingCounter = 0;
                        }
                        return;
                    }
                    else {
                        return;
                    }
                }
               
                wsNoSuccessConnectingCounter = 0;
                ws = new WebSocket('ws://' + location.hostname + ':81/',['arduino']);
                           
                ws.onopen = function() {
                    wsConnectCounter++;
                    console.log('ws onopen');
                    isWsActive = 1;
                    wsTimeout = setTimeout(timeOutWs, 6000);
                    wsNoSuccessConnectingCounter = 0;
                    /*theTerminal.value += 'ws' + wsConnectCounter + ' connected\n';
                    theTerminal.scrollTop = theTerminal.scrollHeight;*/
                }
                ;
                ws.onclose = function(event) {
                    console.log('ws.onclose');
                    clearTimeout(wsTimeout);
                    isWsActive = 0;
                }
                ;
                ws.onmessage = function(e) {
                    clearTimeout(wsTimeout);
                    wsTimeout = setTimeout(timeOutWs, 2700);
                    isWsActive = 1;
                    if (e.data[0] != '#') {
                        queuedText += e.data;
                        eventsQueued++;
                        if (eventsQueued >= 2000) {
                            theTerminal.value = '';
                            eventsQueued = 0;
                        }
                        requestAnimationFrame(function() {
                            theTerminal.value += queuedText;
                            queuedText = '';
                            theTerminal.scrollTop = theTerminal.scrollHeight;
                        });
                    } else {
                        var presetId = e.data[1];
                        var activePresetButton = document.getElementById(presetId);
                        if (activePresetButton) {
                            var presetButtonList = document.getElementsByClassName('button preset');
                            [].forEach.call(presetButtonList, function(button) {
                                if (button !== activePresetButton) {
                                    button.classList.remove('active');
                                } else {
                                    button.classList.add('active');
                                }
                            });
                        }

                        var slotId = '1' + e.data[2];
                        var activeSlotButton = document.getElementById(slotId);
                        if (activeSlotButton) {
                            var slotButtonList = document.getElementsByClassName('button slot');
                            [].forEach.call(slotButtonList, function(button) {
                                if (button !== activeSlotButton) {
                                    button.classList.remove('active');
                                } else {
                                    button.classList.add('active');
                                }
                            });
                        }

                        if (e.data[3] && e.data[4] && e.data[5]) {
                            var optionByte0 = e.data[3].charCodeAt(0);
                            var optionByte1 = e.data[4].charCodeAt(0);
                            var optionByte2 = e.data[5].charCodeAt(0);
                            var optionButtonList = document.getElementsByClassName('button option');
                            [].forEach.call(optionButtonList, function(button) {
                                /* optionByte0 */
                                if (button.classList.contains('adcAutoGain')) {
                                    if ((optionByte0 & 0x01) == 0x01) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('scanlines')) {
                                    if ((optionByte0 & 0x02) == 0x02) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('vdsLineFilter')) {
                                    if ((optionByte0 & 0x04) == 0x04) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('peaking')) {
                                    if ((optionByte0 & 0x08) == 0x08) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('palForce60')) {
                                    if ((optionByte0 & 0x10) == 0x10) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                } else if (button.classList.contains('wantOutputComponent')) {
                                    if ((optionByte0 & 0x20) == 0x20) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                /* optionByte1 */
                                if (button.classList.contains('matched')) {
                                    if ((optionByte1 & 0x01) == 0x01) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('frameTimeLock')) {
                                    if ((optionByte1 & 0x02) == 0x02) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('motionAdaptive')) {
                                    if ((optionByte1 & 0x04) == 0x04) {
                                        button.classList.remove('active');
                                    } else {
                                        button.classList.add('active');
                                    }
                                }
                                /* inverse of motionAdaptive, 1=bob*/
                                if (button.classList.contains('bob')) {
                                    if ((optionByte1 & 0x04) == 0x04) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('tap6')) {
                                    if ((optionByte1 & 0x08) == 0x08) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('step')) {
                                    if ((optionByte1 & 0x10) == 0x10) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('fullHeight')) {
                                    if ((optionByte1 & 0x20) == 0x20) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                /* optionByte2 */
                                if (button.classList.contains('enableCalibrationADC')) {
                                    if ((optionByte2 & 0x01) == 0x01) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                                if (button.classList.contains('preferScalingRgbhv')) {
                                    if ((optionByte2 & 0x02) == 0x02) {
                                        button.classList.add('active');
                                    } else {
                                        button.classList.remove('active');
                                    }
                                }
                            });
                        }
                    }
                }
                ;
            }
        </script>
    </head>
    <body>
        <div class="div1">
            <button class="btn-h" onclick="content1()">Presets</button>
            <button class="btn-h" onclick="content2()">Picture Control</button>
            <button class="btn-h" onclick="content3()">Enhancements</button>
            <button class="btn-h" onclick="content5()">Preferences</button>
            <button class="btn-h" onclick="content6()">Development</button>
            <button class="btn-h" onclick="content7()">System</button>
        </div>
        <div class="div2" id="display"></div>
        <div class="div3" id="terminal">
            <form>
                <textarea id='outputTextArea' readonly></textarea>
            </form>
        </div>
    </body>
</html>


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 3:53 am 



Joined: 18 Oct 2015
Posts: 756
and while you guys are fiddling around with the code, I've been playing around with the PLL divider, in search of those elusive sharp pixels. Here's what I have so far. Not perfect, but getting pretty close:

Image


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 4:45 am 



Joined: 08 Mar 2017
Posts: 1145
The repeat rate isn't hard limited.
If a request can't be served immediately, it will just queue up in the browser.
The ESP deals with requests async, and only briefly stops when doing active FTL.
Normally, it's no problem to deal with hundreds of queued items.

So I'd recommend using a snappy, low repeatInterval. 60ms seems to work nicely.
The initial delay could maybe be ~ 500 to 600ms,
just quick enough so that users have a chance to discover the function by accident :)

The extra enter key check works great. Now both functions are supported, cheers!

andehx:
SNES, right?
I think the PLL rate is already optimal by default, but next time I get the chance, I can check on the scope.
You'll have to align / optimize phase on the display as well.

Update:
For SNES, increase sampling clock until info mode reads ht:2386 (that's 0x952).
If there's glitches, fix them with the other controls (but I had none).


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 1:56 pm 



Joined: 18 Oct 2015
Posts: 756
rama wrote:
Update:
For SNES, increase sampling clock until info mode reads ht:2386 (that's 0x952).
If there's glitches, fix them with the other controls (but I had none).

which preset is this for? 1280x720? When I adjust the sampling clock in 1280x960, it seems to start at ht:2690


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 2:21 pm 



Joined: 08 Mar 2017
Posts: 1145
It's valid for all presets except 640x480, and no scaling changes.
The output is pixel perfect then.

Mind that if you're capturing, the capture card probably also has some requirements, but I don't know what those might be.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 2:35 pm 



Joined: 27 Jan 2019
Posts: 31
rama wrote:
The repeat rate isn't hard limited.
If a request can't be served immediately, it will just queue up in the browser.

I've had a few devices in the past that would queue up inputs to the point that when you took your finger off the button it would continue scrolling/increasing the volume for several seconds afterwards and that was something I hoped to avoid!

rama wrote:
So I'd recommend using a snappy, low repeatInterval. 60ms seems to work nicely.
The initial delay could maybe be ~ 500 to 600ms,
just quick enough so that users have a chance to discover the function by accident :)

Sounds good to me if that works for you - thank you. :)


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 2:46 pm 



Joined: 08 Mar 2017
Posts: 1145
benryves:
Yeah, I've certainly seen this happening when slamming enter for long times, and the WiFi connection not being perfect.
It's rare though, and pretty much needs to be provoked.
I suppose we could go in there and over-engineer it, but I think that dev time is better spent elsewhere for now :p

I'll commit the changes soon then. Thanks for this neat feature! :)


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 3:14 pm 



Joined: 18 Oct 2015
Posts: 756
I can't quite dial this in, even using a monitor instead of my capture card. 1280x720 I can "reduce" oversampling, using the HTotal-- button to 2386, but in the 1280x960 preset, oversampling starts at 2690. I can't get it anywhere near close to 2386 without losing signal.

2386 in the 1280x720 preset just doesn't look right either, neither on my capture card or my monitor. Not sure what I'm doing wrong.
Could you possibly post an image of your 256x224 grid, just so I can get an idea of how good it's supposed to look?

Also, how come 1280x1024 doesn't work? I get "matched preset override > 1280x960"


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 3:32 pm 



Joined: 08 Mar 2017
Posts: 1145
You can't quite photograph this from the display.
What I do is displaying a vertical line or checkerboard pattern from the 240p test suite, then looking at the scope.
The scope trigger is on HSync, and it displays one color channel.
It's correct when there are no more sinus / cosinus waves visible on the scope, and that happens at various points, one of which is 2386.
The default value, by the way, produces very little interference (it's chosen to work well with most consoles and resolutions).

Buuut, I just realized you're using the wrong control :)
Sampling phase is controlled with "PLL divider++" and looking at the info mode readout for the "ht:" value.

The matched presets thing is an option that's default enabled. You can disable it in the preferences.
It works for the 2 default presets, and pushes PAL sources to the x1024 preset, NTSC sources to the x960 preset.
This is a better default since it matches the line doubling factors of each source format.
But if you want to, it's optional :)

Edit: Scope pics!
default gbscontrol:
Spoiler: show
Image


optimized gbscontrol:
Spoiler: show
Image


original firmware:
Spoiler: show
Image


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 3:55 pm 



Joined: 18 Oct 2015
Posts: 756
ahh, so I was using the right control from the start :mrgreen: No wonder I wasn't seeing results anywhere close to my screenshot above. I'll play around with it somemore, see if I can dial it in.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 5:00 pm 



Joined: 08 Mar 2017
Posts: 1145
Yeah, the problem is that the actual (output, VDS) htotal also affects the final result.
So slight misalignment happens just as a function of normal operation with gsbcontrol, as it adjusts htotal to align the sync timings.
One day I'll probably add PLL divider adjustments for small htotal adjustments to counteract this.
It's getting seriously over-engineered at that point though, and the screwup potential goes way up.

Edit:
I just tried changing output htotal again, and for some reason now I don't get the problem anymore.
Htotal can be changed drastically, the pixel alignment stays correct.
Whatever changed, this is great news!
It makes "simple" optimized sampling rate presets a la OSSC possible :)


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Thu Nov 14, 2019 6:10 pm 



Joined: 18 Oct 2015
Posts: 756
rama wrote:
Yeah, the problem is that the actual (output, VDS) htotal also affects the final result.
So slight misalignment happens just as a function of normal operation with gsbcontrol, as it adjusts htotal to align the sync timings.
One day I'll probably add PLL divider adjustments for small htotal adjustments to counteract this.
It's getting seriously over-engineered at that point though, and the screwup potential goes way up.

Edit:
I just tried changing output htotal again, and for some reason now I don't get the problem anymore.
Htotal can be changed drastically, the pixel alignment stays correct.
Whatever changed, this is great news!
It makes "simple" optimized sampling rate presets a la OSSC possible :)

Well, i'm not 100% sure what all that means, but it all sounds good! Maybe my tinkering was worth it... :mrgreen:

This is definitely the limit of what I can achieve right now:

Image

Image


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Fri Nov 15, 2019 2:52 am 



Joined: 08 Mar 2017
Posts: 1145
3 chip console?
The chroma shift looks a bit odd. This isn't a typical gbscontrol issue, so might be a capture card setting?
If it's a 3 chip, then the result is good.
More tuning is needed if this is a 1 chip, as those should come out pixel perfect / emulator like.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Fri Nov 15, 2019 9:06 am 



Joined: 18 Oct 2015
Posts: 756
It's a 1chip with an rgb amp installed. It's probably just something I'm missing


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Fri Nov 15, 2019 3:10 pm 



Joined: 08 Mar 2017
Posts: 1145
If there are any more analog steps after the GBS, it's probably there.
The Metroid screenshot shows it's pretty good in regular material.
All none-chroma pixels seem to be sharp.

Maybe it's best to not be a perfectionist with everything :p


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Fri Nov 15, 2019 4:41 pm 



Joined: 08 Mar 2017
Posts: 1145
Has anyone ever seen these kind of 2 green bars on top of the image?
They seem to be there on the PS3 in RGB@60 mode only, and look like some kind of vblank trick?

Spoiler: show
Image


I'll have to blank them out, but that can reach into where some other sources place a bit of active video :/

Edit:
Here they are via Component video, too. Definitely some video trickery!
Spoiler: show
Image


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 20, 2019 1:36 pm 



Joined: 18 Oct 2015
Posts: 756
Image

So what I do to get those pixels so crisp, is firstly, I have to use the 720p preset, because this method for whatever reason, doesn't work with 1280x960, and my capture card doesn't support 1080p.
Using AmarecTV, I crop the 720p preset into the SNES's 8:7 aspect ratio, then I can scale the 720p preset, using the 2386 sampling phase, in gbscontrol, to fit into this 8:7 crop. This gives me a perfect 768x672 (x3 scale of the original 256x224 snes resolution) Horizontally, the pixels are still a bit soft, but the next part is where the magic happens.
I then scale down the AmarecTV preview window to a 256x224 size, and somehow this makes the pixels razor sharp, like in the image. All I have to do now, is Window Capture in OBS Studio, and use that to scale it back up to 768x672. Using nearest neighbor, it retains the sharpness.

It's a bit convoluted, but it works, and looks far better than simply connecting the SNES directly to my capture card (the PEXHDCAP supports 240p, but it stretches the image horizontally to 720, which messes the pixels up)

Obviously, this wouldn't work on a monitor, or in my case, a projector, but it's not really that important. I mainly wanted the sharpness for when im streaming :P


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 20, 2019 2:55 pm 



Joined: 08 Mar 2017
Posts: 1145
Ah yes, you're optimizing the post process by discarding extraneous pixels.
I think I heard about this on Youtube as well, as a good way to optimize image quality for streaming.

For what it's worth, the 2386 sampling rate is what makes it possible.
If you want it to work with other output resolutions, you'll always have to do that step (but only for SNES).

If you're not capturing, it's enough to set that sample rate.
The display should then look like your capture.
And thankfully, the default sampling rate is on a similar "node", so that it still appears perfect (unless you look at a checkerboard and get picky :p).
This default sampling rate is perfect for most 320px wide sources, btw.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 20, 2019 6:02 pm 



Joined: 18 Oct 2015
Posts: 756
rama wrote:
And thankfully, the default sampling rate is on a similar "node", so that it still appears perfect (unless you look at a checkerboard and get picky :p).
This default sampling rate is perfect for most 320px wide sources, btw.

Ah, interesting, that would make setting up the PS1 alot simpler.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 20, 2019 8:55 pm 



Joined: 18 Oct 2015
Posts: 756
What's going on with the scanlines in 1080p? They look uneven...

Image

I can see they're 2px in height, which is right for a 4x scale, but they seem to be spaced unevenly apart.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 20, 2019 9:28 pm 



Joined: 08 Mar 2017
Posts: 1145
Not the native resolution of the target, probably.


Top
 Offline Profile  
 
 Post subject: Re: GBS 8200/8220 CFW Project
PostPosted: Wed Nov 20, 2019 9:39 pm 



Joined: 18 Oct 2015
Posts: 756
I'm not sure I follow. This is 1080p on my 1080p projector. If you look closely, every other scanline is 1px higher than it should be.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2583 posts ]  Go to page Previous  1 ... 81, 82, 83, 84, 85, 86, 87  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Space Pilot 3K template by Jakob Persson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group