serial-port

What are the implications of half-duplex serial connections?

What are the implications of using a half-duplex serial connection versus a full-duplex one? What happens if both sides try sending data at the same time? Do you end up with corrupt data arriving on both ends? Does flow-control help you with this? ...

What are the licence restrictions for the RxTx Library

I want to make an Application that uses RxTx version 2.2pre2 to work with Serial Ports. What are the Licence restrictions, since it is an "LGPL v 2.1 + Linking Over Controlled Interface" licenced library if I don't use the Sun's javax.comm.* interface, but the RxTx's own gnu.io.* when importing into Java Files? ...

Opened SerialPort crashes C# application

The computer is connected to measuring device via a physical COM1. I have simple form where I open a serial port, tell the device that I'm alive and occasionally the device sends data. (every some minutes) Thread _readThread = new Thread(Read); SerialPort _serialPort = new SerialPort("COM1", 9600); _serialPort.Parity = Parity.None; _ser...

Simple serial point-to-point communication protocol

I need a simple communication protocol between two devices (a PC and a microcontroller). The PC must send some commands and parameters to the micro. The micro must transmit an array of bytes (data from sensor). The data must be noise protected (besides parity checking, I think I need some other data correction method). Is there any sta...

Low-Level control of RS232 (Com-Port) RTS/CTS/DTR/DSR possible?

I wonder if and how it's possible to control the RS-232 handshaking lines directly from win32 (the old C-API). I'd like to interface with an external piece of hardware, and two simple data-lines would be sufficient for my needs. So - is there a API for win32 that lets me read and write the state of the four status lines? In normal se...

How to do serial communication in c program?

Using vc++ compiler how one can access serial port. Bioscom() function can be used in Turbo C. ...

Serial port monitoring application for Windows CE?

I have an application on a Windows CE device that tries to receive data over a serial port. This isn't working and now I'm looking for some simple application to run on that device that'd let me check if there is any data coming in. Is there something like HyperTerminal that let's me monitor a serial port on mobile devices? Best would p...

Monitoring serial port

Hi, I'm using a communications program (Tera Term) to communicate with another computer through a dialup connection. I'll be sending a file with this software, but I would like to monitor the port (like PortMon) to measure the time it takes to transfer the file. Do you know any way of doing it without this software? Thanks a lot ...

How I can fix this code to allow my AVR to talk over serial port?

Hi guys, I've been pulling my hair out lately trying to get an ATmega162 on my STK200 to talk to my computer over RS232. I checked and made sure that the STK200 contains a MAX202CPE chip. I've configured the chip to use its internal 8MHz clock and divided it by 8. I've tried to copy the code out of the data sheet (and made changes wher...

Opening serial port used by a printer...

I'm sending ESC/P codes (http://webpages.charter.net/dperr/links/esc_p83.htm) to an Epson LX-300 printer which is connected to the COM1 and the pc already has the correct driver installed because someone else needs it. So i wrote this: using System.IO.Ports; public class EpsonPrint { private char esc = (char)27; private char ...

Serial Port Communication Issues (C code)

I recently tried to get access to a serial communication using a Bluetooth usb dongle. I used the C code below, and keep getting error 5, which is “Access denied”. I am the administrator for the system (which seemed to be the common solution to this problem on the forums) and no other application is accessing the same port I am using (al...

change the DCB structure of a boost::asio::serial_port

I'd like to disable RTSControl using boost::asio::serial_port set_option function. and also be able to raise or lower the DTR line? boost::asio::serial_port_base::baud_rate baud_option(115200); serialPort.set_option(baud_option); the standard options work great, but I can't figure out how to change the dcb structure, or how to co...

Can XON and XOFF be equal?

Can the application use set same char in the XON and XOFF? If yes, how my device driver should handle this situation ...

Is there a hook to monitor activity on a bluetooth serial port

Is there any way of monitoring activity over a bluetooth connection either using a software hook or an external bluetooth monitor, where the bluetooth is emulating a RS232 serial port. When I'm using a cabled connection, I could use an in-line datascope for this activity, which was basically checking whether comms between a PC and exter...

rxtx com port

Hi, I am using rxtx api to read data from a GPS device over a com port. Right now I'm finding the correct com port by reading a config file and looking for the port listed. The problem that I'm having is that if the device is unplugged the com port could change then the user has to know to change the config file. I wrote an app similar t...

.NET Serial Port help required, primarily with data received in multiple "packets"

I'm very new to sending data over a serial port through .net and I've noticed after implementing a TCP counterpart that I wouldn't get it that easy with serial! So to start at the top, I am nearly there with my serial bi-directional communication implementation I am just getting stuck on a few things: - My reads are being split across...

Calculate Block Check Character (BCC) for serial communication

Hi There, I am communicating with a device via serial via the SerialPort class of .NET and based on third-party device specification requirements I need to calculate a "block check character". The only information I am told is that it is an exclusive OR operation (XOR) and it must be performed over all characters. So if I have the st...

Arduino serial reading

I am working on a web controlled rover and am using a serial port to communicate with an Arduino. I wrote some PHP that just uses fwrite() and writes an ascii 1 or an ascii 2 to the serial port. The arduino is listening to that port and does stuff based on what it hears. I know my PHP is working, because whenever I tell it to send stuff,...

Listening to Serial Com Ports that are In use

I'm dealing with some legacy systems that are using RS232 to communicate with peripherals. I'm not very experienced with COM interfacing. I have some code that can open and use COM ports, but it can't open ports that are used by other applications. I need to black box the packets so that we can use the same protocol for updated communica...

How to Send SMS via Windows application

Hello, I want to send SMS by windows application. I ran the code but I got an error. This is AT OK AT+CMGF=1 OK AT+CSCA="+9460921985" OK AT+CMGS="+9660775564" this is new message +CMS ERROR: 500 I am using this code. Public Class Form2 Dim number As String = "+9660775564" ''# Dim message As String = TextBox1.Text Dim...