Skip to content

TSerialChipEinstein

Eckhart Köppen edited this page Oct 25, 2025 · 1 revision

The TSerialChipEinstein class implements the TSerialChip protocol to provide access to host-side serial ports or pseudo terminals. It presents a serial chip to NewtonOS which can be linked to the four serial port locations (internal, external, IrDA and modem). The implementation is part of the REx like other host drivers.

The class serves two purposes:

The instantiation and enabling of a TSerialChipEinstein based driver happens in the EinsteinPortEnabler package (part of the Newton preferences):

  1. Create a new instance of the TSerialChipEinstein class: Since TSerialChipEinstein is a protocol, NewtonOS is able to instantiate it by name as protocol implementation of TSerialChip
  2. Register the instance for the desired serial port location in the serial chip registry
  3. Start processing the options given to the driver:
    • Driver type (host serial port or host PTY)
    • Host file name

Note that it is also possible to perform the above steps as part of a regular Newton application, e.g. as part of a driver for external Bluetooth devices. EinsteinPortEnabler just allows configuration of the Newton serial port locations on a general level for existing Newton applications.

Clone this wiki locally