serial-port

Send character to serial port

I would like to send the character 'a' to the serial port. I tried: serialPort1.WriteLine("a"); but it's not actually sending the character 'a' to my board. Any ideas? ...

Change COM port speed

How can I change the speed (bits per second) of the COM port on my machine using C# or the Win32 API via PInvoke? I would like to do this instead of going into the properties of the COM port in device manager. ...

Is it possible to use 9-bit serial communication in Linux?

RS-232 communication sometimes uses 9-bit bytes. This can be used to communicate with multiple microcontrollers on a bus where 8 bits are data and the extra bit indicates an address byte (rather than data). Inactive controllers only generate an interrupt for address bytes. Can a Linux program send and receive 9-bit bytes over a serial d...

Is there a Java client that supports Telnet RFC2217 (to communicate with COM ports over a network connection)?

This should be simple, very simple, but I'm having a hard time with it. Problem I'm looking for an open source project, in java, that will communicate using the RFC2217 protocol. I find no shortage of Java RFC2217 Terminal Servers but I need a client. If all these people are writing servers, someone has to have written a client! Righ...

Problem in reading from linux serial port....

I am working on robot which has to control using wireless serial communication. Robot is running on micro controller( by burning .hex file). I want to control it using my Linux(Ubuntu) pc. I am new to serial port programming. I am able to send the data but I am not able to read data. few piece of code which is running over micro controll...

Using pySerial to connect to a non-COM port

In Hyperterminal I am able to connect to a serial port called "X64-CL_iPro_1_Serial_0" where I am able to send/receive ASCII text to a camera. However when I try to connect to the same port with pySerial, it throws an exception: SerialException: could not open port X64-CL_iPro_1_Serial_0: [Error 2] The system cannot find the file specif...

send data over serial port with Matlab

Hello, I'm trying to use Matlab to send the codes 132 and 136 via the serial port. However, I'm not receiving the values I expect. Does anybody know how to do this?!? Thanks very much, Rogier ...

Specifying non-standard baud rate for FTDI virtual serial port under Linux

I have a USB device I'm trying to communicate with over a virtual serial port provided by the ftdi_sio kernel module. However, I'm having some trouble setting the baud rate of the port to 14400: termios.h doesn't specify a constant for 14400, so I can't use cfsetispeed and cfsetospeed. In the source for the ftdi_sio kernel module, baud...

Identifing a specific USB modem device so it could be reconnected to after a reset

My application is connected to a USB modem which maps to a COM port. I am trying to find a way to keep my application connected to that same device (via a com port) after a system restart, which - as I obsereved - keeps reassiging different COM port numbers to the devices. I was looking for an identifier which is constant for that modem...

SerialPort events won't fire on Windows Server 2008 using .NET 2.0 Application

I have a program that reads data from a scanner via the serial port. This program works fine on Windows XP. We have a terminal server set up running Windows Server 2008. I run HyperTerminal on our test terminal, it connects and reads the scanner data fine through COM1. I run my app on that same test terminal and get nothing when I sc...

Problem with SerialPort

I'm working with SerialPort to communicate (read only) with barcode reader. I've installed driver to operate with the reader as if it was connected via Com-port, though it is a usb device. When the device is plugged, one more Com-port appears in the list. The problem is the following. I initialize the SerialPort object to read from b...

Serial port programming on Android-Beagleboard

I am porting a linux application onto android, which runs on beagle board. My application has to access serial port(send/recv). Is it possible to read/write serialport using an application, unless the android is 'root'ed? ...

Programming rs232 to lcd (Linux)

Hello everyone, I'm using a pc1602f PowerTip directly connected to the PC parallel port using this scheme: http://www.beyondlogic.org/parlcd/parlcd.htm All well as energizes the LCD and shows me the front row with black blocks, until then fine but now I want to send information through the parallel port. If you look at the page you wi...

Not able to read data through serial port

Dear all, I am to read data on serial port. My setup OS: Ubuntu linux Device 1: BeagleBoard Device 2: My laptop I am using a serial to usb converter. Serial device on BeagleBoard: ttyS2 Serial device on Laptop : ttyUSB0 I did a simple thing to test the connection, I ran minicom on both the machines. when I type something on Beagl...

How to `cat' file in a specific baud?

I'm using uCsim to do unit test on SDCC projects. In uCsim/S51, you can simulate serial line traffic by s51 -s /dev/tty PROGRAM.ihx or s51 -S in=testdata.in,out=testdata.out PROGRAM.ihx In the latter form, the data is immediately sent to the simulator which causes a lot of frames are lost. So instead of given the test data in p...

Serial Transfer UART Delay

I currently have an embedded device connected to a PC through a serial port. I am having trouble with receiving data on the PC. When I use my PCI serial port card I am able to receive data right away (no delays). When I use my USB-To-Serial plug or the motherboards built in serial port I have to delay reading data (40ms for 32byte packet...

How to read from Serial port in a webpage

I want to design a webform that user should fill some fields. The value of one field should be read from Serial port (COM1) of client computer which a special hardware is connected to it and the user presses the Send to PC key of the hardware when filling the form. How i can listen to COM1 port in my webpage and get the value of COM1 a...

Using serial over lan with python

Hi, I'd like to write a python script to gather data from serial over lan but I can't seem to find a place to start with IPMI. I've looked at OpenIPMI's python bindings but there doesn't seem to be any documentation. Perhaps I can use the subprocess module and ipmitool? I'm not sure that would be simple though. Does anyone have any e...

Is it possible to use serial port in WinCE 5.0 emulator ?

Hi, Is it possible to use PC's serial port (com1) for WinCE 5.0 emulator? How to do that? FYI, I am working on a program which will communicate with another device using serial port. I need to use winCE emulator to test the application. ...

Looking for COM Port Sniffer to my Application

I am looking for something to test my app. The app is a weight logger, built in .net 3.5 - it is connected by rs232 to an electronic weight, but the problem is that I don't have it at home. I wanted to emulate the traffic and data with my app, but I have a problem: I can't get 2 apps on 1 port. Please help. ...