-N: Received Switch Closed Message¶
FAST Serial Protocol: Overview & First Steps
This documentation section is about the FAST Serial Protocol (FSP) commands, which are the low-level commands a host computer sends to a FAST board. Most FAST Pinball makers do not need to know about these details, since the pinball game framework (such as the Mission Pinball Framework) handles this communication for you.
If you're writing your own game framework, read the overview of how FSP works and how to connect first.
-N: message (and its related message,
/N:) is sent to the host computer
whenever a switch changes from open to closed. (Get it, the
- is closed and the
/ is open, like a schematic symbol.)
Note that these messages only come in for switches that you've configured to
notify you with the
SL command. Also notes that if these messages are
"backwards" (saying the switch is open when it's really closed and vice-versa),
you can configure the switch to invert the settings with the
SL: command also.
(This is needed for optos, for example.)
The actual incoming messages will contain the switch number (in hex), followed by a carriage return. So if you connect your serial terminal and then start hitting switches, you'll see something like this:
-N:00 /N:00 -N:00 /N:00 -N:01 /N:01 -N:0F /N:0F
These messages are just "point in time" status changes. If you want to query the
FAST controller to get the status of all the switches, use
Typically you use one of those commands when your game code is booting up to get
the current state of all the switches, and then just watch for changes after that.
Documentation Feedback? Requests? Confused?
Hi! I'm Brian, and I'm responsible for the documentation at FAST Pinball. If you have any feedback, requests, corrections, ideas, or any other thoughts about this documentation, please let me know! You can email me at firstname.lastname@example.org. Thanks!
N or > jump the next page, P or < for previous, search with S or ?