Closed milika closed 5 years ago
Hey, not all details of your setup are clear to me, but I can see that the scaler identifies an RGB+HSync/VSync signal. Is this what you intended to do? Does your cable carry HSync and VSync?
I tried composite (Y) only, and RGBS (combined sync) same message. Could my unit be faulty? Should there be any picture without any source?
Try the composite (Y) only cable into the GBS green Component input. (It is an RCA "yellow plug" cable, right?) This should definitely give you a picture with an Amiga and confirm that it's working at least / as a starting point. The picture will be black and white :p
Tried exactly that - still the same :)
What is the log output then? Oh, and please update the software. I just pushed a fix to a bug that I introduced some time ago.
Ill try new fix. exactly the same log :) whatever i do
So you get "VS active HS active RGBHV bypass" even on the Component input? Are all other video connections from the Amiga disconnected?
If so, then there is an installation issue and the software on the ESP8266 reads garbage data.
Ok, new source uploaded, connected old DVD player via YUV now now get this:
*!**!**!*<reset> Activity detected, input: Component YUV .*!*!*<reset> Activity detected, input: Component YUV *!***!*<reset>
vtotal: 138
VS ST/SP : 173 188
VB ST/SP(dis): 189 188
VB ST/SP : 720 188
IF_VB_ST/SP : 720 965
*!*!
and options:
preset preference = 1 frame time lock = 1 preset slot = 1 frame lock method = 1 auto gain = 0 scanlines = 0 component output = 0 deinterlacer mode = 1 line filter = 0 peaking = 0 pal force60 = 1 /userprefs.txt 11 preset preference = 1 frame time lock = 1 preset slot = 1 frame lock method = 1 auto gain = 0 scanlines = 0 component output = 0 deinterlacer mode = 1 line filter = 0
Please try clearing all settings to default. In the Arduino IDE, select Tools > Erase Flash > All Flash Contents, then upload the sketch once. Turn Erase Flash back to Only Sketch afterwards. You'll have to do the WiFi setup again, so beware of that.
When you test the scaler after clearing the settings, please don't adjust any of the settings. It has to work out of the box, and if it doesn't, there is some kind of issue to fix first.
did it, all reset and everything and again:
*!!!!
Does (did) your GBS work without the ESP8266?
Yup, but awful, got menus but could not sync with amiga. Did not try via VHS, do not know if it still works. Would need to desolder...
Okay, I think there is a wiring problem or similar. There are some weird values in some of your logs, such as "vtotal: 138" (that's totally off the mark) or "preset id: EC" (I don't have such an ID).
Other values appear to be valid though, so maybe the fault is intermittent.
Is the jumper to disable the onboard MCU installed?
yes,im trying to send images now I resoldered it 3 times, tried switching sdl/sda (did not dettect ic then) used 2 d1 minis
Okay, I can't see an obvious problem in your pictures. Please get one more cable for another ground connection. Use the free GND pin on the GBS and find another ground point on the ESP8266 board (if there aren't any more, re-use the one you use now). The additional wire will make the communication more reliable.
If that doesn't fix it, please have the auto detect run for a minute or two, then copy the entire log and paste it somewhere. I can read some more stuff from a complete log.
how do i get the complete log?
By having a terminal open with the computer connected to the ESP8266 (as with sketch uploads). In the Arduino IDE: Tools > Serial Monitor Set the baud rate to 115200 if you only get garbage symbols.
Done, massive wire ground 2mm added log: starting (WiFi) AP mode (SSID: gbscontrol, pass 'qqqqqqqq'): Access 'gbscontrol.local' in your browser userprefs open ok preset preference = 0 frame time lock = 0 preset slot = 1 frame lock method = 0 auto gain = 0 scanlines = 0 component output = 0 deinterlacer mode = 0 line filter = 1 peaking = 1 pal force 60 = 0 i2c: 0
Do you still have the PC connected / terminal open? Try sending the letter "e" (no quotes, just e), then send "d" and paste the log. Also you can try the information readout mode by sending "i". A short (20 line) log of that would also help.
I have a hunch there will be bad data in the "d"ump ;)
here you go: :)
*!!
Yeah, the entire dump is uninitialized. The I2C comms must be bad, nothing is being written to the scaler chip and the readings in info mode are random bits. Possibly the I2C pins on the ESP8266 are wrong..
on D1 mini SDA and SCL pins are d1 and d2 https://escapequotes.net/wp-content/uploads/2016/02/esp8266-wemos-d1-mini-pinout.png
D1 - goes to scl, D2 goes to sdl on board, i think that should be fine as per https://ibb.co/tCBv1Tp
Yep, that looks correct. The fault remains that no data is being written to the scaler chip. You can test if a write is successful by doing this: first, send "m" to disable the auto sync detection (syncwatcher) next, send "s2s00s33" (it should return: S2R0x0 (was 0xFF) is now: 0x33) then read it back by sending "g2g00" (it should return G2R0x0 value: 0x33)
You can use these steps to debug the wiring problem (I assume that's what it is).
s2s00s33 returns S2R0x0 (was 0x0) is now: 0x0 not now: 0x33
G2R0x0 value: 0x0 also
Yes, the values the ESP8266 wants to write don't get through. I'm thinking about it.. It could be an Arduino ESP8266 core pin assignment issue, so that SCL and SDA aren't actually what the hardware uses for I2C. Do you have a multimeter nearby?
sure, and basic oscilloscope if needed
Here someone with a Wemos D1 Mini had similar issues and got them fixed: https://github.com/ramapcsx2/gbs-control/issues/47#issuecomment-435677165
Oh, a scope! Awesome.
Can you see activity on your D1 and D2 that looks like I2C? :)
https://ibb.co/PWw5KFQ - scl https://ibb.co/yWYs2gH - sda
hope it helps
hm i see we need lower time space https://ibb.co/KVk4bCK - sda it looks like its trying
Hmm, there is some activity that could be I2C alright. The default state is high and the ESP does seem to pull it low to communicate.
Let's focus on the I2C only. Here is a sketch that you can flash onto your ESP. It runs an I2C address check and should find 2 devices on the bus, if I2C works correctly: http://www.esp8266learning.com/i2c-scanner.php
Setting the baud rate to 9600 in the monitor and resetting the ESP, I get the following: $nٴ⸮ dr[⸮h⸮⸮>I⸮ I2C Scanner Scanning... I2C device found at address 0x17 ! I2C device found at address 0x50 ! done
And that is correct. (One device is the scaler chip, the other is a small EEPROM on the same bus.)
Scanning... I2C device found at address 0x50 ! done
only this, so communication is the problem. Should i reverse sda scl? or... :)
Now that's super weird.. The 2 devices should be on the same bus, and you say the GBS worked (kind of) with the original MCU. I sure hope they didn't change the hardware design or something..
so which device is missing, perhaps i can check its input voltage at least?
I see its rom chip
The scaler at 0x17 is missing. The EEPROM at 0x50 responds. If you can do a continuity check, there are 2 resistors marked R36 and R37, right next to the original MCU. The side of the resistors facing the MCU should have continuity with the small 8 pin chip nearby, on pins 5 and 6 of it. This is the I2C bus. Since the sketch can see the EEPROM, I assume there is continuity.
Once that is established, we'll go from there. (All tests done with the GBS powered off, of course :p)
Both of them have continuity with top left pin of small 8pin chip marked IC8
The other side of the resistors then, please. (You just found Vcc :) )
other side have some resistance to pin 2,7k r36 and 1.3k r37 i think, but definitely no brakage
and voltage on that pin is 3.35v
The GBS needs to be off!
I tested with off :) just tried voltage - on then tried, now off again :)
Hi, connected and reconnected few times, changed esp8266 and still same problem.
Using amiga via composite pal and cant get any picture, at all. Without amiga, with composite, with rgb, without, no picture.
This is the output when composite is connected:
found: 138 getVideoMode: 0 input: 1 VS active HS active RGBHV bypass RGBHV: HS active low post preset done (preset id: EC) (custom) !!!!!!!!!!<reset>