Skip to content

Latest commit

 

History

History
304 lines (193 loc) · 10.2 KB

File metadata and controls

304 lines (193 loc) · 10.2 KB

Web Server Guide

This guide explains how to connect your Papyrix Reader to WiFi and use the built-in web server to upload books from your computer or phone.

Overview

Papyrix Reader includes a built-in web server that allows you to:

  • Upload books wirelessly from any device on the same WiFi network
  • Browse and manage files on your device's SD card
  • Create folders to organize your ebooks
  • Delete files and folders
  • Upload and manage custom sleep screen images
  • Upload custom fonts and font themes

Prerequisites

  • Your Papyrix Reader device
  • A WiFi network
  • A computer, phone, or tablet connected to the same WiFi network

Step 1: Accessing File Transfer

  1. From the Home screen, press the Left button (or from the file browser, select Sync)
  2. Select File Transfer
  3. The device will automatically start scanning for available networks

Step 2: Connecting to WiFi

Viewing Available Networks

Once the scan completes, you'll see a list of available WiFi networks with the following indicators:

  • Signal strength bars (||||, |||, ||, |) - Shows connection quality
  • * symbol - Indicates the network is password-protected (encrypted)
  • + symbol - Indicates you have previously saved credentials for this network

Selecting a Network

  1. Use the Left/Right (or Volume Up/Down) buttons to navigate through the network list
  2. Press Confirm to select the highlighted network

Entering Password (for encrypted networks)

