Serial Connection Parameters¶
In order to start sending and receiving serial packets, you need to open a serial connection to your SNAP-enabled bridge device.
Serial Type¶
SERIAL_TYPE_SNAPSTICK100¶
The SN132 SNAPstick, sometimes referred to as a “paddle board”, or the SN163 demonstration board, sometimes referred to as a “bridge board”.
These are easily recognized because they have no case (cover) and you can swap out the SNAP Engine for a different model. These must be plugged into a USB port.
SERIAL_TYPE_SNAPSTICK200¶
The |SS200| that has a plastic case and does not accept plug-in SNAP Engines. It is completely self-contained and has to be plugged into a USB port.
SERIAL_TYPE_RS232¶
An RS-232 COM port, USB-serial cable, or the clear plastic case SN220 SNAPstick.
Serial Port¶
Serial port is the port of a particular serial type to open, as appropriate for your operating system and device.
For the |SS200|, port number will be assigned based on the order that the |SS200| is discovered. If you only have one |SS200| connected, your port number will always be 0.
On Windows, the port for a SERIAL_TYPE_RS232
device is a zero-based COM port. (Specify 0 for COM1 for example).
On Linux or Mac OS X, port will typically be a string for SERIAL_TYPE_RS232
. For example, the SNAPconnect E20 will use
“/dev/snap1” and an SN220 SNAPstick might use something like “/dev/tty.usbserial-AK04R6G3”.