Serial port and GPS

Serial2IPForm Class

The main form for the serial 2 IP copy application

For a list of all members of this type, see Serial2IPForm Members.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ScrollableControl
               System.Windows.Forms.ContainerControl
                  System.Windows.Forms.Form
                     serial.Serial2IPForm

[Visual Basic]
Public Class Serial2IPForm
    Inherits Form
[C#]
public class Serial2IPForm : Form

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

m_ports The name of the serial port to use.
m_baud The baud rate for the serial port communications. 9600 or 4800 could be plasible choices.
m_databits Number of databits for the serial port. For example 8.
m_parities The parity for the serial port, for example None.
m_stopbits Number of stopbits for the serial port. One can be a plausible choice.
m_ipmodes IP server mode, in which the serial port data is served through IP. TCP or UDP - act as TCP or UDP server on listen for connections on the port specified in m_ipport. BCAST - broadcast data to to the UDP port specified in m_ipport. See also documentation on the class Serial2IP for more details on the IP modes.
m_ipport The TCP or UDP port to listen for incoming connections, if TCP or UDP has been selected in m_ipmodes. The UDP port to which to broadcast the serial port data, if BCAST has been selected in m_ipmodes.
m_status on, if copying data from serial port to IP has been started, off, if it is inactive.
Port/Open, m_menuopen Starts copying data from the serial port selected in m_ports to IP, using protocol selected in m_ipmodes and listening on port or broadcasting to port defined in m_ipport.
Port/Close Closes the serial port and the IP server.
Port/Log, m_menulog Starts or stops logging, which may be used for investigating failures. Especially exceptions and user interactions are logged. Application logs to a file s2ip<yyyyMMddHHmmss>.log located in the same directory as the execcutable. yyyyMMddHHmmss is the timestamp at which logging has been switched on.
Port/Exit Exits the application.
Warning! s2ip.exe only copies data from the serial port to IP. The program is inable to copy stream coming from IP into the serial port. Thus you can't for example enter PSRF103 sequences using IP.

Example

Requirements

Namespace: serial

Assembly: s2ip (in s2ip.exe)

See Also

Serial2IPForm Members | serial Namespace | Serial2IP | Serial2IPGUI