tagged [serial-port]

serial communication, read the 9th bit

serial communication, read the 9th bit I have an application which connects with an external protocol using serial communication. I need know if the wakeup bit is set on each packet it sends to me (th...

5 Aug at 01:35

Writing to the serial port from the Linux command line

Writing to the serial port from the Linux command line From Windows I can communicate with a serial port device using the following commands: The device starts the requested operation. When I try to a...

18 Aug at 20:27

How can I find out a COM port number of a bluetooth device in c#?

How can I find out a COM port number of a bluetooth device in c#? My company developed a device that communicates with a PC via Bluetooth using a virtual COM port. Now we need a user to pair a device ...

18 Jan at 10:57

How to find the serial port number on Mac OS X?

How to find the serial port number on Mac OS X? I have just started experimenting with Serproxy and Arduino to get some serial data into Flash Builder/Flex. Serproxy seems to work fine and seems to co...

5 Oct at 19:58

Accessing the SerialPort class using .Net Core 3.0

Accessing the SerialPort class using .Net Core 3.0 I'm starting a new .NET Core 3.0 project in which I need to access the System.IO.Ports.SerialPort class. The documentation I'm reading on the class s...

Python: Writing to and Reading from serial port

Python: Writing to and Reading from serial port I've read the documentation, but can't seem to find a straight answer on this. I have a list of all COM Ports in use by Modems connected to the computer...

2 Oct at 17:53

Implementing a timeout on a function returning a value

Implementing a timeout on a function returning a value I have a function that calls out a read or write request on a serial port and then returns the value that was read. I am using Commstudio express...

3 Sep at 00:8

Serial port communication: polling serial port vs using serial port DataReceived event

Serial port communication: polling serial port vs using serial port DataReceived event I am just reviewing some code I wrote to communicate with the serial port in C# on CF2.0. I am not using DataRece...

13 Mar at 21:4

What is the correct way to read a serial port using .NET framework?

What is the correct way to read a serial port using .NET framework? I've read a lot of questions here about how to read data from serial ports using the .NET SerialPort class but none of the recommend...

21 Aug at 00:45

Arduino COM port doesn't work

Arduino COM port doesn't work I bought an Arduino Uno recently. After getting the necessary cables, I decided to upload an example to the chip. Instead of seeing that Blink, I received an error like `...

29 Jan at 13:49

Reading from the serial port in C#

Reading from the serial port in C# I have tried using Readline() and data gets dropped, I tried using Read() but I am not sure how to have an error proof method of doing it, since I may get several pa...

16 Mar at 20:52

How can I simulate SerialPort interactions for testing?

How can I simulate SerialPort interactions for testing? I'm about to start developing a small app (C#) that communicates with a PLC and a testing unit via Serial Ports - this is my first venture into ...

14 Dec at 14:56

"The semaphore timeout period has expired" error for USB connection

"The semaphore timeout period has expired" error for USB connection I'm getting this error... > The semaphore timeout period has expired. On this line... > ThePorts.ActivePort1.Open(); ...but I only g...

why is access to com port denied?

why is access to com port denied? the code: ``` static void Main(string[] args) { Console.WriteLine("Memory mapped file reader started"); using (var file = MemoryMappedFile.OpenExisting("AIDA64_Se...

18 Sep at 14:55

Finding information about all serial devices connected through USB in C#

Finding information about all serial devices connected through USB in C# My project requires detection of a specific device when it is connected to USB. The only way I can identify this device is by i...

8 Oct at 17:21

How to create dll in C++ for using in C#

How to create dll in C++ for using in C# I've a little question to ask you. I have one C++ source and one header files. The C++ file uses windows.h library, makes operations using serial port(basic op...

3 Dec at 13:59

Serial port communication error, "The requested resource is in use."

Serial port communication error, "The requested resource is in use." Here is the code which reads data from a serial port. To keep the things simple, let's do it on a button click; ``` private System....

27 Aug at 09:16

How do I connect to a terminal to a serial-to-USB device on Ubuntu 10.10 (Maverick Meerkat)?

How do I connect to a terminal to a serial-to-USB device on Ubuntu 10.10 (Maverick Meerkat)? I am trying to connect minicom to a serial device that is connected via a USB-to-serial adapter. This is a ...

How to communicate with USB 3G modem?

How to communicate with USB 3G modem? I have a D-Link DWM-156 3G USB modem that I want to send AT-commands to from my application (C# .NET 4.0 running on Windows XP SP3). After plug-in and installatio...

22 Jun at 13:51

Serial Port ReadLine vs ReadExisting or how to read the data from serial port properly

Serial Port ReadLine vs ReadExisting or how to read the data from serial port properly I am reading data from serial port. The data comes off the scale. I am now using `Readline()` and getting data dr...

How to do robust SerialPort programming with .NET / C#?

How to do robust SerialPort programming with .NET / C#? I'm writing a Windows Service for communication with a Serial Mag-stripe reader and a relay board (access control system). I run into problems w...

14 Jan at 01:19

Issue reading smart card

Issue reading smart card I have reader which has doc almost exact as this one: [http://www.jinmuyu.com/download/JMY680A_EN.pdf](http://www.jinmuyu.com/download/JMY680A_EN.pdf) main difference being, m...

26 Apr at 11:2

ObjectDisposedExecption after closing a .NET SerialPort

ObjectDisposedExecption after closing a .NET SerialPort I am using a .NET 4 SerialPort object to talk to a device attached to COM1. When I am done with the device, I call Close on the SerialPort. I do...

How do I use dataReceived event of the SerialPort Port Object in C#?

How do I use dataReceived event of the SerialPort Port Object in C#? I am attempting to create a small application to collect data received from an external sensor attached to COM10. I have successful...

17 Nov at 18:2

How do I force a serial port write method to wait for the line to clear before sending its data?

How do I force a serial port write method to wait for the line to clear before sending its data? Here's some background on what I'm trying to do: 1. Open a serial port from a mobile device to a Blueto...