Skip to content

Dial-up Modem device#1523

Open
chschnell wants to merge 2 commits intocopy:masterfrom
chschnell:modem
Open

Dial-up Modem device#1523
chschnell wants to merge 2 commits intocopy:masterfrom
chschnell:modem

Conversation

@chschnell
Copy link
Contributor

Addresses #1512.

Add a serial Modem device, see the included documentation for a user guide.

With a few exceptions, this device follows ITU Recommendation V.250 in regards to the AT command interpreter, AT command syntax and the chosen subset of AT commands.

The UART class had to be extended to emit bus messages for changes of its DTR and RTS hardware signals.

There is a slight ugliness in the Modem constructor: It needs to use the bus to send configuration messages to the UART device, but the bus/UART isn't ready at that point in time, so this is delayed until bus event "emulator-ready" is received. It works reliably, but is there a better pattern for this, perhaps move the Modem construction down in the v86 boot sequence to a later point in time, after the CPU has initialized? Or add and call a method Modem.initialize() that is called after CPU initialization?

The only open issue left is what to store in v86 state snapshots for this device, I thinks this needs to be talked over. For now I've left out Modem.get_state() and set_state() entirely.

Added bus messages "serial<N>-data-terminal-ready-output" and "serial<N>-request-to-send-output" for RS-232 hardware output signals DTR and RTS, respectively.
- added new files "modem.js" and its documentation "modem.md"
- added new debug log type LOG_MODEM
- integrated Modem device into V86 options and web interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant