mirror of https://github.com/zxdos/zxuno.git
Añadida información sobre uso del módulo Wi-Fi
This commit is contained in:
parent
1c12f98b75
commit
1431207ded
|
|
@ -1,12 +1,13 @@
|
|||
= ZXDOS+ and gomaDOS+ Manual
|
||||
:author: kounch
|
||||
:revnumber: 1.0.0
|
||||
:revnumber: 1.0.1
|
||||
:doctype: book
|
||||
:email: kounch@users.noreply.github.com
|
||||
:Revision: 1.0
|
||||
:description: English Manual of ZXDOS+ and gomaDOS+
|
||||
:keywords: Manual, English, ZXDOS+, gomaDOS+
|
||||
:icons: font
|
||||
:icons: font
|
||||
:source-highlighter: rouge
|
||||
:toc: left
|
||||
:toc-title: Index
|
||||
:toclevels: 4
|
||||
|
|
@ -394,6 +395,64 @@ As explained in the installation part, there are a series of commands that are e
|
|||
- `zxuc`: Utility to configure al options of BIOS, which also can be stored in the microSD in configuration files that can be loaded later
|
||||
- `zxunocfg`: Configuration utillity for certain features of ZX-Uno such as timings, contention, keyboard type, CPU speed, video type or vertical frequency
|
||||
|
||||
<<<
|
||||
|
||||
=== Wi-Fi
|
||||
|
||||
Each gomaDOS+, and some models of ZXDOS+, include inside an ESP-12 module with an https://es.wikipedia.org/wiki/ESP8266[ESP8266] Wi-Fi chip, that can be easily used with a ZX Spectrum core (e.g., EXP27 160820 core) which has synthesized an https://es.wikipedia.org/wiki/Universal_Asynchronous_Receiver-Transmitter[UART] device, that allows communication with the module.
|
||||
|
||||
There are two "DOT" commands for configuring software access to the module. Then can be downloaded from https://github.com/zxdos/zxuno/tree/master/utils[GitHub official repository]:
|
||||
|
||||
- `esprst`, which restarts the module
|
||||
- `iwconfig`, to register the Wi-Fi network name (SSID) and password, keeping them in the file `/sys/config/iw.cfg`.
|
||||
|
||||
For example:
|
||||
[source,shell]
|
||||
----
|
||||
.iwconfig mywifi mypassword
|
||||
----
|
||||
|
||||
==== Network tools for ZX-Uno pack
|
||||
|
||||
These are programs, developed by Nihirash and that are available to https://nihirash.net/network-tools-for-zx-uno-pack/[download from his web].
|
||||
|
||||
- `uGophy`: https://es.wikipedia.org/wiki/Gopher[Gopher] client. Does not work in 48K mode.
|
||||
- `irc`: https://en.wikipedia.org/wiki/Internet_Relay_Chat[Internet Relay Chat] client. Works better at 14 Mhz.
|
||||
- `wget`: Utility to download files with HTTP (does not work with HTTPS)
|
||||
- `platoUNO`: https://es.wikipedia.org/wiki/Programmed_Logic_Automated_Teaching_Operations[PLATO] client. Also works better at 14 Mhz. For more information about PLATO, check https://www.irata.online/#about[IRATA.ONLINE] web.
|
||||
|
||||
==== FTP-Uno
|
||||
|
||||
FTP cliente developed by Yombo, available https://github.com/yomboprime/FTP_Uno[at GitHub].
|
||||
|
||||
Configuration steps:
|
||||
|
||||
. Edit `FTP.CFG` file with all the required information (SSID and password, FTP server, etc.)
|
||||
. Copy `FTP.CFG` inside `/SYS/CONFIG/` in microSD card
|
||||
. Also copy `ftpUno.tap` to any place in the card
|
||||
. Start up ZXDOS+ y load the tape file `ftpUno.tap`
|
||||
|
||||
<<<
|
||||
|
||||
==== UART Terminal
|
||||
|
||||
Program example included with https://github.com/yomboprime/ZXYLib[ZXYLib] C library, developed by yombo, that let's you send directly typed characters using the UART, and also see the result. Available to download https://github.com/yomboprime/ZXYLib/raw/master/UARTTERM.tap[at this link].
|
||||
|
||||
Once the file `UARTTERM.tap` is in the card and loaded, you can type several specific commands for ESP8266 chip. For example:
|
||||
|
||||
- `AT`. To check if ther is communication. `OK` would be the result if everything is fine
|
||||
- `AT+RST`. To restart the chip. Exactly what <<#_wi_fi,`esprst`>> command does
|
||||
- `AT+GMR`. To see some information, like firmware version, etc.
|
||||
- `AT+CWMODE_CUR=1`. Put temporarily the chip into Wi-Fi client mode, until next restart
|
||||
- `AT+CWMODE_DEF=1`. Put temporarily the chip into Wi-Fi client mode, and save it as default
|
||||
- `AT+CWJAP_CUR="<WiFiNetwork>","<WiFiPassword>"`, where `<WiFiNetwork>` Wi-Fi ID of the network to connect to, and `<WiFiPassword>` the access password, connects temporarily to that network
|
||||
- `AT+CWJAP_DEF="<WiFiNetwork>","<WiFiPassword>"`, connects to the network, and saves the settings as default in the chip flash memory
|
||||
- `AT+CWAUTOCONN=1` sets the chip to connect automatically on boot to the default network (`AT+CWAUTOCONN=0` disables it)
|
||||
|
||||
You can see all the available commands reading the https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf[official documentation].
|
||||
|
||||
<<<
|
||||
|
||||
== Upgrade
|
||||
|
||||
=== BIOS
|
||||
|
|
@ -1103,6 +1162,10 @@ http://www.zxuno.com/forum/viewtopic.php?f=35&t=44[WiFi en ZX-Uno]
|
|||
|
||||
http://svn.zxuno.com/svn/zxuno/cores/spectrum_v2_spartan6/test19_multi_uart/[Core de ZX-Uno Test UART (WiFi)]
|
||||
|
||||
https://nihirash.net/network-tools-for-zx-uno-pack/[Network tools for ZX-Uno pack]
|
||||
|
||||
https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf[ESP8266 AT Instruction Set]
|
||||
|
||||
http://www.forofpga.es/viewtopic.php?t=349[Core ZXNEXT en ZXDOS]
|
||||
|
||||
https://gitlab.com/thesmog358/tbblue/-/blob/master/docs/zxdos/zxdoscoreinstall.txt[ZX Spectrum Next en ZXDOS]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,12 +1,13 @@
|
|||
= Manual de ZXDOS+ y gomaDOS+
|
||||
:author: kounch
|
||||
:revnumber: 1.0.0
|
||||
:revnumber: 1.0.1
|
||||
:doctype: book
|
||||
:email: kounch@users.noreply.github.com
|
||||
:Revision: 1.0
|
||||
:description: Manual en castellano de ZXDOS+ y gomaDOS+
|
||||
:keywords: Manual, Castellano, ZXDOS+, gomaDOS+
|
||||
:icons: font
|
||||
:icons: font
|
||||
:source-highlighter: rouge
|
||||
:toc: left
|
||||
:toc-title: Índice
|
||||
:toclevels: 4
|
||||
|
|
@ -391,6 +392,64 @@ Tal y como se ha explicado en la parte de instalación, existe una serie de coma
|
|||
- `zxuc`: Configura todas las opciones de la BIOS, permitiendo grabar en la microSD las opciones seleccionadas en archivos de configuración que pueden posteriormente ser cargados.
|
||||
- `zxunocfg`: Configura determinados aspectos del funcionamiento del ZX-Uno como los timings, la contención, el tipo de teclado, la velocidad de la CPU, el tipo y frecuencia vertical del vídeo.
|
||||
|
||||
<<<
|
||||
|
||||
=== Wi-Fi
|
||||
|
||||
Todos los gomaDOS+, y algunos modelos de ZXDOS+, tienen incorporado un módulo ESP-12 con un chip Wi-Fi https://es.wikipedia.org/wiki/ESP8266[ESP8266], que se puede utilizar fácilmente con un core de ZX Spectrum (por ejemplo, el core EXP27 160820) que tenga sintetizado un dispositivo https://es.wikipedia.org/wiki/Universal_Asynchronous_Receiver-Transmitter[UART], que permite la comunicacion con el módulo.
|
||||
|
||||
Para configurar de forma básica el acceso al módulo, existen dos comandos "DOT" que se pueden obtener desde https://github.com/zxdos/zxuno/tree/master/utils[el repositorio oficial en GitHub]:
|
||||
|
||||
- `esprst`, que sirve para reiniciar el módulo
|
||||
- `iwconfig`, que se utiliza para indicar el identificador (SSID) y la contraseña de la red Wi-Fi a la que conectarse, que quedarán almacenados en el fichero `/sys/config/iw.cfg` para que puedan usarlos otros programas.
|
||||
|
||||
Por ejemplo:
|
||||
[source,shell]
|
||||
----
|
||||
.iwconfig miwifi miclavedeacceso
|
||||
----
|
||||
|
||||
==== Network tools for ZX-Uno pack
|
||||
|
||||
Se trata de un conjunto de programas, desarrollados por Nihirash y que se pueden https://nihirash.net/network-tools-for-zx-uno-pack/[descargar de su web].
|
||||
|
||||
- `uGophy`: Cliente de https://es.wikipedia.org/wiki/Gopher[Gopher]. No funciona en modo 48K.
|
||||
- `irc`: Cliente de https://en.wikipedia.org/wiki/Internet_Relay_Chat[Internet Relay Chat]. Funciona mejor a 14 Mhz.
|
||||
- `wget`: Utilidad para descargar ficheros vía HTTP (no funciona con HTTPS)
|
||||
- `platoUNO`: Cliente de https://es.wikipedia.org/wiki/Programmed_Logic_Automated_Teaching_Operations[PLATO]. También funciona mejor a 14 Mhz. Para más información sobre el uso moderno de PLATO, es interesante la web de https://www.irata.online/#about[IRATA.ONLINE].
|
||||
|
||||
==== FTP-Uno
|
||||
|
||||
Cliente de FTP desarrollado por Yombo, disponible https://github.com/yomboprime/FTP_Uno[en GitHub].
|
||||
|
||||
Para utilizarlo, se deben seguir los siguientes pasos:
|
||||
|
||||
. Editar el archivo `FTP.CFG` con los datos necesarios (Wi-Fi, servidor FTP al que conectar, etc.)
|
||||
. Copiar `FTP.CFG` en `/SYS/CONFIG/` en la tarjeta microSD
|
||||
. Copiar también `ftpUno.tap` al lugar que desee de la tarjeta
|
||||
. Iniciar el ZXDOS+ y cargar el archivo de cinta `ftpUno.tap`
|
||||
|
||||
<<<
|
||||
|
||||
==== UART Terminal
|
||||
|
||||
Se trata de un programa de ejemplo incluido con la biblioteca de funciones C https://github.com/yomboprime/ZXYLib[ZXYLib] desarrollada por yombo, y que permite enviar directamente pulsaciones de teclado a través del UART, y ver el resultado. Se puede descargar https://github.com/yomboprime/ZXYLib/raw/master/UARTTERM.tap[en este enlace].
|
||||
|
||||
Una vez copiado el fichero de cinta `UARTTERM.tap` y cargado, se pueden teclear distintos comandos específicos para el chip ESP8266. Por ejemplo:
|
||||
|
||||
- `AT`. Para verificar si hay comunicación con el chipo. El resultado normal, si todo está bien, sería `OK`
|
||||
- `AT+RST`. Para reiniciar el chip. Es exactamente lo mismo que hace el comando <<#_wi_fi,`esprst`>>
|
||||
- `AT+GMR`. Para ver información relativa al chip, versión de firmware instalado, etc
|
||||
- `AT+CWMODE_CUR=1`. Para configurar el chip en modo cliente Wi-Fi de forma temporal, hasta el próximo reinicio
|
||||
- `AT+CWMODE_DEF=1`. Para configurar el chip en modo cliente Wi-Fi y guardar el ajuste como opción por defecto
|
||||
- `AT+CWJAP_CUR="<RedWiFi>","<ContraseñaWiFi>"`, donde `<RedWiFi>` es el ID de a red Wi-Fi donde conectar, y `<ContraseñaWiFi>` la contraseña de acceso, conecta temporalente a la red indicada
|
||||
- `AT+CWJAP_DEF="<RedWiFi>","<ContraseñaWiFi>"`, conecta a la red indicada, y la guarda como red por defecto en la memoria del chip
|
||||
- `AT+CWAUTOCONN=1` configura el chip para conectarse a la red Wi-Fi por defecto al encenderse (`AT+CWAUTOCONN=0` desactiva esta opción)
|
||||
|
||||
Se pueden consultar todos los comandos disponibles en https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf[la documentación oficial del fabricante].
|
||||
|
||||
<<<
|
||||
|
||||
== Actualizaciones
|
||||
|
||||
=== BIOS
|
||||
|
|
@ -453,7 +512,6 @@ Si todo se ha hecho correctamente, al encender el ZXDOS+ se verá cómo esxdos d
|
|||
|
||||
<<<
|
||||
|
||||
|
||||
== Otros cores
|
||||
|
||||
=== ZX Spectrum Next
|
||||
|
|
@ -1101,6 +1159,10 @@ http://www.zxuno.com/forum/viewtopic.php?f=35&t=44[WiFi en ZX-Uno]
|
|||
|
||||
http://svn.zxuno.com/svn/zxuno/cores/spectrum_v2_spartan6/test19_multi_uart/[Core de ZX-Uno Test UART (WiFi)]
|
||||
|
||||
https://nihirash.net/network-tools-for-zx-uno-pack/[Network tools for ZX-Uno pack]
|
||||
|
||||
https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf[ESP8266 AT Instruction Set]
|
||||
|
||||
http://www.forofpga.es/viewtopic.php?t=349[Core ZXNEXT en ZXDOS]
|
||||
|
||||
https://gitlab.com/thesmog358/tbblue/-/blob/master/docs/zxdos/zxdoscoreinstall.txt[ZX Spectrum Next en ZXDOS]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue