serial-port

Com Port Terminology?

i'm building a UI using a com ports, and i'm trying to write labels to distinguish between the com port and the com port's port number... ? for example, i'm using Com Port 3, and it's set to 5331. what is the 5331? how can i label the two different? ...

C# serialport and hyperterminal

Hi, i am using c# and Serialport and com0com(virtual serial ports) My problem is that my c# application can't recive data from hyperterminal,the event DataRecived is not fired and if i call manualy the readExisting i get nothing To test this problem you can create a basic c# app like this one that has same problem http://balau82.wordpr...

Prompted for Bluetooth PIN when connecting to already paired device on Android

I am developing an Android app to connect to a simple device that supports the bluetooth serial port profile (SPP). I am able to successfully connect and exchange data, but each time I connect the user is prompted to enter the PIN for the device. In the bluetooth settings I can see that the device is 'paired by not connected'. The p...

Java: how to collect incoming data fragments into properly terminated strings for subsequent parsing?

I just joined StackOverflow after having found many great answers here in the past. Here's my first question: EDIT: I feel bad... my first question to StackOverflow turned out to be a "wild goose chase". The problem is in the data, not the code reading the data. I was looking for a solution in the wrong place! I will explain in a commen...

Recommendations for a cheap serial device

I'm going to need to integrate a Java application that I wrote with a medical device that uses a serial port for communications. This device is rather expensive, and also not so portable. I'd like to be able to test code wherever I happen to be, but you can only do so much before you need to plug in your serial device and start testing...

Is there a convention for passing part numbers over serial port?

I have some devices which read an RFID tage and pass the serial number of the tag over the serial port. It seems to me that it is "better" to use two bytes for each digit of the serial number, especially since some devices are sending a terminating 0x0D 0xA (CR/LF). Now I find one device which is using one byte per digit, so to send "1...

Android 2.1 Bluetooth SPP to LM058 (Serial Cable Replacement) problem

Hey I'm relatively new to Android programming (but not programming in general). The Setup: HTC Wildfire (running Android 2.1) LM058 (RS232 Serial Cable Replacement) LM058 will later on be attached to a MCU but for now it's connected to my laptop (terminal) The Goal: To connect Wildfire to LM058 to each other with a 'bidirectional-strea...

RxTx is continually polling my device!

Hey Guys, Having a few issues with RxTx (still!). I'm using RxTx to control a USB->Serial bridge device that opens a cash drawer for my POS system. When a user enters their clerk number and logs into the system, RxTx opens up the connection to the bridge using the following code: try { portID = (CommPortIdentifier) CommPortIdentifi...

Automating serial port communication on Linux

I have a linux server (Red Hat 4) with one serial port connection to an embedded linux device, and another serial port connection to a power controller for that device. My current way to control them is to open two minicom sessions, each in its own window. I would like to automate this communication through scripts. At first, I began to ...

how to use CSerialPort in Qt?

when I add CSerialPort files(SerialPort.h, SerialPort.cpp) into my QMake project, and compile it, IDE(vc2008) throw lots of errors, How could I deal with it? I installed vc2008, qt4.6 for windows visualstudio, and visualstudio plugin for Qt, and CSerialPort works right in normal MFC projects. I know there is a QextSerialPort, but it i...

VB.NET Serial polling without mix-ups using the DataRecieved event

VB.NET 2010, .NET 4 Hello, I currently have a class that represents a serial device. The communication paradigm is: Send a command/request, the device then sends an acknowledged or not-acknowledged byte. If acknowledged, the device sends its response. The way this is being done right now is: A timer periodically sends a command/re...

Writing a TCP to RS232 driver

I need to expose an RS232 connection to clients via a network socket. I plan to write in python a TCP socket server which will listen on some port, allow client to connect and handle outgoing and manage and control requests and replies to from the R2232 port. My question is, how do I synchronize the clients, each client will send some ...

Bash, Serial I/O and Arduino

So, I'm in a bit over my head, and I feel like I'm very close to a solution but it's just not working quite yet. Here's my situation: I'm working with an Arduino MicroController, and I'm attempting to write two Bash scripts (right now running in MacOS 10.6) which will (a) print all serial data coming out of the Arduino unit to the stand...

C# Errors with SerialPort WriteLine commands

I am using the C# SerialPort class to write to my COM port. Weird thing is that I can get data from the port just fine - it sends data that I am expecting. However, I cannot send any data to the port. Any data that I send is immediately echoed back to me as new data coming from the port. I am expecting a "Done" command but it instead giv...

how to access serial port using c#

I want to ask is there a library or assembly to access seral port to write on it using c#? ...

change the system.io.port datareceived event output type

Hi there, I am building a class library for modbus and serial connections, I need to return an array of bytes back but when using the DataReceived event from System.IO.Ports I cannot return any since it's type is void. Also I am noticing that the DataReceived is not firing. The following is my code: public void ConnectSerialModB...

Keeping alive a Bluetooth serial port on Windows Mobile 6.0 after power-off/suspend

I encountered an unexpected behavior while debugging a WinMo 6 program last night, and I wonder if I was dreaming. But first, some context. The program communicates through a serial port with a GPS device. It uses either a physical port with cable, and also tries via Bluetooth. After a suspend or power-off, I don't need to close and reo...

How to wait forever for at least one byte using COMMTIMEOUTS?

How can I configure COMMTIMEOUTS to wait forever for at least one byte to be read? ...

Problem of using the javax.comm API on windows 7

Hey friends i am using the javax.comm API to help my program communicate to a hardware over the serial port. I am using the Windows 7, and netbeansIDE9. i used the common java program to check the available ports on my PC. the program compiled and run with out error. however,it returned nothing. can anybody tell me what i can do to use t...

On a PC, how to write program to give ON/OFF/ON/OFF, like bitstream to USB port, RS-232 port, or Parallel port?

Is there a way to write a program to output ON/OFF/ON/OFF sequence to one of USB, RS-232, or Parallel port? The On probably will be 5V or is "close circuit", and Off will be 0V or is "open circuit". Can the frequency be very high? This can be achieve long time ago by using TTL chips and a "clock", and programming in Microcode, which i...