Skip to content

Commit

Permalink
Opening sources
Browse files Browse the repository at this point in the history
  • Loading branch information
nihirash committed Oct 23, 2020
1 parent e3e2156 commit bd661fd
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 4 deletions.
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
If you are using Internet NEXTplorer, I'd love to hear about it.
Let me(Alexander Sharikhin) know by sending email to [email protected].

I'm crazy about coffee. If you treat me to delicious coffee - it will be awesome.

You may use all data from this project as you want.

But if you will use parts of this project - please keep this info about my love to
coffee(or buy me a cup of coffee at least).
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ cspect/test.nex: pages main.asm engine/*.* drivers/*.* render/*.* utils/*.*
cp browser.nex cspect/

test: cspect/test.nex
cd cspect && mono CSpect.exe -w4 -nextrom -map=test.map -brk -tv -mmc=./tb/ -zxnext browser.nex
cd cspect && mono CSpect.exe -w4 -nextrom -map=test.map -brk -tv -mmc=./../ -zxnext browser.nex
73 changes: 73 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Internet NEXTplorer

Gopher browser for ZX Spectrum Next and compatible computers.

## Development

To compile project all you need is [sjasmplus](https://github.com/z00m128/sjasmplus).

You may use or not use GNU Make. But for just build enought only sjasmplus: `sjasmplus --zxnext=cspect main.asm`

If you want run it in emulator - use CSpect with configured REAL ESP-module! Buildin ESP-emulator doesn't support all necessary commands. But if you want run it in CSpect with buildin emulator there is some hack:

* Found in `drivers` directory file `wifi.asm`.

* Comment this lines:

```
EspCmdOkErr "AT+CIPSERVER=0"
EspCmdOkErr "AT+CIPDINFO=0" ; Disable additional info
jr c, .initError
```

And this

```
call Uart.read : cp 'S' : jr nz, getPacket
call Uart.read : cp 'E' : jr nz, getPacket
call Uart.read : cp 'D' : jr nz, getPacket
call Uart.read : cp 13 : jr nz, getPacket
```

* Build entire project and run it with cspect using this keys `-nextrom -tv -mmc=./../ -zxnext browser.nex`

I've tried organize code for eaiser location all parts and wish you won't have issues with it.

## Usage

Before usage you should have already configured wifi chip(via wifi.bas/wifi2.bas located at demos/esp in Next distro).

Best stablitiy I've got with [this](https://github.com/Threetwosevensixseven/espupdate/tree/master/fw/ESP8266_FULL_V3.3_SPUGS/NONOS_v200_1300) firmware.

How to install it?

* Download `NONOS_v200_1300.esp` from link that I've written before.

* Put it to Next's SD card

* Just open it via Next's browser. After process compete - reconfigure your chip again(via wifi.bas/wifi2.bas)

This firmware works good with uGophy, Internet NEXTplorer, nxtel, nxftp and other tools. Also with this firmware i've go less data losing.

When you did all this parts(or skipped updating firmware on ESP-chip) - just download latest binary from releases page, extract file to Next's SD card and execute from browser NEX-file.

## Known issues

Sometimes it's crashes. I didn't found reason - if you find it - please let me know.

Still not possible download files. Sorry.

## Development plan

[ ] Add file downloads using proxy server
[ ] Add mouse support
[ ] Automatic change song to next(if it goes as next link on page)
[ ] Same for screens
[ ] Support more graphic formats?!
[ ] Support more music formats?!

## License

I've licensed project by Nihirash's Coffeeware License.

Please respect it - it isn't hard.
6 changes: 3 additions & 3 deletions drivers/wifi.asm
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ init:
EspCmdOkErr "ATE0"
jr c, .initError
EspCmdOkErr "AT+CIPCLOSE" ; Close if there some connection was. Don't care about result
; EspCmdOkErr "AT+CIPSERVER=0"
; EspCmdOkErr "AT+CIPDINFO=0" ; Disable additional info
; jr c, .initError
EspCmdOkErr "AT+CIPSERVER=0"
EspCmdOkErr "AT+CIPDINFO=0" ; Disable additional info
jr c, .initError
EspCmdOkErr "AT+CIPMUX=0" ; Single connection mode
jr c, .initError
or a
Expand Down

0 comments on commit bd661fd

Please sign in to comment.