How To Read Data From Serial Port

Jan 3, 2010

I am trying to read data from rfid tag using rfid reader. i can connect reader, but cannot get data?

View 4 Replies


ADVERTISEMENT

Reading Serial Port Read Data From Serial Port?

Aug 16, 2011

i am a absolute beginner and i want to use vb to receive data from micro controller through serial port using rs232 standards, i found this code to receive the data serially, can any one tell me where should i paste this code, so that the data received will be displayed in message box.Private Sub DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) HandlesSerialPort1.DataReceived

[Code]...

View 9 Replies

Read The Data From Barcode Weight Scales By Serial Port And TcpIp Port?

Nov 27, 2010

I'm mohammed from Oman ,I'm visual studio.net programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port

View 7 Replies

Read Data From Serial Port?

Apr 2, 2012

I am using a VB.NET(VS2010) to read data from serial port. I have 8-bit data to collect through rs232. This data is represented numbers. What reading method should I use and how to convert it to double format?

View 4 Replies

Read Data From The Serial Port?

Nov 12, 2009

I need to read data from the serial port Ive used serialport from the toolbox , but dont know how to use it. I used to do it on a Amiga like this

open serial("serial.device".0.2400.0) rem(open port)
repeat GW.w=readserial(0)
if gw>29 and gw<128

[Code]....

View 1 Replies

.net, Read 8 Bit Data From Serial Com1 Port?

Jun 25, 2010

I am trying to read data from serial com1 port. Now, I am not sure how to send. I found so many method to send but that are not so good and I cann't read any data. I am using VB.net 2005. Which is the best way and how can I read and send?

View 1 Replies

Read Data Returned From The Serial Port

Jan 2, 2011

Using Visual Basic 2008 How can i read data returned from the serial port . also how can i clear the buffer.

View 6 Replies

Serial Port To Read Data From Microcontroller?

Aug 9, 2010

<!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:"Cambria
Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-

[code]....

View 9 Replies

VS 2005 Can't Read Any Data From Serial Port

Mar 14, 2010

I have a problem with my program. i can't read any data from serial port. when i click on open the rs232 has to read but it doesn't.i use the program in a pdf(ADAM-4000_Ed-15).[code]

View 3 Replies

Read All Data From Serial Port (Com1 / RS232)

Nov 2, 2009

I am trying to make a program in vb 2005 to real all the data from a device connected on Serial Port (Com 1).i did this: [code]and this is how i want to reciveit.when i lounch the program i only receive first line "410001+00000001" and after that i get on the device rs232 error.

View 6 Replies

Reading Serial Port - Cannot Get Read Data Back

Jan 13, 2009

Using 2008 VB.Net trying to do serial communications. I have a Scantron scanner I can send data to it, but I can not get read data back sent to my serial port. I have tried ReadLine, ReadByte, etc. but i'm not capturing anything, and I don't understand the DataReceived event. [Code]

View 15 Replies

Write-read Data From Serial Port But It Don't Work?

Mar 11, 2010

i am trying to write-read data from serial port but it don't work my code look like this

[Code]...

View 2 Replies

Read From Serial Port And Parse Received Data On Event Serialdata.eof?

Nov 2, 2011

I'm having trouble with parsing an XML data from serial port.Actually I need to parse it automatically after all data is received from serial port.I can display all the data in a richtextbox control and all data is received perfectly but my problem isit seems that serialdata.eof function seems like it's not firing.

here's some of my code:

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'set serial port properties
With COMPort
.BaudRate = 19200

[code]....

what i need to know is how can i automatically parse the XML data from serial port after all data is received.

View 8 Replies

Read Serial Port Data Into A Text File In VB2008 Express?

Mar 11, 2010

i am trying to write a simple programme to allow the user to open and read data from a RS232 port on a medical equipment and save the data into text file. Iam not a techie. I am totally new to programming save a few projects in foxpro(lol.....yeah oldshool).

View 4 Replies

Serial Port Data Read Event - Blinking Function Not Working

Jun 19, 2011

im using vb 2008 to read serial port data. my requirement is as follows, when the data is received from the serial port a timer is enabling in order to blink a button saying "tank empty". so i have written the code with the aid of this forums. but now my problem is the blinking button function is not working. first i thought its cuz timer is not enabling inside the serial_dataReceived event. so i invoked a dummy label. so the timer works. but its blinking function is not working.

[Code]...

View 3 Replies

Timer Tick Event And Serial Port / Read And Display Live Data?

Jun 21, 2009

[code]...

I have a quick question regarding the serial port and timer tick event. Basically i have a micro processor connected to the PC via the serial port. With a baurd rate of 38400 set.When the PC sends the micro ":K + VBCRLF" the micro response with a string of information (ASCII encoded) and delimited with a "," and at the end of the transmission a cartridge return line feed is added.Example of sent string:

"12,1134,123,545,76,6868,34,232,1,2,3,6,7,8" These numbers are then split using the VB mystring.split(",") function into an array of strings, then the numbers are converted using ctype. After which my UI is then updated.I have Witten the code in a tick timer event using a timer count of 300ms. Although the program runs and the UI is updated i end it with lots of exception errors. I think allot of this is down to the serial port either timing out or not reading complete string.Or possibly the timer has not executed all the code before another tick event happens Even after adding a few try catch statements i am still having problems. Can anybody suggest a better way of doing it?I was thinking of using a do while loop and at the end a sleep function instead of the timer tick event.I need the speed as i am trying to read and display live data.