If the network requires a password:

  1. An on-screen keyboard will appear with a full character grid
  2. The keyboard is organized in zones:
    • Rows 1-3: Lowercase letters (a-z) and common symbols (. - _ @)
    • Rows 4-6: Uppercase letters (A-Z) and symbols (! # $ %)
    • Row 7: Numbers (0-9)
    • Row 8: Additional symbols (^ & * ( ) + [ ] )
    • Bottom row: SPACE and BACKSPACE controls
  3. Use Up/Down/Left/Right to navigate the grid
  4. Press Confirm to enter the selected character
  5. Press Back to cancel and return

Note: If you've previously connected to this network, the saved password will be used automatically.

Connection Process

The device will display "Connecting..." while establishing the connection. This typically takes 5-10 seconds.

Saving Credentials

If this is a new network, you'll be prompted to save the password:

  • Select Yes to save credentials for automatic connection next time (NOTE: These are stored in plaintext on the device's SD card. Do not use this for sensitive networks.)
  • Select No to connect without saving

Step 3: Connection Success

Once connected, the screen will display:

  • Network name (SSID)
  • IP Address (e.g., 192.168.1.102)
  • Web server URL (e.g., http://192.168.1.102/)

Important: Make note of the IP address - you'll need this to access the web interface from your computer or phone.


Step 4: Accessing the Web Interface

From a Computer

  1. Ensure your computer is connected to the same WiFi network as your Papyrix Reader
  2. Open any web browser (Chrome is recommended)
  3. Type the IP address shown on your device into the browser's address bar
    • Example: http://192.168.1.102/
  4. Press Enter

From a Phone or Tablet

  1. Ensure your phone/tablet is connected to the same WiFi network as your Papyrix Reader
  2. Open your mobile browser (Safari, Chrome, etc.)
  3. Type the IP address into the address bar
    • Example: http://192.168.1.102/
  4. Tap Go

Step 5: Using the Web Interface

The web interface uses a tab-based layout with four tabs: Books, Sleep, Fonts, and Themes. The firmware version is shown in the top-right corner.

Books tab

Books Tab

The Books tab is the default view. It shows files and folders on the SD card root.

  • Folders are shown with an orange DIR badge and a trash icon
  • Files show their size (e.g., "1.2 MB") and a trash icon
  • Click a folder name to navigate into it
  • The path breadcrumb (e.g., "SD" or "/books") shows the current location

Uploading Books

  1. Click the Upload button
  2. In the dialog, click Choose File and select a file
  3. Click Upload
  4. The page refreshes when the upload completes

Upload dialog (Books)

Supported book formats: .epub, .fb2, .html, .htm, .xtc, .xtch, .xtg, .xth, .txt, .text, .md, .markdown

Supported image formats: .jpg, .jpeg, .png, .bmp

Note: Files with uppercase extensions (e.g., Book.EPUB) are automatically normalized to lowercase on upload. Unsupported file types will be rejected.

Creating Folders

  1. Click the New Folder button
  2. Enter a folder name (letters, numbers, underscores, and hyphens only)
  3. Click Create

New Folder dialog

This is useful for organizing your ebooks by genre, author, or series.

Deleting Files and Folders

  1. Click the trash icon next to any file or folder
  2. Confirm the deletion in the popup dialog

Warning: Deletion is permanent and cannot be undone!

Note: Folders must be empty before they can be deleted.

Sleep Tab

The Sleep tab manages custom sleep screen images stored in the /sleep directory.

Sleep tab

  • Each file shows its name and size
  • A description at the top reminds you to set sleep mode to "Custom" in device settings

Uploading Sleep Screens

  1. Click the Upload button
  2. Select a .bmp file from your device
  3. Click Upload

Upload dialog (Sleep)

Note: Only .bmp files are accepted. Use the sleep screen converter (make sleep-screen) to convert images to the correct format.

Note: Set the Sleep Screen setting to Custom on the device to use uploaded images. A random image will be shown each time the device sleeps. See the User Guide for more details.

Fonts Tab

The Fonts tab manages custom font directories in /fonts on the SD card.

Fonts tab

  • Font directories are shown with DIR badges (e.g., literata-14, noto-sans-16)
  • Use Upload to add .epdfont font files
  • Use New Folder to create new font directories

See the Fonts Guide and Customization Guide for details on creating and using custom fonts.

Themes Tab

The Themes tab manages .theme files for custom CJK font themes.

Themes tab

  • Each .theme file shows its name and size
  • Use Upload to add new theme files

See the Customization Guide for details on creating and using custom themes.


Troubleshooting

Cannot See the Device on the Network

Problem: Browser shows "Cannot connect" or "Site can't be reached"

Solutions:

  1. Verify both devices are on the same WiFi network
    • Check your computer/phone WiFi settings
    • Confirm the Papyrix Reader shows "Connected" status
  2. Double-check the IP address
    • Make sure you typed it correctly
    • Include http:// at the beginning
  3. Try disabling VPN if you're using one
  4. Some networks have "client isolation" enabled - check with your network administrator

Connection Drops or Times Out

Problem: WiFi connection is unstable

Solutions:

  1. Move closer to the WiFi router
  2. Check signal strength on the device (should be at least || or better)
  3. Avoid interference from other devices
  4. Try a different WiFi network if available

Upload Fails

Problem: File upload doesn't complete or shows an error

Solutions:

  1. Ensure the file is a supported format (.epub, .fb2, .html, .txt, .md, etc.)
  2. Check that the SD card has enough free space
  3. Try uploading a smaller file first to test
  4. Refresh the browser page and try again

Saved Password Not Working

Problem: Device fails to connect with saved credentials

Solutions:

  1. When connection fails, you'll be prompted to "Forget Network"
  2. Select Yes to remove the saved password
  3. Reconnect and enter the password again
  4. Choose to save the new password

Security Notes

  • The web server runs on port 80 (standard HTTP)
  • No authentication is required - anyone on the same network can access the interface
  • The web server is only accessible while the WiFi screen shows "Connected"
  • The web server automatically stops when you exit the WiFi screen
  • For security, only use on trusted private networks

Technical Details

  • Supported WiFi: 2.4GHz networks (802.11 b/g/n)
  • Web Server Port: 80 (HTTP)
  • Maximum Upload Size: Limited by available SD card space
  • Supported File Formats: .epub, .fb2, .html, .htm, .xtc, .xtch, .xtg, .xth, .txt, .text, .md, .markdown (books); .jpg, .jpeg, .png, .bmp (images); .epdfont (fonts); .theme (themes)
  • Browser Compatibility: All modern browsers (Chrome, Firefox, Safari, Edge)

Tips and Best Practices

  1. Organize with folders - Create folders before uploading to keep your library organized
  2. Check signal strength - Stronger signals (||| or ||||) provide faster, more reliable uploads
  3. Upload multiple files - You can upload files one at a time; the page refreshes after each upload
  4. Use descriptive names - Name your folders clearly (e.g., "SciFi", "Mystery", "Non-Fiction")
  5. Keep credentials saved - Save your WiFi password for quick reconnection in the future
  6. Exit when done - Press Back to exit the WiFi screen and save battery

Exiting WiFi Mode

When you're finished uploading files:

  1. Press the Back button on your Papyrix Reader
  2. The web server will automatically stop
  3. WiFi will disconnect
  4. The device will automatically restart to reclaim memory

Note: The automatic restart is required because the ESP32's WiFi stack fragments memory in a way that cannot be recovered. Without this restart, XTC books may fail to load with a "Memory error". The restart is quick and your uploaded files will be immediately available in the file browser.


Related Documentation