Read data from COM Port (VB.NET)

VB.NET , .net framework 2 , System.IO.Ports.SerialPort Singapore
  • 6 years ago

    Hi, I am working on the following item: -

    Dim Port_01 as New System.IO.Ports.SerialPort

    There are list of functions below:

    Port1.Read() - Nothing was read Port1.ReadByte() - Some numeric figures but not the data that i sent Port1.ReadChar() - Return numeric position of the char that i specifically looking for. Port1.ReadExisting() - return data such as [ok] but not the data that i sent. Port_1.ReadTo() - it search the specific character to stop. so wil hang the system sometimes.

    Can anyone help? What i want to do is, if i send a AT command to my mobile phone, and my phone will do something (i.e. call / MMS), then reply thru the port with some data (ie receive MMS, SMS), i want to read the data, and stored it in my computer.

    Appreciate your great help.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“XML is like violence - if it's not working for you, you're not using enough of it.”