[code]...

View 1 Replies

How To Read Serial Port

Oct 27, 2009

i am new to VB.net and i am writeing a program to read a serial port and if there is any thing in the buffer i want to read the data and put it in a string then clear the buffer

View 1 Replies

How To Read The Serial Port

Jun 22, 2010

Ive got a big problem.I need to read data from the serial portIve used serialport from the toolbox , but dont know how to use it.I used to do it on a Amiga like this

open serial("serial.device".0.2400.0) rem(open port)
repeat GW.w=readserial(0)
if gw>29 and gw<128

[code].....

View 3 Replies

Read From Serial Port In Program?

Sep 6, 2010

I am using Scanpal2 to read data and as per its documentation as follows

View 8 Replies

Read Information From A Serial Port?

Nov 2, 2009

I have a teperature PCB that reports the temp back via serial port. I can open Hyper Terminal and receive all the data I want - so I know the unit is working... but I want to create a VB app so I can use the data received. When I run the program I get this error:

System.TimeoutException: The operation has timed out.
at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count)
at System.IO.Ports.SerialPort.InternalRead(Char[] buffer, Int32 offset, Int32 count, Int32 timeout, Boolean countMultiByteCharsAsOne)

[Code]...

View 3 Replies

Read SERIAL PORT In Vs2008?

Oct 27, 2010

I working on modbus software. I am able to communicate with the modbus slave. The only problem with me is after i write the message on the serial port , i read the serial port for data after say 100ms and i use "system.threading.thread.sleep(100)". This freezes my program for a while. Can you please help me build the logic for reading the serial port after say n no. of seconds without using "system.threading.thread.sleep". I am new to vb.net. I am using .net 3.5sp1 and vs2008.

View 6 Replies

Read Text From Serial Port

Oct 13, 2009

i cannot read data from my serial port..i am using HYPERTERMINAL on my other computer(computer 2)..i can send data from my computer(computer 1) and it showed on computer 2..but when i type things into my HYPERTERMINAL in computer 2, the Visual Basic program cannot read it??this is my code:

[Code]...

View 6 Replies

Read XML From A Device Through A Serial Port?

May 13, 2011

My current program can read in a continuous stream of data when initialized and I can send a command to retrieve the devices stored data, I also have within the same program code that will read an XML file and populate from controls.

I have two separate idea's right now that I'm trying to merge into one

I want to read in XML and populate my controls. I'm aware of delegate and Invoke but I'm having a hard time working them into my XML portion or the opposite "working my XML into my serial port class".

View 14 Replies

VS 2005 Read A Serial Port In .Net?

Dec 10, 2011

Actually I have a Weigh Bridge (A Large Scale weight mechanism which weighs in Tons) , for which we use an ELECTRONIC WEIGHT INDICATOR which display the weight on its own digital screen while it has an option to connect with a pc via Serial Port,,I just want is to have its weight (Digits) in a text box of my VB.Net Program,Here I want to mention that I know technical settings of my weight machine such as

Bite Per Second
Data Bits
Parity
Stop Bits
Etc,,,

View 17 Replies

VS 2008 Read Serial Port?

Jul 20, 2011

This code was published a few years ago by stanav. I have it reading my Com1 db9 port but having some issues.i have tried adjusting some timeouts, but then, it may just sit there.Jarbled Text - I should be getting results like "SOHEM709US17946US1114US62RST12345678920110714170301" etc., instead I am getting "3B?B?B?????99?F?F?3B?B?B?CAD?1???2?8?3?0??0?1?6"I/O Error - The I/O Operation has been aborted because of either a thread exit or an application request.

[Code]...

View 17 Replies

VS 2008 Serial Port Read?

Mar 11, 2010

I have written a sketch to an arduino board to send data to the serial port. How can I tell VB to only read from the serial port when data is sent to it? I have been using the timer.tick and tried to sink it with the delay I set in the arduino

View 2 Replies

Read Method Of Serial Port Class

Feb 15, 2011

I have a problem with read() method of serial port class, when I build my program my application doesn't respond or blocked!!
My code was something like this:
dim bRxdata(6) as Byte
...
serialport1.read(bRxdta, 0, 6)
I use vb 2008 xpress, win7 x86.

View 4 Replies

VS 2008 Serial Port Read RI Line?

Nov 3, 2011

Till drawer, connected to Com1, 9600,0,N,1 and a windows forms appThe drawer uses the RI line to show if the drawer is open or closed, but I cant find a way to read this line from the SerialPort control.. Been working on this for a while, but no dice!

View 4 Replies

VS 2008 Using Serial Port To Read String?

Jun 9, 2009

I have an application in Electronics to communicate with serial port. With using VB I have succesfully read a character using

Serialport1.ReadByte
or
Serialport1.ReadChar

[code].....

View 5 Replies

C# :: Read Serial Port Control Line States With .net?

May 10, 2011

I'm working on a project where I need to trigger an event when a switch is closed. It is my understanding that it is possible to use the control lines on a serial port and read whether the switch is closed or not. I've found a schematic of how to connect the switches to the pins, but I have not been able to find any example code on how you can read the state of the switches.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved