Skip to content
Robin Verhagen-Guest edited this page Jun 14, 2023 · 8 revisions

nxtp (Network neXt Time Protocol)

nxtp is an easy way of setting your local time on retro computers equipped with an RTC (Real Time Clock) and a network interface. It is similar to the well-known NTP Network Time Protocol but faster and more lightweight, and simpler to implement on retro computers.

nxtp Client

An .nxtp dot command client for the ZX Spectrum Next™ is provided, written in Z80N assembly language. You may add a command to your AUTOEXEC.BAS BASIC startup program to automatically sync the time whenever you boot into NextZXOS. Your Next must have an RTC and ESP8266-01 wifi module fitted in order to use nxtp.

You can tell nxtp to set the local time in your own timezone, including any daylight savings time currently in effect.

We also provide a C# reference client using .NET Core 3.0, to assist with porting to other architectures or machines.

If you haven't already done so, set up your Next WiFi using WIFI.BAS as described in this wiki article.

To sync date and time every time you boot your Next, set up AUTOEXEC.BAS as described in this wiki article.

nxtp Server

This server implementation is written in C# using .NET Core 3.0, and can be hosted on any Windows, Mac or linux computer. You may use the public server hosted by the Next team, or run your own private copy of the server on your PC. You may also run the server on a Raspberry Pi running Raspbian. It is lightweight enough to run on a wifi-equipped Raspberry Pi Zero W.

nxtp-js is another Node.js server implementation by Sergii Skorokhodov.

nxtp is another Go server and client implementation by Keith Gaughan.

A list of all known public servers is available here.

Protocol

The nxtp protocol is documented here.

Project Status

Download the latest Next client here.

If you have a GitHub account you can elect to be notified whenever there is a project release.

Copyright and Licence

nxtp is © 2019-2023 Robin Verhagen-Guest, and licensed under Apache 2.0.

Everyone is encouraged to host a public nxtp server, or port the nxtp client or server to a different machine or architecture.

ZX Spectrum Next is a trademark of SpecNext Ltd.