Serial port and GPS

Serial2IP Members

Serial2IP overview

Public Static (Shared) Fields

DEFAULTPORTDefault UDP or TCP port to use
DEFAULTTYPDefault IP server type

Private Static (Shared) Fields

MAXCONNECTIONSMaximal number of connections for the TCP/UDP server

Public Instance Constructors

Serial2IP Constructor Initializes an empty and switched off server

Public Instance Properties

BaudRate (inherited from Serial)Baud rate
DataBits (inherited from Serial)Baud rate
Filter (inherited from Serial)For filtering lines coming from the serial port
IsOpen (inherited from Serial)Tells if the serial port is opened
LogIf logging is switched on or off
Parity (inherited from Serial)Parity
PortName (inherited from Serial)Serial port name
RdByteCb (inherited from Serial) Calback function for handling bytes read from the serial port.
RdLineCb (inherited from Serial) Calback function for handling strings read from the serial port.
Read (inherited from Serial)If the reading thread have to be/is started
StopBits (inherited from Serial)Number of stop bits
Timeout (inherited from Serial)Timeout in milliseconds for both read and write

Public Instance Methods

Close (inherited from Serial)Closes serial port
Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
Open (inherited from Serial)Open serial port
operStarts or stops copying serial port data
ToString (inherited from Serial)Returns the string representation of the object
Write (inherited from Serial)Writes the given string to the serial port
WriteBytes (inherited from Serial)Writes number of bytes from the byte array

Protected Instance Methods

FinalizeDestructor switches the server off
MemberwiseClone (inherited from Object) 

Private Instance Fields

m_isactiveIf the server is active
m_logstrStream for logging, if logging switched on
m_lthrThread listening for incoming connections
m_tcpclntsArray of connected TCP clients
m_tcpserverThe TCP server
m_udpclntsArray of connected UDP clients
m_udpserverThe UDP server

Private Instance Methods

copyFktSends data from the serial port
dologLogs the given information if logging switched on
listeningFktTCPThread method listening on incoming TCP connections
listeningFktUDPThread method for listening on incoming UDP connections

See Also

Serial2IP Class | serial Namespace