Serial Port Analyzer is the most precise RS232 testing software thanks to the possibility to reproduce the monitoring session in order to review certain port behavior with the same parameters used in different conditions. The software comes with comprehensive help system and intuitive interface, which makes it fairly simple to use. Arduino MEGA 2560 and Due. Both the MEGA 2560 and Due have 4 serial ports in total. One that connects through a USB port chip to the USB device port on the board and three extra serial ports that connect to pins on one of the pin headers of the board.
- Download RS232 and RS485 software. Logger, monitors and emulators for COM, RS232, USB, TCP and OPC interfaces.
- Serial Monitor can be successfully used for monitoring data flow between serial devices and Windows application, debugging com port connections, developing, reverse-engineering and implementing serial protocol, serial device driver development, serial hardware development, research the functionality of any third-party software and hardware, testing software and hardware. Free Serial Port Monitor can be successfully used by programmers, beta-testers, software.
This topic describes how to use
My.Computer.Ports
to receive strings from the computer's serial ports in Visual Basic.To receive strings from the serial port
Serial Port Communication Software
- Initialize the return string.
- Determine which serial port should provide the strings. This example assumes it is
COM1
. - Use the
My.Computer.Ports.OpenSerialPort
method to obtain a reference to the port. For more information, see OpenSerialPort.TheTry...Catch...Finally
block allows the application to close the serial port even if it generates an exception. All code that manipulates the serial port should appear within this block. - Create a
Do
loop for reading lines of text until no more lines are available. - Use the ReadLine() method to read the next available line of text from the serial port.
- Use an
If
statement to determine if the ReadLine() method returnsNothing
(which means no more text is available). If it does returnNothing
, exit theDo
loop. - Add an
Else
block to theIf
statement to handle the case if the string is actually read. The block appends the string from the serial port to the return string. - Return the string.
Example
This code example is also available as an IntelliSense code snippet. In the code snippet picker, it is located in Connectivity and Networking. For more information, see Code Snippets.
Compiling the Code
This example assumes the computer is using
COM1
.Robust Programming
This example assumes the computer is using
COM1
. For more flexibility, the code should allow the user to select the desired serial port from a list of available ports. For more information, see How to: Show Available Serial Ports.This example uses a
Try...Catch...Finally
block to make sure that the application closes the port and to catch any timeout exceptions. For more information, see Try...Catch...Finally Statement.See also
From Alithon Studio: Serial Port Utility is a professional communication software for serial port. Serialport Utility makes it more efficient for development of hardware-software application. It will boost the speed to design, development, debug and test applications and hardware devices, such as relay boards, Electronic Total Station, Global Positioning System, chemical and medical analysis instruments and DMX devices. It can send and receive data in high speed. Data can be viewed in Text, Hex and decimal format. It's also able to create complex structure data, like ZigBee/XBee API data framework or GIS Garmin data package. All data are stored in lists which can be accessed easily from GUI. Data can be sent automatically with flexible auto sending rules.
What do you need to know about free software?
From Alithon Studio:Serial Port Software Hyperterminal
Serial Port Utility is a professional communication software for serial port. Serialport Utility makes it more efficient for development of hardware-software application. It will boost the speed to design, development, debug and test applications and hardware devices, such as relay boards, Electronic Total Station, Global Positioning System, chemical and medical analysis instruments and DMX devices. It can send and receive data in high speed. Data can be viewed in Text, Hex and decimal format. It's also able to create complex structure data, like ZigBee/XBee API data framework or GIS Garmin data package. All data are stored in lists which can be accessed easily from GUI. Data can be sent automatically with flexible auto sending rules.