Consultancy and Total Solutions Training Provider for Embedded Systems, Electronics and Electrical Engineering, Programming, Computing, Operations, ISO9000, ISO14000 and Management.

Bridging the Gap

Training Courses

Serial Communication and Control with Visual Basic .NET

Course id: 0062


Visual Basic .NET is an object-oriented programming language that allows the developer to rapidly create graphical-based programs for the Microsoft Windows platform. In addition to its RAD and GUI nature, Visual Basic is a language with a lower learning curve than the likes of C/C++; hence it is commonly used in industrial environments for process control interfaces.

This course introduces serial communication control in Visual Basic, particularly targeting packetized serial communication.

What participants say about the course
The following are some verbatim statements from the participants:

  • Deliver very good and experience instructor in this course -- July 2014
  • The instructor able to deliver the course very well and very knowledgeable -- July 2014

What you will learn

This course concentrates on the practical knowledge to allow participants to achieve the following learning outcomes. Upon completing the course, participants would be able to:
  • Understand and use serial communication under Visual Basic
  • Packetise and depacketise serial data for robust communication
  • Use timers for asynchronous serial handling
  • File handling in Visual Basic

Who should attend

This course is particularly suited for people intending to develop applications requiring serial communication (e.g. M2M) in Visual Basic .NET.


Participants should have a diploma/degree in computer science- or engineering-related fields. They must have programming experience in Visual Basic .NET.

Course methodology

This course is presented in a workshop style with lectures interlaced with demonstrations and hands-on practicals for maximum understanding.

Course duration

2 days.

Course structure

  • Introduction
    • Overview of RS232
    • Using USB-to-serial converters
  • The SerialPort class
    • Overview
    • Constructors
    • Properties
    • Methods
    • Events
    • Hands-on practical: Instantiating a Serial Port
  • Transmission and reception
    • Transmitting a byte
    • Receiving a byte
    • Developing a console
    • Hands-on practical: Serial Console
  • Robust serial communication
    • Overview of robust data transfer
    • Packetising and transmitting data
    • Hands-on practical: Transmitting Packets
    • Reception and depacketising data
    • Hands-on practical: Receiving packets
    • Using the timer control
    • Hands-on practical: Robust Serial Communication
  • File I/O
    • Opening and closing new files
    • Opening and closing existing files
    • Reading, writing and appending files
    • Hands-on practical: File Access


Dr Royan Ong

Course Schedule





News on ProvenPac

  ProvenPac Sdn. Bhd.
  C-4-3 Gembira Park,
  Jalan Riang, 58200
  Kuala Lumpur, Malaysia

  Tel: +603 03 5889 5889

No public course
currently scheduled.


Please inform me when
this course is scheduled.


Please contact me to
arrange in-house training.