serial-port

Programmatically talking to a Serial Port in OS X or Linux

I have a Prolite LED sign that I like to set up to show scrolling search queries from a apache logs and other fun statistics. The problem is, my G5 does not have a serial port, so I have to use a usb to serial dongle. It shows up as /dev/cu.usbserial and /dev/tty.usbserial . When i do this everything seems to be hunky-dory: stty -f /d...

What is /dev/ttys# (notice the little s)?

I'm working on linux, trying to get the serial port to work. I know /dev/ttyS0 is a serial port, but what is /dev/ttys0? ...

How do I determine which process is using a serial port?

The company I work for makes hardware that communicates to the computer though a serial port. Third party companies write software that communicates with our hardware. There are times when I need to diagnose our hardware. However, a third party software app connects to the serial port when Windows starts up, blocking any other connecti...

Transmiting data throught the Serial Port

I'm working with the SerialPort class in the Compact Framework, but I can't recive more than 2047 bytes. Exists any limit for the amount of bytes that I can recive? or How can I setup the object? I was trying with the WriteBufferSize and ReadBufferSize properties but they didn't work. ...

Virtual Serial Port for Linux

I need to test a serial port application on Linux, however, my test machine only has one serial port. Is there a way to add a virtual serial port to Linux and test my application by emulating a device through a shell or script? Note: I cannot remap the port, it hard coded on ttys2 and I need to test the application as it is written. ...

Get two linux boxes talking over a serial port

What is the best way to setup one linux box to listen on its serial port for incoming connections? I've done a lot of googling but I can't find the right combination of commands to actually get them to talk! My main objective is to provide a serial interface to running instances of kvm/qemu VMs which currently only have a VNC interface (...

What Could Affect Values Returned By Serialport.Read()

I've written a simple app in C# 2.0 using the .Net Framework 2.0 Serialport class to communicate with a controller card via COM1. A problem occurred recently were the bytes returned by the Read method are incorrect. It returned the right amount of bytes, only the values were incorrect. A similar app written in Delphi still returned the...

How to programmatically associate a name like COM51 to a physical serial port in Microsoft Windows?

How to programmatically associate a name like COM51 to a physical serial port in Microsoft Windows? To manually perform the operation I can follow the steps described in link text Open Device Manager with devmgmt.msc Double-click Ports (COM & LPT). Right-click the port I want, and then click Properties. On the Port Settings tab, if ...

Robust and easy to implement serial bus (automotive application)

What serial communication bus would you use in a automotive embedded system if your main selection criteria were: * Electrically robust * Slow speed (32 kb/s) * Easy to program * Easy to interface with microcontrollers It won't be transferring much data, but it will need to be transferred periodically at high speed (100 - 500 Hz). I f...

Need assistance with serial port communications in Ruby

I need to do some communications over a serial port in Ruby. From my research, it appears that there aren't many modern libraries for serial communications and the newest material I can find is from 2006. Are there any gems that I'm not aware of? I ultimately need to maintain communications with a serial device attached to USB (I can ...

How to communicate with an Arduino over its serial interface in C++ on Linux?

I have an RFID reader connected to an Arduino board. I'd like to connect to it over its serial interface, and whenever the RFID reader omits a signal ( when it has read an (RF)ID ), I'd like to retrieve it in my C++ program. I already have the code for simply printing the RFID to serial from the Arduino. What I don't know, is how to re...

How to detect whether serial port is in use or not in .net

We have industrial automation application developed in .NET 3.5 framework. I have to list out the available serial ports in the computer for our user. As part this, if any of the serial port is already opened, I have to show "In Use" status. I tried google but no luck. Can someone help me please? Regards, Krishgy ...

C# check if a COM (Serial) port is already open

Is there an easy way of programmatically checking if a serial COM port is already open/being used? Normally I would use: try { // open port } catch (Exception ex) { // handle the exception } However, I would like to programatically check so I can attempt to use another COM port or some such. ...

What are TIOCM_OUT1 and TIOCM_OUT2 good for?

termios.h defines #define TIOCM_OUT1 0x2000 #define TIOCM_OUT2 0x4000 but what are the flags good for? ...

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: Open a serial port from a mobile device to a Bluetooth printer. Send an EPL/2 form to the Bluetooth printer, so that it understands how to treat the data it is about to receive. Once the form has been received, send some data to the printer which will be printed on label stock. Repeat st...

RS232 Communication - Can I use it to create a steady state signal?

In all honesty, I think the answer is "no;" however, I want to get a second opinion. Basically, I need one micro-controller device to send a steady signal to another one, but the communicate between them is using RS232. So I think that I have to create/update the communication messages to get it to do what I want. What do you think? ...

Serial port WriteFile() freeze

I have a simple application, which should send a single byte to a serial port once a minute. But sometimes, from some strange reason, it freezes somewhere in the WriteFile() function. Both sw and hw flow controls are turned off. I've googled some stuff about pending read operations performed from another threads, but I believe this is no...

Weird random data being sent from Arduino to Processing

I'm trying to read data from a photocell resistor and my Arduino Decimila and then graph it in real-time with Processing. Should be painfully simple; but its growing into a little bit of a nightmare for me. code I'm running on my Arduino: int photoPin = 0; void setup() { Serial.begin( 9600 ); } void loop() { int val = int( map( ...

SerialPort and the BSOD

I've written some C# code that checks whether a device is present on any SerialPort by issuing a command on the port and listening for a reply. When I just set the port speed, open the port, get the serial stream and start processing, it works 100% of the time. However, some of our devices work at different speeds and I am trying to prob...

Java RS-232 Communication on Windows

Does anyone know of a good Java API for controlling RS-232 devices in a WIN32 enviroment? I've tried RXTX but they don't support RS232, only RS-485. ...