RP6502-RIA-W¶
RP6502 - RP6502 Interface Adapter W
Introduction¶
The RP6502 Interface Adapter W is a Raspberry Pi Pico 2 W running RP6502-RIA-W firmware. It does everything the RP6502-RIA does, plus the wireless services described below.
Wi-Fi Setup¶
The RP6502-RIA-W supports Wi-Fi 4 (802.11n). Configure it from the monitor.
Enable or disable the radio.
SET RF (0|1)turns all radios on (1, the default) or off (0) without touching your other settings.Set the country code.
SET RFCC (cc|-)sets the Wi-Fi country code for best performance (for exampleUSorGB). Runhelp set rfccto list supported codes, or use-to reset to the worldwide default.Set the network name (SSID).
SET SSID (ssid|-)sets your Wi-Fi network name, the Service Set Identifier. Use-to clear it. Runhelp set ssidto scan for and list nearby networks.Set the network password.
SET PASS (pass|-)sets your Wi-Fi password. Use-to clear it.Check status. The
statuscommand shows your current Wi-Fi connection and settings.
Network Time Protocol (NTP)¶
The real-time clock (RTC) synchronizes with internet time servers
automatically whenever Wi-Fi is connected. Check NTP status with the
status command.
Set the time zone. To use local time instead of UTC, set your time zone with
SET TZ; runHELP SET TZfor guidance. Daylight Saving Time adjustments are automatic if your locale observes them. The RP6502-OS offers programmatic access to the clock and time zone.
Once Wi-Fi and the time zone are configured, timekeeping takes care of itself.
Telnet Console¶
The RP6502-RIA-W can expose its console over the network, so you can reach the monitor or a running 6502 from a remote telnet client. Traffic is unencrypted, so treat it like any other telnet session.
Set the listening port.
SET PORT (port|0)sets the TCP port. The default is23, the standard telnet port; setting0disables the telnet console.Set the passkey.
SET KEY (key|-)sets the passkey required to connect. Use-to clear it.
The telnet console starts listening once KEY is set and PORT
is non-zero.
Modem Emulation¶
The RP6502-RIA-W can emulate a Hayes modem — the classic AT command set — for reaching BBSes (bulletin board systems). It places outgoing calls and answers incoming ones over either raw TCP or telnet. As with the telnet console, the connection is unencrypted.
AT commands. The modem speaks the standard AT command set for dialing, answering, and configuration.
Example AT commands:
ATA— Answer incoming callATDexample.com:23— Dial a BBS by addressATDS=0— Dial phonebook entry (0-3)+++— Escape back to command modeATE1— Set echoATH— Hang upATO— Return to callATQ0— Set quietingATSxxx?— Query register number xxxATSxxx=yyy— Set register number xxx with value yyyATV1— Set verbosityATX0— Set progress messagingATZ— Load profile from flashAT&F— Load factory profileAT&V— View profile, stored profile, phonebook, and networkAT&W— Write profile to flashAT&Z0=example.com:23— Save phonebook entry (0-3) to flashAT\L=23andAT\L?— Listen port forATA(0 disables)AT\N0orAT\N1andAT\N?— Network mode: 0=raw TCP, 1=telnetAT\T=ANSIandAT\T?— Terminal type advertised during telnet negotiationAT+RFCC=US,AT+RFCC?, andAT+RFCC!— Access RIA setting RFCCAT+SSID=your_ssid,AT+SSID?, andAT+SSID!— Access RIA setting SSIDAT+PASS=your_passandAT+PASS?— Access RIA setting PASS
Each AT+ setting uses = to set, ? to query the current value,
and ! to list (AT+SSID! scans for nearby networks, AT+RFCC!
lists supported country codes). Lists word-wrap to 80 columns.
The modem is available as a set of special device names:
AT:is transient — it starts from factory defaults, has no phonebook, andAT&Whas nothing to save.AT0:throughAT9:are ten independent profiles, each with its own flash-backed settings and four-slot phonebook (AT&Z0-AT&Z3).
When you open a numbered device, it loads its saved profile. AT&W
writes the profile back, ATZ reloads it, and AT&F restores
factory defaults. Up to four modem devices can be open and in use at
once.
The AT+ commands (+RFCC, +SSID, +PASS) pass straight
through to the global RIA settings and take effect immediately, no matter
which modem device is open.
The modem needs the radio. Opening any AT device fails with ENODEV
while the radio is off (SET RF 0); enable it with SET RF 1.
Bluetooth¶
The RP6502-RIA-W supports Bluetooth LE (BLE) keyboards, mice, and gamepads. Bluetooth Classic (BR/EDR) is not supported. BLE has been everywhere since Bluetooth 4.0 (June 2010), so compatible devices are easy to find — though the occasional oddball still turns up.
To add a device, run the monitor command set ble 2 to enter pairing
mode; the LED on the RP6502-RIA-W blinks while it’s pairing. Put your
device into its own pairing mode too — check its manual, but it’s
probably a button and some more blinking. When the blinking stops, the
device is connected and bonded, so it reconnects automatically from then
on.