Skip to main content

All Questions

Tagged with
1 vote
0 answers
119 views

Unhandled errors in serial port at VB.NET. How to catch them?

I am writing some code in VB.NET with serial port. It is virtual USB CDC (serial port) device connected to the host. Serial device is threaded as it is asynchronous to main thread. As it is USB device,...
Kauno Medis's user avatar
0 votes
0 answers
202 views

Reading Xon-Xoff Standard Protocol

I'm trying to read the state of a old printer connected by RS232. In the manual of the printer I found the settings of the port: Baud 9600, 8 bit, 1 stop bit, No Parity, Flux Control Hardware. The ...
Gianfranco Vrech's user avatar
0 votes
0 answers
400 views

Which is the equivalent of My.Computer.Ports.SerialPortNames in .NET 5/6?

I need to work with serial ports, I had no problem in .net framework, but now porting on .NET 5 or above (wpf project), My.Computer.Ports.SerialPortNames is no more accessible. Here a simple sub that ...
user18107302's user avatar
1 vote
1 answer
2k views

see what is attached to a com port and show in combo box

Using the code below I can create a box with a combo box that shows the current com ports What I need to do is show what is attached to the com Port, for example I want it to list COM PORT1 FTDI USB ...
Jud Slater's user avatar
0 votes
1 answer
362 views

Why are my 2 USB connected devices, using separate FTDI Virtual COM Ports (COM3 and COM2), communicating over the same COM port?

I have a program written in Visual Basic (.NET Framework 3.0) that communicates with a power supply via a D2XX driver (over COM3) and a pump via a VCP driver (over COM2). Currently, if both USB ...
Daniel's user avatar
  • 1
1 vote
1 answer
365 views

how to write more than 255 characters in serial port

ndev = New SerialPort ndev.PortName = ComboBoxEx1.SelectedItem.ToString ndev.BaudRate = 115200 ndev.Parity = Parity.None ndev.DataBits = 8 ndev.StopBits = 1 ndev.Open() ndev.DiscardInBuffer() ndev....
Randolf Mensurado's user avatar
0 votes
1 answer
709 views

how does the process of reading a com port barcode work here?

I have a barcodescanner hooked up to a serialport. I read the Serialport via DataReceived-Event Now there is some weird timing issue occurring on repetitive scans that I try to explain in the ...
user avatar
0 votes
0 answers
107 views

Cannot use SystemIOPorts.SerialPort_Mono into vb.net app

My vb.net app is using .net framework 4.6 I replaced System.IO.Ports with System.IO.Ports.Mono (for netstandard 2.0) from https://github.com/michaldobrodenka/System.IO.Ports.Mono Then the app is ...
Moshe B's user avatar
0 votes
1 answer
2k views

How to fix "The I/O operation has been aborted because of either a thread exit or an application request" with SerialPort in VB.NET?

I'm pretty new at programming, and .net is the what I use to do the easy stuff I need. I created a program to read from a weight indicator that comes through the serial port and it was working just ...
jal2305's user avatar
0 votes
0 answers
607 views

How to add new line in serial port communication vb.net?

I open 2 serial port monitors which can send and receive data. Also I have 2 virtual com ports, com3 and com4. When I press for example "test" on the one and send it, the other receives it. ...
Christ's user avatar
  • 21
0 votes
1 answer
1k views

Unable to decode serial port data

I tried to receive data from medical 'Mindray bs 200' device through serial port. data received but is unreadable. Unable to find the kind of data encryption. Here is the code that receives the data ...
Reagan's user avatar
  • 79
1 vote
0 answers
90 views

Serialport Readline Issue

I have an app (vb.net) that has worked reliably for 12 years - but has started to give error messages. I calculate rotation values - send them to the servo - then check to see if the transmission is ...
Rfrank's user avatar
  • 51
0 votes
2 answers
2k views

Read weight from a weighing scale and update the UI

I'm facing a big problem here, I'm developing a app to read data from a Weight. Everything is working perfectly, but the result is not what I expected: when reading the data from the scale, it keeps ...
Abd Domingos's user avatar
0 votes
0 answers
350 views

Vb.net serial Port Write

I want to write into port.write a constant and a buffer in the same line? Example output: send 00A4000C02 is there a solution ? Dim sendcommand as String ="send" Dim abyBufferEnvio() as Byte ...
Xshell's user avatar
  • 35
1 vote
1 answer
95 views

Serial communication with Velleman relais card

I am trying to integrate a Velleman relay card VM8090 into my vb.net project. Unfortunately Velleman only provides a 32bit DLL, but our program is compiled x64. Therefore I try the communication ...
hilrol's user avatar
  • 57

15 30 50 per page
1
2 3 4 5
20