hi @WiC64 developers,
vice hat ein paar Fragemente eingebaut, um WiC64 ggfs. zu emulieren. Offenbar funktioniert die grundsaetzliche Kommunikation zwischen dem emulierten C64 und dem WiC64, da ein paar Programme zumindest vom Server geladen werden (sollten).
Ob die allerdings wirklich beim C64 ankommen, kann ich schwer feststellen.
Ich habe den portal launcher gestartert und das Teil haengt dann hier:
AUTOSTART: `/work/src/KickAssembler/workspace/WiC64/start.prg' recognized as program/p00 file.
Main CPU: RESET.
userport_wic64_store_pa2 val:01 (c64 sends)
Sound: Opened device `pulse', speed 48000Hz, fragment size 2.67ms, buffer size 101.33ms
reSID: MOS8580, filter on, sampling rate 40099Hz - resampling, pass to 18044Hz
Sync reset
Unit 8: RESET.
AUTOSTART: Injecting program data at $0801 (size $0631)
AUTOSTART: Ready
AUTOSTART: Turning Warp mode off.
AUTOSTART: Starting program.
AUTOSTART: Restoring FileSystemDevice8 to 1.
AUTOSTART: Restoring FSDevice8ConvertP00 to 1.
AUTOSTART: Restoring FSDeviceLongNames to 1.
AUTOSTART: Done.
Sync reset
command 06: get wic64 ip address
send_reply 11: 00 0b 31 39 32 2e...
userport_wic64_store_pa2 val:00 (c64 receives)
userport_wic64_store_pa2 val:01 (c64 sends)
command 01: http get
command 01: 'http://x.wic64.net/menue.prg'
command 01: 'http://x.wic64.net/menue.prg'
type:http
host:x.wic64.net
path:menue.prg
host:x.wic64.net
path:menue.prg
path:menue.prg
do_http_get url: 'http://x.wic64.net/menue.prg'
userport_wic64_store_pa2 val:00 (c64 receives)
write_cb n: 1 l: 1448 0
write_cb n: 1 l: 1448 1448
write_cb n: 1 l: 1448 2896
write_cb n: 1 l: 1175 4344
do_http_get ready
got 5519 bytes
send_binary_reply 5519: 15 8f 01 08 0b 08...
userport_wic64_store_pa2 val:01 (c64 sends)
command 01: http get
command 01: 'http://x.wic64.net/sid.php'
command 01: 'http://x.wic64.net/sid.php'
type:http
host:x.wic64.net
path:sid.php
host:x.wic64.net
path:sid.php
path:sid.php
do_http_get url: 'http://x.wic64.net/sid.php'
userport_wic64_store_pa2 val:00 (c64 receives)
write_cb n: 1 l: 28 0
do_http_get ready
got 28 bytes
send_binary_reply 28: 00 1c 01 73 65 63...
userport_wic64_store_pa2 val:01 (c64 sends)
command 01: http get
command 01: 'http://x.wic64.net/m64.php?mac=%mac&id=00'
command 01: 'http://x.wic64.net/m64.php?mac=%mac&id=00'
type:http
host:x.wic64.net
path:m64.php?mac=%mac&id=00
host:x.wic64.net
path:m64.php?mac=%mac&id=00
temppath:m64.php?mac=
temppath:m64.php?mac=
temppath:m64.php?mac=aabbccddeeff
temppath:m64.php?mac=aabbccddeeff&id=00
path:m64.php?mac=aabbccddeeff&id=00
do_http_get url: 'http://x.wic64.net/m64.php?mac=aabbccddeeff&id=00'
userport_wic64_store_pa2 val:00 (c64 receives)
write_cb n: 1 l: 295 0
do_http_get ready
got 295 bytes
send_binary_reply 295: 01 27 41 46 5e 41...
Display More
hinter der letzten URL kommt ca. sowas:
$ curl http://x.wic64.net/m64.php?mac=aabbccddeeff&id=00
$ AF^AA^Welcome ^AG^Login^http://x.wic64.net/m64/login.prg^AI^Register^http://x.wic64.net/m64/register.prg^AK^Lost Password^http://x.wic64.net/m64/pwreset.prg^AN^WiFi Setup^http://x.wic64.net/m64/wifi.prg^BA^Firmware Update^http://x.wic64.net/m64/update.prg^BE^Exit^http://x.wic64.net/m64/exit.prg
Ich braechte den Sourcecode von `start.prg' (WiC64 Portal Launcher ) oder dem Teil, der fuer diese URL bzw. der Behandlung der Antwort zustaendig ist.
Aktuell habe ich noch viel zu wenig Ahnung, was da in den Vice-Innereien passiert und ob wirklich der geladener Code von den URLs im C64 Speicher ankommt. Wenn ich den start-code ein wenig instrumentieren kann, werde ich schlauer sein.
Ich selbst habe kein WiC64 - spiele aber mit diversen Gimmicks herum, so auch am Userport mit ESPs. WiC64 und vorallem das SID Radio scheint recht populaer zu sein - also sollte ist es einen Versuch wert, auch Vice damit zu erweitern...
thanks, pottendo
PS: ich hoffe, dass dieser Thread noch halbwegs aktiv ist...